-
Notifications
You must be signed in to change notification settings - Fork 640
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
在使用ImageLayer时,layer.source传入svg格式的图片时,这个图片图层展示不出来,png的可以。 #1865
Labels
good first issue
Good for newcomers
Comments
hi @zimutao, welcome! |
支持 SVG 的,访问的你的图片链接访问不了 |
可能是打包的问题,你可以尝试 实例化成 image 对象看看 |
This was referenced Sep 14, 2023
实例化就好了,上个问题是图片没加载完成我就传入了,加上img.onload就好了。 |
This was referenced Oct 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述:在使用ImageLayer时,layer.source传入svg格式的图片时,这个图片图层展示不出来,png的可以。
https://codesandbox.io/s/xenodochial-cartwright-jqlqfj?from-embed
代码:
The text was updated successfully, but these errors were encountered: