We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
代码:markup:[ { tagName: 'path', selector: 'body' }, { tagName: 'path', selector: 'inner' } ], attrs: { body:{ refD:"M 1 5 C 16 1 46 1 58 5 L 58 34 C 43 38 16 38 1 34 Z", stroke:"#A2B1C3" },
inner:{ refD:"M 1 5 C 16 9 46 9 58 5", stroke:"#A2B1C3", } } 当我设置inner的refD属性则显示错误,当我设置inner的d属性,则显示正确
暂无
期待
设置redD是错误的
The text was updated successfully, but these errors were encountered:
参考 refD 的定义,实际显示 path 的时候,会将 pathData 按照参照物进行平移和缩放,所以图形会变形。
Sorry, something went wrong.
大佬,有什么办法在不变形情况下,还能保持缩放吗?因为设置d则不能缩放,设置refD则会变形
@hanyuesoyeon 需要设置相对 path。
This thread has been automatically locked because it has not had recent activity.
Please open a new issue for related bugs and link to relevant comments in this thread.
No branches or pull requests
Describe the bug
代码:markup:[
{
tagName: 'path',
selector: 'body'
},
{
tagName: 'path',
selector: 'inner'
}
],
attrs: {
body:{
refD:"M 1 5 C 16 1 46 1 58 5 L 58 34 C 43 38 16 38 1 34 Z",
stroke:"#A2B1C3"
},
Your Example Website or App
暂无
Steps to Reproduce the Bug or Issue
暂无
Expected behavior
期待
设置redD是错误的
Screenshots or Videos
暂无
Platform
Additional context
暂无
The text was updated successfully, but these errors were encountered: