UNPKG

igniteui-webcomponents-charts

Version:

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

89 lines (88 loc) 3.8 kB
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { ChaikinVolatilityIndicator } from "./ChaikinVolatilityIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Chaikin Volatility indicator series. * The ChaikinVolatility indicator attempts to show volatility by displaying the spread between * the high and low values. * Default required members: High, Low * * `ChaikinVolatilityIndicator` class specify the series as Chaikin Volitility Indicator series. */ export let IgcChaikinVolatilityIndicatorComponent = /*@__PURE__*/ (() => { class IgcChaikinVolatilityIndicatorComponent extends IgcStrategyBasedIndicatorComponent { createImplementation() { return new ChaikinVolatilityIndicator(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcChaikinVolatilityIndicatorComponent._observedAttributesIgcChaikinVolatilityIndicatorComponent == null) { let names = getAllPropertyNames(IgcChaikinVolatilityIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcChaikinVolatilityIndicatorComponent._observedAttributesIgcChaikinVolatilityIndicatorComponent = names; } return IgcChaikinVolatilityIndicatorComponent._observedAttributesIgcChaikinVolatilityIndicatorComponent; } static register() { if (!IgcChaikinVolatilityIndicatorComponent._isElementRegistered) { IgcChaikinVolatilityIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcChaikinVolatilityIndicatorComponent.htmlTagName, IgcChaikinVolatilityIndicatorComponent); } } /** * Gets or sets the moving average period for the current ChaikinVolatilityIndicator object. * The typical, and initial, value for ChaikinVolatilityIndicator periods is 10. * * Set the `Period` property if you wish to change the moving average period for the indicator. * * ```ts * this.series.longPeriod = 30; * ``` */ get period() { return this.i.acl; } set period(v) { this.i.acl = +v; this._a("period", this.i.acl); } } IgcChaikinVolatilityIndicatorComponent._observedAttributesIgcChaikinVolatilityIndicatorComponent = null; IgcChaikinVolatilityIndicatorComponent.htmlTagName = "igc-chaikin-volatility-indicator"; IgcChaikinVolatilityIndicatorComponent._isElementRegistered = false; return IgcChaikinVolatilityIndicatorComponent; })();