Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 569 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 569 Bytes

svg_sdit.js

通过操作svg属性,对svg矢量图进行旋转、平移、放大、更改颜色操作。 支持矢量图的局部选择并更改。

By manipulating the svg attribute, the svg vector is rotated, translated, zoomed, and the color operation is changed. Support partial modification.

how to use

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])

need

需要jQuery 3.0以上版本

Requires jQuery 3.0 or later