简体   繁体   English

使用JavaScript编辑svg并将PNG放置在SVG内

[英]Edit svg using JavaScript and place a PNG inside an SVG

我该如何编辑SVG,例如填充颜色和其他SVG方法,我想将SVG / PNG放置在SVG内某个特定路径/组的SVG中,为什么有人可以帮我解决这个问题?

I'm sure there are other libraries out there but I used Snap on a project to edit SVGs based on user selections. 我确定还有其他库,但是我在项目中使用了Snap以根据用户选择来编辑SVG。 http://snapsvg.io/ http://snapsvg.io/

As for the embedding question, there are other stackoverflow questions that answer that Why nest an <svg> element inside another <svg> element? 至于嵌入问题,还有其他stackoverflow问题可以回答为什么将<svg>元素嵌套在另一个<svg>元素内?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM