UNPKG

igniteui-react-charts

Version:

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

100 lines (99 loc) 3.68 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 } from "tslib"; import { Base, typeCast, markType, getInstanceType } from "igniteui-react-core"; import { IIndicatorProxy_$type } from "./IIndicatorProxy"; import { IShortPeriodLongPeriod_$type } from "./IShortPeriodLongPeriod"; import { StrategyBasedIndicator } from "./StrategyBasedIndicator"; /** * @hidden */ var IndicatorProxy = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IndicatorProxy, _super); function IndicatorProxy() { return _super !== null && _super.apply(this, arguments) || this; } IndicatorProxy.prototype.matchesType = function (a) { if (a.e9) { return true; } return false; }; IndicatorProxy.prototype.setCloseMemberPath = function (a, b) { a.zl = b; }; IndicatorProxy.prototype.setDisplayType = function (a, b) { a.abe = b; }; IndicatorProxy.prototype.setHighMemberPath = function (a, b) { a.zy = b; }; IndicatorProxy.prototype.setLongPeriod = function (a, b) { if (typeCast(IShortPeriodLongPeriod_$type, a) !== null) { a.longPeriod = b; } }; IndicatorProxy.prototype.setLowMemberPath = function (a, b) { a.z3 = b; }; IndicatorProxy.prototype.setNegativeBrush = function (a, b) { a.aa7 = b; }; IndicatorProxy.prototype.setOpenMemberPath = function (a, b) { a.z7 = b; }; IndicatorProxy.prototype.setPeriodOverride = function (a, b) { if (typeCast(StrategyBasedIndicator.$, a) !== null) { a.acl(b); } }; IndicatorProxy.prototype.setShortPeriod = function (a, b) { if (typeCast(IShortPeriodLongPeriod_$type, a) !== null) { a.shortPeriod = b; } }; IndicatorProxy.prototype.setSignalPeriod = function (a, b) { if (getInstanceType(a).typeName == "MovingAverageConvergenceDivergenceIndicator") { var s_ = a; var p_ = b; s_['signalPeriod'] = p_; } }; IndicatorProxy.prototype.setSmoothingPeriod = function (a, b) { if (getInstanceType(a).typeName == "FullStochasticOscillatorIndicator") { var s_ = a; var p_ = b; s_['smoothingPeriod'] = p_; } }; IndicatorProxy.prototype.setVolumeMemberPath = function (a, b) { a.aab = b; }; IndicatorProxy.prototype.setXAxis = function (a, b) { a.xh = b; }; IndicatorProxy.prototype.setYAxis = function (a, b) { a.x0 = b; }; IndicatorProxy.prototype.handleCustomIndicatorEvent = function (a, b) { if (getInstanceType(a).typeName == "CustomIndicator") { var s_ = a; var p_ = b; s_['indicator'] = p_; } }; IndicatorProxy.prototype.setMultiplier = function (a, b) { if (getInstanceType(a).typeName == "BollingerBandWidthIndicator") { var s_ = a; var p_ = b; s_['multiplier'] = p_; } }; IndicatorProxy.$t = markType(IndicatorProxy, 'IndicatorProxy', Base.$, [IIndicatorProxy_$type]); return IndicatorProxy; }(Base)); export { IndicatorProxy };