Skip to content

自定义节点时svg的path图标显示巨大 #1179

Answered by towersxu
qiaolin-li asked this question in Q&A
Discussion options

You must be logged in to vote

直接h('g')是有问题的,建议在外面添加svg标签,使用viewBox来控制。viewBox文档:https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/viewBox

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@qiaolin-li
Comment options

Answer selected by towersxu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants