UNPKG

igniteui-webcomponents-charts

Version:

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

100 lines (99 loc) 4.3 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { StochRSIIndicator } from "./StochRSIIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent StochRSI indicator series. * Default required members: Close * * `StochRSIIndicator` or Stochastic Relative Strength IndexI Indicator (SRSI) measures when a security is overbought or oversold within a specified period of time. The values range from 0 to 1. The StochRSI Indicator is calculated by applying the Stochastic Oscillator formula to RelativeStrengthIndexIndicator (RSI) data. * * Using this indicator requires setting the `CloseMemberPath`. */ var IgcStochRSIIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcStochRSIIndicatorComponent, _super); function IgcStochRSIIndicatorComponent() { return _super.call(this) || this; } IgcStochRSIIndicatorComponent.prototype.createImplementation = function () { return new StochRSIIndicator(); }; Object.defineProperty(IgcStochRSIIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcStochRSIIndicatorComponent.prototype.connectedCallback = function () { if (_super.prototype["connectedCallback"]) { _super.prototype["connectedCallback"].call(this); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } }; IgcStochRSIIndicatorComponent.prototype.disconnectedCallback = function () { if (_super.prototype["disconnectedCallback"]) { _super.prototype["disconnectedCallback"].call(this); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } }; Object.defineProperty(IgcStochRSIIndicatorComponent, "observedAttributes", { get: function () { if (IgcStochRSIIndicatorComponent._observedAttributesIgcStochRSIIndicatorComponent == null) { var names = getAllPropertyNames(IgcStochRSIIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcStochRSIIndicatorComponent._observedAttributesIgcStochRSIIndicatorComponent = names; } return IgcStochRSIIndicatorComponent._observedAttributesIgcStochRSIIndicatorComponent; }, enumerable: false, configurable: true }); IgcStochRSIIndicatorComponent.register = function () { if (!IgcStochRSIIndicatorComponent._isElementRegistered) { IgcStochRSIIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcStochRSIIndicatorComponent.htmlTagName, IgcStochRSIIndicatorComponent); } }; Object.defineProperty(IgcStochRSIIndicatorComponent.prototype, "period", { /** * Gets or sets the moving average period for the current StochRSIIndicator object. * The typical, and initial, value for StochRSI periods is 14. * * ```ts * this.series.period = 10; * ``` */ get: function () { return this.i.acl; }, set: function (v) { this.i.acl = +v; this._a("period", this.i.acl); }, enumerable: false, configurable: true }); IgcStochRSIIndicatorComponent._observedAttributesIgcStochRSIIndicatorComponent = null; IgcStochRSIIndicatorComponent.htmlTagName = "igc-stoch-rsi-indicator"; IgcStochRSIIndicatorComponent._isElementRegistered = false; return IgcStochRSIIndicatorComponent; }(IgcStrategyBasedIndicatorComponent)); export { IgcStochRSIIndicatorComponent };