igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
130 lines (129 loc) • 3.94 kB
JavaScript
import { DataAnnotationDisplayMode_$type } from "./DataAnnotationDisplayMode";
import { IgxUserShapeAnnotation } from "./igx-user-shape-annotation";
import { UserStripAnnotation as UserStripAnnotation_internal } from "./UserStripAnnotation";
import { brushToString, stringToBrush, ensureEnum } from "igniteui-angular-core";
/**
* Represents an user annotation for rendering data strip annotation
*/
export class IgxUserStripAnnotation extends IgxUserShapeAnnotation {
constructor() {
super();
}
createImplementation() {
return new UserStripAnnotation_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
/**
* Gets or sets the value that determines start of the annotation on an axis.
*/
get startValue() {
return this.i.startValue;
}
set startValue(v) {
this.i.startValue = +v;
}
/**
* Gets or sets optional text displayed in the label at the start of annotation.
*/
get startLabel() {
return this.i.startLabel;
}
set startLabel(v) {
this.i.startLabel = v;
}
/**
* Gets or sets text color of the label at the start of annotation.
*/
get startLabelColor() {
return brushToString(this.i.startLabelColor);
}
set startLabelColor(v) {
this.i.startLabelColor = stringToBrush(v);
}
/**
* Gets or sets background of the label at the start of annotation.
*/
get startLabelBackground() {
return brushToString(this.i.startLabelBackground);
}
set startLabelBackground(v) {
this.i.startLabelBackground = stringToBrush(v);
}
/**
* Gets or sets border color of the label at the start of annotation.
*/
get startLabelBorderColor() {
return brushToString(this.i.startLabelBorderColor);
}
set startLabelBorderColor(v) {
this.i.startLabelBorderColor = stringToBrush(v);
}
/**
* Gets or sets the value that determines end of the annotation on an axis.
*/
get endValue() {
return this.i.endValue;
}
set endValue(v) {
this.i.endValue = +v;
}
/**
* Gets or sets optional text displayed in the label at the end of annotation.
*/
get endLabel() {
return this.i.endLabel;
}
set endLabel(v) {
this.i.endLabel = v;
}
/**
* Gets or sets text color of the label at the end of annotation.
*/
get endLabelColor() {
return brushToString(this.i.endLabelColor);
}
set endLabelColor(v) {
this.i.endLabelColor = stringToBrush(v);
}
/**
* Gets or sets background of the label at the end of annotation.
*/
get endLabelBackground() {
return brushToString(this.i.endLabelBackground);
}
set endLabelBackground(v) {
this.i.endLabelBackground = stringToBrush(v);
}
/**
* Gets or sets border color of the label at the end of annotation.
*/
get endLabelBorderColor() {
return brushToString(this.i.endLabelBorderColor);
}
set endLabelBorderColor(v) {
this.i.endLabelBorderColor = stringToBrush(v);
}
/**
* Gets or sets display mode of start value of annotation.
*/
get startValueDisplayMode() {
return this.i.startValueDisplayMode;
}
set startValueDisplayMode(v) {
this.i.startValueDisplayMode = ensureEnum(DataAnnotationDisplayMode_$type, v);
}
/**
* Gets or sets display mode of end value of annotation.
*/
get endValueDisplayMode() {
return this.i.endValueDisplayMode;
}
set endValueDisplayMode(v) {
this.i.endValueDisplayMode = ensureEnum(DataAnnotationDisplayMode_$type, v);
}
}