Skip to content

Commit

Permalink
add xAxisLabelString and yAxisLabelString parameters to GraphNode, be…
Browse files Browse the repository at this point in the history
…cause it's used in 2 sims with different string Properties, #178
  • Loading branch information
pixelzoom committed Jun 6, 2023
1 parent b24468d commit e7d3d57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/common/view/GQGraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import GQModel from '../model/GQModel.js';
import GQViewProperties from './GQViewProperties.js';
import QuadraticNode from './QuadraticNode.js';
import isSettingPhetioStateProperty from '../../../../tandem/js/isSettingPhetioStateProperty.js';
import GQSymbols from '../GQSymbols.js';

type SelfOptions = {

Expand Down Expand Up @@ -50,7 +51,7 @@ export default class GQGraphNode extends Node {
super( options );

// Cartesian coordinates graph
const graphNode = new GraphNode( model.graph, model.modelViewTransform );
const graphNode = new GraphNode( model.graph, model.modelViewTransform, GQSymbols.x, GQSymbols.y );

// Interactive quadratic curve
const interactiveQuadraticNode = new QuadraticNode(
Expand Down

0 comments on commit e7d3d57

Please sign in to comment.