-
参照了 https://antv-x6.gitee.io/zh/examples/node/tool#button 实例, 想写形如这样的代码,请教如何修改才能生效?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
可以这样子: markup: [
{
tagName: 'path',
'd': 'M24.85,10.126c2.018-4.783,6.628-8.125,11.99-8.125c7.223,0,12.425,6.179,13.079,13.543c0,0,0.353,1.828-0.424,5.119c-1.058,4.482-3.545,8.464-6.898,11.503L24.85,48L7.402,32.165c-3.353-3.038-5.84-7.021-6.898-11.503c-0.777-3.291-0.424-5.119-0.424-5.119C0.734,8.179,5.936,2,13.159,2C18.522,2,22.832,5.343,24.85,10.126z'
}
] |
Beta Was this translation helpful? Give feedback.
-
感谢,可以了。才发现示例中有一个使用SVG自定义图标就是这样实现的。之前怎么没找到
|
Beta Was this translation helpful? Give feedback.
-
又出现了奇怪的问题 😃 我该如何修改这个svg的大小呢?尝试修改width和height,增加viewbox都未果,出现了十分可笑的巨图标 |
Beta Was this translation helpful? Give feedback.
-
找到了合适的缩放path d的工具。
|
Beta Was this translation helpful? Give feedback.
感谢,可以了。才发现示例中有一个使用SVG自定义图标就是这样实现的。之前怎么没找到