igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
173 lines (172 loc) • 7.94 kB
JavaScript
import { Component, forwardRef, Input, ChangeDetectionStrategy } from '@angular/core';
import { DataAnnotationDisplayMode, DataAnnotationDisplayMode_$type } from "./DataAnnotationDisplayMode";
import { IgxDataAnnotationRangeLayerComponent } from "./igx-data-annotation-range-layer-component";
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 { DataAnnotationStripLayer } from "./DataAnnotationStripLayer";
import { ensureEnum } from "igniteui-angular-core";
import * as i0 from "@angular/core";
/**
* Represents an annotation layer that renders vertical or horizontal strips between values mapped to these properties:
* StartValueMemberPath
* EndValueMemberPath
*/
export class IgxDataAnnotationStripLayerComponent extends IgxDataAnnotationRangeLayerComponent {
createImplementation() {
return new DataAnnotationStripLayer();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
/**
* Gets or sets name of data column with positions for the start of annotations.
*/
get startValueMemberPath() {
return this.i.ai2;
}
set startValueMemberPath(v) {
this.i.ai2 = v;
}
/**
* Gets or sets mapping custom label at the start of annotations.
*/
get startLabelMemberPath() {
return this.i.aiz;
}
set startLabelMemberPath(v) {
this.i.aiz = v;
}
/**
* Gets or sets display mode of label in the start annotation.
*/
get startLabelDisplayMode() {
return this.i.ahr;
}
set startLabelDisplayMode(v) {
this.i.ahr = ensureEnum(DataAnnotationDisplayMode_$type, v);
}
/**
* Gets or sets name of data column with positions for end of annotation.
*/
get endValueMemberPath() {
return this.i.aiv;
}
set endValueMemberPath(v) {
this.i.aiv = v;
}
/**
* Gets or sets mapping custom label at the end of annotations.
*/
get endLabelMemberPath() {
return this.i.ais;
}
set endLabelMemberPath(v) {
this.i.ais = v;
}
/**
* Gets or sets display mode of label at the end annotation.
*/
get endLabelDisplayMode() {
return this.i.ahq;
}
set endLabelDisplayMode(v) {
this.i.ahq = ensureEnum(DataAnnotationDisplayMode_$type, v);
}
/**
* Gets or sets mapping custom label between start and end of data annotations.
*/
get centerLabelMemberPath() {
return this.i.aio;
}
set centerLabelMemberPath(v) {
this.i.aio = v;
}
/**
* Gets or sets display mode of label in the center annotation.
*/
get centerLabelDisplayMode() {
return this.i.ahp;
}
set centerLabelDisplayMode(v) {
this.i.ahp = ensureEnum(DataAnnotationDisplayMode_$type, v);
}
/**
* Gets or sets a member path for visibility of the badge annotations on an axis.
*/
get annotationBadgeEnabledMemberPath() {
return this.i.aie;
}
set annotationBadgeEnabledMemberPath(v) {
this.i.aie = v;
}
/**
* Gets or sets a member path for background of the badge annotations on an axis.
*/
get annotationBadgeBackgroundMemberPath() {
return this.i.aib;
}
set annotationBadgeBackgroundMemberPath(v) {
this.i.aib = v;
}
/**
* Gets or sets a member path for outline of the badge annotations on an axis.
*/
get annotationBadgeOutlineMemberPath() {
return this.i.aik;
}
set annotationBadgeOutlineMemberPath(v) {
this.i.aik = v;
}
/**
* Gets or sets a member path for image of the badge annotations on an axis.
*/
get annotationBadgeImageMemberPath() {
return this.i.aih;
}
set annotationBadgeImageMemberPath(v) {
this.i.aih = v;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0-rc.1", ngImport: i0, type: IgxDataAnnotationStripLayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0-rc.1", type: IgxDataAnnotationStripLayerComponent, isStandalone: true, selector: "igx-data-annotation-strip-layer", inputs: { startValueMemberPath: "startValueMemberPath", startLabelMemberPath: "startLabelMemberPath", startLabelDisplayMode: "startLabelDisplayMode", endValueMemberPath: "endValueMemberPath", endLabelMemberPath: "endLabelMemberPath", endLabelDisplayMode: "endLabelDisplayMode", centerLabelMemberPath: "centerLabelMemberPath", centerLabelDisplayMode: "centerLabelDisplayMode", annotationBadgeEnabledMemberPath: "annotationBadgeEnabledMemberPath", annotationBadgeBackgroundMemberPath: "annotationBadgeBackgroundMemberPath", annotationBadgeOutlineMemberPath: "annotationBadgeOutlineMemberPath", annotationBadgeImageMemberPath: "annotationBadgeImageMemberPath" }, providers: [{ provide: IgxDataAnnotationRangeLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }, { provide: IgxDataAnnotationShapeLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }, { provide: IgxDataAnnotationAxisLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }, { provide: IgxAnnotationLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }, { provide: IgxSeriesComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }], 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: IgxDataAnnotationStripLayerComponent, decorators: [{
type: Component,
args: [{
selector: 'igx-data-annotation-strip-layer',
template: ``,
providers: [{ provide: IgxDataAnnotationRangeLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }, { provide: IgxDataAnnotationShapeLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }, { provide: IgxDataAnnotationAxisLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }, { provide: IgxAnnotationLayerComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }, { provide: IgxSeriesComponent, useExisting: forwardRef(() => IgxDataAnnotationStripLayerComponent) }],
changeDetection: ChangeDetectionStrategy.OnPush
}]
}], ctorParameters: () => [], propDecorators: { startValueMemberPath: [{
type: Input
}], startLabelMemberPath: [{
type: Input
}], startLabelDisplayMode: [{
type: Input
}], endValueMemberPath: [{
type: Input
}], endLabelMemberPath: [{
type: Input
}], endLabelDisplayMode: [{
type: Input
}], centerLabelMemberPath: [{
type: Input
}], centerLabelDisplayMode: [{
type: Input
}], annotationBadgeEnabledMemberPath: [{
type: Input
}], annotationBadgeBackgroundMemberPath: [{
type: Input
}], annotationBadgeOutlineMemberPath: [{
type: Input
}], annotationBadgeImageMemberPath: [{
type: Input
}] } });