Skip to content

Commit

Permalink
Move multilink and related methods to Multilink, see phetsims/axon#395
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed May 23, 2022
1 parent 9b24b1e commit 96b9813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/common/view/BackgroundNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ 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';
import Multilink from '../../../../axon/js/Multilink.js';

class BackgroundNode extends Rectangle {
constructor( bottomY: number, visibleBoundsProperty: Property<Bounds2> ) {
super( visibleBoundsProperty.value.centerX, visibleBoundsProperty.value.top, visibleBoundsProperty.value.centerX, bottomY );

Property.multilink( [
Multilink.multilink( [
CAVColors.skyGradientTopColorProperty,
CAVColors.skyGradientMiddleColorProperty,
CAVColors.skyGradientBottomColorProperty,
Expand Down

0 comments on commit 96b9813

Please sign in to comment.