@excalidraw/excalidraw
Version:
Excalidraw as a React component
18 lines (17 loc) • 909 B
TypeScript
import type { Drawable, Options } from "roughjs/bin/core";
import type { RoughGenerator } from "roughjs/bin/generator";
import type { ExcalidrawElement, NonDeletedExcalidrawElement, ExcalidrawSelectionElement } from "../element/types";
import type { EmbedsValidationStatus } from "../types";
export declare const generateRoughOptions: (element: ExcalidrawElement, continuousPath?: boolean) => Options;
/**
* Generates the roughjs shape for given element.
*
* Low-level. Use `ShapeCache.generateElementShape` instead.
*
* @private
*/
export declare const _generateElementShape: (element: Exclude<NonDeletedExcalidrawElement, ExcalidrawSelectionElement>, generator: RoughGenerator, { isExporting, canvasBackgroundColor, embedsValidationStatus, }: {
isExporting: boolean;
canvasBackgroundColor: string;
embedsValidationStatus: EmbedsValidationStatus | null;
}) => Drawable | Drawable[] | null;