igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
81 lines (80 loc) • 2.88 kB
JavaScript
import { IgcSeriesComponent } from './igc-series-component';
import { TypeRegistrar } from "igniteui-webcomponents-core";
/**
* Event arguments for the Financial Chart's custom indicator event.
*/
var IgcFinancialChartCustomIndicatorArgs = /** @class */ /*@__PURE__*/ (function () {
function IgcFinancialChartCustomIndicatorArgs() {
}
Object.defineProperty(IgcFinancialChartCustomIndicatorArgs.prototype, "i", {
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcFinancialChartCustomIndicatorArgs.prototype.onImplementationCreated = function () {
};
IgcFinancialChartCustomIndicatorArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
};
Object.defineProperty(IgcFinancialChartCustomIndicatorArgs.prototype, "indicatorInfo", {
get: function () {
if (!this.i.indicatorInfo) {
return null;
}
if (!this.i.indicatorInfo.externalObject && TypeRegistrar.isRegistered("igc-financial-event-args")) {
var e = TypeRegistrar.create("igc-financial-event-args");
e._implementation = this.i.indicatorInfo;
this.i.indicatorInfo.externalObject = e;
}
if (this.i.indicatorInfo.externalObject) {
return this.i.indicatorInfo.externalObject;
}
return null;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcFinancialChartCustomIndicatorArgs.prototype, "series", {
/**
* The Series in context.
*/
get: function () {
var r = this.i.series;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = IgcSeriesComponent._createFromInternal(r);
if (e) {
e._implementation = r;
}
r.externalObject = e;
}
return r.externalObject;
},
set: function (v) {
v == null ? this.i.series = null : this.i.series = v.i;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcFinancialChartCustomIndicatorArgs.prototype, "index", {
/**
* An integer representing the position of the associated custom indicator in its host.
*/
get: function () {
return this.i.index;
},
set: function (v) {
this.i.index = +v;
},
enumerable: false,
configurable: true
});
return IgcFinancialChartCustomIndicatorArgs;
}());
export { IgcFinancialChartCustomIndicatorArgs };