The Dimension calculation depends upon a bounding box calculation that is performed in the routine simpletransform.computeBBox. This routine calculates an approximate bounding box, apparently by using the envelope containing all the Bezier control points used to draw the object. This approximation will always be somewhat too large, and can sometimes be significantly too large, as seen in the attached svg file.
The Dimension calculation depends upon a bounding box calculation that is performed in the routine simpletransform .computeBBox. This routine calculates an approximate bounding box, apparently by using the envelope containing all the Bezier control points used to draw the object. This approximation will always be somewhat too large, and can sometimes be significantly too large, as seen in the attached svg file.