igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
99 lines (98 loc) • 4.28 kB
JavaScript
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component";
import { PercentagePriceOscillatorIndicator } from "./PercentagePriceOscillatorIndicator";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
let IgcPercentagePriceOscillatorIndicatorComponent = /*@__PURE__*/ (() => {
class IgcPercentagePriceOscillatorIndicatorComponent extends IgcStrategyBasedIndicatorComponent {
createImplementation() {
return new PercentagePriceOscillatorIndicator();
}
/**
* @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 (IgcPercentagePriceOscillatorIndicatorComponent._observedAttributesIgcPercentagePriceOscillatorIndicatorComponent == null) {
let names = getAllPropertyNames(IgcPercentagePriceOscillatorIndicatorComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcPercentagePriceOscillatorIndicatorComponent._observedAttributesIgcPercentagePriceOscillatorIndicatorComponent = names;
}
return IgcPercentagePriceOscillatorIndicatorComponent._observedAttributesIgcPercentagePriceOscillatorIndicatorComponent;
}
static register() {
if (!IgcPercentagePriceOscillatorIndicatorComponent._isElementRegistered) {
IgcPercentagePriceOscillatorIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcPercentagePriceOscillatorIndicatorComponent.htmlTagName, IgcPercentagePriceOscillatorIndicatorComponent);
}
}
/**
* Gets or sets the short moving average period for the current PercentagePriceOscillatorIndicator object.
* The typical, and initial, value for short PPO periods is 10.
*
* You can use the `ShortPeriod` to set the short moving average period.
*
* ```ts
* this.series.shortPeriod = 10;
* ```
*/
get shortPeriod() {
return this.i.shortPeriod;
}
set shortPeriod(v) {
this.i.shortPeriod = +v;
this._a("shortPeriod", this.i.shortPeriod);
}
/**
* Gets or sets the long moving average period for the current PercentagePriceOscillatorIndicator object.
* The typical, and initial, value for long PVO periods is 30.
*
* You can use the `LongPeriod` to set the long moving average period.
*
* ```ts
* this.series.longPeriod = 30;
* ```
*/
get longPeriod() {
return this.i.longPeriod;
}
set longPeriod(v) {
this.i.longPeriod = +v;
this._a("longPeriod", this.i.longPeriod);
}
}
IgcPercentagePriceOscillatorIndicatorComponent._observedAttributesIgcPercentagePriceOscillatorIndicatorComponent = null;
IgcPercentagePriceOscillatorIndicatorComponent.htmlTagName = "igc-percentage-price-oscillator-indicator";
IgcPercentagePriceOscillatorIndicatorComponent._isElementRegistered = false;
return IgcPercentagePriceOscillatorIndicatorComponent;
})();
export { IgcPercentagePriceOscillatorIndicatorComponent };