UNPKG

igniteui-webcomponents-charts

Version:

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

128 lines (127 loc) 5.46 kB
import { __extends } from "tslib"; import { IgcFinancialOverlayComponent } from "./igc-financial-overlay-component"; import { BollingerBandsOverlay } from "./BollingerBandsOverlay"; import { getAllPropertyNames, toSpinal, toPoint } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Bollinger Bands financial overlay series. * Default required members: High, Low, Close * * You can use the `BollingerBandsOverlay` class represents a IgxDataChartComponent Bollinger Bands financial overlay series. */ export var IgcBollingerBandsOverlayComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcBollingerBandsOverlayComponent, _super); function IgcBollingerBandsOverlayComponent() { return _super.call(this) || this; } IgcBollingerBandsOverlayComponent.prototype.createImplementation = function () { return new BollingerBandsOverlay(); }; Object.defineProperty(IgcBollingerBandsOverlayComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcBollingerBandsOverlayComponent.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(); } }; IgcBollingerBandsOverlayComponent.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(IgcBollingerBandsOverlayComponent, "observedAttributes", { get: function () { if (IgcBollingerBandsOverlayComponent._observedAttributesIgcBollingerBandsOverlayComponent == null) { var names = getAllPropertyNames(IgcBollingerBandsOverlayComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcBollingerBandsOverlayComponent._observedAttributesIgcBollingerBandsOverlayComponent = names; } return IgcBollingerBandsOverlayComponent._observedAttributesIgcBollingerBandsOverlayComponent; }, enumerable: false, configurable: true }); IgcBollingerBandsOverlayComponent.register = function () { if (!IgcBollingerBandsOverlayComponent._isElementRegistered) { IgcBollingerBandsOverlayComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcBollingerBandsOverlayComponent.htmlTagName, IgcBollingerBandsOverlayComponent); } }; Object.defineProperty(IgcBollingerBandsOverlayComponent.prototype, "period", { /** * Gets or sets the moving average period for the current BollingerBandOverlay object. * The typical, and initial, value for Bollinger band periods is 14. * * You can use the `period` property for moving average of the current BollingerBandOverlay object. * * ```ts * this.series.period = 7; * ``` */ get: function () { return this.i.abw; }, set: function (v) { this.i.abw = +v; this._a("period", this.i.abw); }, enumerable: false, configurable: true }); Object.defineProperty(IgcBollingerBandsOverlayComponent.prototype, "multiplier", { /** * Gets or sets the moving average period for the current BollingerBandOverlay object. * The typical, and initial, value for Bollinger band multipliers is 2. * * You can use the `BollingerBandsOverlay` */ get: function () { return this.i.abv; }, set: function (v) { this.i.abv = +v; this._a("multiplier", this.i.abv); }, enumerable: false, configurable: true }); IgcBollingerBandsOverlayComponent.prototype.getSeriesValue = function (world, useInterpolation, skipUnknowns) { var iv = this.i.jd(toPoint(world), useInterpolation, skipUnknowns); return (iv); }; IgcBollingerBandsOverlayComponent.prototype.getPreviousOrExactIndex = function (world, skipUnknowns) { var iv = this.i.kj(toPoint(world), skipUnknowns); return (iv); }; IgcBollingerBandsOverlayComponent.prototype.getNextOrExactIndex = function (world, skipUnknowns) { var iv = this.i.kh(toPoint(world), skipUnknowns); return (iv); }; IgcBollingerBandsOverlayComponent._observedAttributesIgcBollingerBandsOverlayComponent = null; IgcBollingerBandsOverlayComponent.htmlTagName = "igc-bollinger-bands-overlay"; IgcBollingerBandsOverlayComponent._isElementRegistered = false; return IgcBollingerBandsOverlayComponent; }(IgcFinancialOverlayComponent));