@@ -40,7 +40,7 @@ export type GCodePreviewOptions = {
4040 lastSegmentColor ?: ColorRepresentation ;
4141 lineWidth ?: number ;
4242 nonTravelMoves ?: string [ ] ;
43- minLayerTreshold ?: number ;
43+ minLayerThreshold ?: number ;
4444 startLayer ?: number ;
4545 targetId ?: string ;
4646 topLayerColor ?: ColorRepresentation ;
@@ -54,7 +54,7 @@ const target = {
5454} ;
5555
5656export class WebGLPreview {
57- minLayerTreshold = 0.05 ;
57+ minLayerThreshold = 0.05 ;
5858 parser : Parser ;
5959 targetId : string ;
6060 scene : Scene ;
@@ -86,8 +86,8 @@ export class WebGLPreview {
8686 private _lastSegmentColor ?: Color ;
8787
8888 constructor ( opts : GCodePreviewOptions ) {
89- this . minLayerTreshold = opts . minLayerTreshold ?? this . minLayerTreshold ;
90- this . parser = new Parser ( this . minLayerTreshold ) ;
89+ this . minLayerThreshold = opts . minLayerThreshold ?? this . minLayerThreshold ;
90+ this . parser = new Parser ( this . minLayerThreshold ) ;
9191 this . scene = new Scene ( ) ;
9292 this . scene . background = this . _backgroundColor ;
9393 if ( opts . backgroundColor !== undefined ) {
@@ -347,7 +347,7 @@ export class WebGLPreview {
347347 this . startLayer = 1 ;
348348 this . endLayer = Infinity ;
349349 this . singleLayerMode = false ;
350- this . parser = new Parser ( this . minLayerTreshold ) ;
350+ this . parser = new Parser ( this . minLayerThreshold ) ;
351351 this . beyondFirstMove = false ;
352352 }
353353
0 commit comments