@@ -5,12 +5,12 @@ import { Color } from '../../../types/RealRendererTypes';
55export const name = 'line' ;
66
77export interface LineSettings {
8- lineSize : number ,
8+ lineThickness : number ,
99 lineColor : Color
1010}
1111
1212export 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