UNPKG

igniteui-webcomponents-charts

Version:

Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.

121 lines (120 loc) 5.26 kB
import { __extends } from "tslib"; import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { ChaikinOscillatorIndicator } from "./ChaikinOscillatorIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents the IgxDataChartComponent Chaikin Oscillator indicator series. * Default required members: Close, Low, High, Volume * * `ChaikinOscillatorIndicator` class specify the series as Chaikin Oscillator Indicator series. */ var IgcChaikinOscillatorIndicatorComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcChaikinOscillatorIndicatorComponent, _super); function IgcChaikinOscillatorIndicatorComponent() { return _super.call(this) || this; } IgcChaikinOscillatorIndicatorComponent.prototype.createImplementation = function () { return new ChaikinOscillatorIndicator(); }; Object.defineProperty(IgcChaikinOscillatorIndicatorComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcChaikinOscillatorIndicatorComponent.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(); } }; IgcChaikinOscillatorIndicatorComponent.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(IgcChaikinOscillatorIndicatorComponent, "observedAttributes", { get: function () { if (IgcChaikinOscillatorIndicatorComponent._observedAttributesIgcChaikinOscillatorIndicatorComponent == null) { var names = getAllPropertyNames(IgcChaikinOscillatorIndicatorComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcChaikinOscillatorIndicatorComponent._observedAttributesIgcChaikinOscillatorIndicatorComponent = names; } return IgcChaikinOscillatorIndicatorComponent._observedAttributesIgcChaikinOscillatorIndicatorComponent; }, enumerable: false, configurable: true }); IgcChaikinOscillatorIndicatorComponent.register = function () { if (!IgcChaikinOscillatorIndicatorComponent._isElementRegistered) { IgcChaikinOscillatorIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcChaikinOscillatorIndicatorComponent.htmlTagName, IgcChaikinOscillatorIndicatorComponent); } }; Object.defineProperty(IgcChaikinOscillatorIndicatorComponent.prototype, "shortPeriod", { /** * Gets or sets the short moving average period for the current ChaikinOscillatorIndicator object. * The typical, and initial, value for short CHO periods is 3. * * Set the `ShortPeriod` property if you wish to change the short moving average period for the indicator. * * ```ts * this.series.shortPeriod = 30; * ``` */ get: function () { return this.i.shortPeriod; }, set: function (v) { this.i.shortPeriod = +v; this._a("shortPeriod", this.i.shortPeriod); }, enumerable: false, configurable: true }); Object.defineProperty(IgcChaikinOscillatorIndicatorComponent.prototype, "longPeriod", { /** * Gets or sets the long moving average period for the current ChaikinOscillatorIndicator object. * The typical, and initial, value for long CHO periods is 10. * * Set the `LongPeriod` property if you wish to change the long moving average period for the indicator. * * ```ts * this.series.longPeriod = 30; * ``` */ get: function () { return this.i.longPeriod; }, set: function (v) { this.i.longPeriod = +v; this._a("longPeriod", this.i.longPeriod); }, enumerable: false, configurable: true }); IgcChaikinOscillatorIndicatorComponent._observedAttributesIgcChaikinOscillatorIndicatorComponent = null; IgcChaikinOscillatorIndicatorComponent.htmlTagName = "igc-chaikin-oscillator-indicator"; IgcChaikinOscillatorIndicatorComponent._isElementRegistered = false; return IgcChaikinOscillatorIndicatorComponent; }(IgcStrategyBasedIndicatorComponent)); export { IgcChaikinOscillatorIndicatorComponent };