UNPKG

igniteui-angular-charts

Version:

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

111 lines (110 loc) 5.52 kB
import { __extends } from "tslib"; import { Component, forwardRef, ChangeDetectionStrategy } from '@angular/core'; import { IgxHorizontalAnchoredCategorySeriesComponent } from "./igx-horizontal-anchored-category-series-component"; import { IgxAnchoredCategorySeriesComponent } from "./igx-anchored-category-series-component"; import { IgxCategorySeriesComponent } from "./igx-category-series-component"; import { IgxMarkerSeriesComponent } from "./igx-marker-series-component"; import { IgxSeriesComponent } from "./igx-series-component"; import { StepLineSeries } from "./StepLineSeries"; import * as i0 from "@angular/core"; /** * Represents a IgxDataChartComponent step line series. * * ```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-step-line-series * [xAxis]="xAxis" * [yAxis]="yAxis" * valueMemberPath="value"> * </igx-step-line-series> * </igx-data-chart> * ``` * * ```ts * let series = new IgxStepLineSeriesComponent(); * series.xAxis = this.xAxis; * series.yAxis = this.yAxis; * series.valueMemberPath="value"; * this.chart.series.add(series); * ``` */ var IgxStepLineSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgxStepLineSeriesComponent, _super); function IgxStepLineSeriesComponent() { return _super.call(this) || this; } IgxStepLineSeriesComponent.prototype.createImplementation = function () { return new StepLineSeries(); }; Object.defineProperty(IgxStepLineSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgxStepLineSeriesComponent.prototype, "isLineOnly", { /** * Gets whether the current series shows only line shapes. */ get: function () { return this.i.fj; }, enumerable: false, configurable: true }); Object.defineProperty(IgxStepLineSeriesComponent.prototype, "isStep", { /** * Gets whether the current series shows step shapes. */ get: function () { return this.i.f0; }, enumerable: false, configurable: true }); Object.defineProperty(IgxStepLineSeriesComponent.prototype, "isMarkerlessDisplayPreferred", { /** * Overridden by derived series classes to indicate when marker-less display is preferred or not. */ get: function () { return this.i.fk; }, enumerable: false, configurable: true }); Object.defineProperty(IgxStepLineSeriesComponent.prototype, "isAreaOrLine", { /** * Gets whether the current series shows an area or line shape. */ get: function () { return this.i.ev; }, enumerable: false, configurable: true }); IgxStepLineSeriesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxStepLineSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); IgxStepLineSeriesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: IgxStepLineSeriesComponent, selector: "igx-step-line-series", providers: [{ provide: IgxHorizontalAnchoredCategorySeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }, { provide: IgxAnchoredCategorySeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }, { provide: IgxCategorySeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }, { provide: IgxMarkerSeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }, { provide: IgxSeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }], usesInheritance: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); return IgxStepLineSeriesComponent; }(IgxHorizontalAnchoredCategorySeriesComponent)); export { IgxStepLineSeriesComponent }; i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxStepLineSeriesComponent, decorators: [{ type: Component, args: [{ selector: 'igx-step-line-series', template: "", providers: [{ provide: IgxHorizontalAnchoredCategorySeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }, { provide: IgxAnchoredCategorySeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }, { provide: IgxCategorySeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }, { provide: IgxMarkerSeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }, { provide: IgxSeriesComponent, useExisting: forwardRef(function () { return IgxStepLineSeriesComponent; }) }], changeDetection: ChangeDetectionStrategy.OnPush }] }], ctorParameters: function () { return []; } });