Skip to content
New issue

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

registerShape,使用addShape,type设置为'image'的时候,attrs内的img能否设置为项目本地路径下的的.svg文件? #3766

Closed
PiDazhong opened this issue Dec 31, 2021 · 1 comment

Comments

@PiDazhong
Copy link

  • G2 Version: ^4.1.30
@hustcc
Copy link
Member

hustcc commented Dec 7, 2022

可以的,本地代码中 import 后,加一个 svg loader 转成 base64 就可以用了。

@hustcc hustcc closed this as completed Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants