@mocanvas/editor · type
type ExternalContent = {
type: "files";
files: File[];
point?: VecLikeJson;
} | {
type: "text";
text: string;
point?: VecLikeJson;
} | {
type: "url";
url: string;
point?: VecLikeJson;
} | {
type: "svg-text";
text: string;
point?: VecLikeJson;
}Content dropped or pasted onto the canvas. point is in page space; defaults to the viewport center.
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.