igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
72 lines (71 loc) • 3.11 kB
JavaScript
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { TypicalPriceIndicator } from "./TypicalPriceIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent Typical Price indicator series.
* The typical price indicator is represented as a arithmetic average
* of the High, Low, and Close for a day.
* Default required members: High, Low, Close
*
* The `TypicalPriceIndicator` class represents a IgxDataChartComponent Typical Price indicator series.
*/
export let IgcTypicalPriceIndicatorComponent = /*@__PURE__*/ (() => {
class IgcTypicalPriceIndicatorComponent extends IgcStrategyBasedIndicatorComponent {
createImplementation() {
return new TypicalPriceIndicator();
}
/**
* @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 (IgcTypicalPriceIndicatorComponent._observedAttributesIgcTypicalPriceIndicatorComponent == null) {
let names = getAllPropertyNames(IgcTypicalPriceIndicatorComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcTypicalPriceIndicatorComponent._observedAttributesIgcTypicalPriceIndicatorComponent = names;
}
return IgcTypicalPriceIndicatorComponent._observedAttributesIgcTypicalPriceIndicatorComponent;
}
static register() {
if (!IgcTypicalPriceIndicatorComponent._isElementRegistered) {
IgcTypicalPriceIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcTypicalPriceIndicatorComponent.htmlTagName, IgcTypicalPriceIndicatorComponent);
}
}
}
IgcTypicalPriceIndicatorComponent._observedAttributesIgcTypicalPriceIndicatorComponent = null;
IgcTypicalPriceIndicatorComponent.htmlTagName = "igc-typical-price-indicator";
IgcTypicalPriceIndicatorComponent._isElementRegistered = false;
return IgcTypicalPriceIndicatorComponent;
})();