Skip to content

Commit

Permalink
Improve type safety and inference for Multilink, see phetsims/axon#395
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed May 14, 2022
1 parent 5b8b1e3 commit 9b24b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/BackgroundNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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
Expand Down

0 comments on commit 9b24b1e

Please sign in to comment.