@peakpay/excalidraw
Version:
Excalidraw as a React component
34 lines (33 loc) • 1.32 kB
TypeScript
/// <reference types="react" />
import { ExcalidrawElement } from "../element/types";
import { AppState } from "../types";
export declare const actionFlipHorizontal: {
name: "flipHorizontal";
trackEvent: {
category: "element";
};
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
appState: Readonly<AppState>;
commitToHistory: true;
};
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
contextItemLabel: string;
} & {
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
};
export declare const actionFlipVertical: {
name: "flipVertical";
trackEvent: {
category: "element";
};
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
elements: import("../scene/Scene").ExcalidrawElementsIncludingDeleted;
appState: Readonly<AppState>;
commitToHistory: true;
};
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
contextItemLabel: string;
} & {
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
};