Appearance
hm5-types (source format) / BitmapSubLayer
Interface: BitmapSubLayer
Properties
| Property | Type | Description |
|---|---|---|
assetId | string | each 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? | string | the folder it is in (BitmapImage.folders) |
id | string | - |
linkId? | string | sub-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? | boolean | Photoshop "lock transparent pixels" for this sub-layer only (the timeline layer's Layer.lockAlpha locks every sub-layer) |
locked | boolean | - |
mask? | BitmapSubMask | - |
name | string | - |
opacity | number | 0..1 |
pictureId? | string | a 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? | PsdPiece | the 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? | Mat2D | layer 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? | string | Photoshop 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. |
visible | boolean | - |
x? | number | where 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 | - |