From c86757053404534972b0cf9d20d518af5b75e4db Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Tue, 11 Jun 2024 06:53:07 -0600 Subject: [PATCH] change constructor signature, https://github.com/phetsims/gas-properties/issues/255 --- js/diffusion/view/DiffusionScreenView.ts | 2 +- js/diffusion/view/DiffusionSettingsPanel.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/diffusion/view/DiffusionScreenView.ts b/js/diffusion/view/DiffusionScreenView.ts index 0fb1b687..2ab19f6e 100644 --- a/js/diffusion/view/DiffusionScreenView.ts +++ b/js/diffusion/view/DiffusionScreenView.ts @@ -107,9 +107,9 @@ export default class DiffusionScreenView extends BaseScreenView { model.particleSystem.particle1Settings, model.particleSystem.particle2Settings, model.particleSystem.numberOfParticlesProperty, + viewProperties.numberOfParticleTypesProperty, model.container.isDividedProperty, model.modelViewTransform, - viewProperties.numberOfParticleTypesProperty, panelsTandem.createTandem( 'settingsPanel' ) ); // Panel for controlling visibility of 'tools' diff --git a/js/diffusion/view/DiffusionSettingsPanel.ts b/js/diffusion/view/DiffusionSettingsPanel.ts index 3cef7465..4a789b91 100644 --- a/js/diffusion/view/DiffusionSettingsPanel.ts +++ b/js/diffusion/view/DiffusionSettingsPanel.ts @@ -27,17 +27,17 @@ export default class DiffusionSettingsPanel extends Panel { * @param particle1Settings - settings for particle type 1 * @param particle2Settings - settings for particle type 2 * @param numberOfParticlesProperty + * @param numberOfParticleTypesProperty * @param isDividedProperty * @param modelViewTransform - * @param numberOfParticleTypesProperty * @param tandem */ public constructor( particle1Settings: DiffusionSettings, particle2Settings: DiffusionSettings, numberOfParticlesProperty: TReadOnlyProperty, + numberOfParticleTypesProperty: TReadOnlyProperty, isDividedProperty: Property, modelViewTransform: ModelViewTransform2, - numberOfParticleTypesProperty: TReadOnlyProperty, tandem: Tandem ) { const options = combineOptions( {}, GasPropertiesConstants.PANEL_OPTIONS, {