Search
Preparing search index...
The search index is not available
react-particle-image
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"universe/Universe"
Universe
Class Universe
Hierarchy
Subverse
Universe
Index
Constructors
constructor
Properties
creation
Duration
creation
Rate
creation
Timing
Fn
death
Duration
death
Rate
death
Timing
Fn
frame
Rate
health
on
State
Change
resolve
Death
state
Methods
add
Particle
add
Particle
Force
apply
Decay
apply
Growth
create
Subverse
die
get
Particle
Forces
get
Particles
remove
Particle
remove
Particle
Force
remove
Subverse
set
Creation
Duration
set
Death
Duration
set
Frame
Rate
set
OnState
Change
set
State
tick
Constructors
constructor
new
Universe
(
__namedParameters
?:
{
bounds
:
undefined
|
{
bottom
:
number
;
left
:
number
;
right
:
number
;
top
:
number
}
;
creationDuration
:
number
;
creationTimingFn
:
(
t
:
number
)
=>
number
;
deathDuration
:
number
;
deathTimingFn
:
(
t
:
number
)
=>
number
;
frameRate
:
number
;
onStateChange
:
undefined
|
(
(
state
:
UniverseState
, universe
:
Universe
)
=>
void
)
}
)
:
Universe
Parameters
Default value
__namedParameters:
{
bounds
:
undefined
|
{
bottom
:
number
;
left
:
number
;
right
:
number
;
top
:
number
}
;
creationDuration
:
number
;
creationTimingFn
:
(
t
:
number
)
=>
number
;
deathDuration
:
number
;
deathTimingFn
:
(
t
:
number
)
=>
number
;
frameRate
:
number
;
onStateChange
:
undefined
|
(
(
state
:
UniverseState
, universe
:
Universe
)
=>
void
)
}
= {}
bounds
:
undefined
|
{
bottom
:
number
;
left
:
number
;
right
:
number
;
top
:
number
}
creation
Duration
:
number
creation
Timing
Fn
:
(
t
:
number
)
=>
number
(
t
:
number
)
:
number
Parameters
t:
number
Returns
number
death
Duration
:
number
death
Timing
Fn
:
(
t
:
number
)
=>
number
(
t
:
number
)
:
number
Parameters
t:
number
Returns
number
frame
Rate
:
number
on
State
Change
:
undefined
|
(
(
state
:
UniverseState
, universe
:
Universe
)
=>
void
)
Returns
Universe
Properties
Private
creation
Duration
creation
Duration
:
number
Private
creation
Rate
creation
Rate
:
number
= 1
Private
creation
Timing
Fn
creation
Timing
Fn
:
TimingFunction
Private
death
Duration
death
Duration
:
number
Private
death
Rate
death
Rate
:
number
= 1
Private
death
Timing
Fn
death
Timing
Fn
:
TimingFunction
Private
frame
Rate
frame
Rate
:
number
Private
health
health
:
number
= 0
Private
Optional
on
State
Change
on
State
Change
:
undefined
|
(
(
state
:
UniverseState
, universe
:
Universe
)
=>
void
)
Private
resolve
Death
resolve
Death
:
(
value
?:
any
)
=>
void
Type declaration
(
value
?:
any
)
:
void
Parameters
Optional
value:
any
Returns
void
Private
state
state
:
UniverseState
Methods
add
Particle
add
Particle
(
particle
:
Particle
)
:
void
Parameters
particle:
Particle
Returns
void
add
Particle
Force
add
Particle
Force
(
particleForce
:
ParticleForce
)
:
void
Parameters
particleForce:
ParticleForce
Returns
void
Private
apply
Decay
apply
Decay
(
particle
:
Particle
)
:
void
Parameters
particle:
Particle
Returns
void
Private
apply
Growth
apply
Growth
(
particle
:
Particle
)
:
void
Parameters
particle:
Particle
Returns
void
create
Subverse
create
Subverse
(
)
:
Subverse
Returns
Subverse
die
die
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Particle
Forces
get
Particle
Forces
(
)
:
ParticleForce
[]
Returns
ParticleForce
[]
get
Particles
get
Particles
(
)
:
Particle
[]
Returns
Particle
[]
remove
Particle
remove
Particle
(
particle
:
Particle
)
:
void
Parameters
particle:
Particle
Returns
void
remove
Particle
Force
remove
Particle
Force
(
particleForce
:
ParticleForce
)
:
void
Parameters
particleForce:
ParticleForce
Returns
void
remove
Subverse
remove
Subverse
(
subverse
:
Subverse
)
:
void
Parameters
subverse:
Subverse
Returns
void
set
Creation
Duration
set
Creation
Duration
(
creationDuration
:
number
)
:
void
Parameters
creationDuration:
number
Returns
void
set
Death
Duration
set
Death
Duration
(
deathDuration
:
number
)
:
void
Parameters
deathDuration:
number
Returns
void
set
Frame
Rate
set
Frame
Rate
(
frameRate
:
number
)
:
void
Parameters
frameRate:
number
Returns
void
set
OnState
Change
set
OnState
Change
(
onStateChange
:
Optional
<
(
state
:
UniverseState
, universe
:
Universe
)
=>
void
>
)
:
void
Parameters
onStateChange:
Optional
<
(
state
:
UniverseState
, universe
:
Universe
)
=>
void
>
Returns
void
Private
set
State
set
State
(
val
:
UniverseState
)
:
void
Parameters
val:
UniverseState
Returns
void
tick
tick
(
)
:
void
Returns
void
Globals
"
Particle
Image/
Particle
Image"
"index"
"types"
"universe/
Array2
D"
"universe/
Canvas
Renderer"
"universe/
Particle"
"universe/
Particle
Force"
"universe/
Pixel
Manager"
"universe/
Renderer"
"universe/
Simulator"
"universe/
Subverse"
"universe/
Universe"
"universe/
Vector"
"universe/forces"
"universe/timing"
Universe
State
Universe
constructor
creation
Duration
creation
Rate
creation
Timing
Fn
death
Duration
death
Rate
death
Timing
Fn
frame
Rate
health
on
State
Change
resolve
Death
state
add
Particle
add
Particle
Force
apply
Decay
apply
Growth
create
Subverse
die
get
Particle
Forces
get
Particles
remove
Particle
remove
Particle
Force
remove
Subverse
set
Creation
Duration
set
Death
Duration
set
Frame
Rate
set
OnState
Change
set
State
tick
Universe
Options
Generated using
TypeDoc