From 9b24b1ed0147e55aa6babfecb44edc085871654b Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Sat, 14 May 2022 12:42:21 -0600 Subject: [PATCH] Improve type safety and inference for Multilink, see https://github.com/phetsims/axon/issues/395 --- js/common/view/BackgroundNode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/common/view/BackgroundNode.ts b/js/common/view/BackgroundNode.ts index b2a4ab9..344bfd4 100644 --- a/js/common/view/BackgroundNode.ts +++ b/js/common/view/BackgroundNode.ts @@ -9,7 +9,7 @@ */ import centerAndVariability from '../../centerAndVariability.js'; -import { Color, LinearGradient, Rectangle } from '../../../../scenery/js/imports.js'; +import { LinearGradient, Rectangle } from '../../../../scenery/js/imports.js'; import Property from '../../../../axon/js/Property.js'; import Bounds2 from '../../../../dot/js/Bounds2.js'; import CAVColors from '../CAVColors.js'; @@ -24,7 +24,7 @@ class BackgroundNode extends Rectangle { CAVColors.skyGradientBottomColorProperty, CAVColors.groundColorProperty, visibleBoundsProperty - ], ( skyGradientTopColor: Color, skyGradientMiddleColor: Color, skyGradientBottomColor: Color, groundColor: Color, visibleBounds: Bounds2 ) => { + ], ( skyGradientTopColor, skyGradientMiddleColor, skyGradientBottomColor, groundColor, visibleBounds ) => { const gradient = new LinearGradient( visibleBounds.centerX, visibleBounds.top, visibleBounds.centerX, bottomY ); // sky gradient, sampled from a screenshot