Currently, the rotate function from core/matrix.ts rotates the input matrix by the specified angle relative to the origin point (0, 0) of the coordinate system.
When parsing an SVG that contains a rotate transformation (rotate(<a> [<x> <y>])), only the angle a is taken into consideration, while the coordinates x and y, which specify the point about which to rotate, are ignored. This fact caused echarts/19141 issue.
The expected behavior is that the point about which to rotate is taken into consideration, enabling a rotation relative to a specific point.
Currently, the
rotatefunction fromcore/matrix.tsrotates the input matrix by the specified angle relative to the origin point (0, 0) of the coordinate system.When parsing an SVG that contains a
rotatetransformation (rotate(<a> [<x> <y>])), only the angleais taken into consideration, while the coordinatesxandy, which specify the point about which to rotate, are ignored. This fact caused echarts/19141 issue.The expected behavior is that the point about which to rotate is taken into consideration, enabling a rotation relative to a specific point.