UNPKG

igniteui-webcomponents-charts

Version:

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

79 lines (78 loc) 3.57 kB
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { FastStochasticOscillatorIndicator } from "./FastStochasticOscillatorIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent Fast Stochastic Oscillator indicator series. * Default required members: High, Low, Close */ export let IgcFastStochasticOscillatorIndicatorComponent = /*@__PURE__*/ (() => { class IgcFastStochasticOscillatorIndicatorComponent extends IgcStrategyBasedIndicatorComponent { createImplementation() { return new FastStochasticOscillatorIndicator(); } /** * @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 (IgcFastStochasticOscillatorIndicatorComponent._observedAttributesIgcFastStochasticOscillatorIndicatorComponent == null) { let names = getAllPropertyNames(IgcFastStochasticOscillatorIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcFastStochasticOscillatorIndicatorComponent._observedAttributesIgcFastStochasticOscillatorIndicatorComponent = names; } return IgcFastStochasticOscillatorIndicatorComponent._observedAttributesIgcFastStochasticOscillatorIndicatorComponent; } static register() { if (!IgcFastStochasticOscillatorIndicatorComponent._isElementRegistered) { IgcFastStochasticOscillatorIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcFastStochasticOscillatorIndicatorComponent.htmlTagName, IgcFastStochasticOscillatorIndicatorComponent); } } /** * Gets or sets the moving average period for the current FastStochasticOscillatorIndicator object. * The typical, and initial, value for FastStochasticOscillatorIndicator periods is 14. */ get period() { return this.i.acl; } set period(v) { this.i.acl = +v; this._a("period", this.i.acl); } } IgcFastStochasticOscillatorIndicatorComponent._observedAttributesIgcFastStochasticOscillatorIndicatorComponent = null; IgcFastStochasticOscillatorIndicatorComponent.htmlTagName = "igc-fast-stochastic-oscillator-indicator"; IgcFastStochasticOscillatorIndicatorComponent._isElementRegistered = false; return IgcFastStochasticOscillatorIndicatorComponent; })();