@chestnutlabs/gcode-preview-svelte 0.12.0 → 0.14.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.
@@ -20,6 +20,8 @@
20
20
  /** Consumer-configured volume — wins over file-discovered geometry (DD-005). */
21
21
  export let buildVolume = undefined;
22
22
  export let quality = 'auto';
23
+ /** Fidelity policy (DD-023 §4 D6): 'full' | 'adaptive' | 'fast'. 3D only. */
24
+ export let qualityMode = undefined;
23
25
  /** #150 (DD-009 D3): camera projection ('perspective' | 'orthographic'). */
24
26
  export let cameraMode = 'perspective';
25
27
  /** #306/#6: frame the printed 'object' (excl. skirt/prime) or 'all' extrusion. Default 'all'. */
@@ -68,6 +70,7 @@
68
70
  mode: renderer,
69
71
  buildVolume: isMachine ? undefined : buildVolume,
70
72
  quality,
73
+ qualityMode,
71
74
  cameraMode,
72
75
  frameContent,
73
76
  interactionQuality,
@@ -146,6 +149,7 @@
146
149
  $: preview.controls.setBuildVolumeCage(showVolumeCage);
147
150
  $: if (colorMode !== undefined) preview.controls.setColorMode(colorMode);
148
151
  $: preview.controls.setQuality(quality);
152
+ $: if (qualityMode) preview.controls.setQualityMode(qualityMode);
149
153
  $: preview.controls.setCameraMode(cameraMode);
150
154
  $: preview.controls.setFrameContent(frameContent);
151
155
  $: preview.controls.setInteractionQuality(interactionQuality);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chestnutlabs/gcode-preview-svelte",
3
- "version": "0.12.0",
3
+ "version": "0.14.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.12.0",
59
- "@chestnutlabs/gcode-preview-core": "0.12.0",
60
- "@chestnutlabs/gcode-renderer-three": "0.12.0",
61
- "@chestnutlabs/toolpath-core": "0.12.0"
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"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "svelte": "^4.0.0 || ^5.0.0"