Skip to content

Commit

Permalink
instrument graphNode (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 21, 2022
1 parent a79e2be commit ac69792
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion js/common/view/CalculusGrapherScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export default class CalculusGrapherScreenView extends ScreenView {
const viewProperties = new CalculusGrapherViewProperties( options );


const graphNode = new GraphNode( model.originalCurve, new Bounds2( 0, -5, 30, 5 ), viewProperties.gridVisibleProperty, true );
const graphNode = new GraphNode( model.originalCurve, new Bounds2( 0, -5, 30, 5 ), viewProperties.gridVisibleProperty, true,
{
tandem: options.tandem.createTandem( 'originalGraphNode' )
} );
graphNode.center = this.layoutBounds.center;
this.addChild( graphNode );

Expand Down
2 changes: 1 addition & 1 deletion js/common/view/GraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class GraphNode extends Node {
public constructor( curve: Curve, bounds: Bounds2,
gridVisibleProperty: Property<boolean>,
original: boolean,
providedOptions?: GraphNodeOptions ) {
providedOptions: GraphNodeOptions ) {

const options = optionize<GraphNodeOptions, SelfOptions, NodeOptions>()( {}, providedOptions );

Expand Down

0 comments on commit ac69792

Please sign in to comment.