Skip to content

Commit 62ac599

Browse files
committed
Remove (incorrect) linenumber
1 parent caa65f6 commit 62ac599

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/indexers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ export class LayersIndexer extends Indexer {
139139
* @param z - Z height for the new layer
140140
*/
141141
private createLayer(z: number): void {
142-
const layerNumber = this.indexes.length;
143142
const height = z - (this.lastLayer()?.z || 0);
144-
this.indexes.push(new Layer([], layerNumber, height, z));
143+
this.indexes.push(new Layer([], height, z));
145144
}
146145
}
147146

src/layer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ export class Layer {
99
/**
1010
* Creates a new Layer instance
1111
* @param paths - Array of paths in this layer
12-
* @param lineNumber - Line number in G-code file
1312
* @param height - Layer height (default: 0)
1413
* @param z - Z position (default: 0)
1514
*/
1615
constructor(
1716
public paths: Path[],
18-
public lineNumber: number,
1917
public height: number = 0,
2018
public z: number = 0,
2119
public layer: number = 0

0 commit comments

Comments
 (0)