UNPKG

igniteui-webcomponents-charts

Version:

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

85 lines (84 loc) 3.14 kB
import { SplineType_$type } from "./SplineType"; import { IgcHorizontalAnchoredCategorySeriesComponent } from "./igc-horizontal-anchored-category-series-component"; import { getAllPropertyNames, toSpinal, ensureBool, ensureEnum, enumToString } from "igniteui-webcomponents-core"; /** * Represents the base class for all IgxDataChartComponent spline series. */ export let IgcSplineSeriesBaseComponent = /*@__PURE__*/ (() => { class IgcSplineSeriesBaseComponent extends IgcHorizontalAnchoredCategorySeriesComponent { /** * @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 (IgcSplineSeriesBaseComponent._observedAttributesIgcSplineSeriesBaseComponent == null) { let names = getAllPropertyNames(IgcSplineSeriesBaseComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcSplineSeriesBaseComponent._observedAttributesIgcSplineSeriesBaseComponent = names; } return IgcSplineSeriesBaseComponent._observedAttributesIgcSplineSeriesBaseComponent; } /** * Gets or sets whether to include the spline shape in the axis range requested of the axis. */ get isSplineShapePartOfRange() { return this.i.ac8; } set isSplineShapePartOfRange(v) { this.i.ac8 = ensureBool(v); this._a("isSplineShapePartOfRange", this.i.ac8); } /** * Gets whether the current series shows an area or line shape. */ get isAreaOrLine() { return this.i.ex; } /** * Gets or sets the type of spline to be rendered. * * ```ts * this.series.splineType = SplineType.Clamped; * ``` */ get splineType() { return this.i.ac7; } set splineType(v) { this.i.ac7 = ensureEnum(SplineType_$type, v); this._a("splineType", enumToString(SplineType_$type, this.i.ac7)); } } IgcSplineSeriesBaseComponent._observedAttributesIgcSplineSeriesBaseComponent = null; return IgcSplineSeriesBaseComponent; })();