@mocanvas/editor · interface

TLAssetUrls

interface TLAssetUrls

Where an app self-hosts the files the UI loads at runtime.

mocanvas itself needs none of them — its icons are inline SVG and it ships no translation bundles — so the map is carried, not consumed: it exists so a component an app drops into a chrome slot can ask for the same base paths the host configured, instead of every such component growing a prop for it.

Kept as nested string maps rather than a fixed shape because the categories are the app's, not ours; the four named below are only the ones a self-hosting setup usually has.


Properties · 4

embedIcons?: Readonly<Record<string, string>>
fonts?: Readonly<Record<string, string>>
icons?: Readonly<Record<string, string>>
translations?: Readonly<Record<string, string>>

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.