- From: Fredrik Söderqvist via GitHub <sysbot+gh@w3.org>
- Date: Sun, 02 Apr 2017 19:57:34 +0000
- To: public-svg-issues@w3.org
This would be something like the below (modulo terrible indentation) using currently speced primitives? function getScreenBBox(element) { let ctm = element.getScreenCTM(); let localBBox = DOMQuad.fromRect(element.getBBox({fill: true, stroke: true, markers: true})); let clientBBox = new DOMQuad(localBBox.p1.matrixTransform(ctm), localBBox.p2.matrixTransform(ctm), localBBox.p3.matrixTransform(ctm), localBBox.p4.matrixTransform(ctm)); return clientBBox.getBounds(); } -- GitHub Notification of comment by fsoder Please view or discuss this issue at https://github.com/w3c/svgwg/issues/76#issuecomment-291010647 using your GitHub account
Received on Sunday, 2 April 2017 19:57:40 UTC