UNPKG

igniteui-react-charts

Version:

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

515 lines (514 loc) 16 kB
import { DataAnnotationInfo as DataAnnotationInfo_internal } from "./DataAnnotationInfo"; import { ensureBool, 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, "isStartLabel", { get: function () { return this.i.isStartLabel; }, set: function (v) { this.i.isStartLabel = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "isEndLabel", { get: function () { return this.i.isEndLabel; }, set: function (v) { this.i.isEndLabel = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "isCenterLabel", { get: function () { return this.i.isCenterLabel; }, set: function (v) { this.i.isCenterLabel = ensureBool(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 }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisBadgeBackground", { /** * Sets the x axis badge background color. */ get: function () { return brushToString(this.i.xAxisBadgeBackground); }, set: function (v) { this.i.xAxisBadgeBackground = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisBadgeBackground", { /** * Sets the y axis badge background color. */ get: function () { return brushToString(this.i.yAxisBadgeBackground); }, set: function (v) { this.i.yAxisBadgeBackground = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisBadgeOutline", { /** * Sets the x axis badge border color. */ get: function () { return brushToString(this.i.xAxisBadgeOutline); }, set: function (v) { this.i.xAxisBadgeOutline = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisBadgeOutline", { /** * Sets the y axis badge border color. */ get: function () { return brushToString(this.i.yAxisBadgeOutline); }, set: function (v) { this.i.yAxisBadgeOutline = stringToBrush(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisBadgeRadius", { /** * Sets the x axis badge border radius. */ get: function () { return this.i.xAxisBadgeRadius; }, set: function (v) { this.i.xAxisBadgeRadius = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisBadgeRadius", { /** * Sets the y axis badge border radius. */ get: function () { return this.i.yAxisBadgeRadius; }, set: function (v) { this.i.yAxisBadgeRadius = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisBadgeOutlineThickness", { /** * Sets the x axis badge border thickness. */ get: function () { return this.i.xAxisBadgeOutlineThickness; }, set: function (v) { this.i.xAxisBadgeOutlineThickness = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisBadgeOutlineThickness", { /** * Sets the y axis badge border thickness. */ get: function () { return this.i.yAxisBadgeOutlineThickness; }, set: function (v) { this.i.yAxisBadgeOutlineThickness = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisBadgeMargin", { /** * Sets the margin between the x axis badge and annotation text. */ get: function () { return this.i.xAxisBadgeMargin; }, set: function (v) { this.i.xAxisBadgeMargin = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisBadgeMargin", { /** * Sets the margin between the y axis badge and annotation text. */ get: function () { return this.i.yAxisBadgeMargin; }, set: function (v) { this.i.yAxisBadgeMargin = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisBadgeSize", { /** * Sets the size of the x axis badge. */ get: function () { return this.i.xAxisBadgeSize; }, set: function (v) { this.i.xAxisBadgeSize = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisBadgeSize", { /** * Sets the size of the y axis badge. */ get: function () { return this.i.yAxisBadgeSize; }, set: function (v) { this.i.yAxisBadgeSize = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisBadgeImagePath", { /** * Sets the path to an image to use in the x axis badge. */ get: function () { return this.i.xAxisBadgeImagePath; }, set: function (v) { this.i.xAxisBadgeImagePath = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisBadgeImagePath", { /** * Sets the path to an image to use in the y axis badge. */ get: function () { return this.i.yAxisBadgeImagePath; }, set: function (v) { this.i.yAxisBadgeImagePath = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "isXAxisBadgeEnabled", { /** * Sets whether the x axis badge is enabled or not. */ get: function () { return this.i.isXAxisBadgeEnabled; }, set: function (v) { this.i.isXAxisBadgeEnabled = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "isYAxisBadgeEnabled", { /** * Sets whether the y axis badge is enabled or not. */ get: function () { return this.i.isYAxisBadgeEnabled; }, set: function (v) { this.i.isYAxisBadgeEnabled = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "xAxisUserAnnotation", { /** * Sets whether the x axis badge is enabled or not. */ get: function () { var r = this.i.xAxisUserAnnotation; if (r == null) { return null; } return r.externalObject; }, set: function (v) { v == null ? this.i.xAxisUserAnnotation = null : this.i.xAxisUserAnnotation = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgrDataAnnotationInfo.prototype, "yAxisUserAnnotation", { /** * Sets whether the y axis badge is enabled or not. */ get: function () { var r = this.i.yAxisUserAnnotation; if (r == null) { return null; } return r.externalObject; }, set: function (v) { v == null ? this.i.yAxisUserAnnotation = null : this.i.yAxisUserAnnotation = v.i; }, enumerable: false, configurable: true }); IgrDataAnnotationInfo.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } if (this.xAxisUserAnnotation && this.xAxisUserAnnotation.name && this.xAxisUserAnnotation.name == name) { return this.xAxisUserAnnotation; } if (this.yAxisUserAnnotation && this.yAxisUserAnnotation.name && this.yAxisUserAnnotation.name == name) { return this.yAxisUserAnnotation; } return null; }; return IgrDataAnnotationInfo; }()); export { IgrDataAnnotationInfo };