Skip to content

Commit

Permalink
Prune imports, see #1005
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 12, 2024
1 parent 870e8f1 commit 43cfae2
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion js/model/Switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class Switch extends FixedCircuitElement {
// Use the bounding box of the open lifelike switch to show bounds for all combinations of open/closed x lifelike/schematic
// See https://github.com/phetsims/circuit-construction-kit-dc/issues/132
isSizeChangedOnViewChange: false
}, {} );
} );

this.resistanceProperty = new NumberProperty( 0 );
this.resistanceWithNoiseProperty = new NumberProperty( 0 );
Expand Down
2 changes: 0 additions & 2 deletions js/model/circuitElementNoiseProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import CCKCQueryParameters from '../CCKCQueryParameters.js';
import Tandem from '../../../tandem/js/Tandem.js';
import circuitConstructionKitCommon from '../circuitConstructionKitCommon.js';
import BooleanProperty from '../../../axon/js/BooleanProperty.js';
import NumberProperty from '../../../axon/js/NumberProperty.js';
import Range from '../../../dot/js/Range.js';

/**
* Measurement noise can be turned on or off to simulate uncertainty in voltage and current measurements
Expand Down
2 changes: 1 addition & 1 deletion js/view/AmmeterNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class AmmeterNode extends Node {
ammeterReadoutTypeProperty,
CircuitConstructionKitCommonStrings.currentUnitsStringProperty
],
current => CCKCUtils.createCurrentReadout( current, options.blackBoxStudy ), {
current => CCKCUtils.createCurrentReadout( current, options.blackBoxStudy, false ), {
tandem: tandemForChildren.createTandem( 'probeReadoutStringProperty' ).createTandem( Text.STRING_PROPERTY_TANDEM_NAME )
} );

Expand Down
8 changes: 0 additions & 8 deletions js/view/CCKCScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,32 @@

import Multilink from '../../../axon/js/Multilink.js';
import NumberProperty from '../../../axon/js/NumberProperty.js';
import Property from '../../../axon/js/Property.js';
import Bounds2 from '../../../dot/js/Bounds2.js';
import Vector2 from '../../../dot/js/Vector2.js';
import ScreenView, { ScreenViewOptions } from '../../../joist/js/ScreenView.js';
import optionize from '../../../phet-core/js/optionize.js';
import StrictOmit from '../../../phet-core/js/types/StrictOmit.js';
import PlayPauseButton from '../../../scenery-phet/js/buttons/PlayPauseButton.js';
import ResetAllButton from '../../../scenery-phet/js/buttons/ResetAllButton.js';
import StopwatchNode from '../../../scenery-phet/js/StopwatchNode.js';
import TimeControlNode from '../../../scenery-phet/js/TimeControlNode.js';
import { AlignBox, AlignGroup, HotkeyData, KeyboardListener, KeyboardUtils, Node, VBox } from '../../../scenery/js/imports.js';
import { CarouselItem } from '../../../sun/js/Carousel.js';
import phetioStateSetEmitter from '../../../tandem/js/phetioStateSetEmitter.js';
import Tandem from '../../../tandem/js/Tandem.js';
import CCKCConstants from '../CCKCConstants.js';
import CCKCQueryParameters from '../CCKCQueryParameters.js';
import CCKCUtils from '../CCKCUtils.js';
import circuitConstructionKitCommon from '../circuitConstructionKitCommon.js';
import CircuitConstructionKitCommonStrings from '../CircuitConstructionKitCommonStrings.js';
import CircuitConstructionKitModel from '../model/CircuitConstructionKitModel.js';
import CircuitElement from '../model/CircuitElement.js';
import SeriesAmmeter from '../model/SeriesAmmeter.js';
import Vertex from '../model/Vertex.js';
import AdvancedAccordionBox from './AdvancedAccordionBox.js';
import AmmeterNode from './AmmeterNode.js';
import CCKCZoomButtonGroup from './CCKCZoomButtonGroup.js';
import ChargeSpeedThrottlingReadoutNode from './ChargeSpeedThrottlingReadoutNode.js';
import CircuitElementEditContainerNode from './CircuitElementEditContainerNode.js';
import CircuitElementNode from './CircuitElementNode.js';
import CircuitElementToolbox, { CircuitElementToolboxOptions } from './CircuitElementToolbox.js';
import CircuitNode from './CircuitNode.js';
import CurrentChartNode from './CurrentChartNode.js';
import DisplayOptionsPanel from './DisplayOptionsPanel.js';
import FixedCircuitElementNode from './FixedCircuitElementNode.js';
import SensorToolbox from './SensorToolbox.js';
import ViewRadioButtonGroup from './ViewRadioButtonGroup.js';
import VoltageChartNode from './VoltageChartNode.js';
Expand Down
6 changes: 1 addition & 5 deletions js/view/CurrentChartNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@
*/

import createObservableArray from '../../../axon/js/createObservableArray.js';
import Property from '../../../axon/js/Property.js';
import Bounds2 from '../../../dot/js/Bounds2.js';
import Vector2 from '../../../dot/js/Vector2.js';
import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js';
import { combineOptions } from '../../../phet-core/js/optionize.js';
import CCKCConstants from '../CCKCConstants.js';
import circuitConstructionKitCommon from '../circuitConstructionKitCommon.js';
import CircuitConstructionKitCommonStrings from '../CircuitConstructionKitCommonStrings.js';
import CCKCChartNode, { CCKCChartNodeOptions } from './CCKCChartNode.js';
import CCKCProbeNode from './CCKCProbeNode.js';
import CircuitNode from './CircuitNode.js';
import Property from '../../../axon/js/Property.js';
import Bounds2 from '../../../dot/js/Bounds2.js';
import CCKCProbeNode from './CCKCProbeNode.js';
import { combineOptions } from '../../../phet-core/js/optionize.js';
import dotRandom from '../../../dot/js/dotRandom.js';
import measuringDeviceNoiseProperty from '../model/measuringDeviceNoiseProperty.js';
import DerivedStringProperty from '../../../axon/js/DerivedStringProperty.js';
Expand Down
3 changes: 0 additions & 3 deletions js/view/SeriesAmmeterNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
*/

import EnumerationProperty from '../../../axon/js/EnumerationProperty.js';
import StringProperty from '../../../axon/js/StringProperty.js';
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js';
import MathSymbols from '../../../scenery-phet/js/MathSymbols.js';
import { Node, Rectangle, RectangleOptions, Text } from '../../../scenery/js/imports.js';
import Panel from '../../../sun/js/Panel.js';
import Tandem from '../../../tandem/js/Tandem.js';
import CCKCConstants from '../CCKCConstants.js';
import CCKCUtils from '../CCKCUtils.js';
Expand All @@ -25,7 +23,6 @@ import CCKCScreenView from './CCKCScreenView.js';
import CircuitNode from './CircuitNode.js';
import FixedCircuitElementNode, { FixedCircuitElementNodeOptions } from './FixedCircuitElementNode.js';
import ProbeTextNode from './ProbeTextNode.js';
import TReadOnlyProperty from '../../../axon/js/TReadOnlyProperty.js';
import Panel from '../../../sun/js/Panel.js';
import StringProperty from '../../../axon/js/StringProperty.js';
import optionize from '../../../phet-core/js/optionize.js';
Expand Down
5 changes: 0 additions & 5 deletions js/view/VoltageChartNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@
*/

import createObservableArray from '../../../axon/js/createObservableArray.js';
import Property from '../../../axon/js/Property.js';
import Bounds2 from '../../../dot/js/Bounds2.js';
import Range from '../../../dot/js/Range.js';
import Vector2 from '../../../dot/js/Vector2.js';
import { combineOptions } from '../../../phet-core/js/optionize.js';
import { Color, Rectangle } from '../../../scenery/js/imports.js';
import Tandem from '../../../tandem/js/Tandem.js';
import CCKCConstants from '../CCKCConstants.js';
import CCKCQueryParameters from '../CCKCQueryParameters.js';
import circuitConstructionKitCommon from '../circuitConstructionKitCommon.js';
import CircuitConstructionKitCommonStrings from '../CircuitConstructionKitCommonStrings.js';
import CCKCChartNode, { CCKCChartNodeOptions } from './CCKCChartNode.js';
import CCKCProbeNode from './CCKCProbeNode.js';
import CircuitNode from './CircuitNode.js';
import Property from '../../../axon/js/Property.js';
import Bounds2 from '../../../dot/js/Bounds2.js';
Expand Down

0 comments on commit 43cfae2

Please sign in to comment.