Skip to content

anim-format (runtime format) ​

Classes ​

ClassDescription
ClipClocka timeline a chain can drive
ClipEventWhat 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).
ClockRoundwhat clocks driven together share: one action round at a time (LoopGuard) and the nesting depth of action lists
LoopGuardThe same-frame loop guard (owner 2026-11-05, changed 2026-11-14): within one ROUND (one cascade of actions started by a frame, a click or a script call), a gotoNow back to a frame the clip already visited in that round would loop for ever — THAT jump is void (nothing moves, the clip plays on), with a console warning. gotoAfter never loops here: it waits a frame time, so it is a round of its own.

Interfaces ​

InterfaceDescription
AnimAnchorAnimLayer.an (main timeline only): absent = moves with the stage
AnimBindA BIND: property c of the object of object layer l follows formula e (value in it = what the timeline says). Channels: "x" "y" "rotation" (degrees) "scaleX" "scaleY" "skew" (degrees) "alpha" (0..1) "visible" "text" "progress" (0..1 of the symbol shown) "in.<input id>"; the layer's own: "layer.alpha" "layer.visible", "layer.stroke.<i>.<trimStart | trimEnd | trimOffset | dashOffset>" (the lines of item i's vector art).
AnimBonea bone: the editor's Bone (rest pose, length, inherit, limit) + its name
AnimCameraA scene's camera (AnimSymbol.scenes[i].camera, main timeline only): the frame size and its pose over every frame of the scene.
AnimCycleone looped object of a layer (AnimLayer.cy)
AnimDataFilea font or data file shipped with the animation
AnimExportwhat an export id names: a symbol key, or an asset id (sound / font / data)
AnimExternalA symbol in its own JSON file (AnimFile.externals).
AnimFile-
AnimFilterOne instance filter: t = kind ("dropShadow", "blur", "glow", "bevel", "outline", "adjustColor", "bloom", "motionBlur", "pixelate", "rgbSplit", "noise", "innerShadow", "gradientOverlay", "gradientGlow", "gradientBevel", "zoomBlur", "spinBlur"), p = its parameters (numbers, "RRGGBB" colours, switches, gradient strings, choices) as the editor's filter catalogue defines them. Players skip unknown kinds. Blend mode strings (b, blend) are pixi's names plus Flash's group modes "invert" / "layer" / "alpha" / "erase" (pixi-hm05 setBlend).
AnimFolderAn editor folder with a look (owner 2026-10-25): its layers are drawn as one group — alpha / visibility / blend / filters / matrix over all of them (not per layer). Additive in v1.
AnimFollowKeyone AnimLayer.fk switch
AnimGradientA gradient: colour offsets along unit space, m = unit → shape space (linear: x from 0 to 1; radial: the unit circle)
AnimIkan IK constraint: the editor's BoneConstraint
AnimInputAn Input: a free value code sets (clip.inputs.<n>), a bind of the enclosing timeline gives, or an instance's iv holds (by name).
AnimLayer-
AnimMarkerone marker on a marker layer key
AnimMarkerAtone marker of a symbol at a frame
AnimMarkerField-
AnimMarkerLayera marker layer: its keys as runs of symbol-global frames
AnimMarkerTypea marker type (owner 2026-11-14) — the editor's MarkerType as data
AnimMediaOne media file of AnimFile.media.
AnimMeshA mesh in the runtime file (AnimFile.meshes): rest points in the item's local space and the triangles over them.
AnimMotionBlurMotion blur (owner 2026-10-30, motionBlur.ts): the item / layer blurs along its own path over the exposure (the time since the screen last drew with smoothing, else one frame) × s / 360. Additive in v1.
AnimObjectAnimLayer.obj: an object layer's one object
AnimPerspA perspective the 3D inside a scene / symbol uses (AnimSymbol.persp, scene entries' persp): field of view in degrees + the vanishing point in that timeline's own space.
AnimR3A card's 3D pose in the runtime format (ItemLook.r3).
AnimRig-
AnimRootMotion-
AnimScriptRefA script (Behaviour) bound to a symbol, a scene or an instance: the script file's id (AnimFile.scripts) and the values of its fields. Additive in v1.
AnimSectionA named stretch of a scene's frames (sections.ts).
AnimSkina mesh item following bones (AnimWarp.sk): the rig, the bones (the columns of w) and one row of weights per mesh point
AnimSlotEntryOne item of a slot profile as seen (AnimFile.slots[profile][fullName], owner 2026-11-20). An item tagged sl that a run-time rule dresses is drawn as it with its own look, its matrix switched by @utils/pure/slotSwitch slotSwitchMatrix (ps / pv of the two entries).
AnimSlotRefItemLook.sl: profile name + the item's full name
AnimSlotRuleone rule: items showing slot entries show the entry of the same full name of profile instead
AnimSoundA sound of the export (an audio file next to the JSON).
AnimSoundClipA sound on a symbol's timeline (from the editor's sound layers).
AnimSymbol-
AnimText-
AnimTextAnimone AnimLayer.tx preset over a frame range
AnimTextRun-
AnimTextRunStylethe styles of a run that differ from the text's base font
AnimValues-
AnimVectorVector art (owner 2026-10-30): a sprite whose SpriteDef.vector names one of these is drawn by the player as paths instead of an atlas picture — sharp at any scale. Shapes in drawing order, in the sprite's local space (the item matrix places it like a picture).
AnimVectorShape-
AnimVideoa video file shipped next to the JSON
AnimWarpa warp on a sprite item: the mesh (key of AnimFile.meshes) and how far each point moved (absent = not moved)
AtlasPage-
BlurPosea local pose: matrix in the parent's space + the 3D turn, if any
CameraPoseWhere the camera is: x, y = centre of the frame in stage (world) units, rotation in radians, scale > 1 zooms in, width / height = the frame in pixels.
CameraRunA run of frames with one camera pose (global frames of the symbol); t = its LAST frame tweens on into the next one (強制平滑 / fractional playheads draw the in-between, smoothPair).
CardPoseEverything needed to place one card, in the card's PARENT space: space = parent → the space its projection is defined in (affine, identity when the projection is the parent's own).
ChainClipa timeline a chain can drive
ChainOps-
ClipClockHostwhat a clock needs from the clip it drives
ClipClockOptionswhere the export clock's rules differ from the player's (all off = the player)
ClockFrameRefa frame reference of a goto / playTo / repeat (anim-format resolveFrameRef)
ClockSceneone scene of the timeline: its name and global frames
EmitClipa clip an emit can bubble through
FlatSprite-
FpsRampA frames-per-second value that may be moving linearly to another one.
FrameMapTHE frame map: a timeline's scenes, sections and labels as plain data, global frames (all scenes in a row). The editor builds it (document section.ts frameMapOf), the runtime builds it from an exported symbol (anim-format frameMapOfSymbol); anim-format's frame resolver (resolveFrameRef, spanAt, sectionRange) and THE state machine (states.ts stateBeat) read it. Type only.
FrameRefwhat a goto / playTo / repeat names
FrameSpana span: a named section, or frames of a scene outside any
ItemLookthe look every item may carry (sprites too: bitmaps and text)
LayerFxRunOne frame range of a layer's look.
LazyNeedsThe on-demand ("lazy") media of some runs.
MarkerBounds-
MarkerDataOne marker as data — an export script's MarkerInfo fits as it is.
MarkerDataGeometrya marker's geometry as the editor stores it (see MarkerGeometry in the editor's document model): point / data: x, y; arrow: x, y (tail), angle (degrees, clockwise), length; hline / vline: x, y, length (signed); rect / ellipse: x, y (top-left), w, h; circle: x, y (centre), r; parabola: x, y (start), vx, vy (per frame); polygon: x, y + points (corners [x0, y0, x1, y1, …] relative to x, y) + cx / cy (its own centre relative to x, y, optional)
MarkerHitOptions-
MarkerHitResult-
MarkerParabolaa parabola type's physics (absent = gravity 1, whole frames, until it is back at the start height)
MarkerPlacementWhere a marker is: its owner object's transform (about the owner's origin), applied after the data's own matrix.
MarkerPoint-
MediaTimelineOrderWhen (main-timeline frame, earliest) each media file is first needed.
ParticleColorStop"r,g,b" as 0xRRGGBB; t = 0..1 of the particle's life
ParticleConfig-
ParticleFrameone evaluated frame, struct-of-arrays, reused between calls
ParticleNumberStop-
PartNodeone node of the part tree
PartPlanwhat a part driver draws: this symbol's parts → the source's
PartSelectionthe parts a spec picked, by where they are in the symbol
PlacedMarkera marker with its placement
ProjectionA perspective resolved in some space: vanishing point + focal length.
RigPoseInputwhat a pose is worked out from
RigSourcewhere a driven bone / constraint reads its keys (RigPoseInput.from)
Run-
SlotEntryNameSlot names (owner 2026-11-10, slot profiles 2026-11-20): THE rules of dress-up by name, pure string rules shared by the editor (document slotRules.ts), the exports and the player.
SlotHit-
SlotRuleSpec-
SoundOptionsHow one play of a sound sounds. Every field is optional.
SoundPartthe part of an audio file a sound plays (AnimSound.part)
SpriteDef-
SpriteItemthe look every item may carry (sprites too: bitmaps and text)
StageFitHow a fixed stage sits in a screen: k = screen pixels per stage unit, view = the part of the stage's coordinate space the screen shows (the authored stage is 0, 0 … width, height inside it, maybe bigger or smaller).
StageRect-
StateConditionOne condition of a transition: Input input (a row id of the timeline's Values) compared with value; no op = the Input is ON (a fired trigger, a switch that is on, a number that is not 0, text that is not empty).
StateMovewhat a beat does: go to frame (global) and play; transition = the arrow taken (null = the state looping back to its own first frame)
StateTransitionOne arrow of a state machine: from section from (absent = ANY STATE) to section to, taken at a beat when every condition of when holds and, with end, the section has played to its last frame (exit time). The same shape in the .hm5 (Layer.transitions of the section layer) and the runtime JSON (scenes[i].transitions).
StoredVectorAnimVector as stored in AnimFile.vectors
SymbolItemthe look every item may carry (sprites too: bitmaps and text)
SymbolMarkersQuery-
SymbolNeedsWhat a symbol needs drawn, nested symbols included: atlas pages (by index), external symbol keys, text keys.
TargetNodeSomething a target path walks: a clip with a parent and child clips.
TextAnimCharone drawn character of a text, in reading order
TextAnimCountsletter / word / line number of each character (-1 = white space) and how many there are of each
TextAnimDef-
TextAnimSpeca preset over a frame range — what the editor and the player hand in
TextItemLive text (owner 2026-10-26): drawn by the player from AnimFile.texts[text]; scripts can change it. Additive in v1.
TextUnitStatewhat the animation does to one letter / word / line, about its centre
ValuesHostWhat a player supplies for one evaluation of a timeline.
ValuesPlan-
ValuesResult-
VerticalPieceVertical (CJK) text layout, writingMode: "vertical" — CSS vertical-rl with text-orientation: mixed: characters run top to bottom, columns right to left from the box's right edge; CJK characters stand upright (punctuation as its vertical presentation form), other runs (Latin words, digits) are turned 90° clockwise. Pure: the caller measures text widths. Shared by the editor's renderer, its SVG export and pixi-hm05.
VideoItemA video object on a run. Additive in v1.

Type Aliases ​

Type AliasDescription
AnchorXwhere a layer holds on across: an edge, the centre, or both edges (stretch)
AnchorYwhere a layer holds on down: an edge, the middle, or both edges (stretch)
AnimBoneRefa layer following a bone as one piece: [index in AnimSymbol.rigs, bone id]
AnimCellA named value that is not an Input: a Ref (r: [layer index, channel] — the reading of one property of that layer's object) or a Formula (e).
AnimExprA formula's syntax tree (@utils/pure/expr Node without its source positions): rows are named by id, objects (@object.channel) by the index of their layer in AnimSymbol.layers. Players need no parser.
AnimPluginDataplugin name → that plugin's own data (any JSON): hm05 and its players only carry it — game engine plugins / scripts read it (e.g. box2d → a body's weight). On AnimSymbol and on a symbol item.
AnimPreserve3dHow a symbol treats the 3D inside it (AnimSymbol.p3, plan R9 — CSS preserve-3d): "sort" = its cards share the enclosing 3D space (its own turn composes with theirs, one projection) AND are drawn far to near; "keep" = the same space, layer order kept. Absent = flattened (Flash: the symbol is drawn flat, then turned as one card).
AnimSlotContentWhat an item is without its place and look (no m, a, c, f, b, v, r3, mb, id, iv, plugins, sl; a mesh's w has no pulls d) — what a slot entry draws.
CameraPoseArray[x, y, rotation (radians), scale]
ChainStepwhat a step did: null = nothing to watch; token = moves right after its own move; block = a playTo / wait now holds the chain
EmitterPoseAtthe emitter's matrix at an earlier emitter time (world space)
FormatVersionTHE file-format version rule (owner 2026-11-19), used by the source format (.hm5, document serialize/migrate.ts) and the published runtime format (anim-format) — two independent numbers of the same shape.
HitShapea marker resolved to the space it is compared in (markerHitShape)
Item-
MarkerDataShape-
MarkerMatrixan affine matrix [a, b, c, d, tx, ty]: x' = a·x + c·y + tx, y' = b·x + d·y + ty
Matrix[a, b, c, d, tx, ty] — x' = ax + cy + tx, y' = bx + dy + ty
Matrix2DFlash-style 3D rotation (owner 2026-10-30, plan docs/plans/2026-10-28-3d-rotation-plan.html): THE one evaluation the editor, the exporter and the player share. Not a 3D scene — every object is a flat card turned about its own X / Y axes, pushed along Z and drawn through a perspective projection; stacking order stays the layer / depth order (nothing passes through anything).
MediaLevelWhen a media file loads (owner 2026-10-30): "first" = before the animation starts; "auto" = in the background after it started, in order; "lazy" = only when the timeline / a script needs it.
ParticleBuiltinTexturebuilt-in textures (one small atlas made at run time, pixi-hm05)
ParticleMatrixemitter → parent: [a, b, c, d, tx, ty] (pixi order)
ParticlePresetIdThe built-in emitter presets of the particles plan (fire, smoke, rain, snow, sparks, sparkle, bubbles, magic dust, explosion, confetti, dust). Sizes are for a 550 × 400 stage; seed 1 (a new emitter gets its own).
ParticleShapeKind-
PartSpecpart names: one entry or several (see the file comment)
PlaybackActionPlayback actions (editor: playback layers + instance triggers). A target step's path is dotted, from the running clip — _parent, _root, _children[n] (n-th child clip, bottom → top), this, or a child's object name / instance id (AnimLayer.obj.n / SymbolItem.id); absent = that clip. Frame numbers are 0-based numeric strings (frames of the scene, or of section), labels or SECTION_START / SECTION_END. A list is a CHAIN (runChain): a playTo / wait holds the rest until it is done. Players skip unknown types.
PlaybackTriggerpointer triggers, or a key by KeyboardEvent.code ("key:Space")
PlaybackTriggers-
Scale99-slice cut lines in local units: [left, top, right, bottom]
SoundEffectCanned volume / pan envelopes (the editor's SoundEffect).
SoundGroupWhich volume / mute / pause group a sound belongs to (owner 2026-11-06, from pixi-mc's BGM / SE): "effects" (sound effects, the default) or "music" (background music: ONE at a time — a new music sound stops the one playing, the same sound already playing as music keeps playing).
StateInputsan Input's value now, by row id (undefined = no such Input)
StateOphow a condition compares an Input with its value
StoredRinga ring as stored: numbers, or a packed "w:…" string
StoredVectorShapeAnimVectorShape as stored in the JSON (rings may be packed)
TargetStepOne step of a playback target path.
TextAnimBy-
TextAnimKindthe presets (also the canned-motion kinds of @hm05/hm5-types)
TextAnimParamDefone parameter of a preset — the structural twin of document's CannedParamDef (the Properties panel draws both the same way)
TextAnimParams-
TextStyle-

Variables ​

VariableDescription
ANCHOR_XS-
ANCHOR_YS-
ANIM_FORMAT-
ANIM_FORMAT_VERSIONThe RUNTIME (published) format version — rule in @utils/pure/formatVersion; independent of the source format's HM5_FORMAT_VERSION. The patch is raised by pnpm format-version; pnpm format-version --minor runtime when players of the previous minor can no longer play the file.
ARC_STEPScorners a circle / ellipse becomes
DEFAULT_FOVFlash's default field of view
DEFAULT_TEXT_LINE_HEIGHTthe editor's default line height (@hm05/document DEFAULT_LINE_HEIGHT)
IDENTITY-
IDENTITY34-
LAZY_PRELOAD_SECONDSseconds ahead of the playhead that "lazy" media is fetched (owner 2026-11-08: on-demand art is preloaded shortly before the timeline reaches it)
MEDIA_LEVELSthe load levels, earliest first
MESH_SOFT_MAXhighest softness (subdivision level) of a mesh object
PARTICLE_PRESETS-
SECTION_END-
SECTION_STARTthe first / last frame of the span a reference lands in
TEXT_ANIM_PRESETS-

Functions ​

FunctionDescription
advancePlayheadwhere one beat moves the playhead (dir 1 forward, -1 backward)
anchorMatrixTHE anchor matrix: authored stage space → shown stage space for a layer with anchor an, the authored stage stage and the visible view (stageFit().view). Left / top keep the distance to that edge, right / bottom to the far edge, centre / middle to the view's centre; stretch maps the authored edges onto the view's (scales that axis). The view equal to the stage = identity.
animCameraPoseAtThe baked camera at frame (global), t of the way toward to (a neighbouring frame; only when the run tweens on into it). Null = the camera has no run there.
animMarkerDataa runtime marker as hit-test data (its type's shape and physics)
apply34applies a 3×4 map to a point
applyHomographyapplies a homography; null when the point maps to infinity / behind
bakeCameraRunsBakes poses frame by frame into runs (equal neighbours merged; t when the pose half a frame on differs — the exporter's writer). poseAt = the editor's evaluation at a (fractional) scene frame.
barycentricbarycentric weights of (x, y) in triangle (a, b, c) of pts; null when the triangle is degenerate
bindValuewhat a channel takes, from what its formula gave (undefined = the wrong kind: left as the timeline says)
blurOffsetshow far back (frames; negative = ahead) each picture is taken, first = now for a trailing blur; empty = no blur (shutter 0, no exposure)
boundsOverlapdo two boxes overlap (touching within tol counts)?
bubbleClipEventFires name on clip (stored frame frame of symbol), then on every clip holding it, until one stops the event. A destroyed clip emits nothing; a destroyed clip on the way up is skipped (the walk goes on above it). fire hands the event to one clip's listeners.
cameraCornersthe four world corners of the camera frame (top-left first, clockwise)
cameraFrameMatrixcamera-frame pixels → world: where a layer pinned to the camera (AnimLayer.pin, the editor's cameraSpace) is drawn
cameraViewMatrixworld → camera-frame pixels (frame top-left = 0, 0) at pixelScale.
cameraViewSizeThe view a timeline is framed in (the published page's size): its first scene's camera frame, else the stage (the video export's rule). Null = no stage (a symbol export without a camera).
cardHomographyA card's homography in parent space (flat parent position → projected parent position) from 4 points around its turning point, size apart. Plane → plane perspective maps are exactly homographies, so 4 points fix it everywhere. Also tells whether the viewer sees the back.
cardInFrontthe 4 points a card is checked at: size around its turning point (all must be in front of the eye to draw it)
cardMatrixA card's pose as a 3D map: its LOCAL (x, y, z) → its parent's 3D space (the same placement cardProjector draws).
cardProjectorMaps local points of a card to its projected position in PARENT space. Returns [x, y, w]: w ≤ 0 = behind the eye (not drawable).
cardRotationThe 3×3 linear part that turns parent-space offsets from the card's turning point: Rz(θ) · Ry · Rx · Rz(−θ), θ = the 2D matrix's rotation (so X / Y are the card's own axes). Row-major [9].
casedTextTHE letter-case rule of textTransform (CSS text-transform): the text with its content and runs as drawn. "capitalize" upper-cases the first letter of each word (after the start or white space, across runs) and leaves the rest as typed, like CSS. Same object back when there is nothing to change.
chainTargetsTHE target rule: the paths each action of actions acts on ([] for the target steps themselves; [""] = the running clip)
cleanPositiona position with float drift removed (whole numbers stay whole)
colorAtLife-
compareSlotNamesnatural order by parts: numbers by value, the rest by code units
concatColorcolour transform outer applied after inner
conditionHoldsTHE meaning of one condition
controlsPlayheadActions that move a clip's playhead or set its own speed — aimed at a synced (driven) clip they take it over (its own clock from then on). THE rule for the player (pixi-hm05) and the export clock (exporter). Side-effect actions (sounds, setVisible, setInput, call, emit, canned, openUrl, target steps) are false: they never take a clip over.
cosSincos / sin of degrees — exact for multiples of 90° (no Math.cos rounding: deterministic everywhere); other angles use Math.cos / sin
createParticleFrame-
cycledItemsa layer's items on frame once the clip has run played frames before this pass: each looped object shows its own round's frame
depthOfdepth of a local point (projection space z: bigger = further)
det3determinant of a 3×3 (row-major)
dressItemitem as drawn under rules: the same item when it shows no slot entry or no rule dresses it. A dressed item is the other entry's content with this item's look (alpha, colour, filters, blend, visible, 3D, motion blur, id, instance variables) and place (slotSwitchMatrix). A mesh keeps its pulls when the other mesh has as many points (else they are dropped, as in the editor). sameKind (an object layer: ONE object all along) only switches a picture to a picture.
dressSymbolsymbol as drawn under rules (weakest first): the same symbol when nothing of its own runs is dressed, else a copy whose runs (and loop rounds) hold the dressed items — layers, frames and everything else are shared, so a player can swap one for the other in place. Only the symbol's OWN items: the clips inside it are dressed by their player (same rules + their own). Cached per symbol and rule list.
drivenRunThe run a driven layer li of target draws while the driver shows source frame srcFrame: the source layer's objects there (shared: this layer's own objects in their motion, sharedItems) as a one-frame run on frame frame of the target's timeline — frame - f + o = the source's elapsed frames in its keyframe, so nested symbols play on. Null = the source layer shows nothing there.
earlierLevelthe earlier of two levels
evalGlobalsGlobals: Inputs + Formulas only, no objects
evaluateParticlesEvery particle alive at emitter time t (seconds; fractions for force smooth sub-frames). Local space = positions in the emitter's own space; world space = in its parent's, using poseAt(birth time) for where the emitter was when each particle left it (default: the identity, i.e. the emitter never moved).
evalValuesTHE evaluation of a timeline's values and binds (memory is kept by the caller between frames).
facing0..1 how much a card faces the viewer (1 = square on, 0 = edge-on): its plane's normal against the view axis
fieldOfViewthe field of view whose focal length across width is focal
filterAtTimef at seconds of its timeline (itself when it does not move)
filtersAtTimeevery filter of the list at seconds (the list itself when none moves)
findSoundByNameTHE rule for finding a sound by the name a script / Playback action gives (editor, player and video export all call it): the Library name exactly ("tone.wav"), else the name without its extension ("tone"). Returns the id of the first match, or null.
flat3a 2D affine as a 3D one; depth scales with the matrix's mean scale (a symbol scaled ×2 keeps its cubes cubes)
flattenFrameEverything a symbol shows at a frame, flattened to sprites with their full matrices — the reference semantics for every runtime, and what the export round-trip tests compare against the editor.
focalLengthfocal length (px from the eye to the z = 0 plane) of a field of view across width (the stage width, Flash)
followKeyAtTHE follow switch in force at frame (AnimLayer.fk): the last one starting at or before it; null = before the first (or none) — then the layer's own parent / bone hold
formatCompatHow a file of version file relates to a reader built for reader: - "same" same major.minor (any patch) — read it as is - "older" the file is from an earlier major.minor — upgrade it - "newer" the file is from a later major.minor — the reader is too old - "invalid" file is not a version
formatSeries"major.minor" — the part that decides whether two files are the same shape
frameMapOfSymbolthe frame map of an exported symbol (cached per symbol object)
framingPoseWhat a camera-framed view shows (THE rule for the editor's exports and the player): pose = the scene's camera (null = a scene without one), drawn into a view frame (the first scene's camera frame, else the stage). A camera keeps its centre / turn / zoom and is stretched to nothing: its pixels are the view's. A scene without a camera = a camera of the view's size on the stage centre, not zoomed.
fxAtTimea layer / folder look at time from the real frame frame (like itemAtTime); a missing run = plain; null = not continuous
gradientSpreadRatioAn offset after the gradient's spread, in 0..1. Radial gradients have no "repeat" (it reads as pad).
gradientUnitRatioThe colour offset at a point of unit gradient space, before spread (the editor's gradientRatioUnit, same maths).
gridTrianglestriangles of a cols × rows grid of (cols + 1) × (rows + 1) points laid out row by row
hasCameraa symbol whose timeline is framed by a camera (a main timeline with a camera in one of its scenes)
hasStageAnchorsthe file's main timeline has stage anchors: its page fills the window (no letterbox clipping) and tells the clip the view on every resize
hasStateMachinedoes the timeline have a state machine at all
hitTestMarkerDataDo two markers touch, and where? Each is marker data (taken as it is, after its own matrix), a placed marker { marker, x, y, scale, … }, or a shape from markerHitShape. point = the centre of the overlap, in the compared space; data tags never hit.
hitTestShapesDo two resolved shapes touch, and where (AABBs first)?
homographyThe homography (row-major 3×3, h[8] = 1) taking the 4 points src ([x0,y0, …, x3,y3]) to dst; null when degenerate.
identityUnitState-
ignoresTargetactions that act on the running clip whatever the target steps say (sounds, a repeat of this list, global speed, opening a page)
innerPlayheadTHE inner-frame rule shared with the editor (engine instanceFrame): steps (maybe fractional) frames on from first, looping or held at the end, maybe reversed. first may be fractional (a pinned position — loop: "single" with a fractional ff, a time-remapped instance): the frame shown is then its position rounded half up.
inputDefault-
inputOuta value as code reads it from clip.inputs (a colour = "#rrggbb" / "#rrggbbaa")
inputValuean Input's saved / given value as the language sees it (a colour "rrggbbaa" / "#rrggbb" → a colour)
invert2dthe inverse; a degenerate matrix (determinant exactly 0) → identity (the runtime's rule — document mat2d.invert throws instead)
invert3-
isAnchora valid anchor value
isFlattrue when the pose turns or moves in depth at all
isSpriteItema sprite (an atlas / vector picture): not a symbol, text or video
isSymbolItem-
isTextAnimKind-
isTextItem-
isTimedFilterthe filter moves by itself (its kind has a speed and it is not 0)
isUprighttrue = the character stands upright in vertical text
isVideoItem-
itemAtTimeItem index of the run at real frame frame, as drawn at time (fractional; before or after frame): followed run to run while tweened runs hand it over (same index, same item — as smoothing pairs them); null = it was not moving like this then.
itemFrameThe inner frame a (synced) symbol item shows elapsed frames after its run began. Mirrors the editor exactly. A slowed / sped-up item can sit between inner frames: the one shown is rounded half up (itemPlayhead).
itemPlayheadThe inner frame shown elapsed (maybe fractional) parent frames in, and the inner POSITION tweens are drawn at (owner 2026-11-06, playhead.ts): pos = frame ± the way to the neighbouring inner frame, frame when that neighbour is not next to it (a wrap, the end of a play-once).
joinChainsLists run one after another as ONE chain (several playback layers on a frame, statements of a script): each list starts at the running clip again.
joinOffsetsoffsets put together: extra on top of base (add; scales multiply)
layerPoseAtTHE pose of a layer at a frame (flattenFrame, marker walks): its own look (fx m / a, hidden), and (object parenting, AnimLayer.parent) its parent layer's pose × the parent object's matrix; null = not drawn (hidden, or the parent object is).
layerTextSpecsa layer's tx as textUnitAt specs (empty = none)
layoutVerticalText-
lazyNeedsAheadThe on-demand media of runs that START after frame and by frame + ahead (loop: the window wraps round the symbol's end) — what a clip about to reach them should fetch now. Cheap: the runs showing lazy media are found once per symbol.
lerpAnimFiltersfilter lists between two: the same kinds in the same order move their numbers / colours; anything else holds a
lerpCameraPosea pose between two: position and rotation linear, scale geometric (a 1× → 4× zoom passes 2× halfway, like the editor's camera keys)
lerpColorTransformcolour transforms between two (absent = none); none when both are
lerpFxa layer / folder look t of the way to b (a missing run = plain); visibility and blend hold a's
lerpIteman item t of the way to b (matrix, alpha, colour, filters); its other fields (inner frame, names, actions) stay a's
lerpMatrixA matrix between two: position, rotation (the short way), scale and shear each move linearly — a turning object keeps its size.
lerpR3a 3D pose t of the way to b (a missing one = flat about b's / a's turning point); the back face and own perspective's presence hold a's
lerpRunItemsthe items of a run t of the way to the paired run (unpaired items hold)
linearRgbRampTHE linearRGB gradient blend (Flash "linearRGB" interpolation, owner 2026-11-08; the editor's renderer and the player both draw their ramp texture from it): n RGBA samples (0..255) along the stops (offsets 0..1 ascending, colours "RRGGBB" / "RRGGBBAA"), the colours blended in linear light and converted back, alpha blended plainly. Before the first stop / after the last one the end colour holds.
loopWarningthe console text for a stopped loop
mapThroughMeshMaps a point through the mesh: from points → to points (same triangles). Returns null when no triangle of from holds it. When several overlap (a folded warp) the topmost (last) triangle wins, as drawn.
markerDataCentera marker's centre in the compared space (a polygon's own centre when set)
markerGeometryCentera marker's centre in its layer space (THE rule: document markerCenter) — a polygon's own centre, else its area's centroid; an arrow / line / point / circle: its x, y; else the middle of its box
markerHitShapeA marker resolved to the space it is compared in: its geometry grown about its centre (centerScale), through its own matrix, then the placement. Resolve once and reuse when a marker is tested many times.
maskPoseA sampled pose with the parts the blur leaves out (AnimMotionBlur.x) taken from now: moving is how centre (the art's middle, local space) travels, rotating / scaling happen about it.
matrixMaxScalethe largest stretch of a 2D matrix (its larger singular value): how many units one local unit can cover, in any direction
matrixScalea matrix's scale along its own x / y axes
mediaLevela media file's load level (no manifest entry = "first")
mediaTimelineOrderTimeline order of the media (owner 2026-11-08): the earliest frame of the main timeline at which each page / vector file / external symbol / sound is first needed — a nested symbol counts from the frame its instance first appears (its own frames added). THE order the player's "auto" level loads in; what nothing on the timeline reaches is absent.
meshSoftLevelthe clamped softness level: a whole number 0..MESH_SOFT_MAX
mul3-
mul34a · b of 3×4 affine maps (apply b first)
multiplymultiply(m, n) = m · n: applies n first, then m
nearestSlotNameThe entry a library gives for wanted: the same name, else the nearest of its family (see the file comment); undefined = nothing of the family.
newParticleSeeda fresh seed for a new emitter (not deterministic — only for creation)
nineSliceMeshThe 9-slice mesh of art with local bounds b, cut at cuts, drawn with scale (sx, sy): rest + drawn points of a 4 × 4 grid and its triangles. null when the art has no area.
numberAtLife-
packMotionBlurthe runtime form of a document MotionBlur (structural: no document import)
packRingflat number list → "w:…"
packVectora vector with every ring packed (what the exporter writes)
parseTargetPath_parent._children[0].redball → steps; "" / "this" = []; null = not a valid path.
parseVectorSvgReads what vectorToSvg wrote; null when text is not such a file.
partFrameAtWhere a part driver's playhead is: pos frames (fractional, from 0) into the section [first, last] → the source frame shown (whole); a driver that plays once is done past its last frame (it showed every frame for a whole frame's time).
particleNoise−1..1, continuous in x / y / z
particlePreseta deep copy (presets themselves are never edited)
particleRandom0 ≤ r < 1, the same for the same arguments forever
particleReachA box (emitter space, local mode) every particle stays inside, for boundsArea / culling — the shape grown by the farthest a particle can get (launch + acceleration + turbulence) plus the largest size.
partTreeTHE part tree of a symbol (cached): rigs, bones, IK constraints, layers
placementMatrixthe matrix of a placement (x, y, scale, rotation; or its matrix)
planPartsTHE plan of a part driver: the parts of target that spec names (undefined = all), each with what it plays from source (default the same symbol: the same layer / bone) when the section starts at frame at of the source (picks the rig of that scene).
planWithoutwhat is left of plan without the parts of other (clip.overlay(null, {parts}) takes parts back); null = nothing left
playedAfterThe frames a clip has already run before the pass it is in, after its playhead went from prev to next (total frames long): one more pass on the step from the last frame round to the first, kept on a step forward (or no move), 0 after any other jump.
playheadBetweenThe in-between to draw for a position, seen from the frame shown: to = the neighbouring frame it leans toward, t (0..1) how far; null = exactly on the shown frame. shown defaults to the position's own shown frame; |pos - shown| over 1 is capped at the neighbour.
polygonCenterthe area centroid of a closed polygon (the corners' mean when flat) — THE @utils/pure/markerGeometry rule
poseRigTHE skeleton of a rig at a frame: every bone posed (its rig's space)
projectionHomographyThe homography (row-major 3×3) taking a card's LOCAL plane (z = 0) to the projection's 2D space, for A = local → the projection's 3D space. Exact: x' = (X + vx·Z/f) / (1 + Z/f).
projectRectThe 4 corners of a local rectangle, projected into parent space ([x0,y0, …]: top-left, top-right, bottom-right, bottom-left), or null when a corner is behind the eye.
rampTo-
rampValue-
randomFrameListthe frames a gotoRandom picks from: its range (0-based, both ends in) or its list
remapPlayheadTIME REMAP (owner 2026-11-23): the inner frame shown + position of an instance whose inner position is keyed (position, a frame of its symbol, fractions = between frames): past the end it wraps, or holds the last frame when once (play once / stop at end). The editor (engine instanceAt) and the exporter (a remapped item = this pos as a fractional ff with loop: "single") both call this.
resolveFrameRefTHE meaning of a frame reference, seen from global frame at: - scene (from a scene action) = look in that scene, else the one at is in; - section given: 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 at is in first, then (goto only) anywhere in the scene; START / END = the ends of the span at is in (of the whole scene when a scene action led elsewhere); - mode "playTo": the result must lie in the span at is in — playTo never plays into another section (null). Null = no such frame.
resolveSlotNameWhat a slot name shows under a list of rules: the LAST rule that applies wins (later rules lie over earlier ones; callers put the owner's own library first, inner instances' rules next, outer instances' last). undefined = no rule has anything for it — the object keeps its own art.
resolveTargetPathWalks path from from; null when a step leads nowhere.
rigChannela rig bind's / Ref's channel (AnimBind.c with l < 0): bone.<id>.<channel>
rigFollowwhat follows bone boneId as one piece gets: its pose relative to its rest pose (the rig's space); null = no such bone
rigKeyedValueWhat a rig's KEYS give one property at a frame — what a bone's formula reads as value, what a Ref of it shows: a bone's posed own value (rest + baked keys + extra), a constraint's mix; "@x" / "@y" = where the bone's origin is (the rig's space) and "@parent" = the angle its parent bone points at — what this.x / y / parent read in a bone's formula.
rigOfLayerthe rig a negative layer number of the Values names (-1 - index)
rigRestthe rig at rest (no keys, no constraints): what following layers and weights are measured against
rigTrackAta baked track read at frame a, or t of the way to frame b (the in-between a smoothing player draws)
rigTravelAtROOT MOTION: the travel at frame a of the symbol's timeline (or t of the way to b), the rig's space; {0, 0} without root motion. Frames outside the rig's own read its first / last.
rigTravelStepROOT MOTION: how far the root moves when PLAYING moves the playhead one frame from from to to (whole frames of the symbol's timeline). A step forward from the rig's last frame back to its first (a loop) adds the cycle's travel: what the last frame moved by is taken to be the step across the loop too — author a cycle WITHOUT a repeated end pose (the Flash loop rule). Backwards = the same step negated. Not for jumps (goto): the caller hands those no travel.
runAtThe run of a layer covering frame, or null.
runChainRuns actions from from as a chain (see the module comment).
sameItemthe same object on both frames: the same sprite, the same symbol instance (same symbol, same id when it has one) or the same text object
sanitizeParticlesa copy with every number in range (never throws)
sceneIndexAtthe scene of sym holding frame (global), or -1
scenePerspAtA scene's perspective at a scene-local frame: the camera's keyed one (perspFrames, one per frame, plan R10 — dolly zoom) else the scene's own; null = the default (55° from the stage centre).
sectionAtthe named section a frame is in (undefined = none)
sectionPositionThe playhead position progress (0..1) of the way through a section / phase (sectionRange): first + (last − first) × progress — fractional, so tweens are drawn in between (anim-format playhead.ts). Null = no such section / label.
sectionRangeThe 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.
selectPartsthe parts spec names (undefined / "*" = every part)
shadeFactorthe colour multiplier of darken-by-angle (AnimR3.sh)
sharedItemsA SHARED layer's objects (playShared): dst's own objects (its setup pose = its first run with objects) moved the way the source layer's objects srcItems moved from THEIR setup pose — object k of a kind ↔ object k of that kind (pairByKind) — with the source's alpha / colour / filters / blend / visibility / 3D, a symbol's loop / first frame, a mesh's pulls when the point counts agree. Objects of dst nothing pairs with stay as they are set up. Cached per source frame.
shownFrameAtthe frame shown at a playhead position (rounded half up)
showSlotItemitem (showing a slot entry) showing the entry called name of its own profile instead — a "slot" bind (owner 2026-11-22). The same item when there is no such entry / it already shows it. Its look, place and id stay its own (as dressItem).
skinnedPullsThe pulls a skinned mesh is DRAWN with: rest = its rest points, own = its own pulls (the item's d), toRig = the mesh's own space → the rig's (its layer's matrix × its own). Null = nothing moved (draw own).
skirtMeshThe mesh with a SKIRT (owner 2026-10-31): art outside the mesh is still drawn — every convex-hull edge is pushed straight out past box (the flat content's bounds, rest space) as a quad, and the corners between them are fans, so whatever lies outside follows the nearest outline points (moved with them, turned like their edge). The first rest.length / 2 points are the mesh's own; core says how many.
slotFamilyEntriesthe entries an item tagged with the full name name could be dressed as: every entry of every profile whose name is of the same family
slotGlobCaptureswhat the *s of pattern catch in name; null = no match
slotGlobMatch-
slotGlobReplacename renamed by a rule: null when match does not match or to has more *s than match caught. No to = the name itself.
slotNameCandidatesthe full names a "slot" bind's value may mean for an item showing current: as given, else an item of the same circle (the editor's rule, document slotNameCandidates)
slotNameParts-
slotRuleEntryWhat an item showing the entry called name shows under rules (weakest first; a rule naming a profile the file does not have is skipped); undefined = what it shows itself.
slotSwitchMatrixTHE transform of an object switching slot items (owner 2026-11-20 S1; document slotSwitchTransform and the runtime's dressItem both call it): the object keeps its "slot pose" (its transform without the old item's natural turn / scale), takes the new item's, and the two items' pivots (in each item's own space; absent = its origin) stay on the same spot.
smoothPairThe runs to draw between frame and the frame the playhead goes to next (next = frame ± 1): {from, to} when the earlier of the two frames is the last frame of a run marked t and the later one starts the next run (or has none: a layer look back to plain); null = no tween in between (hold the real frame).
softMeshA mesh object's SOFTNESS (owner 2026-11-07, like subdivision surfaces): the user's points stay where they are (the first rest.length / 2 points, same order) and level times every triangle is split in four, the new points pulled along a smooth curve through their neighbours' pulls (each point's slope = the least-squares gradient of the pulls around it; edge middle = cubic Hermite midpoint) — so bends come out round instead of folded at the triangle edges. Interpolating: a pull that changes evenly (moves, turns, scales, shears) is drawn exactly as without softness, and no pull = nothing changes. Rest points of the new points are halfway between theirs (the flat picture is not bent). drawn absent = rest (nothing to soften).
soundBaseNamea sound name without its file extension ("tone.wav" → "tone")
soundEnvelopeGain (0..1, volume included) and stereo pan (-1 left … 1 right) at t seconds into a play lasting total seconds (Infinity = forever: no fade out; the pans sweep once per loop of loopLength).
soundFileTimeWhere in the file a play is after t seconds: the file time and the loop it is in, or null once it has ended.
soundPlayLengthSeconds one play lasts (all loops); Infinity when it loops forever.
soundSegmentThe part of the file one loop plays, in seconds of the file.
spanAtthe span holding a global frame
spinBlurPaddinghow far a spin blur of angle° can turn a box corner out of its box
spriteScreenScalesTHE "largest on-screen size" rule (owner 2026-11-13, Publish "Picture size"): for every sprite of file, the largest scale it is ever drawn at, seen from the main symbol at 1 (× its scenes' largest camera zoom; layers pinned to the camera excluded). A 1000 px picture never shown larger than 100 px gets 0.1. Conservative — never smaller than what is shown: each symbol's largest scale (over every place showing it) × the largest scale of each item, layer look, folder look and parent object inside it, independent of timing (scripts and own clocks cannot beat it). 3D turns and mesh pulls are not counted. Sprites never reached are absent. Symbols in other files (externals) count from their own main at 1.
stageFitTHE page layout of a fixed stage (Properties › Stage scale / align): "fit" scales the authored stage to fit the screen whole (aspect kept), "none" keeps 100 %, a number is that scale; "center" puts the stage in the middle (whole screen pixels), "topLeft" at the corner. The view is what the screen shows of the stage's space around it.
stateAtthe state (named section) a global frame is in; undefined = none
stateBeatTHE beat of a state machine (see the module comment) at global frame at; forward = the clip is playing forward (the state loop applies), false = stopped / backward (only arrows). Null = no state machine here, or nothing to do: the timeline plays on as it says.
stateTransitionsAtthe state machine of the scene holding global frame at (none = undefined)
stepRampadvances a ramp by ms; true while it is still moving
streamTimeA stream sound at timeline frame frame: seconds into its play, or null outside its frames.
symbolCameraPoseThe pose the player frames sym with at frame (+ t toward to): the scene's baked camera through framingPose. Null = no stage / view.
symbolHasAnchorsa symbol has a layer pinned to the stage edges
symbolHasSlotItemstrue when any item of the symbol's own runs shows a slot entry
symbolMarkersAtThe markers of a symbol at frame (0-based, symbol-global), in the symbol's space: its own marker layers (bottom first), then — deep, default true — those inside the instances it shows there (bottom layer first, each placed by THE layer pose layerPoseAt, its folders and its matrix; hidden layers / folders / items and mask layers left out).
symbolNeedsThe pages / external files / texts a symbol (and every symbol inside it) shows — what must be loaded before it can be drawn.
takesSceneactions a scene step right before them points into its scene
targetStepPatha target step's path, normalised ("" / "this" = the running clip)
textAnimActivewhether any preset changes something at frame (else draw the text whole)
textAnimBywhat a preset animates one by one
textAnimDef-
textAnimParamsa preset's parameters with its defaults filled in
textAnimUnitsGroups the characters of a laid-out text into units: a letter = each character that is not white space; a word = letters with no white space or line break between them; a line = the letters of one drawn line.
textRunFontthe effective style of a run (base font + its overrides)
textRunsOfthe runs of a text (one run of content when it has none)
textUnitAtTHE per-unit maths: what preset spec does at frame (fractional ok) to unit unit of count (letters / words / lines in reading order), stacked INTO out (offsets and turns add, scale and alpha multiply, hidden wins). Returns out.
textUnitRanksWhen each unit goes: ranks[i] = its turn (units sharing a turn go together — "from centre" starts both middle letters at once), steps = the number of turns. Random = a seeded shuffle (same seed → same order).
unpackRinga stored ring → numbers (a number array is returned as it is; a string that is not a packed ring → [])
unpackVectora stored vector with plain rings (what players draw)
unprojectPointA projected parent-space point back onto the card: its LOCAL position (hit tests), or null when the card is edge-on / behind.
unwarpPointa point as drawn (warped space) → the point of the flat picture it shows (rest space); null = outside the warped mesh
validateAnimFileStructural check of an AnimFile; returns human-readable problems.
valuesPlanThe cells of a timeline, sorted (once per AnimValues object).
vectorBoundsthe local bounds of vector art, strokes included (THE box: the SVG's viewBox, the exporter's sprite placement); empty art = 0, 0, 1 × 1
vectorToSvgThe SVG text of a vector (hm05-lite draws vectors with it).
verticalFormthe character as drawn upright in a column
videoTimeTime in the file (seconds) a synced video shows elapsed frames after its keyframe started: from t0, rate, trim and loop applied; a still one always shows t0. The editor's twin is document footageTimeAt (the same rule on the document fields — keep them together).
warpedPointsrest points moved by deform (same length; absent = rest)
zoomBlurPaddinghow far a zoom blur of strengthPct % smears the art (art at distance r from the centre reaches r / (1 - strength))

References ​

invertMatrix ​

Renames and re-exports invert2d


multiply2d ​

Renames and re-exports multiply

HereSplash — 2D animation for the web