UNPKG

igniteui-webcomponents-charts

Version:

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

73 lines (72 loc) 2.77 kB
import { IgcSplineSeriesBaseComponent } from "./igc-spline-series-base-component"; import { SplineSeries } from "./SplineSeries"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent spline series. */ export let IgcSplineSeriesComponent = /*@__PURE__*/ (() => { class IgcSplineSeriesComponent extends IgcSplineSeriesBaseComponent { createImplementation() { return new SplineSeries(); } /** * @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 (IgcSplineSeriesComponent._observedAttributesIgcSplineSeriesComponent == null) { let names = getAllPropertyNames(IgcSplineSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcSplineSeriesComponent._observedAttributesIgcSplineSeriesComponent = names; } return IgcSplineSeriesComponent._observedAttributesIgcSplineSeriesComponent; } static register() { if (!IgcSplineSeriesComponent._isElementRegistered) { IgcSplineSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcSplineSeriesComponent.htmlTagName, IgcSplineSeriesComponent); } } /** * Gets whether the current series shows a spline shape. */ get isSpline() { return this.i.f1; } } IgcSplineSeriesComponent._observedAttributesIgcSplineSeriesComponent = null; IgcSplineSeriesComponent.htmlTagName = "igc-spline-series"; IgcSplineSeriesComponent._isElementRegistered = false; return IgcSplineSeriesComponent; })();