igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
93 lines (92 loc) • 2.86 kB
JavaScript
import { FunnelSliceEventArgs as FunnelSliceEventArgs_internal } from "./FunnelSliceEventArgs";
import { fromRect, toRect, fromPoint, toPoint } from "igniteui-webcomponents-core";
/**
* Information about the clicked slice.
*/
var IgcFunnelSliceEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgcFunnelSliceEventArgs() {
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgcFunnelSliceEventArgs.prototype.createImplementation = function () {
return new FunnelSliceEventArgs_internal();
};
Object.defineProperty(IgcFunnelSliceEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcFunnelSliceEventArgs.prototype.onImplementationCreated = function () {
};
IgcFunnelSliceEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgcFunnelSliceEventArgs.prototype, "index", {
/**
* The index of the slice.
*/
get: function () {
return this.i.index;
},
set: function (v) {
this.i.index = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcFunnelSliceEventArgs.prototype, "bounds", {
/**
* The bounds of the slice.
*/
get: function () {
return fromRect(this.i.bounds);
},
set: function (v) {
this.i.bounds = toRect(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcFunnelSliceEventArgs.prototype, "item", {
/**
* The data item for the clicked slice.
*/
get: function () {
return this.i.item;
},
set: function (v) {
this.i.item = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcFunnelSliceEventArgs.prototype, "position", {
/**
* The position of the mouse relative to the funnel chart.
*/
get: function () {
return fromPoint(this.i.position);
},
set: function (v) {
this.i.position = toPoint(v);
},
enumerable: false,
configurable: true
});
return IgcFunnelSliceEventArgs;
}());
export { IgcFunnelSliceEventArgs };