igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
186 lines (185 loc) • 6.3 kB
JavaScript
import { __extends } from "tslib";
import { DataAnnotationDisplayMode_$type } from "./DataAnnotationDisplayMode";
import { IgrUserShapeAnnotation } from "./igr-user-shape-annotation";
import { UserStripAnnotation as UserStripAnnotation_internal } from "./UserStripAnnotation";
import { brushToString, stringToBrush, ensureEnum } from "igniteui-react-core";
/**
* Represents an user annotation for rendering data strip annotation
*/
var IgrUserStripAnnotation = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrUserStripAnnotation, _super);
function IgrUserStripAnnotation() {
return _super.call(this) || this;
}
IgrUserStripAnnotation.prototype.createImplementation = function () {
return new UserStripAnnotation_internal();
};
Object.defineProperty(IgrUserStripAnnotation.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "startValue", {
/**
* Gets or sets the value that determines start of the annotation on an axis.
*/
get: function () {
return this.i.startValue;
},
set: function (v) {
this.i.startValue = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "startLabel", {
/**
* Gets or sets optional text displayed in the label at the start of annotation.
*/
get: function () {
return this.i.startLabel;
},
set: function (v) {
this.i.startLabel = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "startLabelColor", {
/**
* Gets or sets text color of the label at the start of annotation.
*/
get: function () {
return brushToString(this.i.startLabelColor);
},
set: function (v) {
this.i.startLabelColor = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "startLabelBackground", {
/**
* Gets or sets background of the label at the start of annotation.
*/
get: function () {
return brushToString(this.i.startLabelBackground);
},
set: function (v) {
this.i.startLabelBackground = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "startLabelBorderColor", {
/**
* Gets or sets border color of the label at the start of annotation.
*/
get: function () {
return brushToString(this.i.startLabelBorderColor);
},
set: function (v) {
this.i.startLabelBorderColor = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "endValue", {
/**
* Gets or sets the value that determines end of the annotation on an axis.
*/
get: function () {
return this.i.endValue;
},
set: function (v) {
this.i.endValue = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "endLabel", {
/**
* Gets or sets optional text displayed in the label at the end of annotation.
*/
get: function () {
return this.i.endLabel;
},
set: function (v) {
this.i.endLabel = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "endLabelColor", {
/**
* Gets or sets text color of the label at the end of annotation.
*/
get: function () {
return brushToString(this.i.endLabelColor);
},
set: function (v) {
this.i.endLabelColor = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "endLabelBackground", {
/**
* Gets or sets background of the label at the end of annotation.
*/
get: function () {
return brushToString(this.i.endLabelBackground);
},
set: function (v) {
this.i.endLabelBackground = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "endLabelBorderColor", {
/**
* Gets or sets border color of the label at the end of annotation.
*/
get: function () {
return brushToString(this.i.endLabelBorderColor);
},
set: function (v) {
this.i.endLabelBorderColor = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "startValueDisplayMode", {
/**
* Gets or sets display mode of start value of annotation.
*/
get: function () {
return this.i.startValueDisplayMode;
},
set: function (v) {
this.i.startValueDisplayMode = ensureEnum(DataAnnotationDisplayMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserStripAnnotation.prototype, "endValueDisplayMode", {
/**
* Gets or sets display mode of end value of annotation.
*/
get: function () {
return this.i.endValueDisplayMode;
},
set: function (v) {
this.i.endValueDisplayMode = ensureEnum(DataAnnotationDisplayMode_$type, v);
},
enumerable: false,
configurable: true
});
return IgrUserStripAnnotation;
}(IgrUserShapeAnnotation));
export { IgrUserStripAnnotation };