Skip to content

Commit

Permalink
uninstrument animation Properties, because animations are not stateful,
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 24, 2023
1 parent 2816e54 commit b4a027c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions js/common/view/GraphSetsAnimator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,15 @@ export default class GraphSetsAnimator {
public constructor( tandem: Tandem ) {

this.fadeOutOpacityProperty = new NumberProperty( 1, {
isValidValue: opacity => ( opacity >= 0 && opacity <= 1 ),
tandem: tandem.createTandem( 'fadeOutOpacityProperty' ),
phetioState: true,
phetioDocumentation: 'Opacity used to faded out graphs that are not part of a new set.'
isValidValue: opacity => ( opacity >= 0 && opacity <= 1 )
} );

this.fadeInOpacityProperty = new NumberProperty( 0, {
isValidValue: opacity => ( opacity >= 0 && opacity <= 1 ),
tandem: tandem.createTandem( 'fadeInOpacityProperty' ),
phetioState: true,
phetioDocumentation: 'Opacity used to faded in graphs that are part of a new set.'
isValidValue: opacity => ( opacity >= 0 && opacity <= 1 )
} );

this.percentDistanceProperty = new NumberProperty( 0, {
isValidValue: opacity => ( opacity >= 0 && opacity <= 1 ),
tandem: tandem.createTandem( 'percentDistanceProperty' ),
phetioState: true,
phetioDocumentation: 'Percent distance between start and end position, used to animate the positions of graphs in a set.'
isValidValue: opacity => ( opacity >= 0 && opacity <= 1 )
} );

this.fadeOutAnimation = null;
Expand Down

0 comments on commit b4a027c

Please sign in to comment.