Skip to content

Commit

Permalink
Update optionize for SamplingLaunchPanel - see #219
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-blackman committed Mar 5, 2024
1 parent 30ba37d commit c6660c2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/sampling/view/SamplingLaunchPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<PDLPanelOptions, 'tandem'>;
type SamplingLaunchPanelOptions = SelfOptions & PDLLaunchPanelOptions;

export default class SamplingLaunchPanel extends PDLLaunchPanel {

Expand All @@ -35,7 +33,7 @@ export default class SamplingLaunchPanel extends PDLLaunchPanel {

const content: Node[] = [ launcherSection, sampleSizeSection ];

const options = optionize<SamplingLaunchPanelOptions, SelfOptions, PDLPanelOptions>()( {
const options = optionize<SamplingLaunchPanelOptions, SelfOptions, PDLLaunchPanelOptions>()( {
yMargin: 8
}, providedOptions );

Expand Down

0 comments on commit c6660c2

Please sign in to comment.