@devexperts/dxcharts-lite
Version:
38 lines (37 loc) • 1.92 kB
TypeScript
/*
* Copyright (C) 2019 - 2026 Devexperts Solutions IE Limited
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { CanvasBoundsContainer } from '../../canvas/canvas-bounds-container';
import EventBus from '../../events/event-bus';
import { ChartBaseElement } from '../../model/chart-base-element';
import { CanvasInputListenerComponent, Point } from '../../inputlisteners/canvas-input-listener.component';
import { ScaleModel } from '../../model/scale.model';
import { ChartModel } from '../chart/chart.model';
import { DragInfo } from '../dran-n-drop_helper/drag-n-drop.component';
import { ChartPanComponent } from '../pan/chart-pan.component';
export declare class NavigationMapMoveHandler extends ChartBaseElement {
private bus;
private chartModel;
private scale;
private canvasInputListeners;
private canvasBoundsContainer;
private chartPanComponent;
leftKnotDragStartXRelative: number;
rightKnotDragStartXRelative: number;
private lastMousePosition;
constructor(bus: EventBus, chartModel: ChartModel, scale: ScaleModel, canvasInputListeners: CanvasInputListenerComponent, canvasBoundsContainer: CanvasBoundsContainer, chartPanComponent: ChartPanComponent);
/**
* Method that activates the navigation map buttons and subscribes to their click and touch events.
* It also subscribes to the xChanged event of the scaleModel and updates the canvasBoundsContainer accordingly.
* @returns {void}
*/
protected doActivate(): void;
leftKnotDragStart: (point: Point) => void;
leftKnotDragTick: (dragInfo: DragInfo) => void;
rightKnotDragStart: (point: Point) => void;
rightKnotDragTick: (dragInfo: DragInfo) => void;
private sliderDragStart;
private sliderDragTick;
}