UNPKG

igniteui-webcomponents-charts

Version:

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

112 lines (111 loc) 4.73 kB
import { __extends } from "tslib"; import { IgcFinancialOverlayComponent } from "./igc-financial-overlay-component"; import { PriceChannelOverlay } from "./PriceChannelOverlay"; import { getAllPropertyNames, toSpinal, toPoint } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Financial Price Channel Overlay series. * Default required members: High, Low * * You can use the `PriceChannelOverlay` to display price volatility. */ var IgcPriceChannelOverlayComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcPriceChannelOverlayComponent, _super); function IgcPriceChannelOverlayComponent() { return _super.call(this) || this; } IgcPriceChannelOverlayComponent.prototype.createImplementation = function () { return new PriceChannelOverlay(); }; Object.defineProperty(IgcPriceChannelOverlayComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcPriceChannelOverlayComponent.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(); } }; IgcPriceChannelOverlayComponent.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(IgcPriceChannelOverlayComponent, "observedAttributes", { get: function () { if (IgcPriceChannelOverlayComponent._observedAttributesIgcPriceChannelOverlayComponent == null) { var names = getAllPropertyNames(IgcPriceChannelOverlayComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcPriceChannelOverlayComponent._observedAttributesIgcPriceChannelOverlayComponent = names; } return IgcPriceChannelOverlayComponent._observedAttributesIgcPriceChannelOverlayComponent; }, enumerable: false, configurable: true }); IgcPriceChannelOverlayComponent.register = function () { if (!IgcPriceChannelOverlayComponent._isElementRegistered) { IgcPriceChannelOverlayComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcPriceChannelOverlayComponent.htmlTagName, IgcPriceChannelOverlayComponent); } }; Object.defineProperty(IgcPriceChannelOverlayComponent.prototype, "period", { /** * Gets or sets the moving average period for the current PriceChannelOverlay object. * The typical, and initial, value for Bollinger band periods is 14. * * You can use the `Period` to set the moving average. * * ```ts * this.series.period = 14; * ``` */ get: function () { return this.i.abd; }, set: function (v) { this.i.abd = +v; this._a("period", this.i.abd); }, enumerable: false, configurable: true }); IgcPriceChannelOverlayComponent.prototype.getSeriesValue = function (world, useInterpolation, skipUnknowns) { var iv = this.i.i6(toPoint(world), useInterpolation, skipUnknowns); return (iv); }; IgcPriceChannelOverlayComponent.prototype.getNextOrExactIndex = function (world, skipUnknowns) { var iv = this.i.j9(toPoint(world), skipUnknowns); return (iv); }; IgcPriceChannelOverlayComponent.prototype.getPreviousOrExactIndex = function (world, skipUnknowns) { var iv = this.i.kb(toPoint(world), skipUnknowns); return (iv); }; IgcPriceChannelOverlayComponent._observedAttributesIgcPriceChannelOverlayComponent = null; IgcPriceChannelOverlayComponent.htmlTagName = "igc-price-channel-overlay"; IgcPriceChannelOverlayComponent._isElementRegistered = false; return IgcPriceChannelOverlayComponent; }(IgcFinancialOverlayComponent)); export { IgcPriceChannelOverlayComponent };