Skip to content

Commit

Permalink
document, override
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Dec 5, 2022
1 parent 07ed4c2 commit 357c719
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/concentration/view/ParticlesNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export default class ParticlesNode extends CanvasNode {
particleGroup.elementDisposedEmitter.addListener( () => this.invalidatePaint() );
}

public paintCanvas( context: CanvasRenderingContext2D ): void {
/**
* Called when this.invalidatePaint is called.
*/
public override paintCanvas( context: CanvasRenderingContext2D ): void {

const particles = this.particleGroup.getArray();
const numberOfParticles = particles.length;
Expand Down

0 comments on commit 357c719

Please sign in to comment.