UNPKG

igniteui-webcomponents-charts

Version:

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

100 lines (99 loc) 4.65 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { DetrendedPriceOscillatorIndicator } from "./DetrendedPriceOscillatorIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Detrended Price Oscillator indicator series. * Default required members: Close * * The `DetrendedPriceOscillatorIndicator` class represents a IgxDataChartComponent Detrended Price Oscillator indicator series. */ var IgcDetrendedPriceOscillatorIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcDetrendedPriceOscillatorIndicatorComponent, _super); function IgcDetrendedPriceOscillatorIndicatorComponent() { return _super.call(this) || this; } IgcDetrendedPriceOscillatorIndicatorComponent.prototype.createImplementation = function () { return new DetrendedPriceOscillatorIndicator(); }; Object.defineProperty(IgcDetrendedPriceOscillatorIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcDetrendedPriceOscillatorIndicatorComponent.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(); } }; IgcDetrendedPriceOscillatorIndicatorComponent.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(IgcDetrendedPriceOscillatorIndicatorComponent, "observedAttributes", { get: function () { if (IgcDetrendedPriceOscillatorIndicatorComponent._observedAttributesIgcDetrendedPriceOscillatorIndicatorComponent == null) { var names = getAllPropertyNames(IgcDetrendedPriceOscillatorIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDetrendedPriceOscillatorIndicatorComponent._observedAttributesIgcDetrendedPriceOscillatorIndicatorComponent = names; } return IgcDetrendedPriceOscillatorIndicatorComponent._observedAttributesIgcDetrendedPriceOscillatorIndicatorComponent; }, enumerable: false, configurable: true }); IgcDetrendedPriceOscillatorIndicatorComponent.register = function () { if (!IgcDetrendedPriceOscillatorIndicatorComponent._isElementRegistered) { IgcDetrendedPriceOscillatorIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcDetrendedPriceOscillatorIndicatorComponent.htmlTagName, IgcDetrendedPriceOscillatorIndicatorComponent); } }; Object.defineProperty(IgcDetrendedPriceOscillatorIndicatorComponent.prototype, "period", { /** * Gets or sets the moving average period for the current DetrendedPriceOscillatorIndicator object. * The typical, and initial, value for DPO periods is 20. * * You can use the `period` to set the current moving average period. * * ```ts * this.series.period = 30; * ``` */ get: function () { return this.i.acl; }, set: function (v) { this.i.acl = +v; this._a("period", this.i.acl); }, enumerable: false, configurable: true }); IgcDetrendedPriceOscillatorIndicatorComponent._observedAttributesIgcDetrendedPriceOscillatorIndicatorComponent = null; IgcDetrendedPriceOscillatorIndicatorComponent.htmlTagName = "igc-detrended-price-oscillator-indicator"; IgcDetrendedPriceOscillatorIndicatorComponent._isElementRegistered = false; return IgcDetrendedPriceOscillatorIndicatorComponent; }(IgcStrategyBasedIndicatorComponent)); export { IgcDetrendedPriceOscillatorIndicatorComponent };