igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
75 lines (73 loc) • 1.81 kB
JavaScript
import { IgcSeriesComponent } from "./igc-series-component";
/**
* Provides data for IgxDataChartComponent mouse button related events.
*/
export class IgcChartCursorEventArgs {
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
constructor() {
}
_provideImplementation(i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
/**
* 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 = IgcSeriesComponent._createFromInternal(r);
if (e) {
e._implementation = r;
}
r.externalObject = e;
}
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);
}
}