Appearance
anim-format (runtime format) / AnimFile
Interface: AnimFile
Properties
| Property | Type | Description |
|---|---|---|
atlases | AtlasPage[] | - |
classic? | "low" | "medium" | "high" | "8x8" | "16x16" | Classic vector drawing (owner 2026-11-15, Publish › Vector drawing): players draw vectors on the CPU the way Flash Player did, with this many samples per pixel (pixi-hm05 classic/), when the page loaded the rasteriser (pixi-hm05-classic.js); else the normal way. Absent = normal. Additive in v1. |
exports? | Record<string, AnimExport> | export id → what it names. Publish ships these even when the root scene never reaches them. Additive in v1. |
externals? | Record<string, AnimExternal> | symbols published as their own JSON (Library "Separate file"): key used by items here → that file (relative to this JSON) and when the player loads it. Their art / media live in that file only. Additive in v1. |
files? | Record<string, AnimDataFile> | fonts / data files shipped beside the JSON (ones with an export id, and the fonts texts use): asset id → file. Additive in v1. |
format | "hm05-anim" | - |
fps | number | frames per second the timelines were authored at |
globals? | AnimValues | GLOBALS (owner 2026-11-22, the Values panel's Globals): Inputs and Formulas every timeline's formulas may read (global.name); code sets them through asset.globals. Absent = none. Additive in v1. |
main | string | the symbol to instantiate by default |
markerTypes? | Record<string, AnimMarkerType> | marker types by name (owner 2026-11-14): game data, never drawn — AnimSymbol.markers name them. Additive in v1. |
media? | Record<string, AnimMedia> | every media file beside the JSON (path relative to it → size, kind, load level). Absent = everything loads first (older files). Additive in v1 (owner 2026-10-30). |
meshes? | Record<string, AnimMesh> | warp meshes sprite items are drawn through (SpriteItem.w, mesh objects — owner 2026-10-28 mesh plan). Additive in v1. |
meta? | Record<string, unknown> | free-form producer info |
pending? | "placeholder" | "pause" | what a player does when the timeline reaches art that is still loading (auto / lazy media): "placeholder" (default) = keep playing, draw a "loading" picture in its place; "pause" = hold everything and show the loader until it arrives. Additive in v1. |
resolution | number | texture pixels per document unit; sprites render at 1/resolution |
scriptBundle? | string | the file holding every script's code (a classic script that calls PixiHm05.defineScripts(scriptsId, {id: class})), next to the JSON |
scripts? | Record<string, { path: string; }> | script files the timelines bind (Behaviours, owner 2026-10-26): id → its Library path; their code ships in scriptBundle. Additive v1. |
scriptsId? | string | names this export's scripts in the page (a loaded file has its own) |
slots? | Record<string, Record<string, AnimSlotEntry>> | SLOT PROFILES (owner 2026-11-20, dress-up at run time): profile name (its Library name) → full item name → entry, for every profile an item tagged sl could be dressed from (its profile, the ones that extends, and every profile built on those) — each lists ALL it shows, inherited entries included. Absent = nothing to dress. slots.ts has THE rules (dressSymbol). Additive in v1. |
smooth? | boolean | 強制平滑 (owner 2026-10-26): players draw the in-between positions of runs marked t at the screen's rate; actions / events stay on real frames. Absent = step frame by frame. Additive in v1. |
sounds? | Record<string, AnimSound> | id → audio file the timelines (and scripts) play. Additive in v1. |
sprites | Record<string, SpriteDef> | - |
stage? | object | whole-stage exports: the working area / camera frame. origin (owner 2026-11-17, a symbol published alone) = where the main timeline's (0, 0) sits on the stage so all its art shows; absent = the stage's top-left. |
stage.background | string | - |
stage.height | number | - |
stage.origin? | object | - |
stage.origin.x | number | - |
stage.origin.y | number | - |
stage.width | number | - |
symbols | Record<string, AnimSymbol> | - |
texts? | Record<string, AnimText> | text definitions TextItems show (live text, never in the atlas). Additive in v1. |
vectorFiles? | Record<string, string> | big vectors kept out of the JSON (owner 2026-11-08): SpriteDef.vector key → its vector/*.json (relative to this JSON; a StoredVector, rings packed — owner 2026-11-17, was SVG); listed in media (type "vector") with its load level. Additive in v1. |
vectors? | Record<string, StoredVector> | vector art drawn by the player (SpriteDef.vector); rings may be packed (packedVector.ts, read with unpackVector). Additive v1. |
version | `${number}.${number}.${number}` | "major.minor.patch"; a player plays any patch of its own major.minor |
videos? | Record<string, AnimVideo> | id → video file video objects (VideoItem) and scripts play. Additive in v1 (owner 2026-11-01). |