-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fractions multilink fixes, see phetsims/axon#395
- Loading branch information
1 parent
ace7680
commit 470e7d6
Showing
8 changed files
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import Property from '../../../../axon/js/Property.js'; | ||
import Multilink from '../../../../axon/js/Multilink.js'; | ||
import Vector2 from '../../../../dot/js/Vector2.js'; | ||
import merge from '../../../../phet-core/js/merge.js'; | ||
import { DragListener } from '../../../../scenery/js/imports.js'; | ||
|
@@ -74,7 +74,7 @@ class NumberPieceNode extends Node { | |
} | ||
|
||
// @private {function} | ||
this.visibilityListener = Property.multilink( [ | ||
this.visibilityListener = Multilink.multilink( [ | ||
numberPiece.isUserControlledProperty, | ||
numberPiece.isAnimatingProperty | ||
], ( isUserControlled, isAnimating ) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import Property from '../../../../axon/js/Property.js'; | ||
import Multilink from '../../../../axon/js/Multilink.js'; | ||
import Vector2 from '../../../../dot/js/Vector2.js'; | ||
import { Shape } from '../../../../kite/js/imports.js'; | ||
import merge from '../../../../phet-core/js/merge.js'; | ||
|
@@ -120,7 +120,7 @@ class ShapePieceNode extends Node { | |
} | ||
|
||
// @private {function} | ||
this.visibilityListener = Property.multilink( [ | ||
this.visibilityListener = Multilink.multilink( [ | ||
shapePiece.isUserControlledProperty, | ||
shapePiece.isAnimatingProperty | ||
], ( isUserControlled, isAnimating ) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Jonathan Olson <[email protected]> | ||
*/ | ||
|
||
import Property from '../../../../../axon/js/Property.js'; | ||
import Multilink from '../../../../../axon/js/Multilink.js'; | ||
import { DragListener } from '../../../../../scenery/js/imports.js'; | ||
import fractionsCommon from '../../../fractionsCommon.js'; | ||
import ContainerNode from '../ContainerNode.js'; | ||
|
@@ -21,7 +21,7 @@ class BeakerContainerNode extends ContainerNode { | |
super( container, options ); | ||
|
||
// @private {Multilink} | ||
this.multilink = Property.multilink( [ container.appearsFilledCellCountProperty, container.cells.lengthProperty ], ( numerator, denominator ) => { | ||
this.multilink = Multilink.multilink( [ container.appearsFilledCellCountProperty, container.cells.lengthProperty ], ( numerator, denominator ) => { | ||
// Sanity, if these get modified out of order (very possible) | ||
numerator = Math.min( numerator, denominator ); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters