From bb38ae3eec9daa0a17052642b133b9edc9ce4c6a Mon Sep 17 00:00:00 2001 From: AgustinVallejo Date: Fri, 28 Feb 2025 14:38:41 -0500 Subject: [PATCH] Refactor documentation and remove unnecessary reentrant properties in angle properties https://github.com/phetsims/quantum-measurement/issues/109 --- js/common/model/AbstractBlochSphere.ts | 14 +++----------- js/common/model/AveragingCounterNumberProperty.ts | 6 ++++-- js/common/view/ProbabilityValueControl.ts | 4 +++- js/spin/model/SternGerlach.ts | 3 +-- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/js/common/model/AbstractBlochSphere.ts b/js/common/model/AbstractBlochSphere.ts index 00833dcd..669dfcbe 100644 --- a/js/common/model/AbstractBlochSphere.ts +++ b/js/common/model/AbstractBlochSphere.ts @@ -23,12 +23,7 @@ export type AbstractBlochSphereOptions = SelfOptions & PickRequired()( { - // REVIEW: Add documentation describing why you need to create provide your own layoutFunction. + // Creating our own layout function because NumberControl doesn't have a native support for + // title + // < ------|------ > layoutFunction: ( titleNode, numberDisplay, slider, leftArrowButton, rightArrowButton ) => { assert && assert( leftArrowButton && rightArrowButton ); return new VBox( { diff --git a/js/spin/model/SternGerlach.ts b/js/spin/model/SternGerlach.ts index 99adf740..ebdd9874 100644 --- a/js/spin/model/SternGerlach.ts +++ b/js/spin/model/SternGerlach.ts @@ -100,8 +100,7 @@ export default class SternGerlach extends PhetioObject { this.blockingModeProperty = new EnumerationProperty( BlockingMode.NO_BLOCKER, { tandem: tandem.createTandem( 'blockingModeProperty' ), phetioReadOnly: true, - phetioFeatured: true, - reentrant: true + phetioFeatured: true } ); this.isDirectionControllableProperty = new BooleanProperty( false, {