antvis/G6

使用了自定义边的marker,增加阿里icon的svg加载后,icon图标颜色不可变 #5876

zhangsai521314 posted onGitHub

Describe the bug / 问题描述

使用了register(ExtensionCategory.EDGE, "fly-marker-cubic", FlyMarkerCubic)自定边的marker实现。 正常node的iconFill颜色可以使用,当引用了阿里的svg的icon后,node的iconFill失效

链接:https://pan.baidu.com/s/1GdHVtfY9QLssjvagAKwpMQ?pwd=73cb 提取码:73cb

Steps to Reproduce the Bug or Issue / 重现步骤

因为在stackblitz中上传不了字体文件,将demo创建了项目,请下载后安装后打开。 正常效果和异常效果通过注释和解注释index.html中的/MyIcon/iconFont_svg.css即可看到

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Firefox

Additional context / 补充说明

No response


复现链接(缺失一些icon的字体,不过效果是有了):https://stackblitz.com/edit/react-3ybsvb?file=index.html

posted by zhangsai521314 10 months ago

因加了下面这个css导致 .icon { fill: currentColor; }

posted by zhangsai521314 10 months ago

Fund this Issue

$0.00
Funded

Pull requests