SVG - How to get the total no of subpaths in SVGPathElement using Batik libraries?

266 Views Asked by At

For example in following case, there are two nested drawings, I want to calculate the area of the larger path and ignore the other.

path style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.0343547;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0"

d="M 207.87305 372.2832 L 207.87305 750.23633 L 585.82617 750.23633 L 585.82617 372.2832 L 207.87305 372.2832 z M 302.36133 466.77148 L 491.33789 466.77148 L 491.33789 655.74805 L 302.36133 655.74805 L 302.36133 466.77148 z " transform="matrix(0.9375,0,0,0.9375,0,5.0439605e-6)" id="path4562" />

0

There are 0 best solutions below