UNPKG

igniteui-angular-charts

Version:

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

119 lines (117 loc) 5.32 kB
import { Component, forwardRef, Input, ChangeDetectionStrategy } from '@angular/core'; import { LegendEmptyValuesMode, LegendEmptyValuesMode_$type } from "igniteui-angular-core"; import { IgxAnchoredRadialSeriesComponent } from "./igx-anchored-radial-series-component"; import { IgxRadialBaseComponent } from "./igx-radial-base-component"; import { IgxMarkerSeriesComponent } from "./igx-marker-series-component"; import { IgxSeriesComponent } from "./igx-series-component"; import { RadialPieSeries } from "./RadialPieSeries"; import { ensureBool, ensureEnum, toPoint, fromRect } from "igniteui-angular-core"; import * as i0 from "@angular/core"; /** * Represents a IgxDataChartComponent radial pie series. * Compare values across categories by using radial pie slices. */ export class IgxRadialPieSeriesComponent extends IgxAnchoredRadialSeriesComponent { createImplementation() { return new RadialPieSeries(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } /** * Gets whether the current series shows a pie shape. */ get isPie() { return this.i.fr; } /** * Overridden by derived series classes to indicate when marker-less display is preferred or not. */ get isMarkerlessDisplayPreferred() { return this.i.fp; } /** * Gets or sets the x-radius of the ellipse that is used to round the corners of the column. */ get radiusX() { return this.i.afe; } set radiusX(v) { this.i.afe = +v; } /** * Gets or sets the y-radius of the ellipse that is used to round the corners of the column. */ get radiusY() { return this.i.aff; } set radiusY(v) { this.i.aff = +v; } /** * Gets or sets the property name that contains the legend labels. */ get legendLabelMemberPath() { return this.i.afj; } set legendLabelMemberPath(v) { this.i.afj = v; } /** * Determines display mode for zero values in the legend. */ get legendEmptyValuesMode() { return this.i.ae7; } set legendEmptyValuesMode(v) { this.i.ae7 = ensureEnum(LegendEmptyValuesMode_$type, v); } /** * Specifies that slice outlines should be drawn inside the slice rather than halfway * in and halfway out. */ get useInsetOutlines() { return this.i.afd; } set useInsetOutlines(v) { this.i.afd = ensureBool(v); } /** * 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. */ getItemSpan() { let iv = this.i.i5(); return (iv); } getSeriesValueBoundingBox(world) { let iv = this.i.xa(toPoint(world)); return fromRect(iv); } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0-rc.1", ngImport: i0, type: IgxRadialPieSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0-rc.1", type: IgxRadialPieSeriesComponent, isStandalone: true, selector: "igx-radial-pie-series", inputs: { radiusX: "radiusX", radiusY: "radiusY", legendLabelMemberPath: "legendLabelMemberPath", legendEmptyValuesMode: "legendEmptyValuesMode", useInsetOutlines: "useInsetOutlines" }, providers: [{ provide: IgxAnchoredRadialSeriesComponent, useExisting: forwardRef(() => IgxRadialPieSeriesComponent) }, { provide: IgxRadialBaseComponent, useExisting: forwardRef(() => IgxRadialPieSeriesComponent) }, { provide: IgxMarkerSeriesComponent, useExisting: forwardRef(() => IgxRadialPieSeriesComponent) }, { provide: IgxSeriesComponent, useExisting: forwardRef(() => IgxRadialPieSeriesComponent) }], usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0-rc.1", ngImport: i0, type: IgxRadialPieSeriesComponent, decorators: [{ type: Component, args: [{ selector: 'igx-radial-pie-series', template: ``, providers: [{ provide: IgxAnchoredRadialSeriesComponent, useExisting: forwardRef(() => IgxRadialPieSeriesComponent) }, { provide: IgxRadialBaseComponent, useExisting: forwardRef(() => IgxRadialPieSeriesComponent) }, { provide: IgxMarkerSeriesComponent, useExisting: forwardRef(() => IgxRadialPieSeriesComponent) }, { provide: IgxSeriesComponent, useExisting: forwardRef(() => IgxRadialPieSeriesComponent) }], changeDetection: ChangeDetectionStrategy.OnPush }] }], ctorParameters: () => [], propDecorators: { radiusX: [{ type: Input }], radiusY: [{ type: Input }], legendLabelMemberPath: [{ type: Input }], legendEmptyValuesMode: [{ type: Input }], useInsetOutlines: [{ type: Input }] } });