From 003f869a163edfaea401c7d20d9c89355fed00cf Mon Sep 17 00:00:00 2001 From: jbphet Date: Fri, 17 Jan 2025 15:11:32 -0700 Subject: [PATCH] switch sides for label tick marks, see https://github.com/phetsims/quantum-measurement/issues/81 --- js/photons/view/NormalizedOutcomeVectorGraph.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/photons/view/NormalizedOutcomeVectorGraph.ts b/js/photons/view/NormalizedOutcomeVectorGraph.ts index 4f63334..68ea111 100644 --- a/js/photons/view/NormalizedOutcomeVectorGraph.ts +++ b/js/photons/view/NormalizedOutcomeVectorGraph.ts @@ -45,7 +45,7 @@ export default class NormalizedOutcomeVectorGraph extends Node { } ); const topTickMarkLabel = new Text( '+1', { font: LABEL_FONT, - left: topTickMark.right + LABEL_SPACING, + right: topTickMark.left - LABEL_SPACING, centerY: topTickMark.centerY } ); @@ -56,7 +56,7 @@ export default class NormalizedOutcomeVectorGraph extends Node { } ); const middleTickMarkLabel = new Text( '0', { font: LABEL_FONT, - left: middleTickMark.right + LABEL_SPACING, + right: middleTickMark.left - LABEL_SPACING, centerY: middleTickMark.centerY } ); @@ -67,7 +67,7 @@ export default class NormalizedOutcomeVectorGraph extends Node { } ); const bottomTickMarkLabel = new Text( '-1', { font: LABEL_FONT, - left: bottomTickMark.right + LABEL_SPACING, + right: bottomTickMark.left - LABEL_SPACING, centerY: bottomTickMark.centerY } );