Skip to content

anim-format (runtime format) / ClipEvent

Class: ClipEvent<V, C> ​

What a listener of an emit action is given. value is whatever the action carries (plain JSON or nothing); frame is counted as that timeline shows it (frameBase, default 1).

Type Parameters ​

Type ParameterDefault type
Vunknown
Cunknown

Constructors ​

Constructor ​

ts
new ClipEvent<V, C>(
   name, 
   target, 
   value, 
   frame, 
   section
): ClipEvent<V, C>;

Parameters ​

ParameterTypeDescription
namestringthe event name the action carries
targetCthe clip that emitted it
valueVthe action's value (undefined = none)
framenumberthe frame it was emitted on, as that timeline shows it
sectionstring | undefinedthe section that frame is in (undefined = none)

Returns ​

ClipEvent<V, C>

Properties ​

PropertyModifierTypeDescription
currentTargetpublicCthe clip the bubbling event is being offered to now
framereadonlynumberthe frame it was emitted on, as that timeline shows it
namereadonlystringthe event name the action carries
sectionreadonlystring | undefinedthe section that frame is in (undefined = none)
targetreadonlyCthe clip that emitted it
valuereadonlyVthe action's value (undefined = none)

Accessors ​

propagationStopped ​

Get Signature ​

ts
get propagationStopped(): boolean;

a listener called stopPropagation()

Returns ​

boolean

Methods ​

stopPropagation() ​

ts
stopPropagation(): void;

no clip further out hears this event

Returns ​

void

HereSplash — 2D animation for the web