printbench 0.4.2 → 0.4.5
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 +1 -1
- package/dist/printbench.js +2025 -1964
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ function onExported(payload: PrintBenchExportedPayload) {
|
|
|
85
85
|
| `selectedPartIds` | `string[]` | — | 受控选中。传入后画布点击只触发 `select-part`,由宿主回写 |
|
|
86
86
|
| `partColors` | `Record<string, string>` | — | 受控零件色,`#RRGGBB`,key 为零件 `id` |
|
|
87
87
|
| `diagnosisZIndex` | `number` | `100` | 诊断浮层 `z-index`。也可在外层设 CSS 变量 `--printbench-diagnosis-z` |
|
|
88
|
-
| `features` | `{ numeric?, primitives?, split?, drafts?, extras?, importUnit
|
|
88
|
+
| `features` | `{ numeric?, primitives?, split?, drafts?, extras?, importUnit?, hideEmpty?, hideStatusBar?, hidePanelModeToggle?, … }` | 能力项默认 `false` | 进阶能力。缺省精简:左栏仅导入 / 零件 / 导出 / 快照。未开 `drafts` 时不读不写自动草稿。未开 `importUnit` 时导入不弹单位确认。`hideEmpty` / `hideStatusBar` / `hidePanelModeToggle` 为 `true` 时分别隐藏空画布提示、底栏状态条、零件栏悬浮/通栏切换按钮。 |
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
嵌入预览示例(宿主列表 + 色板 + 自定义导出):
|