UNPKG

igniteui-webcomponents-charts

Version:

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

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