@mocanvas/mocanvas · function

getAssetInfo

declare function getAssetInfo(asset: Asset | null | undefined): {
    w: number;
    h: number;
    mimeType: string | null;
    isAnimated: boolean;
} | null

The size and mime type of an asset, for a shape that is placing it.

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.