mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-10 20:20:46 -04:00
Merge pull request #1510 from sasensi/fix_Path.splitAt()_documentation_example
Fix Path.splitAt() documentation example
This commit is contained in:
commit
a5683c1184
2 changed files with 2 additions and 1 deletions
|
@ -13,3 +13,4 @@
|
|||
- Justin Ridgewell <justinridgewell@gmail.com>
|
||||
- Andrew Wagenheim <abwagenheim@gmail.com>
|
||||
- Scott Kieronski <baroes0239@gmail.com>
|
||||
- Samuel Asensi <asensi.samuel@gmail.com>
|
|
@ -1012,7 +1012,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
* path.strokeColor = 'black';
|
||||
*
|
||||
* // Split the path half-way:
|
||||
* var path2 = path.splitAt(path2.length / 2);
|
||||
* var path2 = path.splitAt(path.length / 2);
|
||||
*
|
||||
* // Give the resulting path a red stroke-color
|
||||
* // and move it 20px to the right:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue