UNPKG

@excalidraw/math

Version:

Excalidraw math functions

36 lines (35 loc) 1.53 kB
/// <reference types="react" /> import type { ExcalidrawElement } from "@excalidraw/element/types"; import type { AppClassProperties, AppState } from "../types"; export declare const actionFlipHorizontal: { name: "flipHorizontal"; label: string; icon: import("react/jsx-runtime").JSX.Element; trackEvent: { category: "element"; }; perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => { elements: ExcalidrawElement[]; appState: Readonly<AppState>; captureUpdate: "IMMEDIATELY"; }; keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean; } & { keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined; }; export declare const actionFlipVertical: { name: "flipVertical"; label: string; icon: import("react/jsx-runtime").JSX.Element; trackEvent: { category: "element"; }; perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => { elements: ExcalidrawElement[]; appState: Readonly<AppState>; captureUpdate: "IMMEDIATELY"; }; keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean; } & { keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined; };