@@ -63,7 +63,7 @@ class SliderHandle extends BaseLinearMovementHandle {
6363 this . colorParam . value = color
6464
6565 this . handleMat = new Material ( 'handle' , 'FlatSurfaceShader' )
66- this . handleMat . getParameter ( 'BaseColor' ) . value = this . colorParam . getValue ( )
66+ this . handleMat . getParameter ( 'BaseColor' ) . value = this . colorParam . value
6767
6868 const topBarMat = new Material ( 'topBar' , 'FlatSurfaceShader' )
6969 topBarMat . getParameter ( 'BaseColor' ) . value = new Color ( 0.5 , 0.5 , 0.5 )
@@ -76,16 +76,16 @@ class SliderHandle extends BaseLinearMovementHandle {
7676 this . topBar = new GeomItem ( 'topBar' , barGeom , topBarMat )
7777
7878 this . barRadiusParam . on ( 'valueChanged' , ( ) => {
79- barGeom . radiusParam . value = this . barRadiusParam . getValue ( )
79+ barGeom . radiusParam . value = this . barRadiusParam . value
8080 } )
8181 this . handleRadiusParam . on ( 'valueChanged' , ( ) => {
82- handleGeom . radiusParam . value = this . handleRadiusParam . getValue ( )
82+ handleGeom . radiusParam . value = this . handleRadiusParam . value
8383 } )
8484 this . lengthParam . on ( 'valueChanged' , ( ) => {
8585 this . __updateSlider ( < number > this . value )
8686 } )
8787 this . colorParam . on ( 'valueChanged' , ( ) => {
88- this . handleMat . getParameter ( 'BaseColor' ) . value = this . colorParam . getValue ( )
88+ this . handleMat . getParameter ( 'BaseColor' ) . value = this . colorParam . value
8989 } )
9090
9191 this . addChild ( this . handle )
@@ -100,15 +100,15 @@ class SliderHandle extends BaseLinearMovementHandle {
100100 */
101101 highlight ( ) : void {
102102 super . highlight ( )
103- this . handleMat . getParameter ( 'BaseColor' ) . value = this . highlightColorParam . getValue ( )
103+ this . handleMat . getParameter ( 'BaseColor' ) . value = this . highlightColorParam . value
104104 }
105105
106106 /**
107107 * Removes the highlight from the handle once the mouse moves away.
108108 */
109109 unhighlight ( ) : void {
110110 super . unhighlight ( )
111- this . handleMat . getParameter ( 'BaseColor' ) . value = this . colorParam . getValue ( )
111+ this . handleMat . getParameter ( 'BaseColor' ) . value = this . colorParam . value
112112 }
113113
114114 /**
@@ -119,7 +119,7 @@ class SliderHandle extends BaseLinearMovementHandle {
119119 setTargetParam ( param : Parameter < unknown > ) : void {
120120 this . param = param
121121 const __updateSlider = ( ) => {
122- this . __updateSlider ( < number > param . getValue ( ) )
122+ this . __updateSlider ( < number > param . value )
123123 }
124124 __updateSlider ( )
125125 param . on ( 'valueChanged' , __updateSlider )
@@ -136,7 +136,7 @@ class SliderHandle extends BaseLinearMovementHandle {
136136 const param = < NumberParameter > this . param
137137 const range = param && param . getRange ( ) ? param . getRange ( ) : [ 0 , 1 ]
138138 const v = MathFunctions . remap ( value , range [ 0 ] , range [ 1 ] , 0 , 1 )
139- const length = this . lengthParam . getValue ( )
139+ const length = this . lengthParam . value
140140 this . baseBarXfo . sc . z = v * length
141141 this . handleXfo . tr . z = v * length
142142 this . topBarXfo . tr . z = v * length
@@ -172,7 +172,7 @@ class SliderHandle extends BaseLinearMovementHandle {
172172 * @param event - The event param.
173173 */
174174 onDrag ( event : ZeaPointerEvent ) : void {
175- const length = this . lengthParam . getValue ( )
175+ const length = this . lengthParam . value
176176 const param = < NumberParameter > this . param
177177 const range = param && param . getRange ( ) ? param . getRange ( ) : [ 0 , 1 ]
178178 const value = MathFunctions . clamp (
0 commit comments