mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 22:29:11 -04:00
Improve documentation for Path#removeSegments().
This commit is contained in:
parent
ee0446fa4f
commit
7dcdb5ca2f
1 changed files with 5 additions and 5 deletions
|
@ -499,12 +499,12 @@ var Path = this.Path = PathItem.extend({
|
|||
|
||||
// PORT: Add to Scriptographer
|
||||
/**
|
||||
* Removes the segments from the specified 'from' index to the specified
|
||||
* 'to' index from the path's {@link #segments} array.
|
||||
* Removes the segments from the specified {@code from} index to the
|
||||
* specified {@code to} index from the path's {@link #segments} array.
|
||||
*
|
||||
* @param {Number} from
|
||||
* @param {Number} to
|
||||
* @return {Array} an array containing the removed segments.
|
||||
* @param {Number} [from=0] the beginning index, inclusive
|
||||
* @param {Number} [to=segments.length] the ending index, exclusive
|
||||
* @return {Array} an array containing the removed segments
|
||||
*
|
||||
* @example {@paperscript}
|
||||
* // Removing segments from a path:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue