After converting scenery-phet.WavelengthSlider to TypeScript, bending-light is failing in WavelengthControl.ts. See screenshot below.
The hierarchy for WavelengthSlider is as follows:
class WavelengthSlider extends SpectrumSlider
class SpectrumSlider extends AccessibleSlider( Node, 0 )
AccessibleSlider is a trait that extends AccessibleValueHandler
2 options required by AccessibleValueHandlerSelfOptions are missing: valueProperty and enabledRangeProperty. Based on these assertion in AccessibleValueHandler, I'm not sure how this was working previously:
256 assert && assert( providedOptions.enabledRangeProperty, 'enabledRangeProperty is a required option' );
257 assert && assert( providedOptions.valueProperty, 'valueProperty is a required option' );
The missing valueProperty can be addressed by adding valueProperty: wavelengthProperty. But I don't know how to address enabledRangeProperty.
Assigning to @samreid, the responsible dev for this sim.
After converting scenery-phet.WavelengthSlider to TypeScript, bending-light is failing in WavelengthControl.ts. See screenshot below.
The hierarchy for WavelengthSlider is as follows:
2 options required by AccessibleValueHandlerSelfOptions are missing:
valueProperty
andenabledRangeProperty
. Based on these assertion in AccessibleValueHandler, I'm not sure how this was working previously:The missing
valueProperty
can be addressed by addingvalueProperty: wavelengthProperty
. But I don't know how to addressenabledRangeProperty
.Assigning to @samreid, the responsible dev for this sim.