aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorWout <wout@users.noreply.github.com>2016-10-13 19:16:14 +0200
committerGitHub <noreply@github.com>2016-10-13 19:16:14 +0200
commit6f4fd728afa6c3b590ae094b5d9e7ed716075b73 (patch)
tree72f86690394154dea1d9db0d19ee3255b0d580fb /README.md
parent2bf31074416fa6ffb4117d50e304e84d64d88930 (diff)
downloadsvg.js-6f4fd728afa6c3b590ae094b5d9e7ed716075b73.tar.gz
svg.js-6f4fd728afa6c3b590ae094b5d9e7ed716075b73.zip
Fixed error in README
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index d772263..c5587ae 100644
--- a/README.md
+++ b/README.md
@@ -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)
```