UNPKG

igniteui-webcomponents-charts

Version:

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

89 lines (88 loc) 3.58 kB
import { IgcHorizontalStackedSeriesBaseComponent } from "./igc-horizontal-stacked-series-base-component"; import { StackedSplineAreaSeries } from "./StackedSplineAreaSeries"; import { getAllPropertyNames, toSpinal, ensureBool } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent stacked spline area series. */ export let IgcStackedSplineAreaSeriesComponent = /*@__PURE__*/ (() => { class IgcStackedSplineAreaSeriesComponent extends IgcHorizontalStackedSeriesBaseComponent { createImplementation() { return new StackedSplineAreaSeries(); } /** * @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 (IgcStackedSplineAreaSeriesComponent._observedAttributesIgcStackedSplineAreaSeriesComponent == null) { let names = getAllPropertyNames(IgcStackedSplineAreaSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcStackedSplineAreaSeriesComponent._observedAttributesIgcStackedSplineAreaSeriesComponent = names; } return IgcStackedSplineAreaSeriesComponent._observedAttributesIgcStackedSplineAreaSeriesComponent; } static register() { if (!IgcStackedSplineAreaSeriesComponent._isElementRegistered) { IgcStackedSplineAreaSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcStackedSplineAreaSeriesComponent.htmlTagName, IgcStackedSplineAreaSeriesComponent); } } /** * Gets or sets whether to include the spline shape in the axis range requested of the axis. */ get isSplineShapePartOfRange() { return this.i.aca; } set isSplineShapePartOfRange(v) { this.i.aca = ensureBool(v); this._a("isSplineShapePartOfRange", this.i.aca); } /** * 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; } } IgcStackedSplineAreaSeriesComponent._observedAttributesIgcStackedSplineAreaSeriesComponent = null; IgcStackedSplineAreaSeriesComponent.htmlTagName = "igc-stacked-spline-area-series"; IgcStackedSplineAreaSeriesComponent._isElementRegistered = false; return IgcStackedSplineAreaSeriesComponent; })();