Skip to content

Commit

Permalink
change order of params for XAxisNode and YAxisNode, #140
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jan 22, 2024
1 parent 6e78e25 commit a4cb011
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/common/view/GraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export default class GraphNode extends Node {
super( {
children: [
gridNode,
new XAxisNode( graph, xAxisLabelStringProperty, modelViewTransform ),
new YAxisNode( graph, yAxisLabelStringProperty, modelViewTransform )
new XAxisNode( graph, modelViewTransform, xAxisLabelStringProperty ),
new YAxisNode( graph, modelViewTransform, yAxisLabelStringProperty )
]
} );

Expand Down Expand Up @@ -152,7 +152,7 @@ class MinorTickNode extends Path {
*/
class XAxisNode extends Node {

public constructor( graph: Graph, xAxisLabelStringProperty: TReadOnlyProperty<string>, modelViewTransform: ModelViewTransform2 ) {
public constructor( graph: Graph, modelViewTransform: ModelViewTransform2, xAxisLabelStringProperty: TReadOnlyProperty<string> ) {

super();

Expand Down Expand Up @@ -202,7 +202,7 @@ class XAxisNode extends Node {
*/
class YAxisNode extends Node {

public constructor( graph: Graph, yAxisLabelStringProperty: TReadOnlyProperty<string>, modelViewTransform: ModelViewTransform2 ) {
public constructor( graph: Graph, modelViewTransform: ModelViewTransform2, yAxisLabelStringProperty: TReadOnlyProperty<string> ) {

super();

Expand Down

0 comments on commit a4cb011

Please sign in to comment.