three-slicer-viewer 0.4.1 → 0.4.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/VIEWER.md +30 -4
- package/data/config-schema-lean.json +1 -1
- package/data/ui-tree-keys.json +1 -1
- package/dist/components.js +135 -118
- package/dist/index.js +6686 -5133
- package/dist/{model_loaders-kvOxEvFT.js → model_loaders-CuHlnAw6.js} +1 -1
- package/dist/model_loaders.js +2 -2
- package/dist/{parse_3mf-6PLUgcZp.js → parse_3mf-BCD9FIz5.js} +174 -173
- package/dist/parse_3mf.worker.js +1 -1
- package/dist/{sla_reconstruct-CRZ3TrI1.js → sla_reconstruct-MtrOJRWL.js} +1 -1
- package/dist/sla_reconstruct.worker.js +1 -1
- package/dist/sla_slice.worker.js +1 -1
- package/dist/{theme-2oyfMuvf.js → theme-BwyYoVl6.js} +15 -12
- package/dist/toolpath.js +1 -1
- package/package.json +1 -1
- package/src/settings/settings_core.js +4 -0
- package/types/settings-keys.d.ts +40 -40
- package/types/viewer.d.ts +10 -1
package/VIEWER.md
CHANGED
|
@@ -70,7 +70,7 @@ Every panel can be switched off, and the values the component owns can be seeded
|
|
|
70
70
|
|
|
71
71
|
- **`panels`** — `{name: false}` hides one. Everything is visible by default, so a host only ever opts out and a
|
|
72
72
|
panel added in a later version does not vanish for hosts that listed the ones they wanted. `sidebar: false` drops
|
|
73
|
-
the whole right column; the rest are `topBar`, `gizmoRail`, `objectToolbar
|
|
73
|
+
the whole right column; the rest are `topBar`, `menuBar` (off with `topBar`), `gizmoRail`, `objectToolbar` (both sit in the ribbon under the title row, which stays for them when `topBar` is off), `paintPanel`, `statsCard`, `plateBar` (over the slice button, floating over the canvas when the sidebar is off or read-only),
|
|
74
74
|
`emptyHint`, `status`, `printerCard`, `filamentCard`, `resinCard`, `towerCard`, `objectList`, `previewControls`,
|
|
75
75
|
`processCard`, `sliceBar`, `moveBar`, `bedWarn` (the off-bed warning strip). Which of `filamentCard`/`resinCard` renders follows the printer profile's technology: a profile whose
|
|
76
76
|
`printer_technology` says SLA swaps the filament card (and the prime tower, and the painting brushes) for the
|
|
@@ -176,7 +176,8 @@ arrows and Delete working.
|
|
|
176
176
|
| Prepare | |
|
|
177
177
|
| --- | --- |
|
|
178
178
|
| `M` or `G` · `R` · `S` | Move · rotate · scale gizmo |
|
|
179
|
-
| `Arrow keys` |
|
|
179
|
+
| `Arrow keys` | By gizmo mode: move 10mm, rotate 15°, scale 5% — `Shift` for 1mm, 5°, 1% |
|
|
180
|
+
| Hold `Alt` / `Option` | Fine adjust while held (a field with focus keeps it open for typing, and the panel's Hold button keeps it on): typed position, rotation and size, gizmo drags snap to 0.1 mm, 1° and 1%, and the arrow keys take the same steps for the gizmo's mode (`Shift` for ten times as far) |
|
|
180
181
|
| `PageUp` / `PageDown` | Rotate ±45° |
|
|
181
182
|
| `Delete` / `Backspace` | Remove the selection |
|
|
182
183
|
| `Z` · `B` | Zoom to all · zoom to bed |
|
|
@@ -211,7 +212,8 @@ model falls through to the camera, so the view can be turned mid-paint without c
|
|
|
211
212
|
offers *on overhangs only*, which restricts every stroke to facets steeper than the support threshold.
|
|
212
213
|
|
|
213
214
|
Mouse selection follows upstream's rules: a plain click **replaces** the selection, `Ctrl/⌘ + click` adds or
|
|
214
|
-
removes, a plain click on something already selected **keeps** the set (
|
|
215
|
+
removes, a plain click on something already selected **keeps** the set (in move mode a left drag on a model or inside
|
|
216
|
+
its selection box moves it on the bed; which is what makes dragging several
|
|
215
217
|
objects work), `Shift + drag` is a box select, and clicking empty space clears. Alt is not a de-select, in
|
|
216
218
|
upstream or here.
|
|
217
219
|
|
|
@@ -258,7 +260,7 @@ opt-out only, everything on unless you say `false`, an unknown key stays on.
|
|
|
258
260
|
| `warmup` | The WASM kernel is not loaded on mount. Nothing is downloaded or compiled until something actually slices — which for a `gcode`-only viewer is never, so this is several megabytes and a thread pool you stop paying for. |
|
|
259
261
|
| `drop` | No drag and drop onto the canvas. |
|
|
260
262
|
| `filePicker` | The file dialog never opens, from any of the buttons that open it. |
|
|
261
|
-
| `contextMenu` | No right-click menu. The browser's own menu stays suppressed over the canvas either way — OrbitControls preventDefaults `contextmenu` itself. |
|
|
263
|
+
| `contextMenu` | No right-click menu on objects (empty space has none). The browser's own menu stays suppressed over the canvas either way — OrbitControls preventDefaults `contextmenu` itself. |
|
|
262
264
|
| `logs` | No console output, from the component or from the slice worker. |
|
|
263
265
|
| `versionBadge` | The build number at the right end of the status bar is not drawn. It is there so a bug report can name a build; turn it off when the viewer is embedded as part of your own product. `panels.status: false` hides it too, since it rides that bar. |
|
|
264
266
|
|
|
@@ -423,6 +425,30 @@ within 0.3 % in those two models). The slice never depends on the GPU: without a
|
|
|
423
425
|
input, the kernel slices by itself, a layer whose loops the GPU leaves open gets the kernel's own union, and the stats
|
|
424
426
|
card says which happened (`Contours on the GPU`, with the count of layers that went back to the CPU).
|
|
425
427
|
|
|
428
|
+
## Object tools
|
|
429
|
+
|
|
430
|
+
The ribbon's tools come in two groups. The first needs no kernel, so it works with any host.
|
|
431
|
+
|
|
432
|
+
| Tool | What it does |
|
|
433
|
+
|---|---|
|
|
434
|
+
| Measure | Distance, per-axis offset and face angle between two clicked points. With Ctrl (⌘) held, picks snap to corners and to edges where faces meet at more than 30°, and after the first click the second point is previewed under the pointer |
|
|
435
|
+
| Arrange | Packs the selected plate's objects from the bed centre, keeping 3 mm between them. What does not fit stays put and is reported. It ignores rotation, the prime tower and non-rectangular beds |
|
|
436
|
+
| Orient | Turns the selection so the least surface needs support |
|
|
437
|
+
| Text | Raises letters from a clicked surface or lays them on the bed. One click places one text, closes the panel and selects it. Text keeps its height on a model but never goes under the bed, and Place on bed drops a selected text. The built-in font is Latin only; the `textFonts` prop adds a host's fonts (the demo adds Korean, Japanese, Simplified and Traditional), and a `.ttf` or `.otf` upload adds any other for the session. Hangul and kana fall back to the font that covers them. Hanzi and kanji are drawn only by the picked font, because one code point has a different form per language |
|
|
438
|
+
|
|
439
|
+
The second goes through the kernel, so it is absent without a `slicer`.
|
|
440
|
+
|
|
441
|
+
| Tool | What it does |
|
|
442
|
+
|---|---|
|
|
443
|
+
| Boolean | Union, difference or intersection of two selected closed meshes (CGAL corefinement). An open or self-intersecting mesh is refused with a typed `MESH_BOOLEAN_…` error |
|
|
444
|
+
| Cut | Cuts the selection along X, Y or Z into solid pieces |
|
|
445
|
+
| Negative part | A red part cuts away what it overlaps when you slice or export. The geometry is cut then, not when the part is placed, so it can be moved freely. A saved project holds the cut result, not the part. Painted objects refuse it, because the cut renumbers their facets |
|
|
446
|
+
| Text, engraved | Cuts the letters into the clicked object |
|
|
447
|
+
| Seam painting | Brushes where the seam goes or must not go. Saved as `paint_seam` in a 3mf |
|
|
448
|
+
| Variable layers | Layer height by Z band. Refused with `UNSUPPORTED_VARIABLE_LAYERS` alongside support, raft, spiral mode or several filaments |
|
|
449
|
+
|
|
450
|
+
Boolean, Cut and engraving replace the objects involved, so painting on them is dropped, and a notice says so.
|
|
451
|
+
|
|
426
452
|
## Theming
|
|
427
453
|
|
|
428
454
|
Both shadow roots (the viewer and `<SettingsPanel/>`) paint their chrome from one palette, `UI_TOKENS` in
|