/** * Copyright 2014-present Palantir Technologies * @license MIT */ import { GuideLineLayer } from "../components/guideLineLayer"; export interface IDragLineCallback { (dragLineLayer: DragLineLayer): void; } export declare class DragLineLayer extends GuideLineLayer { private _dragInteraction; private _detectionRadius; private _detectionEdge; private _enabled; private _dragStartCallbacks; private _dragCallbacks; private _dragEndCallbacks; private _disconnectInteraction; constructor(orientation: string); protected _setup(): void; renderImmediately(): this; /** * Gets the detection radius of the drag line in pixels. */ detectionRadius(): number; /** * Sets the detection radius of the drag line in pixels. * * @param {number} detectionRadius * @return {DragLineLayer} The calling DragLineLayer. */ detectionRadius(detectionRadius: number): this; /** * Gets whether the DragLineLayer is enabled. */ enabled(): boolean; /** * Enables or disables the DragLineLayer. * * @param {boolean} enabled * @return {DragLineLayer} The calling DragLineLayer. */ enabled(enabled: boolean): this; /** * Sets the callback to be called when dragging starts. * The callback will be passed the calling DragLineLayer. * * @param {DragLineCallback} callback * @returns {DragLineLayer} The calling DragLineLayer. */ onDragStart(callback: IDragLineCallback): this; /** * Removes a callback that would be called when dragging starts. * * @param {DragLineCallback} callback * @returns {DragLineLayer} The calling DragLineLayer. */ offDragStart(callback: IDragLineCallback): this; /** * Sets a callback to be called during dragging. * The callback will be passed the calling DragLineLayer. * * @param {DragLineCallback} callback * @returns {DragLineLayer} The calling DragLineLayer. */ onDrag(callback: IDragLineCallback): this; /** * Removes a callback that would be called during dragging. * * @param {DragLineCallback} callback * @returns {DragLineLayer} The calling DragLineLayer. */ offDrag(callback: IDragLineCallback): this; /** * Sets a callback to be called when dragging ends. * The callback will be passed the calling DragLineLayer. * * @param {DragLineCallback} callback * @returns {DragLineLayer} The calling DragLineLayer. */ onDragEnd(callback: IDragLineCallback): this; /** * Removes a callback that would be called when dragging ends. * * @param {DragLineCallback} callback * @returns {DragLineLayer} The calling DragLineLayer. */ offDragEnd(callback: IDragLineCallback): this; destroy(): void; }