@apoorvdwi/excalidraw-collab
Version:
Excalidraw as a React component
23 lines (22 loc) • 1.09 kB
TypeScript
/// <reference types="react" />
import { ExcalidrawElement } from "../element/types";
import { AppState } from "../types";
export declare const actionDuplicateSelection: {
name: "duplicateSelection";
trackEvent: {
category: "element";
};
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => false | {
commitToHistory: true;
elements?: readonly ExcalidrawElement[] | null | undefined;
appState?: MarkOptional<AppState, "width" | "height" | "offsetLeft" | "offsetTop"> | null | undefined;
files?: Record<string, import("../types").BinaryFileData> | null | undefined;
syncHistory?: boolean | undefined;
replaceFiles?: boolean | undefined;
};
contextItemLabel: string;
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
} & {
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
};