UNPKG

igniteui-react-charts

Version:

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

122 lines (121 loc) 4.32 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __extends, __read, __spreadArray, __values } from "tslib"; import { StrategyBasedIndicator } from "./StrategyBasedIndicator"; import { CustomIndicatorStrategy } from "./CustomIndicatorStrategy"; import { String_$type, fromEnum, markType } from "igniteui-react-core"; import { FinancialEventArgs } from "./FinancialEventArgs"; import { List$1 } from "igniteui-react-core"; /** * @hidden */ var CustomIndicator = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CustomIndicator, _super); function CustomIndicator() { var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this; _this.ac4 = null; _this.ac3 = null; return _this; } CustomIndicator.prototype.bk = function () { return new CustomIndicator(); }; CustomIndicator.prototype.get_aci = function () { return new CustomIndicatorStrategy(); }; Object.defineProperty(CustomIndicator.prototype, "aci", { get: function () { return this.get_aci(); }, enumerable: false, configurable: true }); CustomIndicator.prototype.get_acv = function () { return CustomIndicator.$; }; Object.defineProperty(CustomIndicator.prototype, "acv", { get: function () { return this.get_acv(); }, enumerable: false, configurable: true }); CustomIndicator.prototype.abu = function (a, b) { var e_1, _a; var c = this.x6(a, b); var d = this.x7(c); var e = new List$1(String_$type, 0); if (this.basedOnColumns != null) { var f = new FinancialEventArgs(c.calculateFrom, c.calculateCount, c, d, this); this.basedOnColumns(this, f); if (f.basedOn != null) { try { for (var _b = __values(fromEnum(f.basedOn)), _c = _b.next(); !_c.done; _c = _b.next()) { var g = _c.value; e.add(g); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } } return e; }; Object.defineProperty(CustomIndicator.prototype, "indicator", { get: function () { return this.ac4; }, set: function (a) { this.ac4 = a; this.ab2(); }, enumerable: false, configurable: true }); Object.defineProperty(CustomIndicator.prototype, "basedOnColumns", { get: function () { return this.ac3; }, set: function (a) { this.ac3 = a; }, enumerable: false, configurable: true }); CustomIndicator.prototype.abr = function (a, b) { _super.prototype.abr.call(this, a, b); if (this.indicator != null) { var c = this.x6(a, b); if (b == 0) { return false; } if (!this.y2(this.abu(a, b))) { return false; } this.indicator(this, new FinancialEventArgs(a, b, c, this.x7(c), this)); if (this.ack(c) && this.yc != null) { this.yc.ee(); } return true; } return false; }; CustomIndicator.$t = markType(CustomIndicator, 'CustomIndicator', StrategyBasedIndicator.$); return CustomIndicator; }(StrategyBasedIndicator)); export { CustomIndicator };