From 4ce97bce83e6ba8978110a7b96ef711f1da74ad8 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Fri, 28 Jan 2022 15:19:03 -0700 Subject: [PATCH] Omit capacitors, inductors and AC sources from DC tandem tree, see https://github.com/phetsims/circuit-construction-kit-common/issues/824 --- js/ac-voltage/ACVoltageScreen.js | 2 +- js/lab/LabScreen.js | 2 +- js/rlc/RLCScreen.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ac-voltage/ACVoltageScreen.js b/js/ac-voltage/ACVoltageScreen.js index 0eff19d..4d442b5 100644 --- a/js/ac-voltage/ACVoltageScreen.js +++ b/js/ac-voltage/ACVoltageScreen.js @@ -40,7 +40,7 @@ class ACVoltageScreen extends Screen { }; super( - () => new CircuitConstructionKitModel( tandem.createTandem( 'model' ) ), + () => new CircuitConstructionKitModel( true, tandem.createTandem( 'model' ) ), model => new ACVoltageScreenView( model, tandem.createTandem( 'view' ) ), options ); diff --git a/js/lab/LabScreen.js b/js/lab/LabScreen.js index 71828e9..08670fc 100644 --- a/js/lab/LabScreen.js +++ b/js/lab/LabScreen.js @@ -46,7 +46,7 @@ class LabScreen extends Screen { }, options ); super( - () => new CircuitConstructionKitModel( tandem.createTandem( 'model' ) ), + () => new CircuitConstructionKitModel( true, tandem.createTandem( 'model' ) ), model => new LabScreenView( model, tandem.createTandem( 'view' ), options.labScreenViewOptions ), options ); diff --git a/js/rlc/RLCScreen.js b/js/rlc/RLCScreen.js index 9839b71..375dfac 100644 --- a/js/rlc/RLCScreen.js +++ b/js/rlc/RLCScreen.js @@ -41,7 +41,7 @@ class RLCScreen extends Screen { }; super( - () => new CircuitConstructionKitModel( tandem.createTandem( 'model' ) ), + () => new CircuitConstructionKitModel( true, tandem.createTandem( 'model' ) ), model => new RLCScreenView( model, tandem.createTandem( 'view' ) ), options );