Skip to content

Commit

Permalink
pass options to Curve in preparation for instrumentation (see #48)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Veillette <[email protected]>
  • Loading branch information
veillette committed Sep 22, 2022
1 parent 1572099 commit 7c053e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/common/model/Curve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import Emitter from '../../../../axon/js/Emitter.js';
import Utils from '../../../../dot/js/Utils.js';
import { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import { PhetioObjectOptions } from '../../../../tandem/js/PhetioObject.js';
import calculusGrapher from '../../calculusGrapher.js';
Expand All @@ -50,7 +50,10 @@ export default class Curve {

public cusps: CurvePoint[] | null;

public constructor( providedOptions: CurveOptions ) {
public constructor( providedOptions?: CurveOptions ) {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const options = optionize<CurveOptions, SelfOptions>()( {}, providedOptions );

// the Points that map out the curve at a finite number of partitions within
// the domain. See the comment at the top of this file for full context.
Expand Down

0 comments on commit 7c053e3

Please sign in to comment.