type fixes, fix fast layer bug

This commit is contained in:
Anton Lavrenov
2019-02-22 12:46:46 -05:00
parent b251fe3f57
commit aaf0185363
9 changed files with 105 additions and 75 deletions

View File

@@ -18,6 +18,26 @@ suite('FastLayer', function() {
stage.add(layer);
});
test('should not throw on shape render', function() {
var stage = addStage();
var layer = new Konva.FastLayer();
var circle = new Konva.Circle({
x: 100,
y: stage.getHeight() / 2,
radius: 70,
fill: 'green',
stroke: 'black',
strokeWidth: 4
});
layer.add(circle);
stage.add(layer);
circle.draw();
});
test('transform', function() {
var stage = addStage();