src/utils/geometry.js
function getSVGContentRect(target) {
    const bbox = target.getBBox();

    return createRectInit(0, 0, bbox.width, bbox.height);
}
function getSVGContentRect(target) {
    const bbox = target.getBBox();

    return createRectInit(0, 0, bbox.width, bbox.height);
}
function getSVGContentRect ( target ) { const bbox = target . getBBox ( ) ; return createRectInit ( 0 , 0 , bbox . width , bbox . height ) ; }
Calculates content rectangle of provided SVG element.

@param {SVGGraphicsElement} target - Element content rectangle of which needs
to be calculated.
@returns {DOMRectInit}
Calculates content rectangle of provided SVG element .