UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

237 lines (236 loc) 7.2 kB
import { DataAnnotationInfo as DataAnnotationInfo_internal } from "./DataAnnotationInfo"; import { brushToString, stringToBrush } from "igniteui-react-core"; /** * Represents data annotation */ var IgrDataAnnotationInfo = /** @class */ /*@__PURE__*/ (function () { function IgrDataAnnotationInfo() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } IgrDataAnnotationInfo.prototype.createImplementation = function () { return new DataAnnotationInfo_internal(); }; Object.defineProperty(IgrDataAnnotationInfo.prototype, "nativeElement", { get: function () { return this._implementation.nativeElement; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrDataAnnotationInfo.prototype.onImplementationCreated = function () { }; IgrDataAnnotationInfo.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } }; Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisPixel", { get: function () { return this.i.xAxisPixel; }, set: function (v) { this.i.xAxisPixel = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisPixel", { get: function () { return this.i.yAxisPixel; }, set: function (v) { this.i.yAxisPixel = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisWindow", { get: function () { return this.i.xAxisWindow; }, set: function (v) { this.i.xAxisWindow = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisWindow", { get: function () { return this.i.yAxisWindow; }, set: function (v) { this.i.yAxisWindow = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisValue", { get: function () { return this.i.xAxisValue; }, set: function (v) { this.i.xAxisValue = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisValue", { get: function () { return this.i.yAxisValue; }, set: function (v) { this.i.yAxisValue = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "dataIndex", { get: function () { return this.i.dataIndex; }, set: function (v) { this.i.dataIndex = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "dataValueX", { get: function () { return this.i.dataValueX; }, set: function (v) { this.i.dataValueX = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "dataValueY", { get: function () { return this.i.dataValueY; }, set: function (v) { this.i.dataValueY = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "dataLabelX", { get: function () { return this.i.dataLabelX; }, set: function (v) { this.i.dataLabelX = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "dataLabelY", { get: function () { return this.i.dataLabelY; }, set: function (v) { this.i.dataLabelY = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisLabel", { get: function () { return this.i.xAxisLabel; }, set: function (v) { this.i.xAxisLabel = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisLabel", { get: function () { return this.i.yAxisLabel; }, set: function (v) { this.i.yAxisLabel = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "textColor", { get: function () { return brushToString(this.i.textColor); }, set: function (v) { this.i.textColor = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "background", { get: function () { return brushToString(this.i.background); }, set: function (v) { this.i.background = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "borderColor", { get: function () { return brushToString(this.i.borderColor); }, set: function (v) { this.i.borderColor = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "borderRadius", { get: function () { return this.i.borderRadius; }, set: function (v) { this.i.borderRadius = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "borderThickness", { get: function () { return this.i.borderThickness; }, set: function (v) { this.i.borderThickness = +v; }, enumerable: false, configurable: true }); IgrDataAnnotationInfo.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; }; return IgrDataAnnotationInfo; }()); export { IgrDataAnnotationInfo };