getBBox()?

would this help? just bboxing :slight_smile:

http://svgjs.com/geometry/