particlePresets
@zylem/game-lib / behavior / particlePresets
Variable: particlePresets
constparticlePresets:object
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/particle-emitter.d.ts:23
Behaviors Module Index
Behaviors now live in the standalone, tree-shakable @zylem/behaviors
package (built on @zylem/behaviors/core). This barrel re-exports that public
surface so existing @zylem/game-lib/behavior consumers keep working.
IMPORTANT: do NOT use export * from '@zylem/behaviors' here. Because
@zylem/behaviors is external in game-lib's tsup build, esbuild compiles a
star re-export of an external into a runtime __reExport helper with no
static export names. Downstream bundlers (e.g. the examples/arena Vite
builds) then cannot statically resolve named value imports such as
FractureOptions and fail with "X is not exported by game-lib/dist/behavior.js".
Explicit named re-exports below are preserved statically and keep a single
runtime copy of @zylem/behaviors (no bundling/duplication).
The lists mirror the full public API of @zylem/behaviors (values from its
built dist/index.js export block; types are the remaining dist/index.d.ts
exports). When behaviors are added/removed in @zylem/behaviors, update these
lists to match.
Type Declaration
burst
readonlyburst: (options?) =>ParticleEffectDefinition
Parameters
options?
Returns
electricity
readonlyelectricity:object
electricity.arc
readonlyarc: typeofarc
electricity.pulse
readonlypulse: typeofpulse
electricity.spark
readonlyspark: typeofspark$1
electricity.storm
readonlystorm: typeofstorm
electricity.surge
readonlysurge: typeofsurge
fire
readonlyfire:object
fire.blaze
readonlyblaze: typeofblaze
fire.ember
readonlyember: typeofember
fire.flamelet
readonlyflamelet: typeofflamelet
fire.smolder
readonlysmolder: typeofsmolder
fire.spark
readonlyspark: typeofspark
gas
readonlygas:object
gas.haze
readonlyhaze: typeofhaze
gas.miasma
readonlymiasma: typeofmiasma
gas.plume
readonlyplume: typeofplume
gas.smoke
readonlysmoke: typeofsmoke
gas.vapor
readonlyvapor: typeofvapor
magic
readonlymagic:object
magic.arcane
readonlyarcane: typeofarcane
magic.corrupted
readonlycorrupted: typeofcorrupted
magic.holy
readonlyholy: typeofholy
magic.nature
readonlynature: typeofnature
magic.psychic
readonlypsychic: typeofpsychic
magic.void
readonlyvoid: typeofvoidMagic
smoke
readonlysmoke: (options?) =>ParticleEffectDefinition
Parameters
options?
Returns
water
readonlywater:object
water.drizzle
readonlydrizzle: typeofdrizzle
water.mist
readonlymist: typeofmist
water.splash
readonlysplash: typeofsplash
water.spray
readonlyspray: typeofspray
water.torrent
readonlytorrent: typeoftorrent