Skip to content

Releases: ChestnutLabs/gcode-preview

v0.2.0 — E9: annotations & renderer options

Choose a tag to compare

@sobechestnut-dev sobechestnut-dev released this 24 Jul 20:23
3b64176

Second release of the Chestnut Labs G-code Preview stack — the E9 feature set (DD-009), published lockstep across all @chestnutlabs/* packages with npm provenance.

Highlights

  • Retraction/deretraction markers (#148) — opt-in showRetractions markers from a new additive retractions IR channel.
  • Orthographic camera (#150) — cameraMode: 'perspective' | 'orthographic' on the renderer, all adapters, and renderStill.
  • M600 filament-swap color-change (#147) — a parser-detected colorChanges channel + a colorChange color mode that shades by active filament across manual swaps.
  • Bounded declarative theming API (#153) — a three-free theme object (background, grid/bed colors, light intensities, material preset) + live setTheme.
  • <gcode-preview> Custom Element (#149) — a new framework-free Web Component adapter, @chestnutlabs/gcode-preview-element (no framework peer), passing the shared behavioral suite.
  • Multi-gcode: documented mount-multiple workaround (#151).

Packages (all → 0.2.0)

toolpath-core, gcode-parser, gcode-dialects, gcode-containers, gcode-renderer-three, gcode-preview-core, gcode-preview-vue, gcode-preview-react, gcode-preview-svelte, gcode-preview-element (new).

Additive and backward-compatible with 0.1.0. See each package's CHANGELOG for details.

v0.1.0 — first stable line

Choose a tag to compare

@sobechestnut-dev sobechestnut-dev released this 24 Jul 01:12
d954cb8

First stable line of the Chestnut Labs G-code Preview stack — nine @chestnutlabs/* packages published together (lockstep 0.1.0).

Highlights

  • Off-thread parsing of .gcode and .gcode.3mf into a versioned ToolpathIR (streaming, resource limits, adversarial-corpus hardened; container extraction coverage-guided-fuzzed).
  • Cross-vendor dialects — PrusaSlicer, OrcaSlicer/Bambu, Cura, Klipper, Marlin, RepRap-flavor — with honest capability tagging.
  • Three.js renderer — layer clip, segment scrub, tubes/lines with auto-fallback, per-file build plates, honest live-progress overlay, WebGL context-loss recovery.
  • Framework-neutral controller + first-class Vue, React, and Svelte adapters at capability parity (shared behavioral suite).
  • Headless renderStill for server-side/offscreen thumbnails (AnyBridge #791).

Packages

toolpath-core · gcode-parser · gcode-dialects · gcode-containers · gcode-renderer-three · gcode-preview-core · gcode-preview-vue · gcode-preview-react · gcode-preview-svelte

Known limitations

Inherited interpreter gaps in some position-affecting G-codes (notably M82 absolute extrusion) — see docs/compatibility/gcode-motion-coverage.md; fixes tracked in #155#158.

Fork of xyz-tools/gcode-preview (MIT); attribution in NOTICE.md.