diff options
author | wout <wout@impinc.co.uk> | 2013-04-22 09:57:25 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-04-22 09:57:25 +0100 |
commit | 11ded2fe8fabf4392633fcdb3713a49e084746a1 (patch) | |
tree | 16c325b6261d8159bade92faf6b763acbccad148 /README.md | |
parent | a736acc12e4ca1a71b9f563f7ed361e2a3540469 (diff) | |
download | svg.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.md | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |