This commit is contained in:
Andrew Nicols
2018-10-31 08:15:43 +08:00
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -475,7 +475,7 @@ define(function() {
*/
function Polygon(label, points) {
Shape.call(this, label, 0, 0);
this.points = points ? Array.from(points) : [new Point(10, 10), new Point(40, 10), new Point(10, 40)];
this.points = points ? points.slice() : [new Point(10, 10), new Point(40, 10), new Point(10, 40)];
this.normalizeShape();
}
Polygon.prototype = new Shape();