冈城

时间:2021-02-25 02:12:26
【文件属性】:
文件名称:冈城
文件大小:189KB
文件格式:ZIP
更新时间:2021-02-25 02:12:26
TypeScript 冈城 将SVG解析为多边形 演示(wip) 用法 yarn add okageo import * as okageo from 'okageo' // parse SVG to polygons const pathInfoList = okageo . parseSvgGraphicsStr ( svgString ) // move and resize const canvas = document . getElementById ( 'canvas' ) const inRectList = okageo . fitRect ( pathInfoList , 0 , 0 , canvas . width , canvas . height ) // draw const ctx = canvas . getContext ( '2d' ) inRectList . for
【文件预览】:
okageo-main
----tmp1.txt(12B)
----package.json(2KB)
----.eslintrc.json(916B)
----.github()
--------workflows()
----test()
--------drawing.test.ts(8KB)
--------svg.test.ts(41KB)
--------geo.test.ts(42KB)
----jest.config.js(329B)
----echo(4B)
----LICENSE(1KB)
----src()
--------okageo.ts(94B)
--------geo.ts(33KB)
--------types.ts(958B)
--------svg.ts(26KB)
--------drawing.ts(8KB)
----.npmignore(333B)
----tsconfig.json(273B)
----bili.config.ts(313B)
----.gitignore(366B)
----demo()
--------index.html(339B)
--------main.ts(2KB)
----README.md(1KB)
----yarn.lock(399KB)
----tmp.txt(91B)

网友评论