Skip to content

Commit 518b3f3

Browse files
samreidjessegreenberg
authored andcommitted
Opt out of tandem for Photons used to create icons, see phetsims/molecules-and-light#353
1 parent 5a6609e commit 518b3f3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

js/moleculesandlight/view/QuadEmissionFrequencyControlPanel.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import Node from '../../../../scenery/js/nodes/Node.js';
2020
import Text from '../../../../scenery/js/nodes/Text.js';
2121
import RadioButtonGroup from '../../../../sun/js/buttons/RadioButtonGroup.js';
2222
import multiSelectionSoundPlayerFactory from '../../../../tambo/js/multiSelectionSoundPlayerFactory.js';
23+
import Tandem from '../../../../tandem/js/Tandem.js';
2324
import flashlight2Image from '../../../mipmaps/flashlight_png.js';
2425
import heatLampImage from '../../../mipmaps/infrared-source_png.js';
2526
import microwaveTransmitter from '../../../mipmaps/microwave-source_png.js';
@@ -72,19 +73,19 @@ function QuadEmissionFrequencyControlPanel( photonAbsorptionModel, tandem ) {
7273
// nodes do not correspond to anything in the model. They are just visual elements of the control panel.
7374
const identityTransform = ModelViewTransform2.createIdentity();
7475
const microwavePhotonNode = new PhotonNode(
75-
new Photon( WavelengthConstants.MICRO_WAVELENGTH, tandem.createTandem( 'microwavePhotonNode' ) ),
76+
new Photon( WavelengthConstants.MICRO_WAVELENGTH, { tandem: Tandem.OPT_OUT } ),
7677
identityTransform
7778
);
7879
const infraredPhotonNode = new PhotonNode(
79-
new Photon( WavelengthConstants.IR_WAVELENGTH, tandem.createTandem( 'infraredPhotonNode' ) ),
80+
new Photon( WavelengthConstants.IR_WAVELENGTH, { tandem: Tandem.OPT_OUT } ),
8081
identityTransform
8182
);
8283
const visiblePhotonNode = new PhotonNode(
83-
new Photon( WavelengthConstants.VISIBLE_WAVELENGTH, tandem.createTandem( 'visiblePhotonNode' ) ),
84+
new Photon( WavelengthConstants.VISIBLE_WAVELENGTH, { tandem: Tandem.OPT_OUT } ),
8485
identityTransform
8586
);
8687
const ultravioletPhotonNode = new PhotonNode(
87-
new Photon( WavelengthConstants.UV_WAVELENGTH, tandem.createTandem( 'ultravioletPhotonNode' ) ),
88+
new Photon( WavelengthConstants.UV_WAVELENGTH, { tandem: Tandem.OPT_OUT } ),
8889
identityTransform
8990
);
9091

0 commit comments

Comments
 (0)