mirror of
https://github.com/konvajs/konva.git
synced 2025-12-20 03:59:52 +08:00
setup FastLayer. Layer won't extend FastLayer until FastLayer is complete
This commit is contained in:
24
test/unit/FastLayer-test.js
Normal file
24
test/unit/FastLayer-test.js
Normal file
@@ -0,0 +1,24 @@
|
||||
suite('FastLayer', function() {
|
||||
|
||||
// ======================================================
|
||||
test.only('basic render', function() {
|
||||
var stage = addStage();
|
||||
|
||||
var layer = new Kinetic.FastLayer();
|
||||
|
||||
var circle = new Kinetic.Circle({
|
||||
x: 100,
|
||||
y: stage.getHeight() / 2,
|
||||
radius: 70,
|
||||
fill: 'green',
|
||||
stroke: 'black',
|
||||
strokeWidth: 4
|
||||
});
|
||||
|
||||
layer.add(circle);
|
||||
stage.add(layer);
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user