From b0a1f4b1a90c468864990e32bfb8b21a3d7b21dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 27 Apr 2011 19:28:39 +0100 Subject: [PATCH] Add missing Path#getPoint(length). --- src/path/Path.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/path/Path.js b/src/path/Path.js index 6079b03f..78c021f8 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -258,6 +258,14 @@ var Path = this.Path = PathItem.extend({ } return -1; }, + + /** + * Returns the point of the path at the given length. + */ + getPoint: function(length) { + var loc = this.getLocation(length); + return loc && loc.getPoint(); + }, /** * Returns the tangent to the path at the given length as a vector