svg-pathdata:解析SVG PathDatas

时间:2021-04-02 17:35:03
【文件属性】:
文件名称:svg-pathdata:解析SVG PathDatas
文件大小:132KB
文件格式:ZIP
更新时间:2021-04-02 17:35:03
javascript svg svg-path JavaScript svg-pathdata 简单有效地处理SVG路径数据(path [d]属性内容)。 用法 安装模块: npm install --save svg-pathdata 或将添加到HTML中的脚本中。 然后在您JavaScript文件中: const { SVGPathData , SVGPathDataTransformer , SVGPathDataEncoder , SVGPathDataParser } = require ( 'svg-pathdata' ) ; 使用TypeScript / ES6中的导入语法: import { SVGPathData , SVGPathDataTransformer , SVGPathDataEncoder , SVGPathDataParser } from 'svg-pathdata' ; 如果没有模块,则在包中使用全局:
【文件预览】:
svg-pathdata-master
----.eslintrc(243B)
----.gitattributes(61B)
----rollup.config.js(1KB)
----.github()
--------CONTRIBUTING(247B)
--------PULL_REQUEST_TEMPLATE(1KB)
--------CODE_OF_CONDUCT.md(265B)
--------ISSUE_TEMPLATE(1KB)
--------workflows()
----src()
--------SVGPathData.ts(3KB)
--------types.ts(2KB)
--------SVGPathDataParser.ts(10KB)
--------SVGPathDataEncoder.ts(2KB)
--------TransformableSVG.ts(2KB)
--------SVGPathDataTransformer.ts(23KB)
--------mathUtils.ts(6KB)
----lib()
--------SVGPathData.js(19KB)
--------SVGPathData.module.js(19KB)
----.npmignore(664B)
----.codeclimate.yml(191B)
----tsconfig.json(5KB)
----LICENSE(1KB)
----tslint.json(534B)
----README.md(5KB)
----index.d.ts(68B)
----.editorconfig(519B)
----tests()
--------arctocurve.mocha.js(2KB)
--------qttoc.mocha.js(605B)
--------hv.mocha.js(9KB)
--------round.mocha.js(2KB)
--------numbers.mocha.js(3KB)
--------curveto.mocha.js(7KB)
--------normalize_curves.mocha.js(1KB)
--------matrix.mocha.js(1KB)
--------relabs.mocha.js(6KB)
--------arc.mocha.js(10KB)
--------smoothcurveto.mocha.js(5KB)
--------realword.mocha.js(28KB)
--------symmetry.mocha.js(7KB)
--------normalize_hvz.mocha.js(868B)
--------encoder.mocha.js(543B)
--------scale.mocha.js(695B)
--------smoothquadraticcurveto.mocha.js(5KB)
--------transformer.mocha.js(589B)
--------quadraticbeziercurveto.mocha.js(5KB)
--------sanitize.mocha.js(2KB)
--------moveto.mocha.js(5KB)
--------parser.mocha.js(331B)
--------translation.mocha.js(943B)
--------lineto.mocha.js(5KB)
--------bounds.mocha.js(2KB)
--------rotate.mocha.js(2KB)
--------closepath.mocha.js(2KB)
--------skew.mocha.js(1KB)
--------arcannotate.mocha.js(2KB)
----.gitignore(685B)
----karma.conf.js(1KB)
----CHANGELOG.md(19KB)
----package-lock.json(215KB)
----package.json(2KB)

网友评论