igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
76 lines (75 loc) • 3.29 kB
JavaScript
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { StandardDeviationIndicator } from "./StandardDeviationIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
let IgcStandardDeviationIndicatorComponent = /*@__PURE__*/ (() => {
class IgcStandardDeviationIndicatorComponent extends IgcStrategyBasedIndicatorComponent {
createImplementation() {
return new StandardDeviationIndicator();
}
/**
* @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 (IgcStandardDeviationIndicatorComponent._observedAttributesIgcStandardDeviationIndicatorComponent == null) {
let names = getAllPropertyNames(IgcStandardDeviationIndicatorComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStandardDeviationIndicatorComponent._observedAttributesIgcStandardDeviationIndicatorComponent = names;
}
return IgcStandardDeviationIndicatorComponent._observedAttributesIgcStandardDeviationIndicatorComponent;
}
static register() {
if (!IgcStandardDeviationIndicatorComponent._isElementRegistered) {
IgcStandardDeviationIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStandardDeviationIndicatorComponent.htmlTagName, IgcStandardDeviationIndicatorComponent);
}
}
/**
* Gets or sets the moving average period for the current StandardDeviationIndicator object.
* The typical, and initial, value for STDEV periods is 20.
*/
get period() {
return this.i.ac1;
}
set period(v) {
this.i.ac1 = +v;
this._a("period", this.i.ac1);
}
}
IgcStandardDeviationIndicatorComponent._observedAttributesIgcStandardDeviationIndicatorComponent = null;
IgcStandardDeviationIndicatorComponent.htmlTagName = "igc-standard-deviation-indicator";
IgcStandardDeviationIndicatorComponent._isElementRegistered = false;
return IgcStandardDeviationIndicatorComponent;
})();
export { IgcStandardDeviationIndicatorComponent };