igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
141 lines (140 loc) • 6.33 kB
JavaScript
import { __extends } from "tslib";
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 var IgcFullStochasticOscillatorIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcFullStochasticOscillatorIndicatorComponent, _super);
function IgcFullStochasticOscillatorIndicatorComponent() {
return _super.call(this) || this;
}
IgcFullStochasticOscillatorIndicatorComponent.prototype.createImplementation = function () {
return new FullStochasticOscillatorIndicator();
};
Object.defineProperty(IgcFullStochasticOscillatorIndicatorComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcFullStochasticOscillatorIndicatorComponent.prototype.connectedCallback = function () {
if (_super.prototype["connectedCallback"]) {
_super.prototype["connectedCallback"].call(this);
}
if (this.i.connectedCallback) {
this.i.connectedCallback();
}
if (!this._attached) {
this._attached = true;
this._flushQueuedAttributes();
}
};
IgcFullStochasticOscillatorIndicatorComponent.prototype.disconnectedCallback = function () {
if (_super.prototype["disconnectedCallback"]) {
_super.prototype["disconnectedCallback"].call(this);
}
if (this.i.disconnectedCallback) {
this.i.disconnectedCallback();
}
if (this._attached) {
this._attached = false;
}
};
Object.defineProperty(IgcFullStochasticOscillatorIndicatorComponent, "observedAttributes", {
get: function () {
if (IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent == null) {
var names = getAllPropertyNames(IgcFullStochasticOscillatorIndicatorComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent = names;
}
return IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent;
},
enumerable: false,
configurable: true
});
IgcFullStochasticOscillatorIndicatorComponent.register = function () {
if (!IgcFullStochasticOscillatorIndicatorComponent._isElementRegistered) {
IgcFullStochasticOscillatorIndicatorComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcFullStochasticOscillatorIndicatorComponent.htmlTagName, IgcFullStochasticOscillatorIndicatorComponent);
}
};
Object.defineProperty(IgcFullStochasticOscillatorIndicatorComponent.prototype, "period", {
/**
* 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: function () {
return this.i.ac1;
},
set: function (v) {
this.i.ac1 = +v;
this._a("period", this.i.ac1);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcFullStochasticOscillatorIndicatorComponent.prototype, "smoothingPeriod", {
/**
* 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: function () {
return this.i.smoothingPeriod;
},
set: function (v) {
this.i.smoothingPeriod = +v;
this._a("smoothingPeriod", this.i.smoothingPeriod);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcFullStochasticOscillatorIndicatorComponent.prototype, "triggerPeriod", {
/**
* 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: function () {
return this.i.ac3;
},
set: function (v) {
this.i.ac3 = +v;
this._a("triggerPeriod", this.i.ac3);
},
enumerable: false,
configurable: true
});
IgcFullStochasticOscillatorIndicatorComponent._observedAttributesIgcFullStochasticOscillatorIndicatorComponent = null;
IgcFullStochasticOscillatorIndicatorComponent.htmlTagName = "igc-full-stochastic-oscillator-indicator";
IgcFullStochasticOscillatorIndicatorComponent._isElementRegistered = false;
return IgcFullStochasticOscillatorIndicatorComponent;
}(IgcStrategyBasedIndicatorComponent));