shape2path:将 SVG 形状转换为 SVG 路径

时间:2021-07-24 09:00:56
【文件属性】:
文件名称:shape2path:将 SVG 形状转换为 SVG 路径
文件大小:49KB
文件格式:ZIP
更新时间:2021-07-24 09:00:56
JavaScript 形状2路径 将 SVG转换为 SVG。 看看。 安装 如果您使用 NPM,请npm install shape2path 。 否则,请下载。 支持 AMD、CommonJS 和 vanilla 环境。 在 vanilla 中,导出 shape2path 全局: < script src =" https://unpkg.com/shape2path@3.0.5/build/shape2path.min.js " > </ script > < script > const path = shape2path . circle ( ) . attr ( "r" , 50 ) // Paths can be configured with constants... . attr ( "cx" , d => d . cx ) ; // ...or with functions. //
【文件预览】:
shape2path-master
----.travis.yml(86B)
----.eslintrc(102B)
----.babelrc(61B)
----rollup.config.js(244B)
----index.js(311B)
----package.json(1KB)
----test()
--------polygon-test.js(1KB)
--------polyline-test.js(1KB)
--------rect-test.js(4KB)
--------ellipse-test.js(1KB)
--------circle-test.js(1KB)
--------line-test.js(1KB)
----LICENSE(1KB)
----package-lock.json(128KB)
----src()
--------ellipse2path.js(495B)
--------polygon2path.js(571B)
--------rect2path.js(963B)
--------polyline2path.js(560B)
--------circle2path.js(447B)
--------line2path.js(442B)
--------attr.js(418B)
----.npmignore(17B)
----.gitignore(884B)
----README.md(6KB)
----build()
--------shape2path.zip(5KB)
--------shape2path.min.js(3KB)
--------shape2path.js(5KB)

网友评论