@@ -22,7 +22,7 @@ export const ByteMonitorProps = {
2222 startBit : IntPropOpt ,
2323 horizontal : BoolPropOpt ,
2424 bitReverse : BoolPropOpt ,
25- squareLed : BoolPropOpt ,
25+ square : BoolPropOpt ,
2626 ledBorder : IntPropOpt ,
2727 ledBorderColor : ColorPropOpt ,
2828 effect3d : BoolPropOpt
@@ -49,8 +49,8 @@ export const ByteMonitorComponent = (
4949 onColor = Color . fromRgba ( 0 , 255 , 0 ) ,
5050 offColor = Color . fromRgba ( 0 , 100 , 0 ) ,
5151 ledBorder = 2 ,
52- ledBorderColor = Color . fromRgba ( 150 , 150 , 150 ) , // dark grey
53- squareLed = false ,
52+ ledBorderColor = Color . fromRgba ( 50 , 50 , 50 , 178 ) , // dark grey
53+ square = false ,
5454 effect3d = false ,
5555 width = WIDGET_DEFAULT_SIZES [ "byte_monitor" ] [ 0 ] ,
5656 height = WIDGET_DEFAULT_SIZES [ "byte_monitor" ] [ 1 ]
@@ -73,7 +73,7 @@ export const ByteMonitorComponent = (
7373 height ,
7474 border ,
7575 horizontal ,
76- squareLed
76+ square
7777 ) ;
7878 const ledArray : Array < JSX . Element > = [ ] ;
7979 dataValues . forEach ( ( data : number , idx : number ) => {
@@ -94,7 +94,7 @@ export const ByteMonitorComponent = (
9494 style [ "borderColor" ] = ledBorderColor . toString ( ) ;
9595 style [ "borderWidth" ] = `${ borderWidth } px` ;
9696 // Set shape as square or circular
97- if ( squareLed ) {
97+ if ( square ) {
9898 style . width = `${ bitWidth + borderWidth } px` ;
9999 style . height = `${ bitHeight + borderWidth } px` ;
100100 } else {
@@ -113,7 +113,7 @@ export const ByteMonitorComponent = (
113113 style [ "backgroundImage" ] = `radial-gradient(circle at top left, white, ${
114114 data ? onColor ?. toString ( ) : offColor ?. toString ( )
115115 } )`;
116- if ( ! squareLed ) {
116+ if ( ! square ) {
117117 style [ "borderColor" ] = "transparent" ;
118118 style [ "backgroundImage" ] +=
119119 ", radial-gradient(circle at top left, black,white)" ;
0 commit comments