通过操作svg属性,对svg矢量图进行旋转、平移、放大、更改颜色操作。 支持矢量图的局部选择并更改。
By manipulating the svg attribute, the svg vector is rotated, translated, zoomed, and the color operation is changed. Support partial modification.
one:
<link rel="stylesheet" type="text/css" href="style.css">
<script src="jquery-3.2.1.min.js"></script>
<script src="svg_edit.js"></script>
two:
svg_edit(id,[color])
需要jQuery 3.0以上版本
Requires jQuery 3.0 or later