igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
121 lines (120 loc) • 5.23 kB
JavaScript
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";
/**
* Represents a IgxDataChartComponent Full Stochastic Oscillator indicator series.
* Default required members: High, Low, Close
*
* The `FullStochasticOscillatorIndicator` class represents a IgxDataChartComponent Full Stochastic Oscillator indicator series.
*/
export 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.acl;
}
set period(v) {
this.i.acl = +v;
this._a("period", this.i.acl);
}
/**
* 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.acn;
}
set triggerPeriod(v) {
this.i.acn = +v;
this._a("triggerPeriod", this.i.acn);
}
}
IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent = null;
IgcFullStochasticOscillatorIndicatorComponent.htmlTagName = "igc-full-stochastic-oscillator-indicator";
IgcFullStochasticOscillatorIndicatorComponent._isElementRegistered = false;
return IgcFullStochasticOscillatorIndicatorComponent;
})();