Skip to content

feat: support skew in transform and svg parser#755

Merged
100pah merged 6 commits into
masterfrom
fix/skew
May 12, 2021
Merged

feat: support skew in transform and svg parser#755
100pah merged 6 commits into
masterfrom
fix/skew

Conversation

@pissang
Copy link
Copy Markdown
Contributor

@pissang pissang commented May 12, 2021

  1. Add property skewX, skewY in Transformable
  2. Support decompose matrix with skew.
  3. Parse skewX skewY in SVG transform attributes.

This PR also did some performance optimization on the transform calculation.

TODO Note:
zrender uses a different hand coordinate system compared to CSS transform. It may confuse developers when using rotation, skewX, skewY. But change them will break a lot of codes. I guess we can only accept it in a very long time.

Related issues:
apache/echarts#14703

@100pah 100pah merged commit bf3eb19 into master May 12, 2021
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

Successfully merging this pull request may close these issues.

2 participants