diff --git a/js/common/view/AreaUnderCurvePlot.ts b/js/common/view/AreaUnderCurvePlot.ts index b1717500..e676c266 100644 --- a/js/common/view/AreaUnderCurvePlot.ts +++ b/js/common/view/AreaUnderCurvePlot.ts @@ -37,7 +37,7 @@ export default class AreaUnderCurvePlot extends Node { curve: Curve, chartTransform: ChartTransform, xProperty: TReadOnlyProperty, - providedOptions?: AreaUnderCurvePlotOptions ) { + providedOptions: AreaUnderCurvePlotOptions ) { const options = optionize()( { diff --git a/js/common/view/AreaUnderCurveScrubberNode.ts b/js/common/view/AreaUnderCurveScrubberNode.ts index 5bf8dd27..443e3dec 100644 --- a/js/common/view/AreaUnderCurveScrubberNode.ts +++ b/js/common/view/AreaUnderCurveScrubberNode.ts @@ -26,7 +26,7 @@ export default class AreaUnderCurveScrubberNode extends ScrubberNode { public constructor( areaUnderCurveScrubber: AreaUnderCurveScrubber, chartTransform: ChartTransform, - providedOptions?: AreaUnderCurveScrubberNodeOptions ) { + providedOptions: AreaUnderCurveScrubberNodeOptions ) { const options = optionize()( { diff --git a/js/common/view/CueingArrowsNode.ts b/js/common/view/CueingArrowsNode.ts index 6af52a6f..de406d1d 100644 --- a/js/common/view/CueingArrowsNode.ts +++ b/js/common/view/CueingArrowsNode.ts @@ -31,7 +31,7 @@ type CueingArrowsNodeOptions = SelfOptions & NodeTranslationOptions & export default class CueingArrowsNode extends VBox { - public constructor( providedOptions?: CueingArrowsNodeOptions ) { + public constructor( providedOptions: CueingArrowsNodeOptions ) { const upArrow = new ArrowNode( 0, 0, 0, -ARROW_LENGTH, ARROW_NODE_OPTIONS ); const downArrow = new ArrowNode( 0, 0, 0, ARROW_LENGTH, ARROW_NODE_OPTIONS ); diff --git a/js/common/view/CurveManipulationWidthSlider.ts b/js/common/view/CurveManipulationWidthSlider.ts index 16c34bef..6bbf8f00 100644 --- a/js/common/view/CurveManipulationWidthSlider.ts +++ b/js/common/view/CurveManipulationWidthSlider.ts @@ -25,7 +25,7 @@ type CurveManipulationWidthSliderOptions = SelfOptions & PickRequired, - providedOptions?: CurveManipulationWidthSliderOptions ) { + providedOptions: CurveManipulationWidthSliderOptions ) { // an array of numbers corresponding to the positions of the ticks (in model coordinate) const tickValues = [ ...Array( NUMBER_OF_TICKS ) ].map( ( x, i ) => diff --git a/js/common/view/GraphsNode.ts b/js/common/view/GraphsNode.ts index e284abe2..d658e842 100644 --- a/js/common/view/GraphsNode.ts +++ b/js/common/view/GraphsNode.ts @@ -33,12 +33,13 @@ import CalculusGrapherPreferences from '../model/CalculusGrapherPreferences.js'; import CurvePoint from '../model/CurvePoint.js'; import AreaUnderCurveScrubberNode from './AreaUnderCurveScrubberNode.js'; import TangentScrubberNode from './TangentScrubberNode.js'; +import PickRequired from '../../../../phet-core/js/types/PickRequired.js'; const GRAPH_NODE_Y_SPACING = 20; // vertical space between GraphNode instances, in view coordinates type SelfOptions = EmptySelfOptions; -type GraphsNodeOptions = SelfOptions & StrictOmit; +type GraphsNodeOptions = SelfOptions & StrictOmit & PickRequired; export default class GraphsNode extends Node { @@ -67,7 +68,7 @@ export default class GraphsNode extends Node { private readonly graphSetsAnimator: GraphSetsAnimator; - public constructor( model: CalculusGrapherModel, providedOptions?: GraphsNodeOptions ) { + public constructor( model: CalculusGrapherModel, providedOptions: GraphsNodeOptions ) { const options = optionize()( { diff --git a/js/common/view/TangentScrubberNode.ts b/js/common/view/TangentScrubberNode.ts index 69d5cc25..357b21f6 100644 --- a/js/common/view/TangentScrubberNode.ts +++ b/js/common/view/TangentScrubberNode.ts @@ -24,7 +24,7 @@ export default class TangentScrubberNode extends ScrubberNode { public constructor( tangentScrubber: TangentScrubber, chartTransform: ChartTransform, - providedOptions?: TangentScrubberNodeOptions ) { + providedOptions: TangentScrubberNodeOptions ) { const options = optionize()( {