@chestnutlabs/gcode-preview-svelte 0.14.0 → 0.15.0

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.
@@ -22,6 +22,8 @@
22
22
  export let quality = 'auto';
23
23
  /** Fidelity policy (DD-023 §4 D6): 'full' | 'adaptive' | 'fast'. 3D only. */
24
24
  export let qualityMode = undefined;
25
+ /** #60 curtain: 'lines' (default, stream the preview), 'hold' (reveal only the final build), or 'off'. 3D only. */
26
+ export let progressivePreview = undefined;
25
27
  /** #150 (DD-009 D3): camera projection ('perspective' | 'orthographic'). */
26
28
  export let cameraMode = 'perspective';
27
29
  /** #306/#6: frame the printed 'object' (excl. skirt/prime) or 'all' extrusion. Default 'all'. */
@@ -71,6 +73,7 @@
71
73
  buildVolume: isMachine ? undefined : buildVolume,
72
74
  quality,
73
75
  qualityMode,
76
+ progressivePreview,
74
77
  cameraMode,
75
78
  frameContent,
76
79
  interactionQuality,
@@ -150,6 +153,7 @@
150
153
  $: if (colorMode !== undefined) preview.controls.setColorMode(colorMode);
151
154
  $: preview.controls.setQuality(quality);
152
155
  $: if (qualityMode) preview.controls.setQualityMode(qualityMode);
156
+ $: if (progressivePreview) preview.controls.setProgressivePreview(progressivePreview);
153
157
  $: preview.controls.setCameraMode(cameraMode);
154
158
  $: preview.controls.setFrameContent(frameContent);
155
159
  $: preview.controls.setInteractionQuality(interactionQuality);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chestnutlabs/gcode-preview-svelte",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Thin Svelte integration for the Chestnut Labs G-code viewer (DD-007 D1 amendment): createGcodePreview store/action API + GcodePreview component as a reactivity bridge over @chestnutlabs/gcode-preview-core.",
5
5
  "keywords": [
6
6
  "gcode",
@@ -55,10 +55,10 @@
55
55
  "test": "vitest run"
56
56
  },
57
57
  "dependencies": {
58
- "@chestnutlabs/gcode-parser": "0.14.0",
59
- "@chestnutlabs/gcode-preview-core": "0.14.0",
60
- "@chestnutlabs/gcode-renderer-three": "0.14.0",
61
- "@chestnutlabs/toolpath-core": "0.14.0"
58
+ "@chestnutlabs/gcode-parser": "0.15.0",
59
+ "@chestnutlabs/gcode-preview-core": "0.15.0",
60
+ "@chestnutlabs/gcode-renderer-three": "0.15.0",
61
+ "@chestnutlabs/toolpath-core": "0.15.0"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "svelte": "^4.0.0 || ^5.0.0"