UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

72 lines (70 loc) 1.81 kB
import { IgxSeriesComponent } from "./igx-series-component"; /** * Provides data for IgxDataChartComponent mouse button related events. */ export class IgxChartCursorEventArgs { /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); } /** * Gets the ItemsSource item associated with the current event. */ get item() { return this.i.item; } set item(v) { this.i.item = v; } /** * Gets the series associated with the current event. */ get series() { const r = this.i.series; if (r == null) { return null; } if (!r.externalObject) { let e = IgxSeriesComponent._createFromInternal(r); if (e) { e._implementation = r; } Object.defineProperty(r, 'externalObject', { value: e, enumerable: false, configurable: true, writable: true }); } return r.externalObject; } set series(v) { v == null ? this.i.series = null : this.i.series = v.i; } /** * Gets the Chart associated with the current event. */ get seriesViewer() { const r = this.i.seriesViewer; if (r == null) { return null; } return r.externalObject; } set seriesViewer(v) { v == null ? this.i.seriesViewer = null : this.i.seriesViewer = v.i; } /** * Provides a human readable expresion of the event arguments. */ toString() { let iv = this.i.toString(); return (iv); } }