@bill_nee/dwg-reader 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/package.json +3 -2
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @bill_nee/dwg-reader
|
|
2
|
+
|
|
3
|
+
DSH (DeepSeek Harness) 插件:可直接读取 AutoCAD DWG 格式图纸,无需安装 AutoCAD。
|
|
4
|
+
|
|
5
|
+
基于 [libredwg-web](https://github.com/mlightcad/libredwg-web) 0.8.2 WASM 编译,在浏览器/Node 环境中解析 DWG 文件,返回图层、实体、版本、编码、图幅等信息,并可导出 SVG 预览。
|
|
6
|
+
|
|
7
|
+
## 安装
|
|
8
|
+
|
|
9
|
+
```powershell
|
|
10
|
+
dsh plugin --profile desktop add @bill_nee/dwg-reader@1.1.0
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
安装后在 DSH 工作台插件管理中启用插件,即可使用 `read_dwg` 工具读取 DWG 图纸。
|
|
14
|
+
|
|
15
|
+
## 主要能力
|
|
16
|
+
|
|
17
|
+
- 读取 DWG(AutoCAD R14~R2018 等常见版本)
|
|
18
|
+
- 返回图层列表、实体类型与数量、图纸版本(ACADVER)、代码页、图幅
|
|
19
|
+
- 导出 SVG 预览到指定路径
|
|
20
|
+
- 对无效/损坏文件给出明确错误
|
|
21
|
+
|
|
22
|
+
## 许可
|
|
23
|
+
|
|
24
|
+
GPL-3.0-only。依赖 libredwg-web 同样为 GPL,公开分发请保留 LICENSE 并提供对应源码。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bill_nee/dwg-reader",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "直接读取 AutoCAD DWG 图纸的 DSH 插件(基于 libredwg-web 0.8.2 WASM,GPL-3.0)。",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"author": "MEB 工程造价项目助手 <meb@example.com>",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"cordis.patch.yml",
|
|
25
25
|
"locale/*.json",
|
|
26
26
|
"icon.svg",
|
|
27
|
-
"LICENSE"
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"README.md"
|
|
28
29
|
],
|
|
29
30
|
"dsh": {
|
|
30
31
|
"bundle": {
|