igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
72 lines (71 loc) • 3.31 kB
JavaScript
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { EaseOfMovementIndicator } from "./EaseOfMovementIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent Ease of Movement indicator series.
* The ease of movement indicator by Richard W. Arms, Jr relates the price change of an asset to
* its volume. Normally smoothed with a moving average.
* Default required members: Low, High, Volume
*
* The ease of movment indicator is used to analyze relationships between a price changes and volume. One would usually plot this in a separate chart below the main price chart. It can be added to a chart like this:
*/
export let IgcEaseOfMovementIndicatorComponent = /*@__PURE__*/ (() => {
class IgcEaseOfMovementIndicatorComponent extends IgcStrategyBasedIndicatorComponent {
createImplementation() {
return new EaseOfMovementIndicator();
}
/**
* @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 (IgcEaseOfMovementIndicatorComponent._observedAttributesIgcEaseOfMovementIndicatorComponent == null) {
let names = getAllPropertyNames(IgcEaseOfMovementIndicatorComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcEaseOfMovementIndicatorComponent._observedAttributesIgcEaseOfMovementIndicatorComponent = names;
}
return IgcEaseOfMovementIndicatorComponent._observedAttributesIgcEaseOfMovementIndicatorComponent;
}
static register() {
if (!IgcEaseOfMovementIndicatorComponent._isElementRegistered) {
IgcEaseOfMovementIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcEaseOfMovementIndicatorComponent.htmlTagName, IgcEaseOfMovementIndicatorComponent);
}
}
}
IgcEaseOfMovementIndicatorComponent._observedAttributesIgcEaseOfMovementIndicatorComponent = null;
IgcEaseOfMovementIndicatorComponent.htmlTagName = "igc-ease-of-movement-indicator";
IgcEaseOfMovementIndicatorComponent._isElementRegistered = false;
return IgcEaseOfMovementIndicatorComponent;
})();