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 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