mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Improve CompoundPath documentation.
This commit is contained in:
parent
bf19d8944c
commit
373e14dd76
1 changed files with 6 additions and 3 deletions
|
@ -25,7 +25,8 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
|
||||||
*
|
*
|
||||||
* @class A compound path contains two or more paths, holes are drawn
|
* @class A compound path contains two or more paths, holes are drawn
|
||||||
* where the paths overlap. All the paths in a compound path take on the
|
* where the paths overlap. All the paths in a compound path take on the
|
||||||
* style of the backmost path.
|
* style of the backmost path and can be accessed through its
|
||||||
|
* {@link Item#children} list.
|
||||||
*
|
*
|
||||||
* @extends PathItem
|
* @extends PathItem
|
||||||
* @extends Item
|
* @extends Item
|
||||||
|
@ -108,8 +109,10 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
|
||||||
var fields = {
|
var fields = {
|
||||||
/** @lends CompoundPath# */
|
/** @lends CompoundPath# */
|
||||||
|
|
||||||
// DOCS: document moveTo
|
// DOCS: document CompoundPath#moveTo
|
||||||
/**
|
/**
|
||||||
|
* {@grouptitle Postscript Style Drawing Commands}
|
||||||
|
*
|
||||||
* @param {Point} point
|
* @param {Point} point
|
||||||
*/
|
*/
|
||||||
moveTo: function(point) {
|
moveTo: function(point) {
|
||||||
|
@ -118,7 +121,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend({
|
||||||
path.moveTo.apply(path, arguments);
|
path.moveTo.apply(path, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
// DOCS: document moveBy
|
// DOCS: document CompoundPath#moveBy
|
||||||
/**
|
/**
|
||||||
* @param {Point} point
|
* @param {Point} point
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue