@mocanvas/editor · type
type TLAssetShape = UnknownShape & {
props: {
assetId: AssetId | null;
};
}A shape that points at an asset.
Image, video and bookmark shapes all reference their bytes by assetId
rather than embedding them, so that two copies of the same picture cost one
upload. This is the structural test for "does this shape have bytes behind
it?", which is what export, copy and asset garbage collection all ask.
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.