igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
36 lines (35 loc) • 1.42 kB
JavaScript
/*
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-angular-core";
import { isNaN_ } from "igniteui-angular-core";
/**
* @hidden
*/
export class DomainChartPlotAreaPointerEventArgs extends Base {
static { this.$t = markType(DomainChartPlotAreaPointerEventArgs, 'DomainChartPlotAreaPointerEventArgs'); }
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.zd.left;
this.b.y = this.plotAreaPosition.y - this.a.zd.top;
}
return this.b;
}
}