mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Add Curve#getPart but hide for now as more work is required.
This commit is contained in:
parent
b5a0979f58
commit
ef10c2797c
1 changed files with 8 additions and 0 deletions
|
@ -221,6 +221,14 @@ var Curve = this.Curve = Base.extend({
|
||||||
return length;
|
return length;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* TODO: Implement this, but convert result to new Curve object again?
|
||||||
|
getPart: function(from, to) {
|
||||||
|
var args = this.getCurveValues();
|
||||||
|
args.push(from, to);
|
||||||
|
return Curve.getPart.apply(Curve, args);
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if this curve is linear, meaning it does not define any curve
|
* Checks if this curve is linear, meaning it does not define any curve
|
||||||
* handle.
|
* handle.
|
||||||
|
|
Loading…
Reference in a new issue