UNPKG

igniteui-webcomponents-charts

Version:

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

87 lines (86 loc) 3.82 kB
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. */ export let IgcDetrendedPriceOscillatorIndicatorComponent = /*@__PURE__*/ (() => { class IgcDetrendedPriceOscillatorIndicatorComponent extends IgcStrategyBasedIndicatorComponent { createImplementation() { return new DetrendedPriceOscillatorIndicator(); } /** * @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 (IgcDetrendedPriceOscillatorIndicatorComponent._observedAttributesIgcDetrendedPriceOscillatorIndicatorComponent == null) { let names = getAllPropertyNames(IgcDetrendedPriceOscillatorIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDetrendedPriceOscillatorIndicatorComponent._observedAttributesIgcDetrendedPriceOscillatorIndicatorComponent = names; } return IgcDetrendedPriceOscillatorIndicatorComponent._observedAttributesIgcDetrendedPriceOscillatorIndicatorComponent; } static register() { if (!IgcDetrendedPriceOscillatorIndicatorComponent._isElementRegistered) { IgcDetrendedPriceOscillatorIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcDetrendedPriceOscillatorIndicatorComponent.htmlTagName, IgcDetrendedPriceOscillatorIndicatorComponent); } } /** * 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 period() { return this.i.acl; } set period(v) { this.i.acl = +v; this._a("period", this.i.acl); } } IgcDetrendedPriceOscillatorIndicatorComponent._observedAttributesIgcDetrendedPriceOscillatorIndicatorComponent = null; IgcDetrendedPriceOscillatorIndicatorComponent.htmlTagName = "igc-detrended-price-oscillator-indicator"; IgcDetrendedPriceOscillatorIndicatorComponent._isElementRegistered = false; return IgcDetrendedPriceOscillatorIndicatorComponent; })();