Skip to content

Commit

Permalink
Required tandem
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Jan 16, 2025
1 parent dc366f2 commit 419fd96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/bloch-sphere/view/BlochSphereMeasurementArea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ export default class BlochSphereMeasurementArea extends Node {
};
} );

const equationPanelTandem = providedOptions.tandem.createTandem( 'equationPanel' );

const equationBasisBox = new HBox( {
spacing: 5,
children: [
new Text( 'Basis: ', { font: new PhetFont( 16 ) } ),
new AquaRadioButtonGroup( model.equationBasisProperty, aquaRadioButtonGroupItems, { orientation: 'horizontal', margin: 5 } )
new AquaRadioButtonGroup( model.equationBasisProperty, aquaRadioButtonGroupItems, {
orientation: 'horizontal', margin: 5, tandem: equationPanelTandem.createTandem( 'equationBasisRadioButtonGroup' )
} )
]
} );

Expand All @@ -69,6 +73,7 @@ export default class BlochSphereMeasurementArea extends Node {
equationNode,
equationBasisBox
],
tandem: equationPanelTandem,
visibleProperty: model.isSingleMeasurementModeProperty
} ), QuantumMeasurementConstants.panelOptions );

Expand Down

0 comments on commit 419fd96

Please sign in to comment.