A simple fix might help when setting the points for SvgShapes:
let ctm = _polygon.getCTM();
for (var i = 0; i < _polygon.points.numberOfItems; i++) {
var point = _polygon.points.getItem(i);
point = point.matrixTransform(ctm);
//points.push(point);
points.push(new Point2D(point.x, point.y));
}
And the fix to show the output point in a proper place:
Transformations and 'viewBox' are completely ignored by the SvgShapes.
A workaround fix: (svg rotated + viewBox + group rotated + elements rotated):
A simple fix might help when setting the points for SvgShapes:
And the fix to show the output point in a proper place:
Suggestion: add a transformation matrix to the ShapeInfo element. So shapes might be transformed independently