UNPKG

igniteui-webcomponents-charts

Version:

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

73 lines (72 loc) 3.41 kB
import { IgcItemwiseStrategyBasedIndicatorComponent } from "./igc-itemwise-strategy-based-indicator-component"; import { WeightedCloseIndicator } from "./WeightedCloseIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Weigted Close indicator series. * The weighted close indicator shows an average of the high low and close * for a day but with the closing price counted twice in the average. * Default required members: High, Low, Close * * The `WeightedCloseIndicator` is similar to the `TypicalPriceIndicator` in that it represents an average of the high price, low price, and closing price for a day. * However, with the `WeightedCloseIndicator`, more emphasis is placed on the closing price and it is included twice when calculating the arithmetic average. */ export let IgcWeightedCloseIndicatorComponent = /*@__PURE__*/ (() => { class IgcWeightedCloseIndicatorComponent extends IgcItemwiseStrategyBasedIndicatorComponent { createImplementation() { return new WeightedCloseIndicator(); } /** * @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 (IgcWeightedCloseIndicatorComponent._observedAttributesIgcWeightedCloseIndicatorComponent == null) { let names = getAllPropertyNames(IgcWeightedCloseIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcWeightedCloseIndicatorComponent._observedAttributesIgcWeightedCloseIndicatorComponent = names; } return IgcWeightedCloseIndicatorComponent._observedAttributesIgcWeightedCloseIndicatorComponent; } static register() { if (!IgcWeightedCloseIndicatorComponent._isElementRegistered) { IgcWeightedCloseIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcWeightedCloseIndicatorComponent.htmlTagName, IgcWeightedCloseIndicatorComponent); } } } IgcWeightedCloseIndicatorComponent._observedAttributesIgcWeightedCloseIndicatorComponent = null; IgcWeightedCloseIndicatorComponent.htmlTagName = "igc-weighted-close-indicator"; IgcWeightedCloseIndicatorComponent._isElementRegistered = false; return IgcWeightedCloseIndicatorComponent; })();