aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFuzzy <ulima.ums@googlemail.com>2015-02-22 00:57:44 +0100
committerFuzzy <ulima.ums@googlemail.com>2015-02-22 00:57:44 +0100
commit6bb7b47b00205509917237c6c175c8cf0d5bcd71 (patch)
treee3d6a1dcc856e4424b025b2af378d2d4a42c7335
parent812b27b3fc8589988b588a19e901b0c5704d873d (diff)
parentc4ca1932dc593abe919219c0eb91c8bfea5646af (diff)
downloadsvg.js-6bb7b47b00205509917237c6c175c8cf0d5bcd71.tar.gz
svg.js-6bb7b47b00205509917237c6c175c8cf0d5bcd71.zip
Merge pull request #282 from masondesu/patch-1
Added missing `.bbox()` calls to merge example
-rwxr-xr-xREADME.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 9949340..9557c35 100755
--- a/README.md
+++ b/README.md
@@ -1450,8 +1450,8 @@ As opposed to the native `getBBox()` method any translations used with the `tran
The `SVG.BBox` has one other nifty little feature, enter the `merge()` method. With `merge()` two `SVG.BBox` instances can be merged into one new instance, basically being the bounding box of the two original bounding boxes:
```javascript
-var box1 = draw.rect(100,100).move(50,50)
-var box2 = draw.rect(100,100).move(200,200)
+var box1 = draw.rect(100,100).move(50,50).bbox()
+var box2 = draw.rect(100,100).move(200,200).bbox()
var box3 = box1.merge(box2)
```