From a4cb01187aba05dc2c802f1be56527fd96259625 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 22 Jan 2024 11:21:31 -0700 Subject: [PATCH] change order of params for XAxisNode and YAxisNode, https://github.com/phetsims/graphing-lines/issues/140 --- js/common/view/GraphNode.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/common/view/GraphNode.ts b/js/common/view/GraphNode.ts index 4885c1a5..ed398b57 100644 --- a/js/common/view/GraphNode.ts +++ b/js/common/view/GraphNode.ts @@ -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 ) ] } ); @@ -152,7 +152,7 @@ class MinorTickNode extends Path { */ class XAxisNode extends Node { - public constructor( graph: Graph, xAxisLabelStringProperty: TReadOnlyProperty, modelViewTransform: ModelViewTransform2 ) { + public constructor( graph: Graph, modelViewTransform: ModelViewTransform2, xAxisLabelStringProperty: TReadOnlyProperty ) { super(); @@ -202,7 +202,7 @@ class XAxisNode extends Node { */ class YAxisNode extends Node { - public constructor( graph: Graph, yAxisLabelStringProperty: TReadOnlyProperty, modelViewTransform: ModelViewTransform2 ) { + public constructor( graph: Graph, modelViewTransform: ModelViewTransform2, yAxisLabelStringProperty: TReadOnlyProperty ) { super();