mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
combined Line, Spline, Blob, and Polygon into a single shape for more flexibility. converted allPoints property into cacheable getTensionPoints method
This commit is contained in:
@@ -912,12 +912,13 @@ suite('Node', function() {
|
||||
y: 93
|
||||
}];
|
||||
|
||||
var poly = new Kinetic.Polygon({
|
||||
var poly = new Kinetic.Line({
|
||||
points: points,
|
||||
fill: 'green',
|
||||
stroke: 'blue',
|
||||
strokeWidth: 5,
|
||||
draggable: true
|
||||
draggable: true,
|
||||
closed: true
|
||||
});
|
||||
|
||||
group.add(poly);
|
||||
|
||||
Reference in New Issue
Block a user