mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Enforce creation of Curve#values getter despite hidden parameter.
This commit is contained in:
parent
286765f4b0
commit
45f5bf84e8
1 changed files with 5 additions and 2 deletions
|
@ -26,6 +26,9 @@
|
||||||
*/
|
*/
|
||||||
var Curve = Base.extend(/** @lends Curve# */{
|
var Curve = Base.extend(/** @lends Curve# */{
|
||||||
_class: 'Curve',
|
_class: 'Curve',
|
||||||
|
// Enforce creation of beans, as some bean getters have hidden parameters.
|
||||||
|
// See #getValues() below.
|
||||||
|
beans: true,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new curve object.
|
* Creates a new curve object.
|
||||||
|
@ -381,8 +384,8 @@ var Curve = Base.extend(/** @lends Curve# */{
|
||||||
for (var i = 0; i < 8; i += 2)
|
for (var i = 0; i < 8; i += 2)
|
||||||
points.push(new Point(coords[i], coords[i + 1]));
|
points.push(new Point(coords[i], coords[i + 1]));
|
||||||
return points;
|
return points;
|
||||||
},
|
}
|
||||||
|
}, /** @lends Curve# */{
|
||||||
/**
|
/**
|
||||||
* The approximated length of the curve.
|
* The approximated length of the curve.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue