mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
type fixes, fix fast layer bug
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user