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:
@@ -24,16 +24,17 @@ suite('Polygon', function() {
|
||||
y: 93
|
||||
}];
|
||||
|
||||
var poly = new Kinetic.Polygon({
|
||||
var poly = new Kinetic.Line({
|
||||
points: points,
|
||||
fill: 'green',
|
||||
stroke: 'blue',
|
||||
strokeWidth: 5
|
||||
strokeWidth: 5,
|
||||
closed: true
|
||||
});
|
||||
|
||||
layer.add(poly);
|
||||
stage.add(layer);
|
||||
|
||||
assert.equal(poly.getClassName(), 'Polygon');
|
||||
assert.equal(poly.getClassName(), 'Line');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user