mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-11 07:13:09 +00:00
Update polyline.class.js
Mirror polygon changes
This commit is contained in:
parent
aff2c4f313
commit
67a4be50a2
1 changed files with 15 additions and 4 deletions
|
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue