You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
comments added
This commit is contained in:
committed by
Travis Ralston
parent
b24a98c6d2
commit
4a73402b21
@@ -19,23 +19,38 @@ import ICanvasEffect from '../ICanvasEffect';
|
||||
|
||||
export type FireworksOptions = {
|
||||
/**
|
||||
* the maximum number of the fireworks
|
||||
* max fireworks count
|
||||
*/
|
||||
maxCount: number,
|
||||
/**
|
||||
* the alpha opacity of the fireworks (between 0 and 1, where 1 is opaque and 0 is invisible)
|
||||
* gravity value that firework adds to shift from it's start position
|
||||
*/
|
||||
gravity: number,
|
||||
probability: number,
|
||||
}
|
||||
|
||||
type FireworksParticle = {
|
||||
/**
|
||||
* color
|
||||
*/
|
||||
color: string,
|
||||
/**
|
||||
* x,y are the point where the particle starts to position on canvas
|
||||
*/
|
||||
x: number,
|
||||
y: number,
|
||||
/**
|
||||
* vx,vy shift values from x and y
|
||||
*/
|
||||
vx: number,
|
||||
vy: number,
|
||||
/**
|
||||
* the alpha opacity of the firework particle (between 0 and 1, where 1 is opaque and 0 is invisible)
|
||||
*/
|
||||
alpha: number,
|
||||
/**
|
||||
* w,h width and height
|
||||
*/
|
||||
w: number,
|
||||
h: number
|
||||
}
|
||||
|
||||
@@ -66,7 +66,13 @@ type ConfettiOptions = {
|
||||
gradient: boolean,
|
||||
};
|
||||
type FireworksOptions = {
|
||||
/**
|
||||
* max fireworks count
|
||||
*/
|
||||
maxCount: number,
|
||||
/**
|
||||
* gravity value that firework adds to shift from it's start position
|
||||
*/
|
||||
gravity: number,
|
||||
probability: number,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user