@mocanvas/editor · constant

imageAssetPropsValidator

declare const imageAssetPropsValidator: ObjectValidator<ObjectValidatorType<{
    w: Validator<number>;
    h: Validator<number>;
    name: Validator<string>;
    isAnimated: Validator<boolean>;
    mimeType: Validator<string | null>;
    src: Validator<string | null>;
    fileSize: Validator<number | undefined>;
}>>

w, h, src and the file metadata an image or video asset carries.

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.