Skip to main content

particlePresets

@zylem/game-lib


@zylem/game-lib / behavior / particlePresets

Variable: particlePresets

const particlePresets: 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​

readonly burst: (options?) => ParticleEffectDefinition

Parameters​

options?​

BurstParticlePresetOptions

Returns​

ParticleEffectDefinition

electricity​

readonly electricity: object

electricity.arc​

readonly arc: typeof arc

electricity.pulse​

readonly pulse: typeof pulse

electricity.spark​

readonly spark: typeof spark$1

electricity.storm​

readonly storm: typeof storm

electricity.surge​

readonly surge: typeof surge

fire​

readonly fire: object

fire.blaze​

readonly blaze: typeof blaze

fire.ember​

readonly ember: typeof ember

fire.flamelet​

readonly flamelet: typeof flamelet

fire.smolder​

readonly smolder: typeof smolder

fire.spark​

readonly spark: typeof spark

gas​

readonly gas: object

gas.haze​

readonly haze: typeof haze

gas.miasma​

readonly miasma: typeof miasma

gas.plume​

readonly plume: typeof plume

gas.smoke​

readonly smoke: typeof smoke

gas.vapor​

readonly vapor: typeof vapor

magic​

readonly magic: object

magic.arcane​

readonly arcane: typeof arcane

magic.corrupted​

readonly corrupted: typeof corrupted

magic.holy​

readonly holy: typeof holy

magic.nature​

readonly nature: typeof nature

magic.psychic​

readonly psychic: typeof psychic

magic.void​

readonly void: typeof voidMagic

smoke​

readonly smoke: (options?) => ParticleEffectDefinition

Parameters​

options?​

BurstParticlePresetOptions

Returns​

ParticleEffectDefinition

water​

readonly water: object

water.drizzle​

readonly drizzle: typeof drizzle

water.mist​

readonly mist: typeof mist

water.splash​

readonly splash: typeof splash

water.spray​

readonly spray: typeof spray

water.torrent​

readonly torrent: typeof torrent