UNPKG

igniteui-webcomponents-charts

Version:

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

116 lines (115 loc) 5.01 kB
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { FullStochasticOscillatorIndicator } from "./FullStochasticOscillatorIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; let IgcFullStochasticOscillatorIndicatorComponent = /*@__PURE__*/ (() => { class IgcFullStochasticOscillatorIndicatorComponent extends IgcStrategyBasedIndicatorComponent { createImplementation() { return new FullStochasticOscillatorIndicator(); } /** * @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 (IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent == null) { let names = getAllPropertyNames(IgcFullStochasticOscillatorIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent = names; } return IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent; } static register() { if (!IgcFullStochasticOscillatorIndicatorComponent._isElementRegistered) { IgcFullStochasticOscillatorIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcFullStochasticOscillatorIndicatorComponent.htmlTagName, IgcFullStochasticOscillatorIndicatorComponent); } } /** * Gets or sets the moving average period for the current FullStochasticOscillatorIndicator object. * The typical, and initial, value for FullStochasticOscillatorIndicator periods is 14. * * You can use the `period` property for the moving average period of the current FullStochasticOscillatorIndicator object. * * ```ts * this.series.period = 30; * ``` */ get period() { return this.i.ac1; } set period(v) { this.i.ac1 = +v; this._a("period", this.i.ac1); } /** * Gets or sets the moving average SmoothingPeriod for the current FullStochasticOscillatorIndicator object. * The typical, and initial, value for FullStochasticOscillatorIndicator SmoothingPeriod is 3. * * The `SmoothingPeriod` property to fets/sets the moving average SmoothingPeriod for the current FullStochasticOscillatorIndicator object. * * ```ts * series.smoothingPeriod=30; * ``` */ get smoothingPeriod() { return this.i.smoothingPeriod; } set smoothingPeriod(v) { this.i.smoothingPeriod = +v; this._a("smoothingPeriod", this.i.smoothingPeriod); } /** * Gets or sets the moving average TriggerPeriod for the current FullStochasticOscillatorIndicator object. * The typical, and initial, value for FullStochasticOscillatorIndicator TriggerPeriod is 3. * * You can use the `period` to set the current moving average period. * * ```ts * this.series.triggerPeriod = 30; * ``` */ get triggerPeriod() { return this.i.ac3; } set triggerPeriod(v) { this.i.ac3 = +v; this._a("triggerPeriod", this.i.ac3); } } IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent = null; IgcFullStochasticOscillatorIndicatorComponent.htmlTagName = "igc-full-stochastic-oscillator-indicator"; IgcFullStochasticOscillatorIndicatorComponent._isElementRegistered = false; return IgcFullStochasticOscillatorIndicatorComponent; })(); export { IgcFullStochasticOscillatorIndicatorComponent };