Update polyline.class.js

Mirror polygon changes
This commit is contained in:
Andrea Bogazzi 2014-09-04 22:59:24 +02:00
parent aff2c4f313
commit 67a4be50a2

View file

@ -32,6 +32,20 @@
*/
points: null,
/**
* Minimum X from points values, necessary to offset points
* @type Number
* @default
*/
minX: 0,
/**
* Minimum Y from points values, necessary to offset points
* @type Number
* @default
*/
minY: 0,
/**
* Constructor
* @param {Array} points Array of points (where each point is an object with x and y)
@ -53,10 +67,7 @@
* });
*/
initialize: function(points, options) {
options = options || { };
this.set('points', points);
this.callSuper('initialize', options);
this._calcDimensions();
return fabric.Polygon.prototype.initialize.call(this, points, options);
},
/**