igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
98 lines (97 loc) • 2.82 kB
JavaScript
import { IgrDataAnnotationShapeLayer } from "./igr-data-annotation-shape-layer";
import { brushToString, stringToBrush } from "igniteui-react-core";
/**
* Represents a base of annotation layers that render from start/end range
*/
export class IgrDataAnnotationRangeLayer extends IgrDataAnnotationShapeLayer {
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
/**
* Gets or sets the text color used for displaying the start annotation label.
*/
get startLabelTextColor() {
return brushToString(this.i.af9);
}
set startLabelTextColor(v) {
this.i.af9 = stringToBrush(v);
}
/**
* Gets or sets the background used for displaying the start annotation label.
*/
get startLabelBackground() {
return brushToString(this.i.af7);
}
set startLabelBackground(v) {
this.i.af7 = stringToBrush(v);
}
/**
* Gets or sets the border color used for displaying Start annotation label.
*/
get startLabelBorderColor() {
return brushToString(this.i.af8);
}
set startLabelBorderColor(v) {
this.i.af8 = stringToBrush(v);
}
/**
* Gets or sets the text color used for displaying the end annotation label.
*/
get endLabelTextColor() {
return brushToString(this.i.af6);
}
set endLabelTextColor(v) {
this.i.af6 = stringToBrush(v);
}
/**
* Gets or sets the background used for displaying the end annotation label.
*/
get endLabelBackground() {
return brushToString(this.i.af4);
}
set endLabelBackground(v) {
this.i.af4 = stringToBrush(v);
}
/**
* Gets or sets the border used for displaying the end annotation label.
*/
get endLabelBorderColor() {
return brushToString(this.i.af5);
}
set endLabelBorderColor(v) {
this.i.af5 = stringToBrush(v);
}
/**
* Gets or sets the text color used for displaying the center annotation label.
*/
get centerLabelTextColor() {
return brushToString(this.i.af3);
}
set centerLabelTextColor(v) {
this.i.af3 = stringToBrush(v);
}
/**
* Gets or sets the background used for displaying the center annotation label.
*/
get centerLabelBackground() {
return brushToString(this.i.af1);
}
set centerLabelBackground(v) {
this.i.af1 = stringToBrush(v);
}
/**
* Gets or sets the border color used for displaying the center annotation label.
*/
get centerLabelBorderColor() {
return brushToString(this.i.af2);
}
set centerLabelBorderColor(v) {
this.i.af2 = stringToBrush(v);
}
}