Skip to content

hm5-types (source format) ​

Interfaces ​

InterfaceDescription
AdjustPropsKeyframe.adjust: an adjustment layer key's settings
AppliedEffectPreset effects (fade in/out, zoom in, …): applied to a keyframe span WITHOUT needing start/end keyframes. Picked in Properties (below the basic-tween option), duration/values editable there; the timeline shows and adjusts the span. Curves are RELATIVE deltas per channel, so effects stack additively on top of the base tween (x/y/rotation add, scale multiplies, alpha multiplies).
AssetGenInfoan AI generation request / result (AssetMeta.gen)
AssetMeta-
BindTargetWhat a Ref reads / a Bind sits on: something that exists for the whole timeline — an object layer's object (or the layer itself, with a "layer." channel), a bone of a bone layer, a constraint of one.
BitmapElementA placed, non-editable bitmap asset (e.g. imported reference image) — the "sprite object": a pixi Sprite showing a texture inside a w×h box. For EDITABLE raster art use a bitmap layer + BitmapImage instead. Break Apart turns it into a rectangle shape with a bitmapFill.
BitmapFillFlash bitmap fill: an image asset painted inside a shape's fill.
BitmapImageOne editable raster picture, owned by the document, referenced by bitmap- layer keyframes. Has its OWN internal sub-layers (like a mini-PSD), edited in the Bitmap Layer panel. Sub-layers are per-image and unrelated to timeline layers.
BitmapSubFolder-
BitmapSubLayer-
BitmapSubMaskA sub-layer's mask (Photoshop layer mask), read by its grey level — white = shown, black = hidden. Owner 2026-11-19: it has no size; it is ONE colour everywhere (outside) except the picture assetId holds — the part that differs, trimmed (painting trims it again). Inside that picture a transparent pixel is the outside colour too.
Bone-
BoneConstraintAn IK CONSTRAINT (Spine / Rive style, owner 2026-11-22): the tip of a chain of bones reaches for another bone's origin. Solved after the keys (FK), in BoneRig.constraints order — THE maths: @utils/pure/bones poseSkeleton.
BoneKeyOne key of a bone's channel: like CurveTrackKey, but at a FRAME of the timeline (the bone layer is as long as the timeline, whatever its length) and slopes per frame.
BonePosewhere a bone sits in its parent bone's space (a root: the layer's)
BoneRigLayer.bones: everything a bone layer holds
BoneRootMotionROOT MOTION (owner 2026-11-23, gap plan #6): the travel of one bone (the pelvis / root) is taken OUT of what is drawn — the character walks in place — and handed to the game (pixi-hm05 clip.rootDelta). Travel = where the bone's origin is (keys only, IK solved) minus its rest place, on the axes picked. THE rule: document bones.ts rootTravelAt / poseBoneRig, anim-format rig.ts rigTravelAt.
CameraKeyA camera keyframe's pose (Keyframe.camera): where the frame is from that key on. Camera keys ALWAYS tween to the next camera key (no tween flag); easing = the curve toward it, absent = linear. Scale tweens geometrically so a zoom feels even.
CameraPerspectiveA camera key's perspective (CameraKey.persp).
CameraSettingscamera layer payload (§4.3)
CannedMotion"罐頭動態": a ready-made motion over a frame range of a layer — the whole layer moves / fades as one, about its art's centre at start. Keyframes are untouched; motions stack (offsets add, scales and alphas multiply), on top of the layer tween.
CurveOrder-
CurveShow-
CurveTrackKeyOne key of a curve tween track.
DocumentGuide-
DocumentSettings-
ElementBase-
ExportProfileNamed answers to "which layers are the output?"
FootageElementA VIDEO OBJECT (owner 2026-11-01; imported GIF / video clips, camera recordings): a box with its own transform that shows a video SOURCE (片源 = a footage asset in the Library — a source itself is never placed; dragging it from the Library makes a video object showing it). A video object may have no source (an empty box scripts fill later). Properties edits speed / trim / sync / sound; a "break apart" command decodes the trimmed range into BitmapImages on a new bitmap layer.
GradientFillLinear or radial gradient paint for a shape's fill, in the shape's own space. Linear runs (x1,y1) → (x2,y2); radial is centred on (x1,y1) with radius |(x2,y2) − (x1,y1)|. gradientAxes (paint.ts) is the one place that turns these fields into geometry.
GradientStopA gradient colour stop. mid (Illustrator's midpoint, owner 2026-10-30) = where between this stop and the next the colour is an even mix, as a share of the gap 0.05..0.95; absent = 0.5 (straight blend). paint.ts stopMid / gradientColorAt / expandGradientStops are its meaning.
GroupElementResult of "object drawing" mode (toolbox tick, like Flash): the drawn shape is wrapped so it does NOT merge with the layer's soup. Default is OFF — broken/soup drawing, exactly like Flash. Groups nest.
Hm05Document-
InstanceFilterOne filter on an instance. params holds every parameter of the type's definition: numbers, colours ("RRGGBB") and switches. Lengths are in the instance's PARENT space: they grow with the zoom, the export scale and enclosing symbols, not with the instance's own transform (Flash).
KeyFollowKeyframe.follow: an OBJECT LAYER (parent) or a bone (parent = a bone layer + bone) of the same timeline; neither = nothing
Keyframe-
Layer-
LayerGroup-
LayerObjectLayer.object: an OBJECT LAYER's one object; its name is the layer's
LayerPropsEverything the "layer tween" row can key: the layer's look plus a transform of the whole layer (x / y = offset, rotation in radians, scale about LayerTrack.pivot).
LayerTrack"Layer tween": a row under the layer that keys its properties. While a layer has one, its keys decide the layer's look (the plain layer fields are what a new track starts from).
LayerTrackKeyOne key of the layer tween row: the props from index until the next key. tween (type "motion") interpolates toward the next key — position / rotation / scale / alpha by its channels, filters by its properties keys; blend mode and visibility switch at the next key.
LibrarySymbolA Library symbol. Symbols are ONE kind (owner 2026-11-20: the old slot / skin kinds are gone; dress-up = slotProfile).
MarkerOne marker on a marker layer's keyframe.
MarkerField-
MarkerGeometryThe geometry of a marker, in its layer's space. Which fields count depends on the component's shape (absent ones read as 0): - point: x, y - arrow: x, y (tail), angle (degrees, 0 = right, clockwise as y goes down), length - rect / ellipse: x, y (top-left of the box), w, h - circle: x, y (centre), r - parabola: x, y (start), vx, vy (velocity per frame) - hline / vline: x, y (start), length (signed: + = right / down) - polygon: x, y (where its corners are measured from), points (the corners, flat [x0, y0, x1, y1, …] relative to x, y; the last joins the first), cx / cy (optional centre relative to x, y — both or neither) - data: x, y (top-left of the tag)
MarkerShowPickMarker.showSymbol (owner 2026-11-06): the alignment symbol ONE marker shows on the canvas — editor only, never exported. Only point and arrow markers; the marker type sets nothing.
MarkerType-
MediaCropwhat part of a raw sound / video a cropped one plays (AssetMeta.crop)
MeshElementMesh object (owner 2026-10-28 mesh plan, stage 1): a special group — any content, drawn flat into a picture and redrawn through a triangle mesh whose points can be pulled (mesh.ts is THE meaning). Not in the Library: a classic tween pairs it by id across keys and moves each point on its own (property curve "mesh"). Look fields apply.
MeshGeometryA mesh's rest shape: points in the owner's own space and triangles.
MeshSkinHow a mesh object's points follow bones (THE maths: @utils/pure/skin, document skin.ts). The points — pulls (deform) included — are carried by each bone's pose RELATIVE TO its rest pose, blended by weight, so nothing moves while the bones are at rest.
MeshSourceThe sub-layer of a picture (BitmapImage) a mesh object shows.
MotionBlurMotion blur of what a tween moves (plan 2026-10-28, owner answers 2026-10-30): set per tween in Properties, no document switch. The blur is the object's own path (its transform, 3D turn included) over the exposure — the time since the screen last drew (強制平滑) or one frame — times shutter / 360. See tween/motionBlur.ts.
MotionEffectParams-
MotionStrokeDirection-annotation stroke on a MOTION layer: recorded with pressure and time; edit view renders it as a red(start)→blue(end) gradient line. The layer's visual output is procedural: speed-lines / motion-blur / wind streaks generated from these strokes via the layer's effect params. Also usable as motion-conditioning input for AI video generation (§8).
ParabolaAttachA marker type whose curves also hang off markers of another type, read from two of its number fields (e.g. an attack box's dvx / dvy).
ParabolaSettingsThe physics of a parabola type: x(t) = x + vx·t, y(t) = y + vy·t + g·t(t−1)/2 with whole frames (game physics: position, then velocity += g), or y + vy·t + g·t²/2 when continuous.
PerspectiveA perspective for the 3D objects inside a scene / symbol: field of view (1..179°, Flash's default 55) and the vanishing point in that timeline's own coordinates (absent = the stage centre for a scene, the registration point for a symbol). The focal length is measured across the document's stage width (Flash).
PlanarGeometryFlash-style "broken" art: strokes and fills on the same layer merge into one planar map. Crossing strokes split at intersections (draw a cross = four deletable segments); dragging an endpoint onto another welds them; faces are fillable with gap tolerance. Implemented in the planar-vector phase — until then vector editing works on ShapeElements only.
PlaybackRampHow a speed change spreads over time: absent / 0 = at once
PreviewSequence§15.4 — named playback programs, each directly exportable as its own video: "play MC X scene A frames 1..40, then jump to scene C".
PsdPieceA sub-layer's Photoshop layer (BitmapSubLayer.psd).
PsdSourcewhere an imported PSD symbol came from (LibrarySymbol.psd)
PublishSettings§15.2 — swf-style publish settings for the web player.
ReferenceSetAI reference material boards (§8): named bundles of images + text, e.g. a character sheet (數張人設圖 + 描述文字). Never exported; attached to AI requests by the AI-gen panel. Lives in the document so it saves/loads.
ResizeRule§15.3 — what a future Resize panel writes instead of code.
Scale99-slice cut lines (Flash "9-slice scaling"), in the object's own units: x of the left / right lines, y of the top / bottom lines. A scale then stretches only the middle; the corners keep their size.
SceneUnlike Flash, EVERY timeline owner (document root AND each symbol) can have multiple scenes. Scenes play sequentially; goto can jump across them.
ScriptRefA script (a script asset whose default export extends pixi-hm05's Behaviour) bound to a symbol, a scene or an instance, with the values of its fields that differ from the script's defaults. On an instance, a ref to a script its symbol also binds overrides that binding's values.
SectionConditiona transition's condition: Input row input (an Input of the same timeline's Values, by id) compared with value; no op = the Input is on (a fired trigger, a switch on, a number not 0)
SectionTransitionOne arrow of a section layer's state machine (Layer.transitions): from section from (absent = ANY STATE) to section to, when every condition holds and — with end (exit time) — the playhead is on the last frame of its section. Structural twin of @utils/pure/frameMap StateTransition (the runtime keeps the same shape).
ShapeElementSimple vector shape (Flash-like fills/strokes; UI chrome, masks, notes). No pen tool, no gradients — by design. Freehand exists as the VECTOR BRUSH: pressure→width, producing a filled outline like Flash's brush.
SheetCellone irregular cell of a sprite sheet: pixels of the image
Slice9A 9-slice object's six numbers: its drawn size and the four lines as distances in from the content box's left / top / right / bottom edges (the corners' sizes, in content units).
SlotCircleA circle of the mind map: a category ("HEAD"), or a finer one inside another ("HEAD-y45"). Its size follows what is inside (computed).
SlotItemInfo-
SlotProfileA slot profile's data (see LibrarySymbol.slotProfile). THE meaning (full names, layout, sync): document slotProfile.ts.
SlotRefsee ElementBase.slot
SlotRuleOne dress-up rule on an object (ElementBase.slots): objects showing slot items — this object and everything inside it, any depth — show the item of the same full name of profile instead (the nearest name when it has no such item; nothing near = unchanged).
SlotSwapOne slot swap (see SymbolInstanceElement.swaps). Every field is optional: no symbolId = the slot keeps its own symbol and only gets the matrix / look.
SoundClipOne sound on a sound layer. Only its START is stored (a frame, or the keyframe it is bound to); its length comes from the audio: the part between trimStart and trimEnd, played loops times.
SpriteSheeta bitmap asset cut into equal cells (AssetMeta.sheet)
SpriteTextureplacement of a sprite object's texture inside its box
StageAnchorLayer.stageAnchor: across (edge, centre or both edges = stretch) and down. Same names as the runtime AnimAnchor.
StrokeHow a shape's outline / line is drawn.
SymbolInstanceElement-
TextElement-
TextRunOne piece of rich text: its characters and the styles that differ from the element's base font.
TextRunStyleStyle a text run may override on top of TextElement.font.
Timeline-
TranscriptLineone line of a transcript (AssetMeta.transcript), seconds
Transform3DAn object's 3D pose (see ElementBase.t3d). Classic tweens interpolate rx / ry / z / own.fov (no ±180° wrap: 0 → 720 = two turns).
Tween-
TweenRotateFlash's classic tween rotation: direction + extra whole turns.
ValueFormulaFORMULA: worked out from other rows.
ValueInputINPUT: a free value — set by code, by the enclosing timeline, or by dragging its control in the Values panel (a TRIAL value, never saved; default is what the file holds).
ValueRefREF: a named reading of one property of one thing that is the SAME thing all timeline long (BindTarget) — dragged in from a Properties label. Read-only: it never changes what it points at.

Type Aliases ​

Type AliasDescription
AudioMime-
BlendMode-
BoneChannelwhat a bone key can change. Values are OFFSETS from the rest pose (Spine): "x" / "y" / "rotation" / "length" are added, "scaleX" / "scaleY" multiply. A channel without keys = the rest pose.
BoneTracksbone id → channel → keys sorted by f; a constraint id → mix keys
CannedMotionKindThe canned motions (CANNED_MOTIONS in fx/canned.ts lists each one's parameters and default curve).
ColorEffectFlash instance Color Effect styles. brightness -1..1 (black..white); tint mixes toward color ("RRGGBBAA") by amount 0..1; advanced = the raw colour transform: per channel (r, g, b, a) a multiplier and an offset in 0..255 units: out = in * mult + offset.
ConstraintChannelwhat a constraint key changes: its mix, 0..1 (the value itself)
CurveChannelThe channels a curve tween keys (owner 2026-11-06): "x" / "y" (the registration point, parent units), "rotation" / "skew" (DEGREES), "scaleX" / "scaleY" (1 = 100 %), "alpha" (0..1), "brightness" (-1..1, the Flash brightness colour effect) and "mesh.<i>.x" / "mesh.<i>.y" (point i of a mesh object as drawn — rest + pull — in its own space). "text" (owner 2026-11-16, text objects): the text shown — each key holds its string (CurveTrackKey.s); between two keys numbers count up / down and added / removed characters type in / out (document tween/textTween.ts).
CurveTrackselement id → channel → keys
DataMime-
EasingSpec-
Element-
ExportRule-
FilterTypeThe filter kinds (FILTER_DEFS in filter/catalog.ts lists each one's parameters). Drawn with pixi-filters by the editor and the runtime.
FontMime-
Idnanoid(12)
LayerObjectKind"footage" = a video object (owner 2026-11-01)
LayerTypeWhat a layer physically holds. Orthogonal to Layer.guide (a guide can be bitmap or vector). Determines which tools are available (§7).
LoadLevelwhen a published media file loads (owner 2026-10-30): before the animation starts / in the background after it started / when needed
MarkerFieldTypeWhat a field holds. options (any type but boolean) limits the value to a list.
MarkerShapeThe shape every marker of a component has.
MarkerValue-
MaskModeHow a mask layer's art masks (Layer.maskMode); "shape" is stored as absent.
Mat2D2D affine matrix [a,b,c,d,tx,ty] — the same shape as ElementBase.transform
OuterBoneswhat an instance adds to its symbol's bones (SymbolInstanceElement.bones)
PlaybackActionPlayback layer actions (the layer type is still "script" in files): a list of choices about playing, never real code (owner spec 2026-10-22, unlike Flash's ActionScript). Run IN ORDER as a CHAIN on entering the keyframe — or, on a symbol instance, when it is clicked / hovered (SymbolInstanceElement.on): a playTo or wait holds the rest of the list until it has arrived / waited (owner 2026-11-05); the chain is dropped (no error) when something else moves that playhead first. Frame references (FrameRef): 0-based numeric strings, label names or SECTION_START / SECTION_END, inside section when given.
PlaybackActionType-
PlaybackTargetWho the actions after a target step control, as a dotted path from the timeline that runs it (a frame action: the timeline holding the playback layer; an instance trigger: the clicked instance itself). Steps: _parent (the timeline holding it), _root (the top timeline), _children[n] (its n-th child instance, bottom → top), this, or an instance name / an element id among its children — e.g. _parent._parent._children[0].redball. Absent / "" = that timeline itself. See parseTargetPath.
PlaybackTriggerwhat starts a symbol instance's actions (in a player): the pointer, or a keyboard key by its KeyboardEvent.code ("key:Space", "key:KeyA")
PlaybackTriggers-
PluginDataData hm05 itself never reads, kept for plugins (game engine plugins, export scripts, player scripts): plugin name → that plugin's own data, any JSON — e.g. { box2d: { bodyType: "dynamic", mass: 2.5 } }. On a symbol (LibrarySymbol.plugins) and on a symbol instance (SymbolInstanceElement.plugins); saved, copied with its owner and written into the runtime format as it is (AnimSymbol.plugins, SymbolItem.plugins). Never tweened: an instance's data is its keyframe's. Absent = none (an empty object is never stored).
PublishEntrywhat a published page runs when it opens (owner 2026-10-30 / 11-17): the generated entry, the generated entry + player controls, or a custom script asset
PublishTypePublish › Type (owner 2026-11-17, DocumentSettings.publishType): HTML online / HTML offline (one file) / data and media / GDN banner
RefMimea REFERENCE file (owner 2026-11-05): kept in the Library's ref folder for the author only — never published or exported (the ActionScript .as files a Flash file used)
ScriptFieldValue-
ScriptMimea script file (owner 2026-10-26): TypeScript or JavaScript
SoundEffectCanned volume / pan envelopes (no hand-drawn curves).
SoundGroupThe player's volume / mute / pause group of a sound: "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 on). Same values as @hm05/anim-format SoundGroup.
SoundSyncHow a sound follows the timeline. - "event": starts (from its beginning) only when the playhead ENTERS its start frame, then plays to its end on its own, whatever the timeline does (Flash Event). - "stream": tied to the frames it covers — it plays only while the timeline plays inside its span, from the point that matches the frame (a goto into the middle starts mid-sound), and stops when the timeline stops or leaves the span (Flash Stream).
StrokeCaphow an open line ends (absent = round, Flash's default): "butt" = cut square at the end point (Flash "none"), "square" = cut square half the width beyond it
StrokeJoinstroke corner style (absent = round)
SubFolderBlendModeA folder's blend mode: a layer blend mode, or "pass-through".
TimelineRow-
TweenChannel-
ValueDefaultAn Input's saved value, by ValueInputType: number → number, switch / trigger → boolean, point → {x, y}, text → string, color → "rrggbbaa", option → the option's name.
ValueInputTypeWhat an Input holds: a number (optional range / step), a switch, a trigger (gap plan #1: a switch code FIRES — on for one beat of the clip, then off; state machine arrows wait for it), a point, text, a colour, or one of a few named options.
ValueRowOne row of a Values panel.

Variables ​

VariableDescription
AUDIO_MIMESthe audio files the editor imports and the players play
BLEND_MODESBlend modes, by their pixi v8 names: the core set plus pixi.js/advanced-blend-modes (Photoshop names). add is pixi's "linear-dodge"; there is no "hue" in pixi, so none here.
DATA_MIMESthe data files the editor imports (Library → data); scripts read them
FONT_MIMES"text/css" = a web font stylesheet (Library → Import Font… from a link):
SECTION_END-
SECTION_STARTframe of a goto / playTo / repeat: the first / last frame of the section the reference lands in (owner 2026-11-05: playTo(END))

Functions ​

FunctionDescription
assetSystemFolderThe Library's fixed top folder of an asset kind (user sub-folders live inside it, AssetMeta.folder).
dataMimeOf-
fontFamilyOfa font asset's CSS family: family, else the Library name sans extension
fontMimeOfMIME of a font / data file from its name (browsers often give "")
hasChildElementselements holding other elements (groups and mesh objects)
isBitmapElement-
isFootage-
isGroup-
isGroupElement-
isLayerNarrowing helpers for the two discriminated unions this package deals in. Trivial by design — but they live in exactly one place (§12 reuse rule) so the engine, the exporters and the panels never grow their own copies.
isShape-
isSymbolInstance-
isTextElement-
scriptFilePatha script asset's path inside the scripts folder: its Library sub-folder and name ("enemies/Boss.ts") — what imports between scripts use
scriptMimeOf-

HereSplash — 2D animation for the web