UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

79 lines (78 loc) 3.13 kB
import { __extends } from "tslib"; import { IgrStrategyBasedIndicator } from './igr-strategy-based-indicator'; import { CustomIndicator } from "./CustomIndicator"; import { IgrFinancialEventArgs } from "./igr-financial-event-args"; import { delegateCombine, delegateRemove } from "igniteui-react-core"; var IgrCustomIndicator = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrCustomIndicator, _super); function IgrCustomIndicator(props) { var _this = _super.call(this, props) || this; _this._indicator = null; _this._indicator_wrapped = null; _this._basedOnColumns = null; _this._basedOnColumns_wrapped = null; return _this; } IgrCustomIndicator.prototype.createImplementation = function () { return new CustomIndicator(); }; Object.defineProperty(IgrCustomIndicator.prototype, "i", { get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrCustomIndicator.prototype, "indicator", { /** * Event raised when the indicator values need to be computed. */ get: function () { return this._indicator; }, set: function (ev) { var _this = this; if (this._indicator !== null) { this.i.indicator = delegateRemove(this.i.indicator, this._indicator_wrapped); this._indicator_wrapped = null; this._indicator = null; } this._indicator = ev; this._indicator_wrapped = function (o, e) { var outerArgs = new IgrFinancialEventArgs(); outerArgs._provideImplementation(e); _this._indicator(_this, outerArgs); }; this.i.indicator = delegateCombine(this.i.indicator, this._indicator_wrapped); }, enumerable: false, configurable: true }); Object.defineProperty(IgrCustomIndicator.prototype, "basedOnColumns", { /** * Event raised when the basedOnColumns values need to be computed. */ get: function () { return this._basedOnColumns; }, set: function (ev) { var _this = this; if (this._basedOnColumns !== null) { this.i.basedOnColumns = delegateRemove(this.i.basedOnColumns, this._basedOnColumns_wrapped); this._basedOnColumns_wrapped = null; this._basedOnColumns = null; } this._basedOnColumns = ev; this._basedOnColumns_wrapped = function (o, e) { var outerArgs = new IgrFinancialEventArgs(); outerArgs._provideImplementation(e); _this._basedOnColumns(_this, outerArgs); }; this.i.basedOnColumns = delegateCombine(this.i.basedOnColumns, this._basedOnColumns_wrapped); }, enumerable: false, configurable: true }); return IgrCustomIndicator; }(IgrStrategyBasedIndicator)); export { IgrCustomIndicator };