@mocanvas/editor · function

resolveAssetUrl

declare function resolveAssetUrl(store: AssetStore | undefined, asset: Asset, context?: AssetContext): Promise<string | null>

Resolve an asset through store, falling back to the asset's own props.src when the store has no resolve (or when there is no store at all).

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.