UNPKG

igniteui-react-charts

Version:

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

438 lines (437 loc) 17.1 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 { 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 */ export let DataAnnotationPointLayer = /*@__PURE__*/ (() => { class DataAnnotationPointLayer extends DataAnnotationRangeLayer { constructor() { super(...arguments); this.aic = null; this.aid = null; this.aia = null; this.aib = null; this.ah8 = null; this.ah9 = null; this.ah6 = null; this.ah7 = null; this.ah4 = null; this.ah5 = null; this.ahy = null; this.ahz = null; this.ahw = null; this.ahx = null; this.ah2 = null; this.ah3 = null; this.ah0 = null; this.ah1 = null; } get aiu() { return this.aic; } set aiu(a) { if (this.aic != a) { let b = this.aic; this.aic = a; this.raisePropertyChanged("StartValueXColumn", b, this.aic); } } get aiv() { return this.aid; } set aiv(a) { if (this.aid != a) { let b = this.aid; this.aid = a; this.raisePropertyChanged("StartValueYColumn", b, this.aid); } } get ais() { return this.aia; } set ais(a) { if (this.aia != a) { let b = this.aia; this.aia = a; this.raisePropertyChanged("StartLabelXColumn", b, this.aia); } } get ait() { return this.aib; } set ait(a) { if (this.aib != a) { let b = this.aib; this.aib = a; this.raisePropertyChanged("StartLabelYColumn", b, this.aib); } } get aiq() { return this.ah8; } set aiq(a) { if (this.ah8 != a) { let b = this.ah8; this.ah8 = a; this.raisePropertyChanged("EndValueXColumn", b, this.ah8); } } get air() { return this.ah9; } set air(a) { if (this.ah9 != a) { let b = this.ah9; this.ah9 = a; this.raisePropertyChanged("EndValueYColumn", b, this.ah9); } } get aio() { return this.ah6; } set aio(a) { if (this.ah6 != a) { let b = this.ah6; this.ah6 = a; this.raisePropertyChanged("EndLabelXColumn", b, this.ah6); } } get aip() { return this.ah7; } set aip(a) { if (this.ah7 != a) { let b = this.ah7; this.ah7 = a; this.raisePropertyChanged("EndLabelYColumn", b, this.ah7); } } get aim() { return this.ah4; } set aim(a) { if (this.ah4 != a) { let b = this.ah4; this.ah4 = a; this.raisePropertyChanged("CenterLabelXColumn", b, this.ah4); } } get ain() { return this.ah5; } set ain(a) { if (this.ah5 != a) { let b = this.ah5; this.ah5 = a; this.raisePropertyChanged("CenterLabelYColumn", b, this.ah5); } } get aig() { return this.ahy; } set aig(a) { if (this.ahy != a) { let b = this.ahy; this.ahy = a; this.raisePropertyChanged("AnnotationBadgeEnabledXColumn", b, this.ahy); } } get aih() { return this.ahz; } set aih(a) { if (this.ahz != a) { let b = this.ahz; this.ahz = a; this.raisePropertyChanged("AnnotationBadgeEnabledYColumn", b, this.ahz); } } get aie() { return this.ahw; } set aie(a) { if (this.ahw != a) { let b = this.ahw; this.ahw = a; this.raisePropertyChanged("AnnotationBadgeBackgroundXColumn", b, this.ahw); } } get aif() { return this.ahx; } set aif(a) { if (this.ahx != a) { let b = this.ahx; this.ahx = a; this.raisePropertyChanged("AnnotationBadgeBackgroundYColumn", b, this.ahx); } } get aik() { return this.ah2; } set aik(a) { if (this.ah2 != a) { let b = this.ah2; this.ah2 = a; this.raisePropertyChanged("AnnotationBadgeOutlineXColumn", b, this.ah2); } } get ail() { return this.ah3; } set ail(a) { if (this.ah3 != a) { let b = this.ah3; this.ah3 = a; this.raisePropertyChanged("AnnotationBadgeOutlineYColumn", b, this.ah3); } } get aii() { return this.ah0; } set aii(a) { if (this.ah0 != a) { let b = this.ah0; this.ah0 = a; this.raisePropertyChanged("AnnotationBadgeImageXColumn", b, this.ah0); } } get aij() { return this.ah1; } set aij(a) { if (this.ah1 != a) { let b = this.ah1; this.ah1 = a; this.raisePropertyChanged("AnnotationBadgeImageYColumn", b, this.ah1); } } aht(a, b) { if (a == 0 && b) { return 6; } return a; } ahs(a, b, c) { if (a == 0) { if (stringIsNullOrEmpty(c) || b) { return 6; } } return a; } rr(a, b, c, d) { super.rr(a, b, c, d); switch (b) { case DataAnnotationPointLayer.$$p[22]: this.afo(this.aiu); this.aiu = this.dl(this.akf); break; case DataAnnotationPointLayer.$$p[23]: this.afo(this.aiv); this.aiv = this.dl(this.aki); break; case DataAnnotationPointLayer.$$p[19]: this.afo(this.ais); this.ais = this.dn(this.aj8); break; case DataAnnotationPointLayer.$$p[21]: this.afo(this.ait); this.ait = this.dn(this.akc); break; case DataAnnotationPointLayer.$$p[16]: this.afo(this.aiq); this.aiq = this.dl(this.aj1); break; case DataAnnotationPointLayer.$$p[17]: this.afo(this.air); this.air = this.dl(this.aj4); break; case DataAnnotationPointLayer.$$p[13]: this.afo(this.aio); this.aio = this.dn(this.aju); break; case DataAnnotationPointLayer.$$p[15]: this.afo(this.aip); this.aip = this.dn(this.ajy); break; case DataAnnotationPointLayer.$$p[9]: this.afo(this.aim); this.aim = this.dn(this.ajm); break; case DataAnnotationPointLayer.$$p[11]: this.afo(this.ain); this.ain = this.dn(this.ajq); break; case DataAnnotationPointLayer.$$p[0]: this.afo(this.aie); this.aie = this.dn(this.aix); break; case DataAnnotationPointLayer.$$p[1]: this.afo(this.aif); this.aif = this.dn(this.ai0); break; case DataAnnotationPointLayer.$$p[6]: this.afo(this.aik); this.aik = this.dn(this.ajf); break; case DataAnnotationPointLayer.$$p[7]: this.afo(this.ail); this.ail = this.dn(this.aji); break; case DataAnnotationPointLayer.$$p[2]: this.afo(this.aig); this.aig = this.dn(this.ai3); break; case DataAnnotationPointLayer.$$p[3]: this.afo(this.aih); this.aih = this.dn(this.ai6); break; case DataAnnotationPointLayer.$$p[4]: this.afo(this.aii); this.aii = this.dn(this.ai9); break; case DataAnnotationPointLayer.$$p[5]: this.afo(this.aij); this.aij = this.dn(this.ajc); break; case "StartValueXColumn": case "StartValueYColumn": case "EndValueXColumn": case "EndValueYColumn": this.acb(); break; case "CenterLabelXColumn": case "CenterLabelYColumn": case "StartLabelXColumn": case "StartLabelYColumn": case "EndLabelXColumn": case "EndLabelYColumn": this.acb(); 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.acb(); break; case "AnnotationBadgeBackgroundXColumn": case "AnnotationBadgeBackgroundYColumn": case "AnnotationBadgeOutlineXColumn": case "AnnotationBadgeOutlineYColumn": case "AnnotationBadgeEnabledXColumn": case "AnnotationBadgeEnabledYColumn": case "AnnotationBadgeImageXColumn": case "AnnotationBadgeImageYColumn": this.acb(); break; } } afs(a, b) { super.afs(a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.aiu); a.deregisterColumn(this.aiv); a.deregisterColumn(this.aiq); a.deregisterColumn(this.air); a.deregisterColumn(this.ais); a.deregisterColumn(this.ait); a.deregisterColumn(this.aio); a.deregisterColumn(this.aip); a.deregisterColumn(this.aim); a.deregisterColumn(this.ain); a.deregisterColumn(this.aie); a.deregisterColumn(this.aif); a.deregisterColumn(this.aik); a.deregisterColumn(this.ail); a.deregisterColumn(this.aig); a.deregisterColumn(this.aih); a.deregisterColumn(this.aii); a.deregisterColumn(this.aij); this.aiu = null; this.aiv = null; this.aiq = null; this.air = null; this.ais = null; this.ait = null; this.aio = null; this.aip = null; this.aim = null; this.ain = null; this.aie = null; this.aif = null; this.aik = null; this.ail = null; this.aig = null; this.aih = null; this.aii = null; this.aij = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.aiu = this.dl(this.akf); this.aiv = this.dl(this.aki); this.aiq = this.dl(this.aj1); this.air = this.dl(this.aj4); this.ais = this.dn(this.aj8); this.ait = this.dn(this.akc); this.aio = this.dn(this.aju); this.aip = this.dn(this.ajy); this.aim = this.dn(this.ajm); this.ain = this.dn(this.ajq); this.aie = this.dn(this.aix); this.aif = this.dn(this.ai0); this.aik = this.dn(this.ajf); this.ail = this.dn(this.aji); this.aig = this.dn(this.ai3); this.aih = this.dn(this.ai6); this.aii = this.dn(this.ai9); this.aij = this.dn(this.ajc); } } agm(a, b, c, d) { if (b) { let e = c ? this.agn(a, this.ail) : this.agn(a, this.aik); if (e == null) { e = this.ago(this.ac7, d); } return e; } else { let f = c ? this.agn(a, this.aif) : this.agn(a, this.aie); if (f == null) { f = this.ago(this.ac6, d); } return f; } } adu(a, b) { let c = b ? this.aih : this.aig; if (c == null || c.count <= a) { return this.aa1; } let d = c.item(a); return d != null ? d : this.aa1; } aet(a, b) { let c = b ? this.aij : this.aii; let d = this.aeu(a, c); return d != null ? d : this.abo; } } DataAnnotationPointLayer.$t = /*@__PURE__*/ markType(DataAnnotationPointLayer, 'DataAnnotationPointLayer', DataAnnotationRangeLayer.$); DataAnnotationPointLayer.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, DataAnnotationPointLayer, 'raisePropertyChanged', ['AnnotationBadgeBackgroundXMemberPath:aix:akk', [2, null], 'AnnotationBadgeBackgroundYMemberPath:ai0:akl', [2, null], 'AnnotationBadgeEnabledXMemberPath:ai3:akm', [2, null], 'AnnotationBadgeEnabledYMemberPath:ai6:akn', [2, null], 'AnnotationBadgeImageXMemberPath:ai9:ako', [2, null], 'AnnotationBadgeImageYMemberPath:ajc:akp', [2, null], 'AnnotationBadgeOutlineXMemberPath:ajf:akq', [2, null], 'AnnotationBadgeOutlineYMemberPath:aji:akr', [2, null], 'CenterLabelXDisplayMode:aho:aks', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'CenterLabelXMemberPath:ajm:akt', [2, null], 'CenterLabelYDisplayMode:ahp:aku', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'CenterLabelYMemberPath:ajq:akv', [2, null], 'EndLabelXDisplayMode:ahq:akw', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'EndLabelXMemberPath:aju:akx', [2, null], 'EndLabelYDisplayMode:ahr:aky', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'EndLabelYMemberPath:ajy:akz', [2, null], 'EndValueXMemberPath:aj1:ak0', [2, null], 'EndValueYMemberPath:aj4:ak1', [2, null], 'StartLabelXDisplayMode:ahu:ak2', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'StartLabelXMemberPath:aj8:ak3', [2, null], 'StartLabelYDisplayMode:ahv:ak4', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'StartLabelYMemberPath:akc:ak5', [2, null], 'StartValueXMemberPath:akf:ak6', [2, null], 'StartValueYMemberPath:aki:ak7', [2, null]]); return DataAnnotationPointLayer; })();