Skip to content

Commit 7a85903

Browse files
author
HarshKhandeparkar
committed
refactor: lineSize -> lineThickness
1 parent 036df40 commit 7a85903

File tree

1 file changed

+8
-8
lines changed
  • src/renderers/RealDrawBoard/tools

1 file changed

+8
-8
lines changed

src/renderers/RealDrawBoard/tools/line.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { Color } from '../../../types/RealRendererTypes';
55
export const name = 'line';
66

77
export interface LineSettings {
8-
lineSize: number,
8+
lineThickness: number,
99
lineColor: Color
1010
}
1111

1212
export const LineDefaults: LineSettings = {
13-
lineSize: 1,
13+
lineThickness: 1,
1414
lineColor: [1, 1, 1]
1515
}
1616

@@ -24,7 +24,7 @@ export function _startStroke(
2424
coords: [number, number],
2525
identifier: string
2626
) {
27-
this._plot(coords[0], coords[1], this.toolSettings.lineSize, this.toolSettings.lineColor);
27+
this._plot(coords[0], coords[1], this.toolSettings.lineThickness, this.toolSettings.lineColor);
2828
_startCoords.set(identifier, coords);
2929
}
3030

@@ -37,10 +37,10 @@ export function _endStroke(
3737
this._cloneTexture(this.graphPixels),
3838
_startCoords.get(identifier),
3939
endCoords,
40-
this.toolSettings.lineSize,
40+
this.toolSettings.lineThickness,
4141
this.toolSettings.lineColor
4242
)
43-
this._plot(endCoords[0], endCoords[1], this.toolSettings.lineSize, this.toolSettings.lineColor);
43+
this._plot(endCoords[0], endCoords[1], this.toolSettings.lineThickness, this.toolSettings.lineColor);
4444
_startCoords.delete(identifier);
4545
}
4646

@@ -62,20 +62,20 @@ export function _toolPreview(
6262
this._cloneTexture(this.graphPixels),
6363
_startCoords.get(identifier),
6464
coords,
65-
this.toolSettings.lineSize,
65+
this.toolSettings.lineThickness,
6666
this.toolSettings.lineColor
6767
),
6868
coords[0],
6969
coords[1],
70-
this.toolSettings.lineSize,
70+
this.toolSettings.lineThickness,
7171
this.toolSettings.lineColor
7272
)
7373
}
7474
else return <Texture>this._previewPlot(
7575
this.graphPixels,
7676
coords[0],
7777
coords[1],
78-
this.toolSettings.lineSize,
78+
this.toolSettings.lineThickness,
7979
this.toolSettings.lineColor
8080
)
8181
}

0 commit comments

Comments
 (0)