UNPKG

@excalidraw/excalidraw

Version:
11 lines (10 loc) 1 kB
import { ExcalidrawElement, NonDeletedExcalidrawElement } from "../element/types"; export declare const hasBackground: (type: string) => boolean; export declare const hasStrokeWidth: (type: string) => boolean; export declare const hasStrokeStyle: (type: string) => boolean; export declare const canChangeSharpness: (type: string) => boolean; export declare const hasText: (type: string) => boolean; export declare const canHaveArrowheads: (type: string) => boolean; export declare const getElementAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => NonDeletedExcalidrawElement | null; export declare const getElementsAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => NonDeletedExcalidrawElement[]; export declare const getElementContainingPosition: (elements: readonly ExcalidrawElement[], x: number, y: number) => ExcalidrawElement | null;