igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
74 lines (73 loc) • 2.26 kB
JavaScript
import { FunnelDataContext as FunnelDataContext_internal } from "./FunnelDataContext";
/**
* Represents contextual data for the funnel chart.
*/
var IgcFunnelDataContext = /** @class */ /*@__PURE__*/ (function () {
function IgcFunnelDataContext() {
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgcFunnelDataContext.prototype.createImplementation = function () {
return new FunnelDataContext_internal();
};
Object.defineProperty(IgcFunnelDataContext.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcFunnelDataContext.prototype.onImplementationCreated = function () {
};
IgcFunnelDataContext.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgcFunnelDataContext.prototype, "item", {
/**
* The data item that is in context.
*/
get: function () {
return this.i.item;
},
set: function (v) {
this.i.item = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcFunnelDataContext.prototype, "index", {
/**
* The index of the data item that is in context.
*/
get: function () {
return this.i.b;
},
set: function (v) {
this.i.b = +v;
},
enumerable: false,
configurable: true
});
IgcFunnelDataContext.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
};
return IgcFunnelDataContext;
}());
export { IgcFunnelDataContext };