Skip to content

hm5-types (source format) / BitmapElement

Interface: 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.

Extends ​

Properties ​

PropertyTypeDescriptionInherited from
assetIdstring--
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
colorEffect?ColorEffectLook (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
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
frame?numberthe asset is a sprite sheet (AssetMeta.sheet): the cell shown, 0-based, row by row; absent = 0. Ignored for a plain image.-
heightnumber--
hidden?booleanProperties "Visible" off: not drawn in exports / publish (faint in the editor); a show action can still show it. Absent = drawn.ElementBase.hidden
idstring-ElementBase.id
opacitynumber-ElementBase.opacity
scale9?Scale99-slice scaling of the picture (box units); absent = plain scale-
slot?SlotRefSLOT 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
t3d?Transform3D3D 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
texture?SpriteTexturethe texture inside the box: its top-left at (x, y), scaled by scaleX / scaleY; what falls outside the box is cut off. Absent = (0, 0) at scale 1. Field meaning: spriteTextureMatrix (sprite.ts).-
transformMat2D2D affine matrix [a,b,c,d,tx,ty]ElementBase.transform
type"bitmap"--
widthnumberthe box (natural size: the image, or one sprite-sheet cell); transform scales it-

HereSplash — 2D animation for the web