From c6660c2a11509721b2066f7f381b792b5a26432a Mon Sep 17 00:00:00 2001 From: matthew-blackman Date: Tue, 5 Mar 2024 15:44:40 -0500 Subject: [PATCH] Update optionize for SamplingLaunchPanel - see https://github.com/phetsims/projectile-data-lab/issues/219 --- js/sampling/view/SamplingLaunchPanel.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/sampling/view/SamplingLaunchPanel.ts b/js/sampling/view/SamplingLaunchPanel.ts index 5bfe9cf8..b72bcc66 100644 --- a/js/sampling/view/SamplingLaunchPanel.ts +++ b/js/sampling/view/SamplingLaunchPanel.ts @@ -7,20 +7,18 @@ * @author Sam Reid (PhET Interactive Simulations) */ -import { PDLPanelOptions } from '../../common/view/PDLPanel.js'; import projectileDataLab from '../../projectileDataLab.js'; import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js'; import Property from '../../../../axon/js/Property.js'; import { Node } from '../../../../scenery/js/imports.js'; import SampleSizeSection from './SampleSizeSection.js'; -import { PDLLaunchPanel } from '../../common/view/PDLLaunchPanel.js'; +import { PDLLaunchPanel, PDLLaunchPanelOptions } from '../../common/view/PDLLaunchPanel.js'; import PhetioProperty from '../../../../axon/js/PhetioProperty.js'; import MysteryLauncherSection from '../../common/view/MysteryLauncherSection.js'; -import WithRequired from '../../../../phet-core/js/types/WithRequired.js'; import Launcher from '../../common/model/Launcher.js'; type SelfOptions = EmptySelfOptions; -type SamplingLaunchPanelOptions = SelfOptions & WithRequired; +type SamplingLaunchPanelOptions = SelfOptions & PDLLaunchPanelOptions; export default class SamplingLaunchPanel extends PDLLaunchPanel { @@ -35,7 +33,7 @@ export default class SamplingLaunchPanel extends PDLLaunchPanel { const content: Node[] = [ launcherSection, sampleSizeSection ]; - const options = optionize()( { + const options = optionize()( { yMargin: 8 }, providedOptions );