@chestnutlabs/gcode-preview-svelte 0.13.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.
- package/dist/GcodePreview.svelte +8 -0
- package/package.json +5 -5
package/dist/GcodePreview.svelte
CHANGED
|
@@ -20,6 +20,10 @@
|
|
|
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;
|
|
25
|
+
/** #60 curtain: 'lines' (default, stream the preview), 'hold' (reveal only the final build), or 'off'. 3D only. */
|
|
26
|
+
export let progressivePreview = undefined;
|
|
23
27
|
/** #150 (DD-009 D3): camera projection ('perspective' | 'orthographic'). */
|
|
24
28
|
export let cameraMode = 'perspective';
|
|
25
29
|
/** #306/#6: frame the printed 'object' (excl. skirt/prime) or 'all' extrusion. Default 'all'. */
|
|
@@ -68,6 +72,8 @@
|
|
|
68
72
|
mode: renderer,
|
|
69
73
|
buildVolume: isMachine ? undefined : buildVolume,
|
|
70
74
|
quality,
|
|
75
|
+
qualityMode,
|
|
76
|
+
progressivePreview,
|
|
71
77
|
cameraMode,
|
|
72
78
|
frameContent,
|
|
73
79
|
interactionQuality,
|
|
@@ -146,6 +152,8 @@
|
|
|
146
152
|
$: preview.controls.setBuildVolumeCage(showVolumeCage);
|
|
147
153
|
$: if (colorMode !== undefined) preview.controls.setColorMode(colorMode);
|
|
148
154
|
$: preview.controls.setQuality(quality);
|
|
155
|
+
$: if (qualityMode) preview.controls.setQualityMode(qualityMode);
|
|
156
|
+
$: if (progressivePreview) preview.controls.setProgressivePreview(progressivePreview);
|
|
149
157
|
$: preview.controls.setCameraMode(cameraMode);
|
|
150
158
|
$: preview.controls.setFrameContent(frameContent);
|
|
151
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.
|
|
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.
|
|
59
|
-
"@chestnutlabs/gcode-preview-core": "0.
|
|
60
|
-
"@chestnutlabs/gcode-renderer-three": "0.
|
|
61
|
-
"@chestnutlabs/toolpath-core": "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"
|