mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
fixed #539 and also added size() overloader
This commit is contained in:
@@ -2759,6 +2759,11 @@ suite('Node', function() {
|
||||
circle.position({x: 6, y: 8});
|
||||
assert.equal(circle.position().x, 6);
|
||||
assert.equal(circle.position().y, 8);
|
||||
|
||||
// because the height was set to 11, the width
|
||||
// is also 11 because the node is a circle
|
||||
assert.equal(circle.size().width, 11);
|
||||
assert.equal(circle.size().height, 11);
|
||||
});
|
||||
|
||||
test('cache shape', function(){
|
||||
|
@@ -63,7 +63,7 @@ suite('Tween', function() {
|
||||
});
|
||||
|
||||
// ======================================================
|
||||
test('tween node 2', function() {
|
||||
test('destroy tween while tweening', function() {
|
||||
var stage = addStage();
|
||||
|
||||
var layer = new Kinetic.Layer();
|
||||
|
Reference in New Issue
Block a user