From 371428b9ee32b3b0b2447898a8323d839fc9004c Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 2 Jun 2011 12:59:30 +0200 Subject: [PATCH] Item docs: improve #scale examples. --- src/item/Item.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/item/Item.js b/src/item/Item.js index c0558787..caa10b00 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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);