Skip to content

Commit ce312f3

Browse files
committed
Use PreferencesDialogConstants, not PreferencesDialog, for all Constant values (removing many circular dependencies), phetsims/chipper#1557
1 parent 4d24e93 commit ce312f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/view/CCKCSimulationPreferencesContentNode.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2020-2025, University of Colorado Boulder
22

3-
import PreferencesDialog from '../../../joist/js/preferences/PreferencesDialog.js';
3+
import PreferencesDialogConstants from '../../../joist/js/preferences/PreferencesDialogConstants.js';
44
/**
55
* Shows contents for controls that change simulation representation or behavior.
66
*
@@ -22,7 +22,7 @@ export default class CCKCSimulationPreferencesContentNode extends VBox {
2222

2323
public constructor( tandem: Tandem ) {
2424

25-
const textOptions = PreferencesDialog.PANEL_SECTION_CONTENT_OPTIONS;
25+
const textOptions = PreferencesDialogConstants.PANEL_SECTION_CONTENT_OPTIONS;
2626
const schematicTypeRadioButtonGroup = new VerticalAquaRadioButtonGroup<SchematicType>( schematicTypeProperty, [ {
2727
createNode: () => new Text( CircuitConstructionKitCommonStrings.ieeeStringProperty, textOptions ),
2828
value: SchematicType.IEEE,
@@ -59,13 +59,13 @@ export default class CCKCSimulationPreferencesContentNode extends VBox {
5959

6060
super( {
6161
align: 'left',
62-
spacing: PreferencesDialog.CONTENT_SPACING,
62+
spacing: PreferencesDialogConstants.CONTENT_SPACING,
6363
tandem: tandem,
6464
children: [
65-
new Text( CircuitConstructionKitCommonStrings.schematicStandardStringProperty, PreferencesDialog.PANEL_SECTION_LABEL_OPTIONS ),
65+
new Text( CircuitConstructionKitCommonStrings.schematicStandardStringProperty, PreferencesDialogConstants.PANEL_SECTION_LABEL_OPTIONS ),
6666
schematicTypeRadioButtonGroup,
6767
new HSeparator(),
68-
new Text( CircuitConstructionKitCommonStrings.ammeterReadoutStringProperty, PreferencesDialog.PANEL_SECTION_LABEL_OPTIONS ),
68+
new Text( CircuitConstructionKitCommonStrings.ammeterReadoutStringProperty, PreferencesDialogConstants.PANEL_SECTION_LABEL_OPTIONS ),
6969
ammeterReadoutRadioButtonGroup
7070
]
7171
} );

0 commit comments

Comments
 (0)