UNPKG

igniteui-angular-charts

Version:

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

104 lines (103 loc) 5.45 kB
import { Component, forwardRef, Input, ChangeDetectionStrategy } from '@angular/core'; import { IgxDataAnnotationShapeLayerComponent } from "./igx-data-annotation-shape-layer-component"; import { IgxDataAnnotationAxisLayerComponent } from "./igx-data-annotation-axis-layer-component"; import { IgxAnnotationLayerComponent } from "./igx-annotation-layer-component"; import { IgxSeriesComponent } from "./igx-series-component"; import { DataAnnotationSliceLayer } from "./DataAnnotationSliceLayer"; import * as i0 from "@angular/core"; /** * Represents an annotation layer that renders vertical or horizontal slices/lines at values mapped to AnnotationValueMemberPath property * horizontal slices/lines when TargetAxis is set to Y-axis * vertical slices/lines when TargetAxis is set to X-axis */ export class IgxDataAnnotationSliceLayerComponent extends IgxDataAnnotationShapeLayerComponent { createImplementation() { return new DataAnnotationSliceLayer(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } /** * Gets or sets name of data column with values used to position annotations. */ get annotationValueMemberPath() { return this.i.ahq; } set annotationValueMemberPath(v) { this.i.ahq = v; } /** * Gets or sets mapping custom label on axis annotations. */ get annotationLabelMemberPath() { return this.i.ahn; } set annotationLabelMemberPath(v) { this.i.ahn = v; } /** * Gets or sets a member path for visibility of the badge annotations on an axis. */ get annotationBadgeEnabledMemberPath() { return this.i.ahe; } set annotationBadgeEnabledMemberPath(v) { this.i.ahe = v; } /** * Gets or sets a member path for background of the badge annotations on an axis. */ get annotationBadgeBackgroundMemberPath() { return this.i.ahb; } set annotationBadgeBackgroundMemberPath(v) { this.i.ahb = v; } /** * Gets or sets a member path for outline of the badge annotations on an axis. */ get annotationBadgeOutlineMemberPath() { return this.i.ahk; } set annotationBadgeOutlineMemberPath(v) { this.i.ahk = v; } /** * Gets or sets a member path for image of the badge annotations on an axis. */ get annotationBadgeImageMemberPath() { return this.i.ahh; } set annotationBadgeImageMemberPath(v) { this.i.ahh = v; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0-rc.1", ngImport: i0, type: IgxDataAnnotationSliceLayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0-rc.1", type: IgxDataAnnotationSliceLayerComponent, isStandalone: true, selector: "igx-data-annotation-slice-layer", inputs: { annotationValueMemberPath: "annotationValueMemberPath", annotationLabelMemberPath: "annotationLabelMemberPath", annotationBadgeEnabledMemberPath: "annotationBadgeEnabledMemberPath", annotationBadgeBackgroundMemberPath: "annotationBadgeBackgroundMemberPath", annotationBadgeOutlineMemberPath: "annotationBadgeOutlineMemberPath", annotationBadgeImageMemberPath: "annotationBadgeImageMemberPath" }, providers: [{ provide: IgxDataAnnotationShapeLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationSliceLayerComponent) }, { provide: IgxDataAnnotationAxisLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationSliceLayerComponent) }, { provide: IgxAnnotationLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationSliceLayerComponent) }, { provide: IgxSeriesComponent, useExisting: forwardRef(() => IgxDataAnnotationSliceLayerComponent) }], 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: IgxDataAnnotationSliceLayerComponent, decorators: [{ type: Component, args: [{ selector: 'igx-data-annotation-slice-layer', template: ``, providers: [{ provide: IgxDataAnnotationShapeLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationSliceLayerComponent) }, { provide: IgxDataAnnotationAxisLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationSliceLayerComponent) }, { provide: IgxAnnotationLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationSliceLayerComponent) }, { provide: IgxSeriesComponent, useExisting: forwardRef(() => IgxDataAnnotationSliceLayerComponent) }], changeDetection: ChangeDetectionStrategy.OnPush }] }], ctorParameters: () => [], propDecorators: { annotationValueMemberPath: [{ type: Input }], annotationLabelMemberPath: [{ type: Input }], annotationBadgeEnabledMemberPath: [{ type: Input }], annotationBadgeBackgroundMemberPath: [{ type: Input }], annotationBadgeOutlineMemberPath: [{ type: Input }], annotationBadgeImageMemberPath: [{ type: Input }] } });