diff --git a/src/path/PathIterator.js b/src/path/PathIterator.js index 401a73e7..14d445da 100644 --- a/src/path/PathIterator.js +++ b/src/path/PathIterator.js @@ -151,4 +151,11 @@ var PathIterator = Base.extend({ ctx.bezierCurveTo.apply(ctx, curve.slice(2)); } } -}); +}, Base.each(['getPoint', 'getTangent', 'getNormal', 'getCurvature'], + function(name, index) { + this[name] = function(offset) { + return this.evaluate(offset, index); + }; + }, {}) +); +