svg2json:将 SVG 文件(从 Inkscape)转换为 json

时间:2021-06-12 06:16:36
【文件属性】:
文件名称:svg2json:将 SVG 文件(从 Inkscape)转换为 json
文件大小:65KB
文件格式:ZIP
更新时间:2021-06-12 06:16:36
JavaScript 将 SVG 文件转换为 json 当您使用 Inkscape 创建了一个 SVG 并且需要将它与 d3.js 一起使用时 安装 克隆这个 repo 运行npm install 转换文件 将 SVG 文件放在 svg 文件夹中(已经有一些示例文件) 运行node convertAll json 文件位于 json 文件夹中 使用 d3.js 查看文件 运行node server 访问localhost:3000
【文件预览】:
svg2json-master
----public()
--------js()
----views()
--------index.jade(128B)
--------image.jade(500B)
----server.js(546B)
----converter.js(686B)
----convertAll.js(377B)
----.gitignore(19B)
----svg()
--------terre.svg(13KB)
--------lune.svg(3KB)
--------ufo.svg(4KB)
----readme.md(402B)
----package.json(420B)

网友评论