Module: index
#
Namespaces#
Classes#
Interfaces#
References#
CircleRe-exports: Circle
#
ColorRe-exports: Color
#
GradientRe-exports: Gradient
#
NumericSplineRe-exports: NumericSpline
#
RectRe-exports: Rect
#
VectorRe-exports: Vector
#
defaultRenames and exports: index
#
utilRe-exports: util
#
Type aliases#
DrivableFactorƬ DrivableFactor: "lifetime"
| "relativeLifetime"
| "size"
Represents the possible factors of drivable values.
#
Defined in#
DrivableKeyƬ DrivableKey: keyof DrivableProperties
Represents the possible, drivable keys of a particle.
#
Defined in#
DrivablePropertiesƬ DrivableProperties: Pick
<Particle
, "color"
| "opacity"
| "rotation"
| "size"
>
Represents the properties of a particle that are drivable through modules.
#
Defined in#
DrivableTypeƬ DrivableType: ValueOf
<DrivableProperties
>
Represents the possible types of drivable keys.
#
Defined in#
ModuleDriverValueƬ ModuleDriverValue<T
>: T
| Spline
<T
> | (factor
: number
, particle?
: Particle
) => T
Represents a value that can be used to drive a particle module.
#
Type parametersName |
---|
T |
#
Defined in#
ModuleFunctionƬ ModuleFunction: (particle
: Particle
) => void
#
Type declarationâ–¸ (particle
): void
Represents a value that can be used to modify the properties of a particle over it's lifetime.
#
ParametersName | Type |
---|---|
particle | Particle |
#
Returnsvoid
#
Defined in#
Variables#
resolvableShapes• Const
resolvableShapes: Record
<string
, string
>
Represents the lookup that maps resolveable element keys to their HTML strings.
remarks
The default shapes are made to fit inside a dimension of 10x10 pixels, except
the 'star' shape, which exceeds it slightly.
#
Defined in#
scene• Const
scene: Lazy
<Scene
>
#
Defined in#
settings• Const
settings: Settings
#
Defined in#
Functions#
confettiâ–¸ confetti(source
, options?
): Emitter
The standard confetti template.
#
ParametersName | Type | Description |
---|---|---|
source | DynamicSourceType | The source to emit the confetti from. |
options? | Partial <ConfettiConfiguration > | The (optional) configuration overrides. |
#
Returns#
Defined in#
forceInitâ–¸ forceInit(): void
Forces the initialization of the otherwise lazy scene.
#
Returnsvoid
#
Defined in#
resolveShapeFactoryâ–¸ resolveShapeFactory(factory
): HTMLElement
Resolves the specified element factory using the resolvable elements, if needed.
#
ParametersName | Type |
---|---|
factory | Variation <string | HTMLElement > |
#
ReturnsHTMLElement
#
Defined in#
sparklesâ–¸ sparkles(source
, options?
): Emitter
The standard sparkles template.
#
ParametersName | Type | Description |
---|---|---|
source | DynamicSourceType | The source to emit the sparkles from. |
options? | Partial <SparkleConfiguration > | The (optional) configuration overrides. |