printbench 0.2.0 → 0.2.2

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 CHANGED
@@ -144,7 +144,7 @@ async function upload() {
144
144
  | `select-part` | `{ id, index, additive }` | 画布或零件树点选 |
145
145
  | `part-colors-change` | `Record<string, string>` | 工作台内改色时抛出(嵌入预览以 `partColors` 为准) |
146
146
 
147
- `exported` 的 `format` 为 `'stl' | '3mf'`;多零件 STL 时 `fileName` 为 zip,`blob` 为打包后的文件。
147
+ `exported` 的 `format` 为 `'stl' | '3mf' | 'glb'`;多零件 STL 时 `fileName` 为 zip,`blob` 为打包后的文件。GLB 为单文件,零件色写入材质。
148
148
 
149
149
  「一键上传」以 `multipart/form-data` POST,字段为 `file` 与 `meta`(JSON:fileName、format、unit 等)。
150
150
 
@@ -152,7 +152,7 @@ async function upload() {
152
152
 
153
153
  | 方法 | 说明 |
154
154
  |------|------|
155
- | `exportFile(options?)` | 不打开插件对话框。`action`: `'download'` \| `'upload'`;`format`: `'stl'` \| `'3mf'`;`unit` 默认 mm;`silent: true` 跳过黄级确认。红级阻断返回 `null`。成功返回与 `exported` 相同的 payload。 |
155
+ | `exportFile(options?)` | 不打开插件对话框。`action`: `'download'` \| `'upload'`;`format`: `'stl'` \| `'3mf'` \| `'glb'`;`unit` 默认 mm;`silent: true` 跳过黄级确认。红级阻断返回 `null`。成功返回与 `exported` 相同的 payload。 |
156
156
 
157
157
  ## 工作台能力
158
158
 
@@ -178,9 +178,9 @@ async function upload() {
178
178
 
179
179
  ### 导出
180
180
 
181
- - **STL**:二进制;无单位字段,切片软件需与导出单位一致(推荐毫米)。单零件 `.stl`,多零件 `.zip`(每件一个 STL)
181
+ - **STL**:二进制;无单位字段,切片软件需与导出单位一致(推荐毫米)。单零件 `.stl`,多零件 `.zip`(每件一个 STL)。不含颜色。
182
182
  - **3MF**:自带毫米单位;每零件单独 object,并写入 `displaycolor`(零件打印色)
183
- - **STL**:不含颜色;多色模型请用 3MF
183
+ - **GLB**:单文件多网格;零件打印色写入材质。无打印单位字段,坐标按导出单位解释。
184
184
 
185
185
  ### 快捷键
186
186