Skip to content

[Feature] Support rotation relative to a point other than the origin #1033

@ChepteaCatalin

Description

@ChepteaCatalin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions