diff options
author | Fuzzy <ulima.ums@googlemail.com> | 2015-02-22 00:57:44 +0100 |
---|---|---|
committer | Fuzzy <ulima.ums@googlemail.com> | 2015-02-22 00:57:44 +0100 |
commit | 6bb7b47b00205509917237c6c175c8cf0d5bcd71 (patch) | |
tree | e3d6a1dcc856e4424b025b2af378d2d4a42c7335 | |
parent | 812b27b3fc8589988b588a19e901b0c5704d873d (diff) | |
parent | c4ca1932dc593abe919219c0eb91c8bfea5646af (diff) | |
download | svg.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-x | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) ``` |