UNPKG

@excalidraw/excalidraw

Version:
21 lines (20 loc) 998 B
import type { InteractiveSceneRenderConfig, RenderableElementsMap } from "../scene/types"; /** throttled to animation framerate */ export declare const renderInteractiveSceneThrottled: { (config: InteractiveSceneRenderConfig): void; flush(): void; cancel(): void; }; /** * Interactive scene is the ui-canvas where we render bounding boxes, selections * and other ui stuff. */ export declare const renderInteractiveScene: <U extends ({ canvas, elementsMap, visibleElements, selectedElements, allElementsMap, scale, appState, renderConfig, device, }: InteractiveSceneRenderConfig) => { atLeastOneVisibleElement: boolean; elementsMap: RenderableElementsMap; scrollBars?: undefined; } | { scrollBars: import("../scene/types").ScrollBars | undefined; atLeastOneVisibleElement: boolean; elementsMap: RenderableElementsMap; }, T extends boolean = false>(renderConfig: InteractiveSceneRenderConfig, throttle?: T | undefined) => T extends true ? void : ReturnType<U>;