@mocanvas/mocanvas · function
declare function getImageTextureSource(editor: Editor, shape: ImageShape): string | nullThe source the shape's pixels come from: the asset's src (a URL or data URL),
or null when the shape has no asset yet or the asset is still uploading.
getImageTextureKey turns it into a GPU texture; component draws the same
source in the DOM overlay while that texture loads (and for crops/flips).
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.