Creates a new GCodePreview instance
Configuration options for the preview
Job containing parsed G-code data
OptionalonCalled whenever parsed commands have been folded into the job.
OptionalonCalled once a streamed G-code file has been read to the end.
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
Promise that resolves when the animated render has completed
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 }
Main G-code preview class that orchestrates rendering and parsing
Example