diff options
author | Wout <wout@users.noreply.github.com> | 2016-10-13 19:16:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-13 19:16:14 +0200 |
commit | 6f4fd728afa6c3b590ae094b5d9e7ed716075b73 (patch) | |
tree | 72f86690394154dea1d9db0d19ee3255b0d580fb | |
parent | 2bf31074416fa6ffb4117d50e304e84d64d88930 (diff) | |
download | svg.js-6f4fd728afa6c3b590ae094b5d9e7ed716075b73.tar.gz svg.js-6f4fd728afa6c3b590ae094b5d9e7ed716075b73.zip |
Fixed error in README
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1839,8 +1839,8 @@ This will return an instance of `SVG.BBox` containing the following values: 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) ``` |