Appearance
hm5-types (source format) / MeshElement
Interface: 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.
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
blendMode? | | "color" | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "add" | "difference" | "color-burn" | "color-dodge" | "linear-burn" | "hard-light" | "soft-light" | "exclusion" | "linear-light" | "pin-light" | "vivid-light" | "hard-mix" | "subtract" | "divide" | "saturation" | "luminosity" | "invert" | "layer" | "alpha" | "erase" | blend mode with what is under it; absent = normal. Switches at the next key of a classic tween. | ElementBase.blendMode |
children | Element[] | the content, in the mesh object's own space (like a group's) | - |
colorEffect? | ColorEffect | Look (symbol instances, bitmaps, text, meshes, groups, video objects: hasLook; loose shapes ignore it). Flash Color Effect (alpha stays opacity); absent = none. Classic tweens interpolate it. | ElementBase.colorEffect |
deform? | number[] | how far each point is pulled from its rest place, flat [dx0, dy0, …] (same length as mesh.points); absent = not pulled. Tweened. | - |
filters? | InstanceFilter[] | Filters (drop shadow, blur, glow, …), drawn in order on top of the instance; absent = none. Classic tweens interpolate them (see filter/catalog.ts). | ElementBase.filters |
hidden? | boolean | Properties "Visible" off: not drawn in exports / publish (faint in the editor); a show action can still show it. Absent = drawn. | ElementBase.hidden |
id | string | - | ElementBase.id |
mesh | MeshGeometry | the rest shape (what "Reset" goes back to) | - |
opacity | number | - | ElementBase.opacity |
skin? | MeshSkin | WEIGHTS (owner 2026-11-22, bone layers): the bones this mesh's points follow. Absent = it follows no bone. Lives on the mesh object, not on the bones — every key of a layer holding the same mesh object (same id) has the same one; another mesh object has its own. | - |
slice? | Slice9 | a 9-SLICE object (owner 2026-11-01): the rest shape is a 4 × 4 grid over the content box cut by these lines and deform stretches it to width × height — both derived from this (mesh.ts applySlice), never pulled by hand. Free Transform scaling changes the size, the matrix scale grows everything. | - |
slot? | SlotRef | SLOT ITEM (owner 2026-11-20, plan 2026-11-19-mesh-slot-bone-puppet-plan 流程二): this object shows item item (an element id) of the slot profile profile (a LibrarySymbol with slotProfile). Its content (everything but ElementBase fields and a mesh object's deform) is a copy of the item, kept current by document syncSlotItems; its transform, look and pulls are its own. Absent = an ordinary object. | ElementBase.slot |
slots? | SlotRule[] | DRESS-UP RULES (owner 2026-11-20 "整套換"): for this object and everything inside it; later rules win, an outer object's rules win over an inner one's. THE meaning: document slotRules.ts. Absent = none. | ElementBase.slots |
soft? | number | SOFTNESS 1..3 (owner 2026-11-07, like subdivision surfaces): the points stay the user's, the drawing splits every triangle in four that many times and pulls the new points along smooth curves, so bends come out round (@hm05/anim-format softMesh). Absent = 0. Not on 9-slice objects. Held, not tweened. | - |
source? | MeshSource | where the content comes from (owner 2026-11-19, bitmap layer → mesh objects): the content is ONE bitmap object showing that sub-layer's pixels, kept up to date by document syncMeshSources — painting on the picture changes every mesh object made from it. Absent = an ordinary mesh object. | - |
t3d? | Transform3D | 3D rotation / depth (owner 2026-10-30, Flash CS4 style): symbol instances, bitmaps, text and groups (loose shapes ignore it). The object is drawn as a flat card turned about its own X / Y axes and seen through a perspective (t3d.ts). Absent = flat. | ElementBase.t3d |
transform | Mat2D | 2D affine matrix [a,b,c,d,tx,ty] | ElementBase.transform |
type | "mesh" | - | - |