mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 09:07:30 +08:00
added _setPoints so that points setter methods could leverage the same logic that was in the setAttrs() method
This commit is contained in:
@@ -1271,6 +1271,12 @@ Test.prototype.tests = {
|
||||
line.on('dragend', function() {
|
||||
line.saveData();
|
||||
});
|
||||
|
||||
line.setPoints([1, 2, 3, 4]);
|
||||
test(line.getPoints()[0].x === 1, 'first point x should be 1');
|
||||
|
||||
line.setPoints([73, 160, 340, 23]);
|
||||
test(line.getPoints()[0].x === 73, 'first point x should be 73');
|
||||
},
|
||||
'SHAPES - add dashed line': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
|
||||
Reference in New Issue
Block a user