Skip to content

hm5-types (source format) / BitmapSubLayer

Interface: BitmapSubLayer ​

Properties ​

PropertyTypeDescription
assetIdstringeach sub-layer is backed by its own bitmap buffer (PNG) of ANY size: just the pixels painted on it (owner 2026-11-18). "" on a picture sub-layer (pictureId).
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"multiply for line-art-over-flats, etc.
filters?InstanceFilter[]layer effects = the same filters objects and layers take (drop shadow, glow, stroke …), drawn in order on this sub-layer
folderId?stringthe folder it is in (BitmapImage.folders)
idstring-
linkId?stringsub-layers with the same linkId (in different pictures — a keyframe's picture cloned for the next keyframe, a PSD layer shown on several artboards) share their CONTENT: painting on one changes all. Everything else (transform, eye, opacity, blend, mask, effects) is each one's own. Absent = not shared.
lockAlpha?booleanPhotoshop "lock transparent pixels" for this sub-layer only (the timeline layer's Layer.lockAlpha locks every sub-layer)
lockedboolean-
mask?BitmapSubMask-
namestring-
opacitynumber0..1
pictureId?stringa PICTURE sub-layer (Photoshop smart object): it draws another BitmapImage (its area's top-left at x, y) instead of pixels of its own. Dropped from the Library; a PSD smart object imports as one.
psd?PsdPiecethe Photoshop layer these pixels came from (gap plan #18): an "Update from PSD" swaps the pixels of the sub-layer whose path matches (document ops/psdUpdate.ts). Absent = not from a PSD.
transform?Mat2Dlayer space → picture space (stage units; absent = identity): Free Transform moves / scales / turns a sub-layer through this alone, the pixels are not touched. Painting needs a whole-pixel move (anything else is applied first: bitmap.applySubTransform).
transformLink?stringPhotoshop Link Layers (owner 2026-11-19): sub-layers of one picture with the same value move / scale / turn together (Free Transform). Not linkId (that one shares PIXELS across pictures). A value only one sub-layer has is dropped.
visibleboolean-
x?numberwhere the buffer's top-left sits in the sub-layer's LAYER space (buffer pixels; absent = 0). assetId + x + y are the sub-layer's CONTENT — what linked sub-layers (linkId) share.
y?number-

HereSplash — 2D animation for the web