UNPKG

igniteui-webcomponents-charts

Version:

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

82 lines (81 loc) 3.99 kB
import { __extends } from "tslib"; 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. */ var IgcWeightedCloseIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcWeightedCloseIndicatorComponent, _super); function IgcWeightedCloseIndicatorComponent() { return _super.call(this) || this; } IgcWeightedCloseIndicatorComponent.prototype.createImplementation = function () { return new WeightedCloseIndicator(); }; Object.defineProperty(IgcWeightedCloseIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcWeightedCloseIndicatorComponent.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(); } }; IgcWeightedCloseIndicatorComponent.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(IgcWeightedCloseIndicatorComponent, "observedAttributes", { get: function () { if (IgcWeightedCloseIndicatorComponent._observedAttributesIgcWeightedCloseIndicatorComponent == null) { var names = getAllPropertyNames(IgcWeightedCloseIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcWeightedCloseIndicatorComponent._observedAttributesIgcWeightedCloseIndicatorComponent = names; } return IgcWeightedCloseIndicatorComponent._observedAttributesIgcWeightedCloseIndicatorComponent; }, enumerable: false, configurable: true }); IgcWeightedCloseIndicatorComponent.register = function () { 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; }(IgcItemwiseStrategyBasedIndicatorComponent)); export { IgcWeightedCloseIndicatorComponent };