igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
59 lines (58 loc) • 1.47 kB
JavaScript
import { FunnelSliceClickedEventArgs as FunnelSliceClickedEventArgs_internal } from "./FunnelSliceClickedEventArgs";
import { fromRect, toRect } from "igniteui-angular-core";
/**
* Information about the clicked slice.
*/
export class IgxFunnelSliceClickedEventArgs {
constructor() {
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
createImplementation() {
return new FunnelSliceClickedEventArgs_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
_provideImplementation(i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
}
/**
* The index of the clicked slice.
*/
get index() {
return this.i.index;
}
set index(v) {
this.i.index = +v;
}
/**
* The bounds of the slice.
*/
get bounds() {
return fromRect(this.i.bounds);
}
set bounds(v) {
this.i.bounds = toRect(v);
}
/**
* The data item for the clicked slice.
*/
get item() {
return this.i.item;
}
set item(v) {
this.i.item = v;
}
}