mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Item docs: improve #scale examples.
This commit is contained in:
parent
a32930287a
commit
371428b9ee
1 changed files with 2 additions and 0 deletions
|
@ -937,6 +937,7 @@ var Item = this.Item = Base.extend({
|
|||
*
|
||||
* // Create a circle at position { x: 10, y: 10 }
|
||||
* var circle = new Path.Circle(new Point(10, 10), 10);
|
||||
* circle.fillColor = 'black';
|
||||
* console.log(circle.bounds.width); // 20
|
||||
*
|
||||
* // Scale the path by 200% from its center point
|
||||
|
@ -949,6 +950,7 @@ var Item = this.Item = Base.extend({
|
|||
*
|
||||
* // Create a circle at position { x: 10, y: 10 }
|
||||
* var circle = new Path.Circle(new Point(10, 10), 10);
|
||||
* circle.fillColor = 'black';
|
||||
*
|
||||
* // Scale the path 200% from its bottom left corner
|
||||
* circle.scale(2, circle.bounds.bottomLeft);
|
||||
|
|
Loading…
Reference in a new issue