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.agf);
}
set startLabelTextColor(v) {
this.i.agf = stringToBrush(v);
}
/**
* Gets or sets the background used for displaying the start annotation label.
*/
get startLabelBackground() {
return brushToString(this.i.agd);
}
set startLabelBackground(v) {
this.i.agd = stringToBrush(v);
}
/**
* Gets or sets the border color used for displaying Start annotation label.
*/
get startLabelBorderColor() {
return brushToString(this.i.age);
}
set startLabelBorderColor(v) {
this.i.age = stringToBrush(v);
}
/**
* Gets or sets the text color used for displaying the end annotation label.
*/
get endLabelTextColor() {
return brushToString(this.i.agc);
}
set endLabelTextColor(v) {
this.i.agc = stringToBrush(v);
}
/**
* Gets or sets the background used for displaying the end annotation label.
*/
get endLabelBackground() {
return brushToString(this.i.aga);
}
set endLabelBackground(v) {
this.i.aga = stringToBrush(v);
}
/**
* Gets or sets the border used for displaying the end annotation label.
*/
get endLabelBorderColor() {
return brushToString(this.i.agb);
}
set endLabelBorderColor(v) {
this.i.agb = stringToBrush(v);
}
/**
* Gets or sets the text color used for displaying the center annotation label.
*/
get centerLabelTextColor() {
return brushToString(this.i.af9);
}
set centerLabelTextColor(v) {
this.i.af9 = stringToBrush(v);
}
/**
* Gets or sets the background used for displaying the center annotation label.
*/
get centerLabelBackground() {
return brushToString(this.i.af7);
}
set centerLabelBackground(v) {
this.i.af7 = stringToBrush(v);
}
/**
* Gets or sets the border color used for displaying the center annotation label.
*/
get centerLabelBorderColor() {
return brushToString(this.i.af8);
}
set centerLabelBorderColor(v) {
this.i.af8 = stringToBrush(v);
}
}