mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 09:07:30 +08:00
added support for heigt and width properties inside an object config property to be transition-able
This commit is contained in:
@@ -1019,6 +1019,18 @@ Test.prototype.tests = {
|
||||
test(crop.y === 20, 'crop y should be 20');
|
||||
test(crop.width === 200, 'crop width should be 200');
|
||||
test(crop.height === 250, 'crop height should be 250');
|
||||
|
||||
/*
|
||||
darth.transitionTo({
|
||||
crop: {
|
||||
|
||||
width: 100,
|
||||
height: 125
|
||||
|
||||
},
|
||||
duration: 1
|
||||
});
|
||||
*/
|
||||
};
|
||||
imageObj.src = '../darth-vader.jpg';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user