UNPKG

igniteui-webcomponents-charts

Version:

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

103 lines (102 loc) 4.67 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { WilliamsPercentRIndicator } from "./WilliamsPercentRIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Williams %R indicator series. * Default required members: High, Low, Close * * The `WilliamsPercentRIndicator` scale ranges from 0 to -100. It is useful for identifying overbought and oversold securities. * The `WilliamsPercentRIndicator` is calculated by dividing the difference between the highest high for the period and the current close by the highest high minus the lowest low for the period. */ var IgcWilliamsPercentRIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcWilliamsPercentRIndicatorComponent, _super); function IgcWilliamsPercentRIndicatorComponent() { return _super.call(this) || this; } IgcWilliamsPercentRIndicatorComponent.prototype.createImplementation = function () { return new WilliamsPercentRIndicator(); }; Object.defineProperty(IgcWilliamsPercentRIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcWilliamsPercentRIndicatorComponent.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(); } }; IgcWilliamsPercentRIndicatorComponent.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(IgcWilliamsPercentRIndicatorComponent, "observedAttributes", { get: function () { if (IgcWilliamsPercentRIndicatorComponent._observedAttributesIgcWilliamsPercentRIndicatorComponent == null) { var names = getAllPropertyNames(IgcWilliamsPercentRIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcWilliamsPercentRIndicatorComponent._observedAttributesIgcWilliamsPercentRIndicatorComponent = names; } return IgcWilliamsPercentRIndicatorComponent._observedAttributesIgcWilliamsPercentRIndicatorComponent; }, enumerable: false, configurable: true }); IgcWilliamsPercentRIndicatorComponent.register = function () { if (!IgcWilliamsPercentRIndicatorComponent._isElementRegistered) { IgcWilliamsPercentRIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcWilliamsPercentRIndicatorComponent.htmlTagName, IgcWilliamsPercentRIndicatorComponent); } }; Object.defineProperty(IgcWilliamsPercentRIndicatorComponent.prototype, "period", { /** * Gets or sets the moving average period for the current StandardDeviationIndicator object. * The typical, and initial, value for Williams %R periods is 14. * * Gets or sets the `Period` for the moving average period. * * The typical, and initial, value for Williams %R periods is 14. * * ```ts * this.series.period = 30; * ``` */ get: function () { return this.i.acl; }, set: function (v) { this.i.acl = +v; this._a("period", this.i.acl); }, enumerable: false, configurable: true }); IgcWilliamsPercentRIndicatorComponent._observedAttributesIgcWilliamsPercentRIndicatorComponent = null; IgcWilliamsPercentRIndicatorComponent.htmlTagName = "igc-williams-percent-r-indicator"; IgcWilliamsPercentRIndicatorComponent._isElementRegistered = false; return IgcWilliamsPercentRIndicatorComponent; }(IgcStrategyBasedIndicatorComponent)); export { IgcWilliamsPercentRIndicatorComponent };