Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
remcoder committed Nov 21, 2023
1 parent 705e084 commit 9448e5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/webgl-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type GCodePreviewOptions = {
lastSegmentColor?: ColorRepresentation;
lineWidth?: number;
nonTravelMoves?: string[];
minLayerTreshold?: number;
minLayerThreshold?: number;
startLayer?: number;
targetId?: string;
topLayerColor?: ColorRepresentation;
Expand All @@ -54,7 +54,7 @@ const target = {
};

export class WebGLPreview {
minLayerTreshold = 0.05;
minLayerThreshold = 0.05;
parser: Parser;
targetId: string;
scene: Scene;
Expand Down Expand Up @@ -86,8 +86,8 @@ export class WebGLPreview {
private _lastSegmentColor?: Color;

constructor(opts: GCodePreviewOptions) {
this.minLayerTreshold = opts.minLayerTreshold ?? this.minLayerTreshold;
this.parser = new Parser(this.minLayerTreshold);
this.minLayerThreshold = opts.minLayerThreshold ?? this.minLayerThreshold;
this.parser = new Parser(this.minLayerThreshold);
this.scene = new Scene();
this.scene.background = this._backgroundColor;
if (opts.backgroundColor !== undefined) {
Expand Down Expand Up @@ -347,7 +347,7 @@ export class WebGLPreview {
this.startLayer = 1;
this.endLayer = Infinity;
this.singleLayerMode = false;
this.parser = new Parser(this.minLayerTreshold);
this.parser = new Parser(this.minLayerThreshold);
this.beyondFirstMove = false;
}

Expand Down

0 comments on commit 9448e5b

Please sign in to comment.