CompoundPath: document #moveTo and #moveBy.

This commit is contained in:
Jonathan Puckey 2011-05-29 16:13:30 +02:00
parent 0b9c034e0d
commit 41bf1f4543

View file

@ -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) {