文件名称:subway-svg-tools:地铁线路图 SVG 解析工具
文件大小:15KB
文件格式:ZIP
更新时间:2024-06-04 22:22:42
nodejs svg JavaScript
地铁线路图 SVG 解析工具 Subway Svg Tools 本工具用于将 SVG 格式地铁线路图解析为 JSON 格式 图层命名设置 使用 Adobe Illustrator 图层名 类型 矢量类型 line 线路图 polyline station 普通车站 circle station-ex 换乘车站 rect text 站名 text 使用方法 将导出的 Svg 文件放入 file 文件夹 运行 npm install node ./src 输出格式 { "title": "ningbo-subway", "width": 1500, "height": 1200, "lines": [ { "id": "line-1", "name": "1号线", "points": "110.5 616.5 1009 616.5
【文件预览】:
subway-svg-tools-master
----.gitignore(24B)
----package.json(303B)
----src()
--------core()
--------index.js(1KB)
--------utils()
----LICENSE(1KB)
----file()
--------ningbo-subway.svg(48KB)
----README.md(1KB)