Skip to content

Commit

Permalink
DynamicProperty => TypeScript + improving DragListener end consistenc…
Browse files Browse the repository at this point in the history
…y with an event. See phetsims/scenery-phet#726
  • Loading branch information
jonathanolson committed Mar 7, 2022
1 parent 542d393 commit 305c93a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions js/common/view/PartialProductLabelNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ import DynamicProperty from '../../../../axon/js/DynamicProperty.js';
import Property from '../../../../axon/js/Property.js';
import Vector2 from '../../../../dot/js/Vector2.js';
import MathSymbols from '../../../../scenery-phet/js/MathSymbols.js';
import { HBox } from '../../../../scenery/js/imports.js';
import { Node } from '../../../../scenery/js/imports.js';
import { Rectangle } from '../../../../scenery/js/imports.js';
import { RichText } from '../../../../scenery/js/imports.js';
import { Text } from '../../../../scenery/js/imports.js';
import { HBox, Node, Rectangle, RichText, Text } from '../../../../scenery/js/imports.js';
import areaModelCommon from '../../areaModelCommon.js';
import AreaModelCommonConstants from '../AreaModelCommonConstants.js';
import PartialProductsChoice from '../model/PartialProductsChoice.js';
Expand Down Expand Up @@ -46,10 +42,10 @@ class PartialProductLabelNode extends Node {
defaultValue: false
} );
const horizontalSizeProperty = new DynamicProperty( partitionedAreaProperty, {
derive: 'partitions.horizontal.sizeProperty'
derive: partitionedArea => partitionedArea.partitions.horizontal.sizeProperty
} );
const verticalSizeProperty = new DynamicProperty( partitionedAreaProperty, {
derive: 'partitions.vertical.sizeProperty'
derive: partitionedArea => partitionedArea.partitions.vertical.sizeProperty
} );

const background = new Rectangle( {
Expand Down

0 comments on commit 305c93a

Please sign in to comment.