Appearance
anim-format (runtime format) / resolveFrameRef
Function: resolveFrameRef()
ts
function resolveFrameRef(
map,
at,
ref,
mode?
): number | null;THE meaning of a frame reference, seen from global frame at:
scene(from asceneaction) = look in that scene, else the oneatis in;sectiongiven: a number counts from its first frame, a label is one of its own, START / END are its ends;- a number past the end = the last frame (of the section / scene);
- no section: a number is a frame of the scene, a label is looked up in the span
atis in first, then (goto only) anywhere in the scene; START / END = the ends of the spanatis in (of the whole scene when a scene action led elsewhere); mode"playTo": the result must lie in the spanatis in — playTo never plays into another section (null). Null = no such frame.
Parameters
| Parameter | Type | Default value |
|---|---|---|
map | FrameMap | undefined |
at | number | undefined |
ref | FrameRef | undefined |
mode? | "playTo" | "goto" | "goto" |
Returns
number | null