Appearance
hm5-types (source format) / DocumentSettings
Interface: DocumentSettings
Properties
| Property | Type | Description |
|---|---|---|
backgroundColor | string | RRGGBBAA; alpha 00 = no colour (transparent: the editor shows a checkerboard, publish / raster export leave it see-through) |
entryScript? | string | the custom entry script (a script asset, made from the template by Properties → Document "Custom entry script") |
externalScripts? | boolean | external-scripts plan (desktop folder projects): the files in the project's scripts/ folder are the source of truth — edited in VS Code, watched, never overwritten by Save. Absent = off. |
fps | number | default 24 |
guides? | DocumentGuide[] | ruler guides (owner decision 2026-10-24): saved in the file so they come back on reopening, but editor-only — NEVER published, exported or written into the runtime format. Not undoable (view state). |
height | number | - |
imageFormat? | "png" | "webp" | the picture format of NEW bitmaps (owner 2026-11-26): painted / pasted / converted pictures are saved as lossless PNG or lossless WebP, and Publish stores generated atlas pages the same way. Pictures already in the file keep their format. Absent = "png". |
pasteboardColor? | string | the colour around the page on the canvas (owner 2026-11-07), overriding Preferences → General "Canvas background" for this document only. #rrggbb, or "transparent" to show the editor's own chrome through instead. Absent or "" = the app's setting. Editor-only — never published, exported or written into the runtime format. |
publishAlign? | "center" | "topLeft" | fixed-size stage, published player: where the stage sits in the window. Absent = "center". |
publishAutoScale? | boolean | published player: render at the screen's device pixel ratio (a 400 px wide view on a 3× phone = a 1200 px canvas shown at 400 CSS px). false = one canvas pixel per CSS pixel. Absent = on. |
publishClassic? | boolean | Publish › Vector drawing (owner 2026-11-15): false (absent) = the player draws vector art with pixi; true = Classic, Flash Player's CPU drawing at High (4×4; no finer choice, owner) — atlas sprites are drawn that way and the page loads the rasteriser (pixi-hm05-classic.js, ~95 KB) to draw vectors. Not GDN banners. |
publishCompression? | "none" | "low" | "medium" | "high" | Publish: how hard atlas pages are compressed (size cap, fewer colours, JPEG + transparency picture — chosen per page). Absent = "none". |
publishEntry? | PublishEntry | Publish (owner 2026-10-30): the page's entry script — "default" = the generated entry.js (plays the JSON with the layout above), "controls" = the same + Flash-Player-style controls (owner 2026-11-17: right-click menu, Space / , / ., a control bar), "custom" = the script asset entryScript. Absent = "default". |
publishFit? | number | Publish "Picture size" (owner 2026-11-13): every picture is stored at the largest size it is ever shown at × this (a 1000 px picture never shown above 100 px → 100 px; 2 → 200 px; never above its own pixels). 0 = off (every picture at publishResolution). Absent = 1. |
publishJpeg? | boolean | Publish: pictures without transparency stored as JPG (the smaller of PNG / JPG; owner 2026-11-13). Absent = on. |
publishKtx2? | boolean | Publish › KTX2 (owner 2026-11-26, desktop app only): atlas pages are stored as KTX2 (Basis UASTC, GPU-compressed: about a quarter of the video memory, lossy) instead of PNG / WebP; the player loads the transcoder only when a page is KTX2. Not with "offline" / single-file HTML or GDN. Absent = off. |
publishOverflow? | boolean | fixed-size stage, published "page": also draw the art outside the stage rectangle (the window around a fitted / centred stage). Absent = clipped to the stage. |
publishPending? | "placeholder" | "pause" | Publish: when the timeline reaches art still loading (auto / lazy media) — "placeholder" = play on, a "loading" picture in its place; "pause" = hold everything with a progress bar. Absent = "placeholder". |
publishResolution? | 2 | 1 | 3 | published player: how many texture pixels per document unit the atlas pages are drawn at (owner 2026-11-08): 1× (default), 2× or 3× — sharp on 2× / 3× phones with Auto scale, at 4× / 9× the file size. Absent = 1. |
publishScale? | "none" | "fit" | fixed-size stage, published player: "fit" scales the stage to the window (aspect kept), "none" keeps 100%. Absent = "fit". |
publishSingleFile? | boolean | Publish: index.html holds the JSON, the scripts and the CSS — one HTML file + the pictures (owner 2026-11-13). Absent = off. |
publishType? | PublishType | Publish › Type (owner 2026-11-17): "page" = HTML online (put on a web host: media as separate files, pixi.js from the CDN); "offline" = HTML offline (ONE index.html holding everything — pixi.js, the player, the JSON, media as data: URLs — plays double-clicked); "data" = data and media only (the JSON files + media, no HTML / JS); "gdn" = a Google Display Network HTML5 banner (hm05-lite, fixed stage at 100%, ad.size meta, a clickTag click area, no entry choice). Absent = "page". |
publishVectorKB? | number | Publish › Vector art "auto": the size limit in KB of one symbol's vector data (packed, as written). Absent = 50. |
publishVectors? | "bitmap" | "auto" | "keep" | Publish › Vector art (owner 2026-11-17): "auto" = each symbol's Library "Vector art"; "auto" symbols ship their shapes as paths while that vector data stays within publishVectorKB, else as pictures; "keep" = no size limit (Library "bitmap" symbols stay pictures); "bitmap" = every shape a picture (runtimes that draw no vectors). Absent = "auto", or "bitmap" for publishType "data". |
responsive? | boolean | true = the stage has no size: the published canvas fills the viewer's window at 100% (world origin at its top-left) and the editor paints the whole canvas in backgroundColor instead of a page on a grey pasteboard. width/height stay as the fallback frame for raster exports. Absent = a fixed-size stage. |
scriptPackages? | Record<string, string> | npm packages player scripts import: name → exact version. Web / single files fetch them from the CDN when bundling; a desktop folder project fills it from its package.json + node_modules on save. |
smoothPlayback? | boolean | 強制平滑 (owner 2026-10-26): playback draws the in-between positions of tweens (classic / shape tweens, layer tweens, canned motions, camera) at the screen's refresh rate — a 24 fps film on a 60 Hz screen moves on every screen frame. Only the drawing is smoothed: the playhead still steps through REAL frames, and frame actions, sounds and enter-frame scripts run on real frames only. Editor playback and the published player. Absent = off. |
stopAtEnd? | boolean | the main timeline stops on its last frame instead of looping (published player, editor playback). Absent = loop. |
width | number | WORKING-AREA guide only — unlike Flash there is no hard canvas size (a document may exist purely to make sprite sheets). Video export is framed by the CAMERA layer (§4.3), not by these numbers. |