UNPKG

@excalidraw/math

Version:

Excalidraw math functions

12 lines (11 loc) 618 B
import type { InteractiveCanvasAppState } from "../types"; import type { RenderableElementsMap, ScrollBars } from "./types"; export declare const SCROLLBAR_MARGIN = 4; export declare const SCROLLBAR_WIDTH = 6; export declare const SCROLLBAR_COLOR = "rgba(0,0,0,0.3)"; export declare const getScrollBars: (elements: RenderableElementsMap, viewportWidth: number, viewportHeight: number, appState: InteractiveCanvasAppState) => ScrollBars; export declare const isOverScrollBars: (scrollBars: ScrollBars, x: number, y: number) => { isOverEither: boolean; isOverHorizontal: boolean; isOverVertical: boolean; };