UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

39 lines (38 loc) 1.66 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { Base, Point_$type, markType } from "igniteui-react-core"; import { isNaN_ } from "igniteui-react-core"; /** * @hidden */ export let DomainChartPlotAreaPointerEventArgs = /*@__PURE__*/ (() => { class DomainChartPlotAreaPointerEventArgs extends Base { constructor(a, b) { super(); this.b = { $type: Point_$type, x: NaN, y: NaN }; this._plotAreaPosition = null; this.a = null; this.a = a; this.plotAreaPosition = b; } get plotAreaPosition() { return this._plotAreaPosition; } set plotAreaPosition(a) { this._plotAreaPosition = a; } get chartPosition() { if (isNaN_(this.b.x) && isNaN_(this.b.y)) { this.b.x = this.plotAreaPosition.x - this.a.xb.left; this.b.y = this.plotAreaPosition.y - this.a.xb.top; } return this.b; } } DomainChartPlotAreaPointerEventArgs.$t = /*@__PURE__*/ markType(DomainChartPlotAreaPointerEventArgs, 'DomainChartPlotAreaPointerEventArgs'); return DomainChartPlotAreaPointerEventArgs; })();