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.aib = null; _this.aic = null; _this.ah9 = null; _this.aia = null; _this.ah7 = null; _this.ah8 = null; _this.ah5 = null; _this.ah6 = null; _this.ah3 = null; _this.ah4 = null; _this.ahx = null; _this.ahy = null; _this.ahv = null; _this.ahw = null; _this.ah1 = null; _this.ah2 = null; _this.ahz = null; _this.ah0 = null; return _this; } 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("StartValueXColumn", 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("StartValueYColumn", 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("StartLabelXColumn", 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("StartLabelYColumn", 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("EndValueXColumn", 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("EndValueYColumn", 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("EndLabelXColumn", 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("EndLabelYColumn", b, this.ah6); } }, 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("CenterLabelXColumn", 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("CenterLabelYColumn", b, this.ah4); } }, 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("AnnotationBadgeEnabledXColumn", 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("AnnotationBadgeEnabledYColumn", b, this.ahy); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aid", { get: function () { return this.ahv; }, set: function (a) { if (this.ahv != a) { var b = this.ahv; this.ahv = a; this.raisePropertyChanged("AnnotationBadgeBackgroundXColumn", b, this.ahv); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationPointLayer.prototype, "aie", { get: function () { return this.ahw; }, set: function (a) { if (this.ahw != a) { var b = this.ahw; this.ahw = a; this.raisePropertyChanged("AnnotationBadgeBackgroundYColumn", b, this.ahw); } }, 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("AnnotationBadgeOutlineXColumn", 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("AnnotationBadgeOutlineYColumn", b, this.ah2); } }, 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("AnnotationBadgeImageXColumn", 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("AnnotationBadgeImageYColumn", b, this.ah0); } }, enumerable: false, configurable: true }); DataAnnotationPointLayer.prototype.ahs = function (a, b) { if (a == 0 && b) { return 6; } return a; }; DataAnnotationPointLayer.prototype.ahr = function (a, b, c) { if (a == 0) { if (stringIsNullOrEmpty(c) || b) { return 6; } } return a; }; DataAnnotationPointLayer.prototype.rq = function (a, b, c, d) { _super.prototype.rq.call(this, a, b, c, d); switch (b) { case DataAnnotationPointLayer.$$p[22]: this.afn(this.ait); this.ait = this.dl(this.ake); break; case DataAnnotationPointLayer.$$p[23]: this.afn(this.aiu); this.aiu = this.dl(this.akh); break; case DataAnnotationPointLayer.$$p[19]: this.afn(this.air); this.air = this.dn(this.aj7); break; case DataAnnotationPointLayer.$$p[21]: this.afn(this.ais); this.ais = this.dn(this.akb); break; case DataAnnotationPointLayer.$$p[16]: this.afn(this.aip); this.aip = this.dl(this.aj0); break; case DataAnnotationPointLayer.$$p[17]: this.afn(this.aiq); this.aiq = this.dl(this.aj3); break; case DataAnnotationPointLayer.$$p[13]: this.afn(this.ain); this.ain = this.dn(this.ajt); break; case DataAnnotationPointLayer.$$p[15]: this.afn(this.aio); this.aio = this.dn(this.ajx); break; case DataAnnotationPointLayer.$$p[9]: this.afn(this.ail); this.ail = this.dn(this.ajl); break; case DataAnnotationPointLayer.$$p[11]: this.afn(this.aim); this.aim = this.dn(this.ajp); break; case DataAnnotationPointLayer.$$p[0]: this.afn(this.aid); this.aid = this.dn(this.aiw); break; case DataAnnotationPointLayer.$$p[1]: this.afn(this.aie); this.aie = this.dn(this.aiz); break; case DataAnnotationPointLayer.$$p[6]: this.afn(this.aij); this.aij = this.dn(this.aje); break; case DataAnnotationPointLayer.$$p[7]: this.afn(this.aik); this.aik = this.dn(this.ajh); break; case DataAnnotationPointLayer.$$p[2]: this.afn(this.aif); this.aif = this.dn(this.ai2); break; case DataAnnotationPointLayer.$$p[3]: this.afn(this.aig); this.aig = this.dn(this.ai5); break; case DataAnnotationPointLayer.$$p[4]: this.afn(this.aih); this.aih = this.dn(this.ai8); break; case DataAnnotationPointLayer.$$p[5]: this.afn(this.aii); this.aii = this.dn(this.ajb); break; case "StartValueXColumn": case "StartValueYColumn": case "EndValueXColumn": case "EndValueYColumn": this.aca(); break; case "CenterLabelXColumn": case "CenterLabelYColumn": case "StartLabelXColumn": case "StartLabelYColumn": case "EndLabelXColumn": case "EndLabelYColumn": this.aca(); 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.aca(); break; case "AnnotationBadgeBackgroundXColumn": case "AnnotationBadgeBackgroundYColumn": case "AnnotationBadgeOutlineXColumn": case "AnnotationBadgeOutlineYColumn": case "AnnotationBadgeEnabledXColumn": case "AnnotationBadgeEnabledYColumn": case "AnnotationBadgeImageXColumn": case "AnnotationBadgeImageYColumn": this.aca(); break; } }; DataAnnotationPointLayer.prototype.afr = function (a, b) { _super.prototype.afr.call(this, a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.ait); a.deregisterColumn(this.aiu); a.deregisterColumn(this.aip); a.deregisterColumn(this.aiq); a.deregisterColumn(this.air); a.deregisterColumn(this.ais); a.deregisterColumn(this.ain); a.deregisterColumn(this.aio); a.deregisterColumn(this.ail); a.deregisterColumn(this.aim); a.deregisterColumn(this.aid); a.deregisterColumn(this.aie); a.deregisterColumn(this.aij); a.deregisterColumn(this.aik); a.deregisterColumn(this.aif); a.deregisterColumn(this.aig); a.deregisterColumn(this.aih); a.deregisterColumn(this.aii); this.ait = null; this.aiu = null; this.aip = null; this.aiq = null; this.air = null; this.ais = null; this.ain = null; this.aio = null; this.ail = null; this.aim = null; this.aid = null; this.aie = null; this.aij = null; this.aik = null; this.aif = null; this.aig = null; this.aih = null; this.aii = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.ait = this.dl(this.ake); this.aiu = this.dl(this.akh); this.aip = this.dl(this.aj0); this.aiq = this.dl(this.aj3); this.air = this.dn(this.aj7); this.ais = this.dn(this.akb); this.ain = this.dn(this.ajt); this.aio = this.dn(this.ajx); this.ail = this.dn(this.ajl); this.aim = this.dn(this.ajp); this.aid = this.dn(this.aiw); this.aie = this.dn(this.aiz); this.aij = this.dn(this.aje); this.aik = this.dn(this.ajh); this.aif = this.dn(this.ai2); this.aig = this.dn(this.ai5); this.aih = this.dn(this.ai8); this.aii = this.dn(this.ajb); } }; DataAnnotationPointLayer.prototype.agl = function (a, b, c, d) { if (b) { var e = c ? this.agm(a, this.aik) : this.agm(a, this.aij); if (e == null) { e = this.agn(this.ac6, d); } return e; } else { var f = c ? this.agm(a, this.aie) : this.agm(a, this.aid); if (f == null) { f = this.agn(this.ac5, d); } return f; } }; DataAnnotationPointLayer.prototype.adt = function (a, b) { var c = b ? this.aig : this.aif; if (c == null || c.count <= a) { return this.aa0; } var d = c.item(a); return d != null ? d : this.aa0; }; DataAnnotationPointLayer.prototype.aes = function (a, b) { var c = b ? this.aii : this.aih; var d = this.aet(a, c); return d != null ? d : this.abn; }; DataAnnotationPointLayer.$t = markType(DataAnnotationPointLayer, 'DataAnnotationPointLayer', DataAnnotationRangeLayer.$); DataAnnotationPointLayer.$$p = markDep(DependencyProperty, PropertyMetadata, DataAnnotationPointLayer, 'raisePropertyChanged', ['AnnotationBadgeBackgroundXMemberPath:aiw:akj', [2, null], 'AnnotationBadgeBackgroundYMemberPath:aiz:akk', [2, null], 'AnnotationBadgeEnabledXMemberPath:ai2:akl', [2, null], 'AnnotationBadgeEnabledYMemberPath:ai5:akm', [2, null], 'AnnotationBadgeImageXMemberPath:ai8:akn', [2, null], 'AnnotationBadgeImageYMemberPath:ajb:ako', [2, null], 'AnnotationBadgeOutlineXMemberPath:aje:akp', [2, null], 'AnnotationBadgeOutlineYMemberPath:ajh:akq', [2, null], 'CenterLabelXDisplayMode:ahn:akr', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'CenterLabelXMemberPath:ajl:aks', [2, null], 'CenterLabelYDisplayMode:aho:akt', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'CenterLabelYMemberPath:ajp:aku', [2, null], 'EndLabelXDisplayMode:ahp:akv', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'EndLabelXMemberPath:ajt:akw', [2, null], 'EndLabelYDisplayMode:ahq:akx', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'EndLabelYMemberPath:ajx:aky', [2, null], 'EndValueXMemberPath:aj0:akz', [2, null], 'EndValueYMemberPath:aj3:ak0', [2, null], 'StartLabelXDisplayMode:aht:ak1', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'StartLabelXMemberPath:aj7:ak2', [2, null], 'StartLabelYDisplayMode:ahu:ak3', [DataAnnotationDisplayMode_$type, enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'StartLabelYMemberPath:akb:ak4', [2, null], 'StartValueXMemberPath:ake:ak5', [2, null], 'StartValueYMemberPath:akh:ak6', [2, null]]); return DataAnnotationPointLayer; }(DataAnnotationRangeLayer)); export { DataAnnotationPointLayer };