igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
107 lines (106 loc) • 5.88 kB
JavaScript
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 let IgxDataAnnotationSliceLayerComponent = /*@__PURE__*/ (() => {
class IgxDataAnnotationSliceLayerComponent extends IgxDataAnnotationShapeLayerComponent {
constructor() {
super();
}
createImplementation() {
return new DataAnnotationSliceLayer();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
/**
* Gets or sets name of data column with values used to position annotations.
*/
get annotationValueMemberPath() {
return this.i.aho;
}
set annotationValueMemberPath(v) {
this.i.aho = v;
}
/**
* Gets or sets mapping custom label on axis annotations.
*/
get annotationLabelMemberPath() {
return this.i.ahl;
}
set annotationLabelMemberPath(v) {
this.i.ahl = v;
}
/**
* Gets or sets a member path for visibility of the badge annotations on an axis.
*/
get annotationBadgeEnabledMemberPath() {
return this.i.ahc;
}
set annotationBadgeEnabledMemberPath(v) {
this.i.ahc = v;
}
/**
* Gets or sets a member path for background of the badge annotations on an axis.
*/
get annotationBadgeBackgroundMemberPath() {
return this.i.ag9;
}
set annotationBadgeBackgroundMemberPath(v) {
this.i.ag9 = v;
}
/**
* Gets or sets a member path for outline of the badge annotations on an axis.
*/
get annotationBadgeOutlineMemberPath() {
return this.i.ahi;
}
set annotationBadgeOutlineMemberPath(v) {
this.i.ahi = v;
}
/**
* Gets or sets a member path for image of the badge annotations on an axis.
*/
get annotationBadgeImageMemberPath() {
return this.i.ahf;
}
set annotationBadgeImageMemberPath(v) {
this.i.ahf = v;
}
}
IgxDataAnnotationSliceLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxDataAnnotationSliceLayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
IgxDataAnnotationSliceLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: IgxDataAnnotationSliceLayerComponent, 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 });
return IgxDataAnnotationSliceLayerComponent;
})();
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", 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: function () { return []; }, propDecorators: { annotationValueMemberPath: [{
type: Input
}], annotationLabelMemberPath: [{
type: Input
}], annotationBadgeEnabledMemberPath: [{
type: Input
}], annotationBadgeBackgroundMemberPath: [{
type: Input
}], annotationBadgeOutlineMemberPath: [{
type: Input
}], annotationBadgeImageMemberPath: [{
type: Input
}] } });