Skip to content

[Bug]: parseSvg导入的svg 如果含有transform并不能生效 #283

Description

@heimayouzi

Code Sanbox异常重现

No response

bug描述

<svg x="94.3221270473346" y="297.275496446473" width="13.1000003814697" height="3.34999990463257" > <g transform="translate(94.3221270473346,297.275496446473) scale(1.16837702123326,1.16837702123326) translate(-94.3221270473346,-297.275496446473)"> <line x1="-6.500000" y1="0.000000" x2="-4.000000" y2="0.000000" fill="none" stroke="rgb(255,0,0)" stroke-width="0.100000" /> <rect x="-4.000000" y="-1.625000" width="8.000000" height="3.250000" fill="rgb(255,102,0)" stroke="rgb(255,0,0)" stroke-width="0.100000" /> <line x1="4.000000" y1="0.000000" x2="6.500000" y2="0.000000" fill="none" stroke="rgb(255,0,0)" stroke-width="0.100000" /> </g> </svg>

我有这么一个svg,g标签里面有transform属性,但是使用parseSvg方法感觉这个属性并没有生效

期待效果

正常展示

发生频率

每次

核心库版本

No response

浏览器版本

No response

其他需要补充的

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions