Creates a new GCodePreview instance
Configuration options for the preview
Gets the total number of layers in the job
Number of layers
The G-code parser instance
The WebGL sceneManager instance for direct access to rendering properties
Clears the preview and resets the parser, sceneManager, gui and job
Disposes of all resources and cleans up
Processes G-code and renders the preview
G-code string or array of lines
Processes G-code using the sceneManager's built-in streaming method
G-code string or array of strings to process
Options for rendering: { render: boolean }
Renders the current scene
Main G-code preview class that orchestrates rendering and parsing
Example