Skip to content

Commit

Permalink
convert ParticleAtom to typescript, #38
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 12, 2023
1 parent f044fc3 commit 99c4d79
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 135 deletions.
3 changes: 3 additions & 0 deletions js/model/Particle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ class Particle extends PhetioObject {
public readonly zLayerProperty: TProperty<number>;
private readonly disposeParticle: () => void;

// Assigned by other parties as a way to clean up animations.
public particleAtomRemovalListener: null | ( ( userControlled: boolean ) => void ) = null;

public constructor( type: string, providedOptions?: ParticleOptions ) {

const options = optionize<ParticleOptions, SelfOptions, PhetioObjectOptions>()( {
Expand Down
Loading

0 comments on commit 99c4d79

Please sign in to comment.