From ef10c2797c4e1369d3e44d275f074280e3ca3c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 5 Jun 2011 11:34:24 +0100 Subject: [PATCH] Add Curve#getPart but hide for now as more work is required. --- src/path/Curve.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/path/Curve.js b/src/path/Curve.js index 8074ccd0..bec1e61d 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -221,6 +221,14 @@ var Curve = this.Curve = Base.extend({ 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 * handle.