@addozhang/dsh-3d-model-viewer 0.4.0 → 0.4.1

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.
@@ -0,0 +1,33 @@
1
+ # 3D Model Viewer · STL / 3MF
2
+
3
+ View 3D-printing models right inside the DeepSeek Harness Web GUI: click a `.stl` / `.3mf` in the Files panel and a 3D view opens as a document tab, exactly like Markdown; when a session references models, a live preview drawer tracks them and re-parses about 1.5s after each on-disk change — no external tools, and model files never leave your machine.
4
+
5
+ ![3MF document preview](https://github.com/addozhang/dsh-3d-model-viewer/raw/main/docs/screenshot-doctab.webp)
6
+
7
+ [![GitHub stars](https://img.shields.io/github/stars/addozhang/dsh-3d-model-viewer?style=social)](https://github.com/addozhang/dsh-3d-model-viewer)
8
+
9
+ **If it works for you, please [star the repo](https://github.com/addozhang/dsh-3d-model-viewer)** — that directly decides how fast this plugin evolves.
10
+
11
+ ## Highlights
12
+
13
+ - **Native sidebar preview** — click to open in the Files panel; the same document-tab experience as Markdown / PDF / images
14
+ - **Live session drawer** — a `3D Preview (N)` button on the session header opens a searchable drawer; on-disk changes re-parse in ~1.5s
15
+ - **CAD navigation** — true trackball rotation (no gimbal lock), pan, zoom, double-click reset; `1-7` view presets, `R` to reset
16
+ - **Orthographic dimension labels** — the six orthographic views show bounding-box XYZ dimensions in mm; isometric stays classic perspective
17
+ - **3MF plates & part colors** — Bambu plate-table projects get an `All | Plate N…` toolbar; `basematerials` part colors render per-vertex
18
+ - **Fully local** — all parsing happens in the browser, model files never leave the machine; plus one-click PNG snapshot export
19
+
20
+ ## Quick start
21
+
22
+ 1. Install: `dsh plugin --profile <profile> add @addozhang/dsh-3d-model-viewer`
23
+ 2. Restart that profile and click any `.stl` / `.3mf` in the Files panel
24
+
25
+ ## Links
26
+
27
+ - Source & docs: <https://github.com/addozhang/dsh-3d-model-viewer>
28
+ - Issues: <https://github.com/addozhang/dsh-3d-model-viewer/issues>
29
+ - npm package: <https://www.npmjs.com/package/@addozhang/dsh-3d-model-viewer>
30
+
31
+ ---
32
+
33
+ Finding it useful? [Leave a Star](https://github.com/addozhang/dsh-3d-model-viewer/stargazers) so I know it helped 🙌
@@ -0,0 +1,33 @@
1
+ # 3D 模型查看器 · STL / 3MF
2
+
3
+ 在 DeepSeek Harness 的 Web GUI 里直接看 3D 打印模型:文件面板点开 `.stl` / `.3mf`,右侧文档标签页像打开 Markdown 一样打开 3D 视图;会话引用了模型时还有实时预览抽屉,文件一变约 1.5 秒自动刷新——全程无需外部工具,模型文件不出本机。
4
+
5
+ ![3MF 文档预览](https://github.com/addozhang/dsh-3d-model-viewer/raw/main/docs/screenshot-doctab.webp)
6
+
7
+ [![GitHub stars](https://img.shields.io/github/stars/addozhang/dsh-3d-model-viewer?style=social)](https://github.com/addozhang/dsh-3d-model-viewer)
8
+
9
+ **好用的话,欢迎去 [GitHub 仓库](https://github.com/addozhang/dsh-3d-model-viewer) 点个 ⭐ Star**——这直接决定这个插件的迭代速度。
10
+
11
+ ## 亮点
12
+
13
+ - **侧边栏原生预览** — 文件面板点击即开,和 Markdown / PDF / 图片同一套文档标签体验
14
+ - **会话实时抽屉** — 会话标题栏 `3D 预览 (N)` 按钮打开带搜索的抽屉;磁盘文件变化约 1.5s 自动重新解析
15
+ - **CAD 式导航** — 真轨迹球旋转(无万向锁)、平移、缩放、双击复位;`1-7` 切视角、`R` 复位
16
+ - **正交尺寸标签** — 六个正交视角显示包围盒三向尺寸(毫米),等轴测为经典透视
17
+ - **3MF 多盘与部件颜色** — Bambu 盘表工程「全部 | 盘 N…」逐盘渲染;`basematerials` 部件颜色按顶点多色显示
18
+ - **本地解析** — 浏览器内完成全部解析,模型文件不会离开本机;附截图导出 PNG
19
+
20
+ ## 快速开始
21
+
22
+ 1. 安装:`dsh plugin --profile <profile> add @addozhang/dsh-3d-model-viewer`
23
+ 2. 重启对应 profile,文件面板点击任意 `.stl` / `.3mf` 即可查看
24
+
25
+ ## 链接
26
+
27
+ - 源码与文档:<https://github.com/addozhang/dsh-3d-model-viewer>
28
+ - 问题反馈:<https://github.com/addozhang/dsh-3d-model-viewer/issues>
29
+ - npm 包:<https://www.npmjs.com/package/@addozhang/dsh-3d-model-viewer>
30
+
31
+ ---
32
+
33
+ 喜欢这个插件?[点个 Star](https://github.com/addozhang/dsh-3d-model-viewer/stargazers) 让我知道它帮到了你 🙌
package/icon.svg ADDED
@@ -0,0 +1,5 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18 4.5 31.5 12 18 19.5 4.5 12z" fill="#41E1AC"/>
3
+ <path d="M4.5 12 18 19.5v13L4.5 25z" fill="#5865F2"/>
4
+ <path d="M31.5 12 18 19.5v13l13.5-7.5z" fill="#658EFF" opacity="0.9"/>
5
+ </svg>
package/locale/en.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "3D Model Viewer",
4
+ "description": "Interactive STL/3MF preview for the DeepSeek Harness Web GUI: sidebar document tabs, a live session drawer, CAD navigation, orthographic dimension labels, 3MF part colors, and multi-plate switching — all parsed locally.",
5
+ "detail": "docs/plugin-detail.en.md"
6
+ }
7
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "3D 模型查看器",
4
+ "description": "STL/3MF 交互式预览:侧边栏文档标签直接打开模型,会话实时抽屉、CAD 式导航、正交尺寸标签、3MF 部件颜色与多盘切换——解析全程本地完成。",
5
+ "detail": "docs/plugin-detail.zh.md"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@addozhang/dsh-3d-model-viewer",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Interactive STL/3MF viewer plugin for the DeepSeek Harness Web GUI: sidebar document preview, live session drawer, CAD navigation, orthographic dimension labels, 3MF part colors.",
5
5
  "license": "MIT",
6
+ "icon": "./icon.svg",
6
7
  "engines": {
7
8
  "node": ">=20"
8
9
  },
@@ -22,6 +23,8 @@
22
23
  ".": "./lib/index.js",
23
24
  "./client": "./lib/client.js",
24
25
  "./cordis.patch.yml": "./cordis.patch.yml",
26
+ "./locale/*.json": "./locale/*.json",
27
+ "./icon": "./icon.svg",
25
28
  "./package.json": "./package.json"
26
29
  },
27
30
  "scripts": {
@@ -52,6 +55,10 @@
52
55
  "files": [
53
56
  "lib/index.js",
54
57
  "lib/client.js",
58
+ "locale/*.json",
59
+ "docs/plugin-detail.zh.md",
60
+ "docs/plugin-detail.en.md",
61
+ "icon.svg",
55
62
  "README.md",
56
63
  "README.zh-CN.md",
57
64
  "LICENSE",