UNPKG

igniteui-angular-charts

Version:

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

133 lines (128 loc) 6.77 kB
import { __extends } from "tslib"; import { Component, forwardRef, Input, ChangeDetectionStrategy } from '@angular/core'; import { IgxVerticalStackedSeriesBaseComponent } from "./igx-vertical-stacked-series-base-component"; import { IgxStackedSeriesBaseComponent } from "./igx-stacked-series-base-component"; import { IgxCategorySeriesComponent } from "./igx-category-series-component"; import { IgxMarkerSeriesComponent } from "./igx-marker-series-component"; import { IgxSeriesComponent } from "./igx-series-component"; import { StackedBarSeries } from "./StackedBarSeries"; import { toPoint } from "igniteui-angular-core"; import * as i0 from "@angular/core"; /** * Represents a IgxDataChartComponent stacked bar series. */ var IgxStackedBarSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgxStackedBarSeriesComponent, _super); function IgxStackedBarSeriesComponent() { return _super.call(this) || this; } IgxStackedBarSeriesComponent.prototype.createImplementation = function () { return new StackedBarSeries(); }; Object.defineProperty(IgxStackedBarSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgxStackedBarSeriesComponent.prototype, "isBar", { /** * Gets whether the current series shows a bar shape. */ get: function () { return this.i.ez; }, enumerable: false, configurable: true }); Object.defineProperty(IgxStackedBarSeriesComponent.prototype, "isMarkerlessDisplayPreferred", { /** * Overridden by derived series classes to indicate when marker-less display is preferred or not. */ get: function () { return this.i.fm; }, enumerable: false, configurable: true }); Object.defineProperty(IgxStackedBarSeriesComponent.prototype, "radiusX", { /** * Gets or sets the x-radius of the ellipse that is used to round the corners of the bar. */ get: function () { return this.i.ab7; }, set: function (v) { this.i.ab7 = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxStackedBarSeriesComponent.prototype, "radiusY", { /** * Gets or sets the y-radius of the ellipse that is used to round the corners of the bar. */ get: function () { return this.i.ab8; }, set: function (v) { this.i.ab8 = +v; }, enumerable: false, configurable: true }); /** * Scrolls the series to display the item for the specified data item. * The series is scrolled by the minimum amount required to place the specified data item within * the central 80% of the visible axis. * @param item * The data item (item) to scroll to. */ IgxStackedBarSeriesComponent.prototype.scrollIntoView = function (item) { var iv = this.i.ge(item); return (iv); }; /** * Gets the index of the item that resides at the provided world coordinates. * @param world * The world coordinates of the requested item. */ IgxStackedBarSeriesComponent.prototype.getItemIndex = function (world) { var iv = this.i.j4(toPoint(world)); return (iv); }; /** * Gets the item that is the best match for the specified world coordinates. * @param world * The world coordinates to use. */ IgxStackedBarSeriesComponent.prototype.getItem = function (world) { var iv = this.i.ko(toPoint(world)); return (iv); }; /** * For a category plotted series, returns the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned. */ IgxStackedBarSeriesComponent.prototype.getItemSpan = function () { var iv = this.i.ix(); return (iv); }; IgxStackedBarSeriesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxStackedBarSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); IgxStackedBarSeriesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: IgxStackedBarSeriesComponent, selector: "igx-stacked-bar-series", inputs: { radiusX: "radiusX", radiusY: "radiusY" }, providers: [{ provide: IgxVerticalStackedSeriesBaseComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }, { provide: IgxStackedSeriesBaseComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }, { provide: IgxCategorySeriesComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }, { provide: IgxMarkerSeriesComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }, { provide: IgxSeriesComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }], usesInheritance: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); return IgxStackedBarSeriesComponent; }(IgxVerticalStackedSeriesBaseComponent)); export { IgxStackedBarSeriesComponent }; i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxStackedBarSeriesComponent, decorators: [{ type: Component, args: [{ selector: 'igx-stacked-bar-series', template: "", providers: [{ provide: IgxVerticalStackedSeriesBaseComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }, { provide: IgxStackedSeriesBaseComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }, { provide: IgxCategorySeriesComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }, { provide: IgxMarkerSeriesComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }, { provide: IgxSeriesComponent, useExisting: forwardRef(function () { return IgxStackedBarSeriesComponent; }) }], changeDetection: ChangeDetectionStrategy.OnPush }] }], ctorParameters: function () { return []; }, propDecorators: { radiusX: [{ type: Input }], radiusY: [{ type: Input }] } });