UNPKG

igniteui-react-charts

Version:

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

79 lines (78 loc) 2.51 kB
import { __extends } from "tslib"; import { SplineType_$type } from "./SplineType"; import { IgrHorizontalAnchoredCategorySeries } from "./igr-horizontal-anchored-category-series"; import { ensureBool, ensureEnum } from "igniteui-react-core"; /** * Represents the base class for all IgxDataChartComponent spline series. */ var IgrSplineSeriesBase = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrSplineSeriesBase, _super); function IgrSplineSeriesBase(props) { return _super.call(this, props) || this; } Object.defineProperty(IgrSplineSeriesBase.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSplineSeriesBase.prototype, "isSplineShapePartOfRange", { /** * Gets or sets whether to include the spline shape in the axis range requested of the axis. */ get: function () { return this.i.ade; }, set: function (v) { this.i.ade = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrSplineSeriesBase.prototype, "isAreaOrLine", { /** * Gets whether the current series shows an area or line shape. */ get: function () { return this.i.ex; }, enumerable: false, configurable: true }); Object.defineProperty(IgrSplineSeriesBase.prototype, "splineType", { /** * Gets or sets the type of spline to be rendered. * * ```ts * this.series.splineType = SplineType.Clamped; * ``` * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} > * * <IgrCategoryXAxis name="xAxis" /> * <IgrNumericYAxis name="yAxis" /> * * <IgrSplineAreaSeries * name="series1" * valueMemberPath="value"/> * </IgrDataChart> * ``` */ get: function () { return this.i.add; }, set: function (v) { this.i.add = ensureEnum(SplineType_$type, v); }, enumerable: false, configurable: true }); return IgrSplineSeriesBase; }(IgrHorizontalAnchoredCategorySeries)); export { IgrSplineSeriesBase };