Skip to content
party.js logoparty.js logo

ReferenceCustom effectsInterface

MeasuredTarget

An effect's origin and the area its particles spawn from.

Where an effect happens and which area its particles spawn from, as returned by measureTarget().

areaEmissionShape

The area particles spawn from, relative to the origin, for emitFrom(): the element’s whole area, or a single point.

originVec2

The effect’s origin, for CreateEffectOptions.origin: the target’s center, in page coordinates, or in the canvas’ coordinates if a canvas was given.