Skip to content

lumozx/svg_edit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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