Appearance
hm5-types (source format)
Interfaces
| Interface | Description |
|---|---|
| AdjustProps | Keyframe.adjust: an adjustment layer key's settings |
| AppliedEffect | Preset 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). |
| AssetGenInfo | an AI generation request / result (AssetMeta.gen) |
| AssetMeta | - |
| BindTarget | What 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. |
| BitmapElement | A 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. |
| BitmapFill | Flash bitmap fill: an image asset painted inside a shape's fill. |
| BitmapImage | One 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 | - |
| BitmapSubMask | A 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 | - |
| BoneConstraint | An 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. |
| BoneKey | One 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. |
| BonePose | where a bone sits in its parent bone's space (a root: the layer's) |
| BoneRig | Layer.bones: everything a bone layer holds |
| BoneRootMotion | ROOT 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. |
| CameraKey | A 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. |
| CameraPerspective | A camera key's perspective (CameraKey.persp). |
| CameraSettings | camera 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 | - |
| CurveTrackKey | One key of a curve tween track. |
| DocumentGuide | - |
| DocumentSettings | - |
| ElementBase | - |
| ExportProfile | Named answers to "which layers are the output?" |
| FootageElement | A 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. |
| GradientFill | Linear 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. |
| GradientStop | A 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. |
| GroupElement | Result 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 | - |
| InstanceFilter | One 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). |
| KeyFollow | Keyframe.follow: an OBJECT LAYER (parent) or a bone (parent = a bone layer + bone) of the same timeline; neither = nothing |
| Keyframe | - |
| Layer | - |
| LayerGroup | - |
| LayerObject | Layer.object: an OBJECT LAYER's one object; its name is the layer's |
| LayerProps | Everything 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). |
| LayerTrackKey | One 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. |
| LibrarySymbol | A Library symbol. Symbols are ONE kind (owner 2026-11-20: the old slot / skin kinds are gone; dress-up = slotProfile). |
| Marker | One marker on a marker layer's keyframe. |
| MarkerField | - |
| MarkerGeometry | The 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) |
| MarkerShowPick | Marker.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 | - |
| MediaCrop | what part of a raw sound / video a cropped one plays (AssetMeta.crop) |
| MeshElement | Mesh 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. |
| MeshGeometry | A mesh's rest shape: points in the owner's own space and triangles. |
| MeshSkin | How 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. |
| MeshSource | The sub-layer of a picture (BitmapImage) a mesh object shows. |
| MotionBlur | Motion 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 | - |
| MotionStroke | Direction-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). |
| ParabolaAttach | A 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). |
| ParabolaSettings | The 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. |
| Perspective | A 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). |
| PlanarGeometry | Flash-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. |
| PlaybackRamp | How 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". |
| PsdPiece | A sub-layer's Photoshop layer (BitmapSubLayer.psd). |
| PsdSource | where an imported PSD symbol came from (LibrarySymbol.psd) |
| PublishSettings | §15.2 — swf-style publish settings for the web player. |
| ReferenceSet | AI 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. |
| Scale9 | 9-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. |
| Scene | Unlike Flash, EVERY timeline owner (document root AND each symbol) can have multiple scenes. Scenes play sequentially; goto can jump across them. |
| ScriptRef | A 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. |
| SectionCondition | a 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) |
| SectionTransition | One 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). |
| ShapeElement | Simple 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. |
| SheetCell | one irregular cell of a sprite sheet: pixels of the image |
| Slice9 | A 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). |
| SlotCircle | A circle of the mind map: a category ("HEAD"), or a finer one inside another ("HEAD-y45"). Its size follows what is inside (computed). |
| SlotItemInfo | - |
| SlotProfile | A slot profile's data (see LibrarySymbol.slotProfile). THE meaning (full names, layout, sync): document slotProfile.ts. |
| SlotRef | see ElementBase.slot |
| SlotRule | One 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). |
| SlotSwap | One slot swap (see SymbolInstanceElement.swaps). Every field is optional: no symbolId = the slot keeps its own symbol and only gets the matrix / look. |
| SoundClip | One 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. |
| SpriteSheet | a bitmap asset cut into equal cells (AssetMeta.sheet) |
| SpriteTexture | placement of a sprite object's texture inside its box |
| StageAnchor | Layer.stageAnchor: across (edge, centre or both edges = stretch) and down. Same names as the runtime AnimAnchor. |
| Stroke | How a shape's outline / line is drawn. |
| SymbolInstanceElement | - |
| TextElement | - |
| TextRun | One piece of rich text: its characters and the styles that differ from the element's base font. |
| TextRunStyle | Style a text run may override on top of TextElement.font. |
| Timeline | - |
| TranscriptLine | one line of a transcript (AssetMeta.transcript), seconds |
| Transform3D | An object's 3D pose (see ElementBase.t3d). Classic tweens interpolate rx / ry / z / own.fov (no ±180° wrap: 0 → 720 = two turns). |
| Tween | - |
| TweenRotate | Flash's classic tween rotation: direction + extra whole turns. |
| ValueFormula | FORMULA: worked out from other rows. |
| ValueInput | INPUT: 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). |
| ValueRef | REF: 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 Alias | Description |
|---|---|
| AudioMime | - |
| BlendMode | - |
| BoneChannel | what 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. |
| BoneTracks | bone id → channel → keys sorted by f; a constraint id → mix keys |
| CannedMotionKind | The canned motions (CANNED_MOTIONS in fx/canned.ts lists each one's parameters and default curve). |
| ColorEffect | Flash 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. |
| ConstraintChannel | what a constraint key changes: its mix, 0..1 (the value itself) |
| CurveChannel | The 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). |
| CurveTracks | element id → channel → keys |
| DataMime | - |
| EasingSpec | - |
| Element | - |
| ExportRule | - |
| FilterType | The filter kinds (FILTER_DEFS in filter/catalog.ts lists each one's parameters). Drawn with pixi-filters by the editor and the runtime. |
| FontMime | - |
| Id | nanoid(12) |
| LayerObjectKind | "footage" = a video object (owner 2026-11-01) |
| LayerType | What a layer physically holds. Orthogonal to Layer.guide (a guide can be bitmap or vector). Determines which tools are available (§7). |
| LoadLevel | when a published media file loads (owner 2026-10-30): before the animation starts / in the background after it started / when needed |
| MarkerFieldType | What a field holds. options (any type but boolean) limits the value to a list. |
| MarkerShape | The shape every marker of a component has. |
| MarkerValue | - |
| MaskMode | How a mask layer's art masks (Layer.maskMode); "shape" is stored as absent. |
| Mat2D | 2D affine matrix [a,b,c,d,tx,ty] — the same shape as ElementBase.transform |
| OuterBones | what an instance adds to its symbol's bones (SymbolInstanceElement.bones) |
| PlaybackAction | Playback 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 | - |
| PlaybackTarget | Who 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. |
| PlaybackTrigger | what starts a symbol instance's actions (in a player): the pointer, or a keyboard key by its KeyboardEvent.code ("key:Space", "key:KeyA") |
| PlaybackTriggers | - |
| PluginData | Data 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). |
| PublishEntry | what 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 |
| PublishType | Publish › Type (owner 2026-11-17, DocumentSettings.publishType): HTML online / HTML offline (one file) / data and media / GDN banner |
| RefMime | a 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 | - |
| ScriptMime | a script file (owner 2026-10-26): TypeScript or JavaScript |
| SoundEffect | Canned volume / pan envelopes (no hand-drawn curves). |
| SoundGroup | The 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. |
| SoundSync | How 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). |
| StrokeCap | how 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 |
| StrokeJoin | stroke corner style (absent = round) |
| SubFolderBlendMode | A folder's blend mode: a layer blend mode, or "pass-through". |
| TimelineRow | - |
| TweenChannel | - |
| ValueDefault | An Input's saved value, by ValueInputType: number → number, switch / trigger → boolean, point → {x, y}, text → string, color → "rrggbbaa", option → the option's name. |
| ValueInputType | What 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. |
| ValueRow | One row of a Values panel. |
Variables
| Variable | Description |
|---|---|
| AUDIO_MIMES | the audio files the editor imports and the players play |
| BLEND_MODES | Blend 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_MIMES | the 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_START | frame of a goto / playTo / repeat: the first / last frame of the section the reference lands in (owner 2026-11-05: playTo(END)) |
Functions
| Function | Description |
|---|---|
| assetSystemFolder | The Library's fixed top folder of an asset kind (user sub-folders live inside it, AssetMeta.folder). |
| dataMimeOf | - |
| fontFamilyOf | a font asset's CSS family: family, else the Library name sans extension |
| fontMimeOf | MIME of a font / data file from its name (browsers often give "") |
| hasChildElements | elements holding other elements (groups and mesh objects) |
| isBitmapElement | - |
| isFootage | - |
| isGroup | - |
| isGroupElement | - |
| isLayer | Narrowing 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 | - |
| scriptFilePath | a script asset's path inside the scripts folder: its Library sub-folder and name ("enemies/Boss.ts") — what imports between scripts use |
| scriptMimeOf | - |