Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix linting errors for rainfall effect
Browse files Browse the repository at this point in the history
  • Loading branch information
justjosias committed Nov 15, 2021
1 parent 3c2e939 commit 73ff4b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/effects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const CHAT_EFFECTS: Array<Effect<{ [key: string]: any }>> = [
maxCount: 600,
speed: 10,
},
},
} as Effect<RainfallOptions>,
{
emojis: ['❄', '🌨'],
msgType: 'io.element.effect.snowfall',
Expand Down
4 changes: 2 additions & 2 deletions src/effects/rainfall/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/
import ICanvasEffect from '../ICanvasEffect';
import {arrayFastClone } from "../../utils/arrays";
import { arrayFastClone } from "../../utils/arrays";

export type RainfallOptions = {
/**
Expand Down Expand Up @@ -64,7 +64,7 @@ export default class Rainfall implements ICanvasEffect {
this.particles = [];
const count = this.options.maxCount;
while (this.particles.length < count) {
this.particles.push(this.resetParticle({} as Snowflake, canvas.width, canvas.height));
this.particles.push(this.resetParticle({} as Raindrop, canvas.width, canvas.height));
}
this.isRunning = true;
requestAnimationFrame(this.renderLoop);
Expand Down

0 comments on commit 73ff4b4

Please sign in to comment.