Skip to content

Releases: xyz-tools/gcode-preview

v2.4.0 - Memory improvement

12 Sep 15:14
Compare
Choose a tag to compare

This release substantially improves on memory usage for subsequent renders. This is especially noticeable in the demo.

https://www.npmjs.com/package/gcode-preview/v/2.4.0

v2.3.0

05 Jun 22:11
9fe576d
Compare
Choose a tag to compare
  • parse and keep track of feedrate
  • fix bug in README
  • security updates via Dependabot

v2.2.0 build volume

27 Dec 21:47
Compare
Choose a tag to compare

This adds rendering of the build volume.

The build volume will be rendered if the buildVolume parameter is passed. It has the following type:

buildVolume: { 
  x: number; 
  y: number; 
  z: number
}

example:

v2.1.1

20 Jul 20:31
Compare
Choose a tag to compare

changes:

  • removed: limit parameter
  • added parameter startLayer
  • added parameter endLayer
  • added parameter singleLayerMode
  • added vue-demo (previously a separate repo)

v2.1.0

16 Jun 16:46
0ad755d
Compare
Choose a tag to compare

changes:

  • fix an issue with incremental rendering where the top layer would sometimes not have the correct color
  • allow canvas snapshots (to save the image as a file for instance)
  • fixed scaling & resizing issues
  • support multiple instances
  • don't reset the layer limit after parsing the gcode
  • highlight the top layer and the last segment
  • top layer / last segment color is configurable
  • clear() method added to reset parser state
  • add incremental parsing
  • bugfix: only create a new layer when extruding
  • allow input to be either a string or an array of strings
  • remove 2.5d canvas version
  • demo: shows how to use incremental parsing to render a file progressively

v2.0.5

06 May 19:50
Compare
Choose a tag to compare

changes:

  • small tweaks to the demo page
  • fixed a minor security issue
  • updated the readme

v2.0.3

23 Nov 21:37
Compare
Choose a tag to compare
Bump to 2.0.3

v2.0.2

23 Nov 15:43
Compare
Choose a tag to compare
Bump version

Version 2.0 -- WebGL support

23 Nov 15:19
Compare
Choose a tag to compare

Most importantly this version brings WebGL rendering (using three.js) with pan/zoom/rotate controls. In addition, travel moves are now renderable too.

Full changelog:

  • WebGL rendering with pan/zoom/rotate controls
  • toggle rendering of travel
  • toggle rendering of extrusion
  • added lineWidth option (canvas 2.5D only)
  • updated demo page
  • fully typed