summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-04-22 09:57:25 +0100
committerwout <wout@impinc.co.uk>2013-04-22 09:57:25 +0100
commit11ded2fe8fabf4392633fcdb3713a49e084746a1 (patch)
tree16c325b6261d8159bade92faf6b763acbccad148 /README.md
parenta736acc12e4ca1a71b9f563f7ed361e2a3540469 (diff)
downloadsvg.js-11ded2fe8fabf4392633fcdb3713a49e084746a1.tar.gz
svg.js-11ded2fe8fabf4392633fcdb3713a49e084746a1.zip
Added the rbox() method, bumped to v0.140.15
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index bd1be92..a67cb7b 100644
--- a/README.md
+++ b/README.md
@@ -475,6 +475,16 @@ This will return an instance of `SVG.BBox` containing the following values:
As opposed to the native `getBBox()` method any translations used with the `transform()` method will be taken into account.
+### Rectagular box
+Is similar to `bbox()` but will give you the box around the exact representation of the element, taking all transformations into account.
+
+```javascript
+path.rbox()
+```
+
+This will return an instance of `SVG.RBox`.
+
+
### Iterating over all children
If you would iterate over all the `children` of the svg document, you might notice also the `<defs>` and `<g>` elements will be included. To iterate the shapes only, you can use the `each()` method:
@@ -1084,8 +1094,6 @@ To build the base library only including shapes:
rake concat[-fx:-event:-group:-arrange:-mask:-pattern:-gradient:-nested:-sugar] dist
```
-_The Rakefile has been borrowed from [madrobby's](https://github.com/madrobby) [Zepto](https://github.com/madrobby/zepto)_
-
## To-do
- Instance module