igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
254 lines (253 loc) • 9.42 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 { DataAnnotationShapeLayer } from "./DataAnnotationShapeLayer";
import { DependencyProperty } from "igniteui-react-core";
import { typeCast, markType, markDep } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { DataAnnotationInfo } from "./DataAnnotationInfo";
import { IFastItemsSource_$type } from "igniteui-react-core";
import { PropertyMetadata } from "igniteui-react-core";
import { isNaN_ } from "igniteui-react-core";
/**
* @hidden
*/
export let DataAnnotationSliceLayer = /*@__PURE__*/ (() => {
class DataAnnotationSliceLayer extends DataAnnotationShapeLayer {
constructor() {
super();
this.ag2 = null;
this.ag1 = null;
this.agy = null;
this.agx = null;
this.ag0 = null;
this.agz = null;
this.ab = DataAnnotationSliceLayer.$;
}
bk() {
return new DataAnnotationSliceLayer();
}
get_ad3() {
return false;
}
aem(a) {
if (isNaN_(this.aec)) {
return a.dm ? 90 : 0;
}
return this.aec;
}
afq(a) {
if (!this.adw(a)) {
return;
}
let b = this.ad6._inner[a];
b.c = new List$1(DataAnnotationInfo.$, 0);
b.b = new List$1(DataAnnotationInfo.$, 0);
b.centerLabelX = this.aeu(a, this.ag7);
b.centerLabelY = this.aeu(a, this.ag7);
let c = this.adv ? this.adf : this.adg;
let d = this.aeb(a, this.ag8, c);
if (this.adv) {
b.shapeStartX = d;
b.shapeStartY = Number.NEGATIVE_INFINITY;
b.shapeEndX = d;
b.shapeEndY = Number.POSITIVE_INFINITY;
b.shapeCenterX = d;
b.shapeCenterY = 0;
}
else {
b.shapeStartX = Number.NEGATIVE_INFINITY;
b.shapeStartY = d;
b.shapeEndX = Number.POSITIVE_INFINITY;
b.shapeEndY = d;
b.shapeCenterX = 0;
b.shapeCenterY = d;
}
b.b.add(((() => {
let $ret = new DataAnnotationInfo();
$ret.a = this.adv ? this.aax : 6;
$ret.b = !this.adv ? this.aax : 6;
$ret.dataValueX = d;
$ret.dataValueY = d;
$ret.dataLabelX = b.centerLabelX;
$ret.dataLabelY = b.centerLabelY;
$ret.q = b.z.x;
$ret.r = b.z.y;
return $ret;
})()));
b.c.add(((() => {
let $ret = new DataAnnotationInfo();
$ret.q = b.ab.x;
$ret.r = b.ab.y;
return $ret;
})()));
b.c.add(((() => {
let $ret = new DataAnnotationInfo();
$ret.q = b.aa.x;
$ret.r = b.aa.y;
return $ret;
})()));
}
rr(a, b, c, d) {
super.rr(a, b, c, d);
switch (b) {
case "AnnotationValueColumn":
case "AnnotationLabelColumn":
this.acb();
break;
case DataAnnotationSliceLayer.$$p[5]:
if (this.dp != null) {
this.dp.deregisterColumn(this.ag8);
this.ag8 = this.dl(this.ahp);
}
break;
case DataAnnotationSliceLayer.$$p[4]:
if (this.dp != null) {
this.dp.deregisterColumn(this.ag7);
this.ag7 = this.dn(this.ahm);
}
break;
case DataAnnotationSliceLayer.$$p[0]:
this.afo(this.ag3);
this.ag3 = this.dn(this.aha);
break;
case DataAnnotationSliceLayer.$$p[3]:
this.afo(this.ag6);
this.ag6 = this.dn(this.ahj);
break;
case DataAnnotationSliceLayer.$$p[1]:
this.afo(this.ag4);
this.ag4 = this.dn(this.ahd);
break;
case DataAnnotationSliceLayer.$$p[2]:
this.afo(this.ag5);
this.ag5 = this.dn(this.ahg);
break;
case "AnnotationBadgeBackgroundColumn":
case "AnnotationBadgeOutlineColumn":
case "AnnotationBadgeEnabledColumn":
case "AnnotationBadgeImageColumn":
this.acb();
break;
}
}
afs(a, b) {
super.afs(a, b);
if (typeCast(IFastItemsSource_$type, a) != null) {
a.deregisterColumn(this.ag7);
a.deregisterColumn(this.ag8);
a.deregisterColumn(this.ag3);
a.deregisterColumn(this.ag6);
a.deregisterColumn(this.ag4);
a.deregisterColumn(this.ag5);
this.ag7 = null;
this.ag8 = null;
this.ag3 = null;
this.ag6 = null;
this.ag4 = null;
this.ag5 = null;
}
if (typeCast(IFastItemsSource_$type, b) != null) {
this.ag8 = this.dl(this.ahp);
this.ag7 = this.dn(this.ahm);
this.ag3 = this.dn(this.aha);
this.ag6 = this.dn(this.ahj);
this.ag4 = this.dn(this.ahd);
this.ag5 = this.dn(this.ahg);
}
}
agm(a, b, c, d) {
if (b) {
let e = this.agn(a, this.ag6);
if (e == null) {
e = this.ago(this.ac7, d);
}
return e;
}
else {
let f = this.agn(a, this.ag3);
if (f == null) {
f = this.ago(this.ac6, d);
}
return f;
}
}
adu(a, b) {
if (this.ag4 == null || this.ag4.count <= a) {
return this.aa1;
}
let c = this.ag4.item(a);
return c != null ? c : this.aa1;
}
aet(a, b) {
let c = this.aeu(a, this.ag5);
return c != null ? c : this.abo;
}
get ag8() {
return this.ag2;
}
set ag8(a) {
if (this.ag2 != a) {
let b = this.ag2;
this.ag2 = a;
this.raisePropertyChanged("AnnotationValueColumn", b, this.ag2);
}
}
get ag7() {
return this.ag1;
}
set ag7(a) {
if (this.ag1 != a) {
let b = this.ag1;
this.ag1 = a;
this.raisePropertyChanged("AnnotationLabelColumn", b, this.ag1);
}
}
get ag4() {
return this.agy;
}
set ag4(a) {
if (this.agy != a) {
let b = this.agy;
this.agy = a;
this.raisePropertyChanged("AnnotationBadgeEnabledColumn", b, this.agy);
}
}
get ag3() {
return this.agx;
}
set ag3(a) {
if (this.agx != a) {
let b = this.agx;
this.agx = a;
this.raisePropertyChanged("AnnotationBadgeBackgroundColumn", b, this.agx);
}
}
get ag6() {
return this.ag0;
}
set ag6(a) {
if (this.ag0 != a) {
let b = this.ag0;
this.ag0 = a;
this.raisePropertyChanged("AnnotationBadgeOutlineColumn", b, this.ag0);
}
}
get ag5() {
return this.agz;
}
set ag5(a) {
if (this.agz != a) {
let b = this.agz;
this.agz = a;
this.raisePropertyChanged("AnnotationBadgeImageColumn", b, this.agz);
}
}
}
DataAnnotationSliceLayer.$t = /*@__PURE__*/ markType(DataAnnotationSliceLayer, 'DataAnnotationSliceLayer', DataAnnotationShapeLayer.$);
DataAnnotationSliceLayer.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, DataAnnotationSliceLayer, 'raisePropertyChanged', ['AnnotationBadgeBackgroundMemberPath:aha:ahr', [2, null], 'AnnotationBadgeEnabledMemberPath:ahd:ahs', [2, null], 'AnnotationBadgeImageMemberPath:ahg:aht', [2, null], 'AnnotationBadgeOutlineMemberPath:ahj:ahu', [2, null], 'AnnotationLabelMemberPath:ahm:ahv', [2, null], 'AnnotationValueMemberPath:ahp:ahw', [2, null]]);
return DataAnnotationSliceLayer;
})();