UNPKG

igniteui-react-charts

Version:

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

141 lines (140 loc) 5.44 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"; /** * @hidden */ export let DataAnnotationSliceLayer = /*@__PURE__*/ (() => { class DataAnnotationSliceLayer extends DataAnnotationShapeLayer { constructor() { super(); this.afk = null; this.afj = null; this.ab = DataAnnotationSliceLayer.$; } bk() { return new DataAnnotationSliceLayer(); } get_acu() { return false; } aef(a) { if (!this.acn(a)) { return; } let b = this.acx._inner[a]; b.c = new List$1(DataAnnotationInfo.$, 0); b.b = new List$1(DataAnnotationInfo.$, 0); b.centerLabelX = this.adj(a, this.afl); b.centerLabelY = this.adj(a, this.afl); let c = this.ac2(a, this.afm); if (this.acm) { b.shapeStartX = c; b.shapeStartY = Number.NEGATIVE_INFINITY; b.shapeEndX = c; b.shapeEndY = Number.POSITIVE_INFINITY; b.shapeCenterX = c; b.shapeCenterY = 0; } else { b.shapeStartX = Number.NEGATIVE_INFINITY; b.shapeStartY = c; b.shapeEndX = Number.POSITIVE_INFINITY; b.shapeEndY = c; b.shapeCenterX = 0; b.shapeCenterY = c; } b.b.add(((() => { let $ret = new DataAnnotationInfo(); $ret.a = this.acm ? this.aae : 6; $ret.b = !this.acm ? this.aae : 6; $ret.dataValueX = c; $ret.dataValueY = c; $ret.dataLabelX = b.centerLabelX; $ret.dataLabelY = b.centerLabelY; $ret.j = b.z.x; $ret.k = b.z.y; return $ret; })())); b.c.add(((() => { let $ret = new DataAnnotationInfo(); $ret.j = b.ab.x; $ret.k = b.ab.y; return $ret; })())); b.c.add(((() => { let $ret = new DataAnnotationInfo(); $ret.j = b.aa.x; $ret.k = b.aa.y; return $ret; })())); } rc(a, b, c, d) { super.rc(a, b, c, d); switch (b) { case "AnnotationValueColumn": case "AnnotationLabelColumn": this.abe(); break; case DataAnnotationSliceLayer.$$p[1]: if (this.dp != null) { this.dp.deregisterColumn(this.afm); this.afm = this.dl(this.afr); } break; case DataAnnotationSliceLayer.$$p[0]: if (this.dp != null) { this.dp.deregisterColumn(this.afl); this.afl = this.dn(this.afo); } break; } } aeh(a, b) { super.aeh(a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.afl); a.deregisterColumn(this.afm); this.afl = null; this.afm = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.afm = this.dl(this.afr); this.afl = this.dn(this.afo); } } get afm() { return this.afk; } set afm(a) { if (this.afk != a) { let b = this.afk; this.afk = a; this.raisePropertyChanged("AnnotationValueColumn", b, this.afk); } } get afl() { return this.afj; } set afl(a) { if (this.afj != a) { let b = this.afj; this.afj = a; this.raisePropertyChanged("AnnotationLabelColumn", b, this.afj); } } } DataAnnotationSliceLayer.$t = /*@__PURE__*/ markType(DataAnnotationSliceLayer, 'DataAnnotationSliceLayer', DataAnnotationShapeLayer.$); DataAnnotationSliceLayer.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, DataAnnotationSliceLayer, 'raisePropertyChanged', ['AnnotationLabelMemberPath:afo:aft', [2, null], 'AnnotationValueMemberPath:afr:afu', [2, null]]); return DataAnnotationSliceLayer; })();