Skip to content

geo SVG parser have incorrect behavior in some transform cases. #14703

@100pah

Description

@100pah

Version

5.1.0

Steps to reproduce

In the new feature geoSVG, these transform is not the same as the original SVG did.

  • The scale x and scale y have different sign and has rotate. (e.g., scaleX: 1, scaleY: -1, rotate: 90), .
  • When the transform=method1() method2() ..." the method order not follow the order of translate scale rotate, the result might be different with the original SVG.
    • But I guess in most cases user will not manually edit the SVG transform with those method.
  • When skew is used.
    • But skew not supported in this version of geoSVG.

Test case

https://github.com/ecomfe/zrender/blob/fix/skew/test/transform.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions