Skip to content

anim-format (runtime format) / sectionRange

Function: sectionRange() ​

ts
function sectionRange(
   map, 
   at, 
   section, 
   phase?
): 
  | {
  first: number;
  last: number;
}
  | null;

The frames a section (or one of its PHASES) covers — pixi-mc MCActor's action / phase, for timeline.showSection / Actor (owner 2026-11-06). section = a named section (the scene at is in first, then any scene); null = the span at is in. phase = a label inside it: from that label to the frame before the next label of the span (or its end). last is inclusive. Null = no such section / label.

Parameters ​

ParameterType
mapFrameMap
atnumber
sectionstring | null
phase?string | null

Returns ​

| { first: number; last: number; } | null

HereSplash — 2D animation for the web