Commit Graph

4 Commits

Author SHA1 Message Date
Bryan Housel
9233167f52 Allow d3.dimensions to accept null to reset to current bounding rect 2016-02-23 23:58:40 -05:00
Bryan Housel
3b0347eebc Persist dimensions in property to avoid reflow 2016-02-12 17:12:03 -05:00
Bryan Housel
0210d69177 Use getBoundingClientRect for dimensions instead of offsetHeight/offsetWidth
`offsetHeight`/`offsetWidth` does not work for SVG Elements except in Chrome
and this support is being removed from Chrome soon:

>'SVGElement.offsetWidth' is deprecated and will be removed in M50, around
April 2016. See https://www.chromestatus.com/features/5724912467574784 for
more details.
2016-02-10 17:08:11 -05:00
John Firebaugh
bba761d8ea size -> dimensions
D3 3.2 adds selection.size, where size means "number
of selected elements".
2013-06-20 13:05:20 -07:00