UNPKG

igniteui-react-charts

Version:

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

254 lines (253 loc) 9.42 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 { 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.ag1 = null; this.ag0 = null; this.agx = null; this.agw = null; this.agz = null; this.agy = null; this.ab = DataAnnotationSliceLayer.$; } bk() { return new DataAnnotationSliceLayer(); } get_ad2() { return false; } ael(a) { if (isNaN_(this.aeb)) { return a.dm ? 90 : 0; } return this.aeb; } afp(a) { if (!this.adv(a)) { return; } let b = this.ad5._inner[a]; b.c = new List$1(DataAnnotationInfo.$, 0); b.b = new List$1(DataAnnotationInfo.$, 0); b.centerLabelX = this.aet(a, this.ag6); b.centerLabelY = this.aet(a, this.ag6); let c = this.adu ? this.ade : this.adf; let d = this.aea(a, this.ag7, c); if (this.adu) { 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.adu ? this.aaw : 6; $ret.b = !this.adu ? this.aaw : 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; })())); } rq(a, b, c, d) { super.rq(a, b, c, d); switch (b) { case "AnnotationValueColumn": case "AnnotationLabelColumn": this.aca(); break; case DataAnnotationSliceLayer.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.ag7); this.ag7 = this.dl(this.aho); } break; case DataAnnotationSliceLayer.$$p[4]: if (this.dp != null) { this.dp.deregisterColumn(this.ag6); this.ag6 = this.dn(this.ahl); } break; case DataAnnotationSliceLayer.$$p[0]: this.afn(this.ag2); this.ag2 = this.dn(this.ag9); break; case DataAnnotationSliceLayer.$$p[3]: this.afn(this.ag5); this.ag5 = this.dn(this.ahi); break; case DataAnnotationSliceLayer.$$p[1]: this.afn(this.ag3); this.ag3 = this.dn(this.ahc); break; case DataAnnotationSliceLayer.$$p[2]: this.afn(this.ag4); this.ag4 = this.dn(this.ahf); break; case "AnnotationBadgeBackgroundColumn": case "AnnotationBadgeOutlineColumn": case "AnnotationBadgeEnabledColumn": case "AnnotationBadgeImageColumn": this.aca(); break; } } afr(a, b) { super.afr(a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.ag6); a.deregisterColumn(this.ag7); a.deregisterColumn(this.ag2); a.deregisterColumn(this.ag5); a.deregisterColumn(this.ag3); a.deregisterColumn(this.ag4); this.ag6 = null; this.ag7 = null; this.ag2 = null; this.ag5 = null; this.ag3 = null; this.ag4 = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.ag7 = this.dl(this.aho); this.ag6 = this.dn(this.ahl); this.ag2 = this.dn(this.ag9); this.ag5 = this.dn(this.ahi); this.ag3 = this.dn(this.ahc); this.ag4 = this.dn(this.ahf); } } agl(a, b, c, d) { if (b) { let e = this.agm(a, this.ag5); if (e == null) { e = this.agn(this.ac6, d); } return e; } else { let f = this.agm(a, this.ag2); if (f == null) { f = this.agn(this.ac5, d); } return f; } } adt(a, b) { if (this.ag3 == null || this.ag3.count <= a) { return this.aa0; } let c = this.ag3.item(a); return c != null ? c : this.aa0; } aes(a, b) { let c = this.aet(a, this.ag4); return c != null ? c : this.abn; } get ag7() { return this.ag1; } set ag7(a) { if (this.ag1 != a) { let b = this.ag1; this.ag1 = a; this.raisePropertyChanged("AnnotationValueColumn", b, this.ag1); } } get ag6() { return this.ag0; } set ag6(a) { if (this.ag0 != a) { let b = this.ag0; this.ag0 = a; this.raisePropertyChanged("AnnotationLabelColumn", b, this.ag0); } } get ag3() { return this.agx; } set ag3(a) { if (this.agx != a) { let b = this.agx; this.agx = a; this.raisePropertyChanged("AnnotationBadgeEnabledColumn", b, this.agx); } } get ag2() { return this.agw; } set ag2(a) { if (this.agw != a) { let b = this.agw; this.agw = a; this.raisePropertyChanged("AnnotationBadgeBackgroundColumn", b, this.agw); } } get ag5() { return this.agz; } set ag5(a) { if (this.agz != a) { let b = this.agz; this.agz = a; this.raisePropertyChanged("AnnotationBadgeOutlineColumn", b, this.agz); } } get ag4() { return this.agy; } set ag4(a) { if (this.agy != a) { let b = this.agy; this.agy = a; this.raisePropertyChanged("AnnotationBadgeImageColumn", b, this.agy); } } } DataAnnotationSliceLayer.$t = /*@__PURE__*/ markType(DataAnnotationSliceLayer, 'DataAnnotationSliceLayer', DataAnnotationShapeLayer.$); DataAnnotationSliceLayer.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, DataAnnotationSliceLayer, 'raisePropertyChanged', ['AnnotationBadgeBackgroundMemberPath:ag9:ahq', [2, null], 'AnnotationBadgeEnabledMemberPath:ahc:ahr', [2, null], 'AnnotationBadgeImageMemberPath:ahf:ahs', [2, null], 'AnnotationBadgeOutlineMemberPath:ahi:aht', [2, null], 'AnnotationLabelMemberPath:ahl:ahu', [2, null], 'AnnotationValueMemberPath:aho:ahv', [2, null]]); return DataAnnotationSliceLayer; })();