function extractViewBox extractViewBox(svg: string): { width: number; height: number; } Extract the viewBox from an SVG element to compute its coordinate space Parameters svg: string Return Type { width: number; height: number; }