- remove preview.parser.parseGcode in favor of parseGCode
- remove .init
- remove WebGLPreview.
- expose GCodeParser
- (experimental) Add drag 'n drop support
- (experimental) Stream support (for both Fetch and drag n drop )
- Naming & cleanup:
- preview.parser.parseGCode iso now deprecated parseGcode
- Added .init constructor in favor of now deprecated WebGLPreview
- The
targetId
param is deprecated in favor ofcanvas
- the deprecated versions remain working for now
- DEMO:
- Store build volume dimensions in localStorage
- Make loading of large files faster by increasing the chunk size
- Added examples using Fetch API
- Fix bug where the .lines property was overwritten instead of appended to
- Fix bug where the thumbnails was not properly stored
- preserve input gcode, including comments, accessible as
GCodePreview.parser.lines
- parse preview/thumbnail generated by slicer
- improve memory usage by properly disposing of unused geometries and materials.
- properly handle feedrate
- add buildVolume param to render the build volume
- add startLayer, endLayer and singleLayerMode
- remove lineWidth for now
- 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
- support lineWidth to render fat lines (known issue: travel is inorrectly rendered as extrusion lines)
- 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
- updated demo page
- toggle rendering of travel
- toggle rendering of extrusion
- WebGL rendering with pan/zoom/rotate controls
- added
lineWidth
option (canvas 2.5 D only) - fully typed
- ported to typescript
- added distributable library build in dist folder
- some minor fixes