UNPKG

igniteui-react-charts

Version:

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

512 lines (511 loc) 19.3 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __extends, __read, __spreadArray } from "tslib"; import { DataAnnotationRangeLayer } from "./DataAnnotationRangeLayer"; import { DependencyProperty } from "igniteui-react-core"; import { enumGetBox, typeCast, markType, markDep } from "igniteui-react-core"; import { DataAnnotationDisplayMode_$type } from "./DataAnnotationDisplayMode"; import { IFastItemsSource_$type } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; import { stringIsNullOrEmpty } from "igniteui-react-core"; /** * @hidden */ var DataAnnotationPointLayer = /** @class */ /*@__PURE__*/ (function (_super) { __extends(DataAnnotationPointLayer, _super); function DataAnnotationPointLayer() { var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this; _this.aid = null; _this.aie = null; _this.aib = null; _this.aic = null; _this.ah9 = null; _this.aia = null; _this.ah7 = null; _this.ah8 = null; _this.ah5 = null; _this.ah6 = null; _this.ahz = null; _this.ah0 = null; _this.ahx = null; _this.ahy = null; _this.ah3 = null; _this.ah4 = null; _this.ah1 = null; _this.ah2 = null; return _this; } Object.defineProperty(DataAnnotationPointLayer.prototype, "aiv", { get: function () { return this.aid; }, set: function (a) { if (this.aid != a) { var b = this.aid; this.aid = a; this.raisePropertyChanged("StartValueXColumn", b, this.aid); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aiw", { get: function () { return this.aie; }, set: function (a) { if (this.aie != a) { var b = this.aie; this.aie = a; this.raisePropertyChanged("StartValueYColumn", b, this.aie); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "ait", { get: function () { return this.aib; }, set: function (a) { if (this.aib != a) { var b = this.aib; this.aib = a; this.raisePropertyChanged("StartLabelXColumn", b, this.aib); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aiu", { get: function () { return this.aic; }, set: function (a) { if (this.aic != a) { var b = this.aic; this.aic = a; this.raisePropertyChanged("StartLabelYColumn", b, this.aic); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "air", { get: function () { return this.ah9; }, set: function (a) { if (this.ah9 != a) { var b = this.ah9; this.ah9 = a; this.raisePropertyChanged("EndValueXColumn", b, this.ah9); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "ais", { get: function () { return this.aia; }, set: function (a) { if (this.aia != a) { var b = this.aia; this.aia = a; this.raisePropertyChanged("EndValueYColumn", b, this.aia); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aip", { get: function () { return this.ah7; }, set: function (a) { if (this.ah7 != a) { var b = this.ah7; this.ah7 = a; this.raisePropertyChanged("EndLabelXColumn", b, this.ah7); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aiq", { get: function () { return this.ah8; }, set: function (a) { if (this.ah8 != a) { var b = this.ah8; this.ah8 = a; this.raisePropertyChanged("EndLabelYColumn", b, this.ah8); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "ain", { get: function () { return this.ah5; }, set: function (a) { if (this.ah5 != a) { var b = this.ah5; this.ah5 = a; this.raisePropertyChanged("CenterLabelXColumn", b, this.ah5); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aio", { get: function () { return this.ah6; }, set: function (a) { if (this.ah6 != a) { var b = this.ah6; this.ah6 = a; this.raisePropertyChanged("CenterLabelYColumn", b, this.ah6); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aih", { get: function () { return this.ahz; }, set: function (a) { if (this.ahz != a) { var b = this.ahz; this.ahz = a; this.raisePropertyChanged("AnnotationBadgeEnabledXColumn", b, this.ahz); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aii", { get: function () { return this.ah0; }, set: function (a) { if (this.ah0 != a) { var b = this.ah0; this.ah0 = a; this.raisePropertyChanged("AnnotationBadgeEnabledYColumn", b, this.ah0); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aif", { get: function () { return this.ahx; }, set: function (a) { if (this.ahx != a) { var b = this.ahx; this.ahx = a; this.raisePropertyChanged("AnnotationBadgeBackgroundXColumn", b, this.ahx); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aig", { get: function () { return this.ahy; }, set: function (a) { if (this.ahy != a) { var b = this.ahy; this.ahy = a; this.raisePropertyChanged("AnnotationBadgeBackgroundYColumn", b, this.ahy); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "ail", { get: function () { return this.ah3; }, set: function (a) { if (this.ah3 != a) { var b = this.ah3; this.ah3 = a; this.raisePropertyChanged("AnnotationBadgeOutlineXColumn", b, this.ah3); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aim", { get: function () { return this.ah4; }, set: function (a) { if (this.ah4 != a) { var b = this.ah4; this.ah4 = a; this.raisePropertyChanged("AnnotationBadgeOutlineYColumn", b, this.ah4); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aij", { get: function () { return this.ah1; }, set: function (a) { if (this.ah1 != a) { var b = this.ah1; this.ah1 = a; this.raisePropertyChanged("AnnotationBadgeImageXColumn", b, this.ah1); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aik", { get: function () { return this.ah2; }, set: function (a) { if (this.ah2 != a) { var b = this.ah2; this.ah2 = a; this.raisePropertyChanged("AnnotationBadgeImageYColumn", b, this.ah2); } }, enumerable: false, configurable: true }); DataAnnotationPointLayer.prototype.ahu = function (a, b) { if (a == 0 && b) { return 6; } return a; }; DataAnnotationPointLayer.prototype.aht = function (a, b, c) { if (a == 0) { if (stringIsNullOrEmpty(c) || b) { return 6; } } return a; }; DataAnnotationPointLayer.prototype.rs = function (a, b, c, d) { _super.prototype.rs.call(this, a, b, c, d); switch (b) { case DataAnnotationPointLayer.$$p[22]: this.afp(this.aiv); this.aiv = this.dl(this.akg); break; case DataAnnotationPointLayer.$$p[23]: this.afp(this.aiw); this.aiw = this.dl(this.akj); break; case DataAnnotationPointLayer.$$p[19]: this.afp(this.ait); this.ait = this.dn(this.aj9); break; case DataAnnotationPointLayer.$$p[21]: this.afp(this.aiu); this.aiu = this.dn(this.akd); break; case DataAnnotationPointLayer.$$p[16]: this.afp(this.air); this.air = this.dl(this.aj2); break; case DataAnnotationPointLayer.$$p[17]: this.afp(this.ais); this.ais = this.dl(this.aj5); break; case DataAnnotationPointLayer.$$p[13]: this.afp(this.aip); this.aip = this.dn(this.ajv); break; case DataAnnotationPointLayer.$$p[15]: this.afp(this.aiq); this.aiq = this.dn(this.ajz); break; case DataAnnotationPointLayer.$$p[9]: this.afp(this.ain); this.ain = this.dn(this.ajn); break; case DataAnnotationPointLayer.$$p[11]: this.afp(this.aio); this.aio = this.dn(this.ajr); break; case DataAnnotationPointLayer.$$p[0]: this.afp(this.aif); this.aif = this.dn(this.aiy); break; case DataAnnotationPointLayer.$$p[1]: this.afp(this.aig); this.aig = this.dn(this.ai1); break; case DataAnnotationPointLayer.$$p[6]: this.afp(this.ail); this.ail = this.dn(this.ajg); break; case DataAnnotationPointLayer.$$p[7]: this.afp(this.aim); this.aim = this.dn(this.ajj); break; case DataAnnotationPointLayer.$$p[2]: this.afp(this.aih); this.aih = this.dn(this.ai4); break; case DataAnnotationPointLayer.$$p[3]: this.afp(this.aii); this.aii = this.dn(this.ai7); break; case DataAnnotationPointLayer.$$p[4]: this.afp(this.aij); this.aij = this.dn(this.aja); break; case DataAnnotationPointLayer.$$p[5]: this.afp(this.aik); this.aik = this.dn(this.ajd); break; case "StartValueXColumn": case "StartValueYColumn": case "EndValueXColumn": case "EndValueYColumn": this.acc(); break; case "CenterLabelXColumn": case "CenterLabelYColumn": case "StartLabelXColumn": case "StartLabelYColumn": case "EndLabelXColumn": case "EndLabelYColumn": this.acc(); break; case DataAnnotationPointLayer.$$p[8]: case DataAnnotationPointLayer.$$p[10]: case DataAnnotationPointLayer.$$p[18]: case DataAnnotationPointLayer.$$p[20]: case DataAnnotationPointLayer.$$p[12]: case DataAnnotationPointLayer.$$p[14]: this.acc(); break; case "AnnotationBadgeBackgroundXColumn": case "AnnotationBadgeBackgroundYColumn": case "AnnotationBadgeOutlineXColumn": case "AnnotationBadgeOutlineYColumn": case "AnnotationBadgeEnabledXColumn": case "AnnotationBadgeEnabledYColumn": case "AnnotationBadgeImageXColumn": case "AnnotationBadgeImageYColumn": this.acc(); break; } }; DataAnnotationPointLayer.prototype.aft = function (a, b) { _super.prototype.aft.call(this, a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.aiv); a.deregisterColumn(this.aiw); a.deregisterColumn(this.air); a.deregisterColumn(this.ais); a.deregisterColumn(this.ait); a.deregisterColumn(this.aiu); a.deregisterColumn(this.aip); a.deregisterColumn(this.aiq); a.deregisterColumn(this.ain); a.deregisterColumn(this.aio); a.deregisterColumn(this.aif); a.deregisterColumn(this.aig); a.deregisterColumn(this.ail); a.deregisterColumn(this.aim); a.deregisterColumn(this.aih); a.deregisterColumn(this.aii); a.deregisterColumn(this.aij); a.deregisterColumn(this.aik); this.aiv = null; this.aiw = null; this.air = null; this.ais = null; this.ait = null; this.aiu = null; this.aip = null; this.aiq = null; this.ain = null; this.aio = null; this.aif = null; this.aig = null; this.ail = null; this.aim = null; this.aih = null; this.aii = null; this.aij = null; this.aik = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.aiv = this.dl(this.akg); this.aiw = this.dl(this.akj); this.air = this.dl(this.aj2); this.ais = this.dl(this.aj5); this.ait = this.dn(this.aj9); this.aiu = this.dn(this.akd); this.aip = this.dn(this.ajv); this.aiq = this.dn(this.ajz); this.ain = this.dn(this.ajn); this.aio = this.dn(this.ajr); this.aif = this.dn(this.aiy); this.aig = this.dn(this.ai1); this.ail = this.dn(this.ajg); this.aim = this.dn(this.ajj); this.aih = this.dn(this.ai4); this.aii = this.dn(this.ai7); this.aij = this.dn(this.aja); this.aik = this.dn(this.ajd); } }; DataAnnotationPointLayer.prototype.agn = function (a, b, c, d) { if (b) { var e = c ? this.ago(a, this.aim) : this.ago(a, this.ail); if (e == null) { e = this.agp(this.ac8, d); } return e; } else { var f = c ? this.ago(a, this.aig) : this.ago(a, this.aif); if (f == null) { f = this.agp(this.ac7, d); } return f; } }; DataAnnotationPointLayer.prototype.adv = function (a, b) { var c = b ? this.aii : this.aih; if (c == null || c.count <= a) { return this.aa2; } var d = c.item(a); return d != null ? d : this.aa2; }; DataAnnotationPointLayer.prototype.aeu = function (a, b) { var c = b ? this.aik : this.aij; var d = this.aev(a, c); return d != null ? d : this.abp; }; DataAnnotationPointLayer.$t = markType(DataAnnotationPointLayer, 'DataAnnotationPointLayer', DataAnnotationRangeLayer.$); DataAnnotationPointLayer.$$p = markDep(DependencyProperty, PropertyMetadata, DataAnnotationPointLayer, 'raisePropertyChanged', ['AnnotationBadgeBackgroundXMemberPath:aiy:akl', [2, null], 'AnnotationBadgeBackgroundYMemberPath:ai1:akm', [2, null], 'AnnotationBadgeEnabledXMemberPath:ai4:akn', [2, null], 'AnnotationBadgeEnabledYMemberPath:ai7:ako', [2, null], 'AnnotationBadgeImageXMemberPath:aja:akp', [2, null], 'AnnotationBadgeImageYMemberPath:ajd:akq', [2, null], 'AnnotationBadgeOutlineXMemberPath:ajg:akr', [2, null], 'AnnotationBadgeOutlineYMemberPath:ajj:aks', [2, null], 'CenterLabelXDisplayMode:ahp:akt', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'CenterLabelXMemberPath:ajn:aku', [2, null], 'CenterLabelYDisplayMode:ahq:akv', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'CenterLabelYMemberPath:ajr:akw', [2, null], 'EndLabelXDisplayMode:ahr:akx', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'EndLabelXMemberPath:ajv:aky', [2, null], 'EndLabelYDisplayMode:ahs:akz', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'EndLabelYMemberPath:ajz:ak0', [2, null], 'EndValueXMemberPath:aj2:ak1', [2, null], 'EndValueYMemberPath:aj5:ak2', [2, null], 'StartLabelXDisplayMode:ahv:ak3', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'StartLabelXMemberPath:aj9:ak4', [2, null], 'StartLabelYDisplayMode:ahw:ak5', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'StartLabelYMemberPath:akd:ak6', [2, null], 'StartValueXMemberPath:akg:ak7', [2, null], 'StartValueYMemberPath:akj:ak8', [2, null]]); return DataAnnotationPointLayer; }(DataAnnotationRangeLayer)); export { DataAnnotationPointLayer };