From 41bf1f45430d57186ad213ad718d81142869aad5 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 29 May 2011 16:13:30 +0200 Subject: [PATCH] CompoundPath: document #moveTo and #moveBy. --- src/path/CompoundPath.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/path/CompoundPath.js b/src/path/CompoundPath.js index de2caf79..e3844f10 100644 --- a/src/path/CompoundPath.js +++ b/src/path/CompoundPath.js @@ -109,10 +109,12 @@ var CompoundPath = this.CompoundPath = PathItem.extend({ var fields = { /** @lends CompoundPath# */ - // DOCS: document CompoundPath#moveTo /** * {@grouptitle Postscript Style Drawing Commands} * + * Creates a new path in the compound-path and adds the point + * as its first segment. + * * @param {Point} point */ moveTo: function(point) { @@ -121,8 +123,11 @@ var CompoundPath = this.CompoundPath = PathItem.extend({ path.moveTo.apply(path, arguments); }, - // DOCS: document CompoundPath#moveBy /** + * Creates a new path in the compound-path and adds the point as its + * first segment relative to the position of the last segment of the + * current path. + * * @param {Point} point */ moveBy: function(point) {