@excalidraw/math
Version:
Excalidraw math functions
11 lines (10 loc) • 801 B
TypeScript
import type { ExcalidrawProps } from "@excalidraw/excalidraw/types";
import type { MarkRequired } from "@excalidraw/common/utility-types";
import type { ExcalidrawElement, ExcalidrawIframeLikeElement, IframeData } from "./types";
type IframeDataWithSandbox = MarkRequired<IframeData, "sandbox">;
export declare const createSrcDoc: (body: string) => string;
export declare const getEmbedLink: (link: string | null | undefined) => IframeDataWithSandbox | null;
export declare const createPlaceholderEmbeddableLabel: (element: ExcalidrawIframeLikeElement) => ExcalidrawElement;
export declare const maybeParseEmbedSrc: (str: string) => string;
export declare const embeddableURLValidator: (url: string | null | undefined, validateEmbeddable: ExcalidrawProps["validateEmbeddable"]) => boolean;
export {};