igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
438 lines (437 loc) • 17.1 kB
JavaScript
/*
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.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;
}
get ait() {
return this.aib;
}
set ait(a) {
if (this.aib != a) {
let b = this.aib;
this.aib = a;
this.raisePropertyChanged("StartValueXColumn", b, this.aib);
}
}
get aiu() {
return this.aic;
}
set aiu(a) {
if (this.aic != a) {
let b = this.aic;
this.aic = a;
this.raisePropertyChanged("StartValueYColumn", b, this.aic);
}
}
get air() {
return this.ah9;
}
set air(a) {
if (this.ah9 != a) {
let b = this.ah9;
this.ah9 = a;
this.raisePropertyChanged("StartLabelXColumn", b, this.ah9);
}
}
get ais() {
return this.aia;
}
set ais(a) {
if (this.aia != a) {
let b = this.aia;
this.aia = a;
this.raisePropertyChanged("StartLabelYColumn", b, this.aia);
}
}
get aip() {
return this.ah7;
}
set aip(a) {
if (this.ah7 != a) {
let b = this.ah7;
this.ah7 = a;
this.raisePropertyChanged("EndValueXColumn", b, this.ah7);
}
}
get aiq() {
return this.ah8;
}
set aiq(a) {
if (this.ah8 != a) {
let b = this.ah8;
this.ah8 = a;
this.raisePropertyChanged("EndValueYColumn", b, this.ah8);
}
}
get ain() {
return this.ah5;
}
set ain(a) {
if (this.ah5 != a) {
let b = this.ah5;
this.ah5 = a;
this.raisePropertyChanged("EndLabelXColumn", b, this.ah5);
}
}
get aio() {
return this.ah6;
}
set aio(a) {
if (this.ah6 != a) {
let b = this.ah6;
this.ah6 = a;
this.raisePropertyChanged("EndLabelYColumn", b, this.ah6);
}
}
get ail() {
return this.ah3;
}
set ail(a) {
if (this.ah3 != a) {
let b = this.ah3;
this.ah3 = a;
this.raisePropertyChanged("CenterLabelXColumn", b, this.ah3);
}
}
get aim() {
return this.ah4;
}
set aim(a) {
if (this.ah4 != a) {
let b = this.ah4;
this.ah4 = a;
this.raisePropertyChanged("CenterLabelYColumn", b, this.ah4);
}
}
get aif() {
return this.ahx;
}
set aif(a) {
if (this.ahx != a) {
let b = this.ahx;
this.ahx = a;
this.raisePropertyChanged("AnnotationBadgeEnabledXColumn", b, this.ahx);
}
}
get aig() {
return this.ahy;
}
set aig(a) {
if (this.ahy != a) {
let b = this.ahy;
this.ahy = a;
this.raisePropertyChanged("AnnotationBadgeEnabledYColumn", b, this.ahy);
}
}
get aid() {
return this.ahv;
}
set aid(a) {
if (this.ahv != a) {
let b = this.ahv;
this.ahv = a;
this.raisePropertyChanged("AnnotationBadgeBackgroundXColumn", b, this.ahv);
}
}
get aie() {
return this.ahw;
}
set aie(a) {
if (this.ahw != a) {
let b = this.ahw;
this.ahw = a;
this.raisePropertyChanged("AnnotationBadgeBackgroundYColumn", b, this.ahw);
}
}
get aij() {
return this.ah1;
}
set aij(a) {
if (this.ah1 != a) {
let b = this.ah1;
this.ah1 = a;
this.raisePropertyChanged("AnnotationBadgeOutlineXColumn", b, this.ah1);
}
}
get aik() {
return this.ah2;
}
set aik(a) {
if (this.ah2 != a) {
let b = this.ah2;
this.ah2 = a;
this.raisePropertyChanged("AnnotationBadgeOutlineYColumn", b, this.ah2);
}
}
get aih() {
return this.ahz;
}
set aih(a) {
if (this.ahz != a) {
let b = this.ahz;
this.ahz = a;
this.raisePropertyChanged("AnnotationBadgeImageXColumn", b, this.ahz);
}
}
get aii() {
return this.ah0;
}
set aii(a) {
if (this.ah0 != a) {
let b = this.ah0;
this.ah0 = a;
this.raisePropertyChanged("AnnotationBadgeImageYColumn", b, this.ah0);
}
}
ahs(a, b) {
if (a == 0 && b) {
return 6;
}
return a;
}
ahr(a, b, c) {
if (a == 0) {
if (stringIsNullOrEmpty(c) || b) {
return 6;
}
}
return a;
}
rq(a, b, c, d) {
super.rq(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;
}
}
afr(a, b) {
super.afr(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);
}
}
agl(a, b, c, d) {
if (b) {
let e = c ? this.agm(a, this.aik) : this.agm(a, this.aij);
if (e == null) {
e = this.agn(this.ac6, d);
}
return e;
}
else {
let f = c ? this.agm(a, this.aie) : this.agm(a, this.aid);
if (f == null) {
f = this.agn(this.ac5, d);
}
return f;
}
}
adt(a, b) {
let c = b ? this.aig : this.aif;
if (c == null || c.count <= a) {
return this.aa0;
}
let d = c.item(a);
return d != null ? d : this.aa0;
}
aes(a, b) {
let c = b ? this.aii : this.aih;
let d = this.aet(a, c);
return d != null ? d : this.abn;
}
}
DataAnnotationPointLayer.$t = /*@__PURE__*/ markType(DataAnnotationPointLayer, 'DataAnnotationPointLayer', DataAnnotationRangeLayer.$);
DataAnnotationPointLayer.$$p = /*@__PURE__*/ 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, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'CenterLabelXMemberPath:ajl:aks', [2, null], 'CenterLabelYDisplayMode:aho:akt', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'CenterLabelYMemberPath:ajp:aku', [2, null], 'EndLabelXDisplayMode:ahp:akv', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'EndLabelXMemberPath:ajt:akw', [2, null], 'EndLabelYDisplayMode:ahq:akx', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'EndLabelYMemberPath:ajx:aky', [2, null], 'EndValueXMemberPath:aj0:akz', [2, null], 'EndValueYMemberPath:aj3:ak0', [2, null], 'StartLabelXDisplayMode:aht:ak1', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'StartLabelXMemberPath:aj7:ak2', [2, null], 'StartLabelYDisplayMode:ahu:ak3', [DataAnnotationDisplayMode_$type, /*@__PURE__*/ enumGetBox(DataAnnotationDisplayMode_$type, 0)], 'StartLabelYMemberPath:akb:ak4', [2, null], 'StartValueXMemberPath:ake:ak5', [2, null], 'StartValueYMemberPath:akh:ak6', [2, null]]);
return DataAnnotationPointLayer;
})();