mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Add unique ids to CurveLocation.
This commit is contained in:
parent
6800a6d534
commit
0c114883e1
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ var CurveLocation = this.CurveLocation = Base.extend(/** @lends CurveLocation# *
|
|||
* @param {Point} point
|
||||
*/
|
||||
initialize: function(curve, parameter, point, distance) {
|
||||
// Define this CurveLocation's unique id.
|
||||
this._id = CurveLocation._id = (CurveLocation._id || 0) + 1;
|
||||
this._curve = curve;
|
||||
// Also store references to segment1 and segment2, in case path
|
||||
// splitting / dividing is going to happen, in which case the segments
|
||||
|
|
Loading…
Reference in a new issue