UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

82 lines (81 loc) 3.22 kB
import { Component, Input } from '@angular/core'; import { SplineType_$type } from "./SplineType"; import { IgxHorizontalAnchoredCategorySeriesComponent } from "./igx-horizontal-anchored-category-series-component"; import { ensureBool, ensureEnum } from "igniteui-angular-core"; import * as i0 from "@angular/core"; /** * Represents the base class for all IgxDataChartComponent spline series. */ export let IgxSplineSeriesBaseComponent = /*@__PURE__*/ (() => { class IgxSplineSeriesBaseComponent extends IgxHorizontalAnchoredCategorySeriesComponent { constructor() { super(); } /** * @hidden */ get i() { return this._implementation; } /** * Gets or sets whether to include the spline shape in the axis range requested of the axis. */ get isSplineShapePartOfRange() { return this.i.adn; } set isSplineShapePartOfRange(v) { this.i.adn = ensureBool(v); } /** * Gets whether the current series shows an area or line shape. */ get isAreaOrLine() { return this.i.ey; } /** * Gets or sets the type of spline to be rendered. * * ```html * <igx-data-chart * [dataSource]="data"> * <igx-category-x-axis * label="label" * #xAxis> * </igx-category-x-axis> * <igx-numeric-y-axis * #yAxis> * </igx-numeric-y-axis> * <igx-spline-area-series * [xAxis]="xAxis" * [yAxis]="yAxis" * splineType="clamped" * valueMemberPath="value"> * </igx-spline-area-series> * </igx-data-chart> * ``` * * ```ts * this.series.splineType = SplineType.Clamped; * ``` */ get splineType() { return this.i.adm; } set splineType(v) { this.i.adm = ensureEnum(SplineType_$type, v); } } IgxSplineSeriesBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxSplineSeriesBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); IgxSplineSeriesBaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: IgxSplineSeriesBaseComponent, selector: "ng-component", inputs: { isSplineShapePartOfRange: "isSplineShapePartOfRange", splineType: "splineType" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true }); return IgxSplineSeriesBaseComponent; })(); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxSplineSeriesBaseComponent, decorators: [{ type: Component, args: [{ template: ``, }] }], ctorParameters: function () { return []; }, propDecorators: { isSplineShapePartOfRange: [{ type: Input }], splineType: [{ type: Input }] } });