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

@@ -529,6 +529,26 @@ suite('Stage', function() {
);
});
// ======================================================
test('Should not throw on clip for stage', function() {
// no asserts, because we check throw
var stage = addStage({
clipFunc: () => {}
});
var layer = new Konva.Layer();
var text = new Konva.Text({
x: 0,
y: 0,
text: 'Hello world',
fontSize: 50,
name: 'intersectText'
});
layer.add(text);
stage.add(layer);
});
// ======================================================
test('scale stage after add layer', function() {
var stage = addStage();