UNPKG

@devexperts/dxcharts-lite

Version:
21 lines (20 loc) 905 B
/* * Copyright (C) 2019 - 2025 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/. */ export declare const MouseButton: { left: number; middle: number; right: number; }; export type MouseButtonType = typeof MouseButton[keyof typeof MouseButton]; /** * @param {Element} element * @param {function} listener * @param {string} eventType * @param {boolean?} useCapture * @return {Function} */ export declare function subscribeListener<K extends keyof GlobalEventHandlersEventMap>(element: EventTarget, listener: (e: GlobalEventHandlersEventMap[K]) => void, eventType: K, useCapture?: boolean): () => void; export declare function leftMouseButtonListener(cb: (e: MouseEvent) => void): (e: MouseEvent) => void;