igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
75 lines (74 loc) • 1.8 kB
JavaScript
import { FunnelSliceEventArgs as FunnelSliceEventArgs_internal } from "./FunnelSliceEventArgs";
import { fromRect, toRect, fromPoint, toPoint } from "igniteui-react-core";
/**
* Information about the clicked slice.
*/
export class IgrFunnelSliceEventArgs {
createImplementation() {
return new FunnelSliceEventArgs_internal();
}
get nativeElement() {
return this._implementation.nativeElement;
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
constructor() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
_provideImplementation(i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
/**
* The index of the 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;
}
/**
* The position of the mouse relative to the funnel chart.
*/
get position() {
return fromPoint(this.i.position);
}
set position(v) {
this.i.position = toPoint(v);
}
}