@@ -45,7 +45,7 @@ export class ComboWidget
4545 return typeof this . value === 'number' ? String ( this . value ) : this . value
4646 }
4747
48- # getValues( node : LGraphNode ) : Values {
48+ private getValues ( node : LGraphNode ) : Values {
4949 const { values } = this . options
5050 if ( values == null ) throw new Error ( '[ComboWidget]: values is required' )
5151
@@ -57,7 +57,7 @@ export class ComboWidget
5757 * @param increment `true` if checking the use of the increment button, `false` for decrement
5858 * @returns `true` if the value is at the given index, otherwise `false`.
5959 */
60- # canUseButton( increment : boolean ) : boolean {
60+ private canUseButton ( increment : boolean ) : boolean {
6161 const { values } = this . options
6262 // If using legacy duck-typed method, false is the most permissive return value
6363 if ( typeof values === 'function' ) return false
@@ -78,23 +78,23 @@ export class ComboWidget
7878 * Handles edge case where the value is both the first and last item in the list.
7979 */
8080 override canIncrement ( ) : boolean {
81- return this . # canUseButton( true )
81+ return this . canUseButton ( true )
8282 }
8383
8484 override canDecrement ( ) : boolean {
85- return this . # canUseButton( false )
85+ return this . canUseButton ( false )
8686 }
8787
8888 override incrementValue ( options : WidgetEventOptions ) : void {
89- this . # tryChangeValue( 1 , options )
89+ this . tryChangeValue ( 1 , options )
9090 }
9191
9292 override decrementValue ( options : WidgetEventOptions ) : void {
93- this . # tryChangeValue( - 1 , options )
93+ this . tryChangeValue ( - 1 , options )
9494 }
9595
96- # tryChangeValue( delta : number , options : WidgetEventOptions ) : void {
97- const values = this . # getValues( options . node )
96+ private tryChangeValue ( delta : number , options : WidgetEventOptions ) : void {
97+ const values = this . getValues ( options . node )
9898 const indexedValues = toArray ( values )
9999
100100 // avoids double click event
@@ -128,7 +128,7 @@ export class ComboWidget
128128 if ( x > width - 40 ) return this . incrementValue ( { e, node, canvas } )
129129
130130 // Otherwise, show dropdown menu
131- const values = this . # getValues( node )
131+ const values = this . getValues ( node )
132132 const values_list = toArray ( values )
133133
134134 // Handle center click - show dropdown menu
0 commit comments