Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ChepteaCatalin opened this issue Sep 23, 2023 · 0 comments
Closed

Comments

@ChepteaCatalin
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant