@chestnutlabs/gcode-preview-vue 0.6.0 → 0.7.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.
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { type PropType } from 'vue';
13
13
  import type { BuildVolumeDef, CameraMode, CameraState, CameraView, ColorMode, QualityMode, Theme, TubeOptions } from '@chestnutlabs/gcode-renderer-three';
14
- import type { Confidence, Warning } from '@chestnutlabs/toolpath-core';
14
+ import type { Confidence, DialectMetadata, Warning } from '@chestnutlabs/toolpath-core';
15
15
  import type { MachineGeometry, ProgressObservation } from '@chestnutlabs/toolpath-core';
16
16
  import type { WireParseOptions, WorkerLike } from '@chestnutlabs/gcode-parser';
17
17
  import { type RendererMode, type UseGcodePreviewOptions } from './use-gcode-preview.js';
@@ -50,6 +50,16 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
50
50
  type: PropType<CameraMode>;
51
51
  default: string;
52
52
  };
53
+ /** #306/#6: frame the printed 'object' (excl. skirt/prime) or 'all' extrusion. Default 'all'. */
54
+ frameContent: {
55
+ type: PropType<"object" | "all">;
56
+ default: string;
57
+ };
58
+ /** #306/2 (DD-020): 'auto' reduces detail while the camera moves. Default 'off'. */
59
+ interactionQuality: {
60
+ type: PropType<"off" | "auto">;
61
+ default: string;
62
+ };
53
63
  /** #268/#275/M6: snap to a preset orientation (top/front/iso/…). */
54
64
  view: {
55
65
  type: PropType<CameraView>;
@@ -102,6 +112,11 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
102
112
  type: BooleanConstructor;
103
113
  default: boolean;
104
114
  };
115
+ /** #306/#6: show the build-volume wireframe cage (independent of the bed/plate). Default true. */
116
+ showVolumeCage: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
105
120
  /** DD-006 live progress observation; null hides the overlay. */
106
121
  progress: {
107
122
  type: PropType<ProgressObservation | null>;
@@ -115,7 +130,7 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
115
130
  };
116
131
  /** Advanced/test renderer injectables (pass-throughs of the renderer contract). */
117
132
  rendererOptions: {
118
- type: PropType<Omit<NonNullable<UseGcodePreviewOptions["renderer"]>, "buildVolume" | "quality" | "cameraMode" | "theme" | "colorMode" | "tube">>;
133
+ type: PropType<Omit<NonNullable<UseGcodePreviewOptions["renderer"]>, "buildVolume" | "quality" | "cameraMode" | "frameContent" | "interactionQuality" | "theme" | "colorMode" | "tube">>;
119
134
  default: undefined;
120
135
  };
121
136
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -127,6 +142,7 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
127
142
  complete: boolean;
128
143
  capabilities: Record<string, Confidence>;
129
144
  warnings: readonly Warning[];
145
+ metadata: DialectMetadata | undefined;
130
146
  }) => true;
131
147
  'camera-change': (_state: CameraState) => true;
132
148
  'parse-error': (_e: {
@@ -192,6 +208,16 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
192
208
  type: PropType<CameraMode>;
193
209
  default: string;
194
210
  };
211
+ /** #306/#6: frame the printed 'object' (excl. skirt/prime) or 'all' extrusion. Default 'all'. */
212
+ frameContent: {
213
+ type: PropType<"object" | "all">;
214
+ default: string;
215
+ };
216
+ /** #306/2 (DD-020): 'auto' reduces detail while the camera moves. Default 'off'. */
217
+ interactionQuality: {
218
+ type: PropType<"off" | "auto">;
219
+ default: string;
220
+ };
195
221
  /** #268/#275/M6: snap to a preset orientation (top/front/iso/…). */
196
222
  view: {
197
223
  type: PropType<CameraView>;
@@ -244,6 +270,11 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
244
270
  type: BooleanConstructor;
245
271
  default: boolean;
246
272
  };
273
+ /** #306/#6: show the build-volume wireframe cage (independent of the bed/plate). Default true. */
274
+ showVolumeCage: {
275
+ type: BooleanConstructor;
276
+ default: boolean;
277
+ };
247
278
  /** DD-006 live progress observation; null hides the overlay. */
248
279
  progress: {
249
280
  type: PropType<ProgressObservation | null>;
@@ -257,7 +288,7 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
257
288
  };
258
289
  /** Advanced/test renderer injectables (pass-throughs of the renderer contract). */
259
290
  rendererOptions: {
260
- type: PropType<Omit<NonNullable<UseGcodePreviewOptions["renderer"]>, "buildVolume" | "quality" | "cameraMode" | "theme" | "colorMode" | "tube">>;
291
+ type: PropType<Omit<NonNullable<UseGcodePreviewOptions["renderer"]>, "buildVolume" | "quality" | "cameraMode" | "frameContent" | "interactionQuality" | "theme" | "colorMode" | "tube">>;
261
292
  default: undefined;
262
293
  };
263
294
  }>> & Readonly<{
@@ -272,6 +303,7 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
272
303
  complete: boolean;
273
304
  capabilities: Record<string, Confidence>;
274
305
  warnings: readonly Warning[];
306
+ metadata: DialectMetadata | undefined;
275
307
  }) => any) | undefined;
276
308
  "onCamera-change"?: ((_state: CameraState) => any) | undefined;
277
309
  "onParse-error"?: ((_e: {
@@ -304,6 +336,8 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
304
336
  buildVolume: BuildVolumeDef | MachineGeometry;
305
337
  quality: QualityMode | "auto";
306
338
  cameraMode: CameraMode;
339
+ frameContent: "object" | "all";
340
+ interactionQuality: "auto" | "off";
307
341
  theme: Theme;
308
342
  colorMode: ColorMode;
309
343
  tube: TubeOptions;
@@ -317,6 +351,7 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
317
351
  showTravel: boolean;
318
352
  showWipe: boolean;
319
353
  showRetractions: boolean;
354
+ showVolumeCage: boolean;
320
355
  progress: ProgressObservation | null;
321
356
  createWorker: () => WorkerLike;
322
357
  rendererOptions: Omit<{
@@ -324,6 +359,8 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
324
359
  buildVolume?: BuildVolumeDef;
325
360
  quality?: QualityMode | "auto";
326
361
  cameraMode?: CameraMode;
362
+ frameContent?: "object" | "all";
363
+ interactionQuality?: "off" | "auto";
327
364
  colorMode?: ColorMode;
328
365
  tube?: TubeOptions;
329
366
  theme?: Theme;
@@ -332,6 +369,6 @@ export declare const GcodePreview: import("vue").DefineComponent<import("vue").E
332
369
  createRenderer?: (canvas: import("@chestnutlabs/gcode-renderer-three").RenderTargetCanvas) => import("@chestnutlabs/gcode-renderer-three").GLRendererLike;
333
370
  scheduleFrame?: (cb: () => void) => void;
334
371
  chunksPerTick?: number;
335
- }, "buildVolume" | "quality" | "cameraMode" | "theme" | "colorMode" | "tube">;
372
+ }, "buildVolume" | "quality" | "cameraMode" | "frameContent" | "interactionQuality" | "theme" | "colorMode" | "tube">;
336
373
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
337
374
  //# sourceMappingURL=gcode-preview-component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gcode-preview-component.d.ts","sourceRoot":"","sources":["../src/gcode-preview-component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAA6C,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC/E,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,WAAW,EACX,KAAK,EACL,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC5B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,CAAC;AAExE,eAAO,MAAM,YAAY;IAGrB,qFAAqF;;cAC1B,QAAQ,CAAC,kBA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Y,GACZ,cAAc,GACd,oBAAoB,GACpB,OAAO,GACP,WAAW,GACX,MAAM,CACT,CACF;;;;;;cAwBiB,MAAM;iBAAW,MAAM;;;kBAjB/B,MAAM;gBACR,MAAM;kBACJ,OAAO;sBACH,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;kBAC9B,SAAS,OAAO,EAAE;kBAClB,eAAe,GAAG,SAAS;;;;cAGX,MAAM;iBAAW,MAAM;;;;wBAEV,MAAM;oBAAc,MAAM;;;kBAChC,MAAM;iBAAW,WAAW;;;cAC9B,WAAW;YAAM,WAAW;gBAAU,MAAM;;;;;cAG/B,MAAM;iBAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;wBAvClC,UAAU;;;;;;;;;;;;;;;;;4EAyP/C,CAAC"}
@@ -26,6 +26,10 @@ export const GcodePreview = defineComponent({
26
26
  quality: { type: String, default: 'auto' },
27
27
  /** #150 (DD-009 D3): camera projection. */
28
28
  cameraMode: { type: String, default: 'perspective' },
29
+ /** #306/#6: frame the printed 'object' (excl. skirt/prime) or 'all' extrusion. Default 'all'. */
30
+ frameContent: { type: String, default: 'all' },
31
+ /** #306/2 (DD-020): 'auto' reduces detail while the camera moves. Default 'off'. */
32
+ interactionQuality: { type: String, default: 'off' },
29
33
  /** #268/#275/M6: snap to a preset orientation (top/front/iso/…). */
30
34
  view: { type: String, default: undefined },
31
35
  /** #268/#275/M6: restore a saved camera pose. Pair with `@camera-change` for a two-way binding. */
@@ -45,6 +49,8 @@ export const GcodePreview = defineComponent({
45
49
  showWipe: { type: Boolean, default: true },
46
50
  /** DD-009 D1 (#148): opt-in retraction/deretraction markers. */
47
51
  showRetractions: { type: Boolean, default: false },
52
+ /** #306/#6: show the build-volume wireframe cage (independent of the bed/plate). Default true. */
53
+ showVolumeCage: { type: Boolean, default: true },
48
54
  /** DD-006 live progress observation; null hides the overlay. */
49
55
  progress: { type: Object, default: null },
50
56
  /** Worker factory escape hatch (DD-005 slim/custom entries; D2). Factory form only —
@@ -83,6 +89,8 @@ export const GcodePreview = defineComponent({
83
89
  buildVolume: 'bed' in (props.buildVolume ?? {}) ? undefined : props.buildVolume,
84
90
  quality: props.quality,
85
91
  cameraMode: props.cameraMode,
92
+ frameContent: props.frameContent,
93
+ interactionQuality: props.interactionQuality,
86
94
  theme: props.theme,
87
95
  colorMode: props.colorMode,
88
96
  tube: props.tube,
@@ -105,7 +113,8 @@ export const GcodePreview = defineComponent({
105
113
  layers: e.layers,
106
114
  complete: e.complete,
107
115
  capabilities: e.capabilities,
108
- warnings: e.warnings
116
+ warnings: e.warnings,
117
+ metadata: e.metadata
109
118
  });
110
119
  break;
111
120
  case 'camera-changed':
@@ -170,12 +179,15 @@ export const GcodePreview = defineComponent({
170
179
  watch(() => props.showTravel, (visible) => preview.controls.setKindVisible('travel', visible), { immediate: true });
171
180
  watch(() => props.showWipe, (visible) => preview.controls.setKindVisible('wipe', visible), { immediate: true });
172
181
  watch(() => props.showRetractions, (visible) => preview.controls.setShowRetractions(visible), { immediate: true });
182
+ watch(() => props.showVolumeCage, (visible) => preview.controls.setBuildVolumeCage(visible), { immediate: true });
173
183
  watch(() => props.colorMode, (mode) => {
174
184
  if (mode !== undefined)
175
185
  preview.controls.setColorMode(mode);
176
186
  });
177
187
  watch(() => props.quality, (quality) => preview.controls.setQuality(quality));
178
188
  watch(() => props.cameraMode, (mode) => preview.controls.setCameraMode(mode));
189
+ watch(() => props.frameContent, (mode) => preview.controls.setFrameContent(mode));
190
+ watch(() => props.interactionQuality, (mode) => preview.controls.setInteractionQuality(mode));
179
191
  watch(() => props.view, (view) => {
180
192
  if (view !== undefined)
181
193
  preview.controls.setView(view);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chestnutlabs/gcode-preview-vue",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Thin Vue 3 integration for the Chestnut Labs G-code viewer (DD-007): useGcodePreview composable + GcodePreview component over the framework-neutral parser/renderer/progress packages.",
5
5
  "keywords": [
6
6
  "gcode",
@@ -50,10 +50,10 @@
50
50
  "test": "vitest run"
51
51
  },
52
52
  "dependencies": {
53
- "@chestnutlabs/gcode-parser": "0.6.0",
54
- "@chestnutlabs/gcode-renderer-three": "0.6.0",
55
- "@chestnutlabs/toolpath-core": "0.6.0",
56
- "@chestnutlabs/gcode-preview-core": "0.6.0"
53
+ "@chestnutlabs/gcode-parser": "0.7.0",
54
+ "@chestnutlabs/gcode-renderer-three": "0.7.0",
55
+ "@chestnutlabs/toolpath-core": "0.7.0",
56
+ "@chestnutlabs/gcode-preview-core": "0.7.0"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "vue": "^3.4.0"