Skip to content

EmitImageRef

Defined in: packages/core/src/emitter/assets.ts:51

One image to fetch at compile time and merge into the document sprite (U6, R9). Core describes — name, URL, flags — and the CLI fetches, measures, and composites (KTD3’s split, extended to the network step: fetching lives beside resolveBasemap, the pipeline’s one networked stage). A programmatic consumer without the CLI receives everything needed to resolve the refs itself.

PropertyTypeDescriptionDefined in
namestringSprite entry name; layers reference it as mlym:<name>.packages/core/src/emitter/assets.ts:53
pixelRatio?numberSource density — 2 means the file’s pixels are @2x its CSS size.packages/core/src/emitter/assets.ts:59
sdf?booleanSigned-distance-field icon (tintable via icon-color).packages/core/src/emitter/assets.ts:57
urlstringWhere to fetch the image at emit time.packages/core/src/emitter/assets.ts:55