UNPKG

@zsviczian/excalidraw

Version:
13 lines (12 loc) 688 B
import type { ExcalidrawElement } from "@excalidraw/element/types"; import type { InteractiveCanvasAppState } from "../types"; import type { ScrollBars } from "./types"; export declare const SCROLLBAR_MARGIN = 4; export declare const SCROLLBAR_WIDTH = 6; export declare const SCROLLBAR_COLOR = "rgba(128,128,128,0.3)"; export declare const getScrollBars: (elements: readonly ExcalidrawElement[], viewportWidth: number, viewportHeight: number, appState: InteractiveCanvasAppState) => ScrollBars; export declare const isOverScrollBars: (scrollBars: ScrollBars, x: number, y: number) => { isOverEither: boolean; isOverHorizontal: boolean; isOverVertical: boolean; };