UNPKG

igniteui-webcomponents-charts

Version:

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

87 lines (86 loc) 3.31 kB
import { IgcStrategyBasedIndicatorComponent } from "./igc-strategy-based-indicator-component"; import { TRIXIndicator } from "./TRIXIndicator"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent TRIX indicator series. * Default required members: Close * * The `TRIXIndicator` class specify the series as Trix Indicator series. */ export let IgcTRIXIndicatorComponent = /*@__PURE__*/ (() => { class IgcTRIXIndicatorComponent extends IgcStrategyBasedIndicatorComponent { createImplementation() { return new TRIXIndicator(); } /** * @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 (IgcTRIXIndicatorComponent._observedAttributesIgcTRIXIndicatorComponent == null) { let names = getAllPropertyNames(IgcTRIXIndicatorComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcTRIXIndicatorComponent._observedAttributesIgcTRIXIndicatorComponent = names; } return IgcTRIXIndicatorComponent._observedAttributesIgcTRIXIndicatorComponent; } static register() { if (!IgcTRIXIndicatorComponent._isElementRegistered) { IgcTRIXIndicatorComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcTRIXIndicatorComponent.htmlTagName, IgcTRIXIndicatorComponent); } } /** * Gets or sets the moving average period for the current TRIXIndicator object. * The typical, and initial, value for TRIX periods is 15. * * The `Period` property is used for moving average period of the current TRIXIndicator object. * * ```ts * this.series.period = 30; * ``` */ get period() { return this.i.acl; } set period(v) { this.i.acl = +v; this._a("period", this.i.acl); } } IgcTRIXIndicatorComponent._observedAttributesIgcTRIXIndicatorComponent = null; IgcTRIXIndicatorComponent.htmlTagName = "igc-trix-indicator"; IgcTRIXIndicatorComponent._isElementRegistered = false; return IgcTRIXIndicatorComponent; })();