From 5d8177286f7155ebed6b43978fec05cd7dda0acd Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Wed, 24 May 2023 08:14:16 -0600 Subject: [PATCH] Prune options in CAVScreen, see https://github.com/phetsims/center-and-variability/issues/214 --- js/common/CAVScreen.ts | 2 +- js/mean-and-median/MeanAndMedianScreen.ts | 7 +++---- js/median/MedianScreen.ts | 7 +++---- js/variability/VariabilityScreen.ts | 7 +++---- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/js/common/CAVScreen.ts b/js/common/CAVScreen.ts index 7d30dec2..82f3017a 100644 --- a/js/common/CAVScreen.ts +++ b/js/common/CAVScreen.ts @@ -17,7 +17,7 @@ import SliderControlsAndBasicActionsKeyboardHelpContent from '../../../scenery-p import CAVModel from './model/CAVModel.js'; type SelfOptions = EmptySelfOptions; -export type CAVScreenOptions = SelfOptions & ScreenOptions & PickRequired; +export type CAVScreenOptions = SelfOptions & PickRequired; export default class CAVScreen extends Screen { diff --git a/js/mean-and-median/MeanAndMedianScreen.ts b/js/mean-and-median/MeanAndMedianScreen.ts index cd163c06..3ab8d10c 100644 --- a/js/mean-and-median/MeanAndMedianScreen.ts +++ b/js/mean-and-median/MeanAndMedianScreen.ts @@ -9,7 +9,6 @@ import { Image } from '../../../scenery/js/imports.js'; import optionize, { EmptySelfOptions } from '../../../phet-core/js/optionize.js'; -import CAVColors from '../common/CAVColors.js'; import centerAndVariability from '../centerAndVariability.js'; import MeanAndMedianModel from './model/MeanAndMedianModel.js'; import CAVScreen, { CAVScreenOptions } from '../common/CAVScreen.js'; @@ -17,9 +16,10 @@ import MeanAndMedianScreenView from './view/MeanAndMedianScreenView.js'; import CenterAndVariabilityStrings from '../CenterAndVariabilityStrings.js'; import ScreenIcon from '../../../joist/js/ScreenIcon.js'; import meanAndMedianScreenIcon_png from '../../images/meanAndMedianScreenIcon_png.js'; +import StrictOmit from '../../../phet-core/js/types/StrictOmit.js'; type SelfOptions = EmptySelfOptions; -type MeanAndMedianScreenOptions = SelfOptions & CAVScreenOptions; +type MeanAndMedianScreenOptions = SelfOptions & StrictOmit; export default class MeanAndMedianScreen extends CAVScreen { @@ -30,8 +30,7 @@ export default class MeanAndMedianScreen extends CAVScreen; export default class MedianScreen extends CAVScreen { @@ -30,8 +30,7 @@ export default class MedianScreen extends CAVScreen; export default class VariabilityScreen extends CAVScreen { @@ -30,8 +30,7 @@ export default class VariabilityScreen extends CAVScreen