three-slicer-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.
- package/README.md +7 -0
- package/dist/index.js +2886 -2861
- package/dist/model_loaders-kvOxEvFT.js +230 -0
- package/dist/model_loaders.js +14 -9
- package/dist/parse_3mf-6PLUgcZp.js +951 -0
- package/dist/parse_3mf.worker.js +101 -39
- package/package.json +5 -1
- package/src/settings/toggle_eval.js +112 -6
- package/types/loaders.d.ts +23 -1
- package/types/toggle.d.ts +6 -0
- package/types/workers.d.ts +10 -0
- package/dist/model_loaders-Dk9rqXFb.js +0 -196
- package/dist/parse_3mf-CpbA-6Iq.js +0 -666
package/README.md
CHANGED
|
@@ -67,6 +67,13 @@ handle.setColors(computeColors(data, 'speed', ctx).color) // recolour without a
|
|
|
67
67
|
`/gcode` import neither React nor three (`makeToolpath` takes the THREE namespace as an argument), so a
|
|
68
68
|
headless consumer pulls in no renderer at all.
|
|
69
69
|
|
|
70
|
+
## Starting the 3mf parse worker early
|
|
71
|
+
|
|
72
|
+
`three-slicer-viewer/workers` exports the factories of this package's workers. A host that can run a script before
|
|
73
|
+
its bundle (the browser extension in the monorepo does) starts `makeParse3mfWorker()` there and hands it to
|
|
74
|
+
`adoptParseWorker` from `three-slicer-viewer/loaders`; `preloadModel(name, file)` then starts a parse before the
|
|
75
|
+
viewport mounts, and `<Viewport files>` takes its result.
|
|
76
|
+
|
|
70
77
|
## Licensing
|
|
71
78
|
|
|
72
79
|
MIT. It depends on nothing AGPL, which a check in this repository enforces rather than documents
|