From 413e1c85389a8e65003128d4ea1928b4cbfdab8d Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Tue, 7 May 2024 09:39:47 -0600 Subject: [PATCH] Omit unusable option, see https://github.com/phetsims/density-buoyancy-common/issues/123 --- js/buoyancy/model/ApplicationsMass.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/buoyancy/model/ApplicationsMass.ts b/js/buoyancy/model/ApplicationsMass.ts index 677c54bf..81efcfc4 100644 --- a/js/buoyancy/model/ApplicationsMass.ts +++ b/js/buoyancy/model/ApplicationsMass.ts @@ -15,8 +15,9 @@ import Ray3 from '../../../../dot/js/Ray3.js'; import Vector2 from '../../../../dot/js/Vector2.js'; import Vector3 from '../../../../dot/js/Vector3.js'; import Bounds3 from '../../../../dot/js/Bounds3.js'; +import StrictOmit from '../../../../phet-core/js/types/StrictOmit.js'; -export type ApplicationsMassOptions = InstrumentedMassOptions; +export type ApplicationsMassOptions = StrictOmit; export default abstract class ApplicationsMass extends Mass { @@ -29,8 +30,6 @@ export default abstract class ApplicationsMass extends Mass { protected constructor( engine: PhysicsEngine, displacementVolumeProperty: NumberProperty, options: ApplicationsMassOptions ) { - assert && assert( !options.canRotate ); - super( engine, options ); this.displacementVolumeProperty = displacementVolumeProperty;