UNPKG

igniteui-react-charts

Version:

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

1,400 lines 52.6 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 { MarkerSeries } from "./MarkerSeries"; import { Base, Point_$type, runOn, delegateCombine, Number_$type, enumGetBox, fromEnum, typeCast, markType, markDep } from "igniteui-react-core"; import { PolarAxisInfoCache } from "./PolarAxisInfoCache"; import { SeriesRenderer$2 } from "./SeriesRenderer$2"; import { PolarFrame } from "./PolarFrame"; import { DependencyProperty } from "igniteui-react-core"; import { NumericAngleAxis } from "./NumericAngleAxis"; import { NumericRadiusAxis } from "./NumericRadiusAxis"; import { TrendLineType_$type } from "igniteui-react-core"; import { Brush } from "igniteui-react-core"; import { PenLineCap_$type } from "igniteui-react-core"; import { DoubleCollection } from "igniteui-react-core"; import { ScatterItemSearchMode_$type } from "./ScatterItemSearchMode"; import { HighlightingInfo } from "igniteui-react-core"; import { Rect } from "igniteui-react-core"; import { Marker } from "./Marker"; import { MarkerSeriesView } from "./MarkerSeriesView"; import { PolarAxes } from "./PolarAxes"; import { List$1 } from "igniteui-react-core"; import { SeriesPointOfInterest } from "./SeriesPointOfInterest"; import { ScalerParams } from "./ScalerParams"; import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay"; import { IFastItemsSource_$type } from "igniteui-react-core"; import { SeriesRenderingArguments } from "./SeriesRenderingArguments"; import { AxisRange } from "./AxisRange"; import { Dictionary$2 } from "igniteui-react-core"; import { OwnedPoint } from "./OwnedPoint"; import { CoreGeometryUtil } from "igniteui-react-core"; import { GeometryUtil } from "igniteui-react-core"; import { DataContext } from "igniteui-react-core"; import { HashPool$2 } from "igniteui-react-core"; import { Clipper } from "igniteui-react-core"; import { PolarTrendLineManager } from "./PolarTrendLineManager"; import { TrendResolutionParams } from "./TrendResolutionParams"; import { AssigningPolarStyleEventArgs } from "./AssigningPolarStyleEventArgs"; import { AssigningPolarMarkerStyleEventArgs } from "./AssigningPolarMarkerStyleEventArgs"; import { SeriesRenderManager } from "./SeriesRenderManager"; import { DataLegendSeriesValueInfo } from "igniteui-react-core"; import { DataLegendSeriesContext } from "igniteui-react-core"; import { ChartSelection } from "./ChartSelection"; import { CollisionRect } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; import { truncate, isNaN_, isInfinity } from "igniteui-react-core"; import { Defaults } from "./Defaults"; import { NumericMarkerManager } from "./NumericMarkerManager"; import { GeometryGroup } from "igniteui-react-core"; import { stringIsNullOrEmpty } from "igniteui-react-core"; /** * @hidden */ export let PolarBase = /*@__PURE__*/ (() => { class PolarBase extends MarkerSeries { ct() { return new PolarBaseView(this); } rj(a) { super.rj(a); this.zn = a; } b3() { if (this.b4 == 0) { { return 1; } } else { return super.b3(); } } xc(a) { if (!this.hasMarkers || !this.x3()) { return Rect.empty; } let b = this.xt.ce(this.wt(a)); if (b != null) { return this.xt.c7(b); } return Rect.empty; } g4(a, b) { if (this.x4(a, b)) { return true; } return false; } ph() { super.ph(); this.zj = null; this.zk = null; } get_ft() { return true; } w3(a) { let b = this.zj; let c = this.zk; if (b == null || c == null || this.dc == null) { return { $type: Point_$type, x: NaN, y: NaN }; } let d = NaN; let e = NaN; let f = this.zl.f(a.x, a.y, this.dc.yv, this.dc.zd, this.getEffectiveViewport(), d, e); d = f.p5; e = f.p6; return { $type: Point_$type, x: d, y: e }; } ed(a, b, c, d, e) { if (!this.hasMarkers) { return false; } let f = this.zj; let g = new ScalerParams(1, this.dc.yv, this.xf, f.dn); g.c = this.getEffectiveViewport1(this.cw); let h = this.zk; let i = new ScalerParams(1, this.dc.yv, this.xf, h.dn); i.c = this.getEffectiveViewport1(this.cw); a.clear(); this.xt.cw((j) => { if (j._visibility == 0) { let k = new SeriesPointOfInterest(); let l = j.n; let m = j.o; if (!e && (l < this.xf.left || l > this.xf.right || m < this.xf.top || m > this.xf.bottom)) { return; } let n; let o; let p = this.zl.f(l, m, this.cw.ca, this.cw.b9, this.cw.getEffectiveViewport(), n, o); n = p.p5; o = p.p6; k.d = n; k.e = o; k.b = j.content; k.g = this.v2; k.c = j.al; if (this.hh) { k.g = this.v9(j.al); } a.add(k); } }); return true; } constructor() { super(); this.zo = null; this.zf = null; this.zm = null; this.ac5 = null; this.ac4 = null; this.ac3 = null; this.z0 = null; this.z7 = null; this.z8 = null; this.zs = new PolarFrame(); this.zu = new PolarFrame(); this.zq = new PolarFrame(); this.zl = null; this.aaq = null; this.zw = 1; this.aac = false; this.aab = false; this.z5 = null; this.z6 = null; this.assigningPolarStyle = null; this.assigningPolarMarkerStyle = null; this.zv = null; this.zt = null; this.zp = null; this.zv = new PolarSeriesRenderManager(); this.zx = this.zy(); this.zt = new PolarFrame(); this.zu.ab = runOn(this, this.ac2); this.zs.ab = runOn(this, this.ac2); this.zq.ab = runOn(this, this.ac2); this.z0 = new SeriesRenderer$2(PolarFrame.$, PolarBaseView.$, 0, runOn(this, this.ab3), runOn(this, this.ab7), runOn(this, this.d4), runOn(this, this.sr), runOn(this, this.abw)); } abw() { if (this.dd.g) { this.dd.t(); } } aby() { this.zl.e(this.zo.aa, this.z9, this.aaa, this.ac5, this.ac4, this.ac3, (a, b) => Math.cos(b), (a, b) => Math.sin(b), true); } gj() { return this.highlightedItemsSource != null || (this.abe != null && this.abc != null); } aao() { return false; } h1() { let a = super.h1(); { let b = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.ad = "AngleMemberPath"; $ret.p = true; $ret.y = "HighlightedAngleMemberPath"; $ret.q = true; return $ret; })()); b.valueResolving = delegateCombine(b.valueResolving, runOn(this, this.abz)); a.add(b); } { let c = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.ad = "RadiusMemberPath"; $ret.p = true; $ret.y = "HighlightedRadiusMemberPath"; $ret.q = true; return $ret; })()); c.valueResolving = delegateCombine(c.valueResolving, runOn(this, this.ab0)); a.add(c); } if (this.aao()) { let d = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.r = true; $ret.ad = "DashArray"; $ret.p = true; $ret.x = ((() => { let $ret = new DoubleCollection(); $ret.add(5); $ret.add(5); return $ret; })()); $ret.q = true; return $ret; })()); a.add(d); } if (!this.aao()) { let e = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.r = true; $ret.ad = "Brush"; $ret.p = true; $ret.y = "ActualBrush"; $ret.q = true; return $ret; })()); e.valueResolving = delegateCombine(e.valueResolving, runOn(this, this.sk)); a.add(e); } if (!this.aao()) { let f = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.r = true; $ret.ad = "Outline"; $ret.p = true; $ret.y = "ActualOutline"; $ret.q = true; return $ret; })()); f.valueResolving = delegateCombine(f.valueResolving, runOn(this, this.sk)); a.add(f); } return a; } ab0(a, b) { if (this.abe != null) { b.value = this.abe; return; } b.value = this.abr; } abz(a, b) { if (this.abc != null) { b.value = this.abc; return; } b.value = this.aa9; } get z9() { return this.z7; } set z9(a) { if (this.z7 != a) { let b = this.z9; this.z7 = a; this.raisePropertyChanged("AngleColumn", b, this.z9); } } get aaa() { return this.z8; } set aaa(a) { if (this.z8 != a) { let b = this.aaa; this.z8 = a; this.raisePropertyChanged("RadiusColumn", b, this.aaa); } } get acx() { return this.c(PolarBase.ab8); } set acx(a) { this.h(PolarBase.ab8, a); } zr() { let a = this.zq; if (this.d4()) { if (this.dd.g) { this.dd.t(); } a = this.zu; } return a; } qr() { super.qr(); if (this.zk != null) { this.zk.l0(false); } if (this.zj != null) { this.zj.l0(false); } } pq(a, b, c, d) { let e = false; this.zn.dd.g$i(a, b, c, d); if (this.zn.aa.count > 0) { for (let f of fromEnum(this.zn.aa)) { f.g$i(a, b, c, d); } } if (this.zj != null && !this.zj.ee()) { e = true; } if (this.zk != null && !this.zk.ee()) { e = true; } if (e) { this.sa(true); } } ta(a, b) { this.sa(false); } tb(a, b) { this.sa(false); } hm(a, b, c) { let d = true; if (!super.hm(a, b, c) || !c.r() || b.isEmpty || a.isEmpty || this.zj == null || this.zk == null || this.z9 == null || this.aaa == null || this.z9.count == 0 || this.aaa.count == 0 || this.dp == null || this.dp.count != this.z9.count || this.dp.count != this.aaa.count || this.zl == null || this.zj.b7 == null || this.zk.b7 == null || this.zj.qy == this.zj.qx || this.zk.qy == this.zk.qx) { d = false; } return d; } sb(a) { super.sb(a); let b; let c; let d = this.getViewInfo(c, b); c = d.p0; b = d.p1; if (!this.hm(c, b, this.cw)) { this.pk(true, this.cw); return; } this.ac5 = b; this.ac4 = c; this.ac3 = this.cw.getEffectiveViewport(); this.zm = new PolarAxisInfoCache(this.zj, this.zk, this.dp); let e = new SeriesRenderingArguments(this, c, b, a, this.gz); let f = this.zs; let g = this.zq; let h = this.zu; let i = this.z0.g(e, f, g, h, this.zn); f = i.p1; g = i.p2; h = i.p3; this.zs = f; this.zq = g; this.zu = h; } ac2(a) { let b = this.zl.h(a.x, a.y, this.ac5, this.ac4, this.ac3, this.zm.e, this.zm.d, this.zm.g, this.zm.f, this.zm.i, this.zm.h); return b; } ay(a) { if (a != null && a == this.zj && this.z9 != null) { return new AxisRange(this.z9.minimum, this.z9.maximum); } if (a != null && a == this.zk && this.aaa != null) { return new AxisRange(this.aaa.minimum, this.aaa.maximum); } return null; } gl(a) { let b = this.cw.ca; b = b.copy(); let c = this.cw.b9; let d = !b.isEmpty && !c.isEmpty && this.dp != null ? this.dp.indexOf(a) : -1; if (this.zj == null || this.z9 == null || this.zk == null || this.aaa == null) { return false; } if (d < 0 || d > this.z9.count - 1 || d > this.aaa.count - 1) { return false; } let e = this.zj.getScaledAngle(this.z9.item(d)); let f = this.zk.to(this.aaa.item(d)); let g = 0.5 + (Math.cos(e) * f); let h = 0.5 + (Math.sin(e) * f); if (!isNaN_(g)) { if (g < b.left + 0.1 * b.width) { g = g + 0.4 * b.width; b.x = g - 0.5 * b.width; } if (g > b.right - 0.1 * b.width) { g = g - 0.4 * b.width; b.x = g - 0.5 * b.width; } } if (!isNaN_(h)) { if (h < b.top + 0.1 * b.height) { h = h + 0.4 * b.height; b.y = h - 0.5 * b.height; } if (h > b.bottom - 0.1 * b.height) { h = h - 0.4 * b.height; b.y = h - 0.5 * b.height; } } if (this.c4 != null) { this.c4.au(this.dc, b, true); } return d >= 0; } ky(a) { let b = this.ke(a); if (this.dp != null && b >= 0 && b < this.dp.count) { return this.dp.item(b); } return null; } ke(a) { let b = truncate(Math.round(this.i0(a))); return b; } i0(a) { switch (this.zx) { case 1: return this.aau(a); case 3: return this.aav(a); case 2: return this.aas(a); case 4: return this.aat(a); } return -1; } aat(a) { return this.aaw(a, false); } aas(a) { let b = this.wt(a); let c = b.x; let d = b.y; if (this.dp == null || this.zj == null || this.zk == null || this.z9 == null || this.aaa == null) { return -1; } if (this.dp.count > this.aay) { return -1; } if (!this.aag()) { return -1; } let e = this.aaq; let f = 1.7976931348623157E+308; let g = -1; for (let h = 0; h < this.z9.count; h++) { let i = e._inner[h].x; let j = e._inner[h].y; let k = (c - i) * (c - i) + (d - j) * (d - j); if (k < f) { f = k; g = h; } } return g; } aag() { let a = this.zq; if (this.d4()) { a = this.zu; } if (a == null || a.aa.count == 0) { return false; } this.aaq = a.aa; return true; } aaw(a, b) { if (!this.aaj) { return -1; } let c = { $type: Point_$type, x: 0, y: 0 }; let d = true; let e = this.zq; if (this.d4()) { e = this.zu; } if (e == null) { return -1; } if (e.q == null) { return -1; } if (this.dp == null || this.dp.count > this.aay) { return -1; } if (!this.aag()) { return -1; } let f = this.aaq; let g = this.wt(a); let h = 1.7976931348623157E+308; let i = -1; for (let j = 0; j < f.count; j++) { let k = f._inner[j]; if (j > 0) { if (isNaN_(k.x) || isNaN_(k.y) || isNaN_(c.x) || isNaN_(c.y)) { c = k; continue; } if (!b || e.m.containsKey(this.dp.item(j)) || e.m.containsKey(this.dp.item(j - 1))) { let l = CoreGeometryUtil.q(g, c, k); if (l < h) { h = l; i = j; } } } c = k; } if (i >= 0) { let m = f._inner[i]; let n = f._inner[i - 1]; if (!b || (e.m.containsKey(this.dp.item(i)) && e.m.containsKey(this.dp.item(i - 1)))) { let o = GeometryUtil.j(g, n, m); return (i - 1) + o; } else if (e.m.containsKey(this.dp.item(i))) { return i; } else { return i - 1; } } return -1; } aav(a) { return this.aaw(a, true); } aau(a) { let b = null; let c = 1.7976931348623157E+308; let d = this.wt(a); let e = d.x; let f = d.y; if (this.zn.de.e > this.aay) { return -1; } this.zn.dh((g) => { if (g._visibility == 0) { let h = this.zn.c7(g); let i = h.left + h.width / 2; let j = h.top + h.height / 2; let k = (e - i) * (e - i) + (f - j) * (f - j); if (k < c) { c = k; b = g; } } }); if (b != null) { return b.al; } return -1; } wy(a, b, c) { if (this.zj == null || this.zk == null || this.z9 == null || this.aaa == null) { return { $type: Point_$type, x: NaN, y: NaN }; } let d = this.cw.ca; let e = this.cw.b9; let f = this.getEffectiveViewport(); let g = new ScalerParams(0, d, e, this.zj.dn, f); let h = ((() => { let $ret = new ScalerParams(0, d, e, this.zk.dn, f); $ret.b = this.i7(); return $ret; })()); if (b) { let i = this.i0(a); if (i == -1) { return { $type: Point_$type, x: NaN, y: NaN }; } let j = truncate(Math.floor(i)); let k = truncate(Math.ceil(i)); if (j < 0) { j = 0; } if (k < 0) { k = 0; } if (k > this.dp.count - 1) { k = this.dp.count - 1; } if (j > this.dp.count - 1) { j = this.dp.count - 1; } if (k == j) { return this.zl.h(this.z9.item(j), this.aaa.item(j), d, e, f, this.zm.e, this.zm.d, this.zm.g, this.zm.f, this.zm.i, this.zm.h); } let l = i - Math.floor(i); let m = this.zl.h(this.z9.item(j), this.aaa.item(j), d, e, f, this.zm.e, this.zm.d, this.zm.g, this.zm.f, this.zm.i, this.zm.h); let n = this.zl.h(this.z9.item(k), this.aaa.item(k), d, e, f, this.zm.e, this.zm.d, this.zm.g, this.zm.f, this.zm.i, this.zm.h); let o = m.x; let p = m.y; let q = n.x; let r = n.y; let s = q - o; let t = r - p; return { $type: Point_$type, x: o + s * l, y: p + t * l }; } else { let u = this.ke(a); if (u == -1) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.zl.h(this.z9.item(u), this.aaa.item(u), d, e, f, this.zm.e, this.zm.d, this.zm.g, this.zm.f, this.zm.i, this.zm.h); } } ai() { return [this.zj, this.zk]; } k1(a, b) { let c = this.nq(b); if (c == PolarBase.$$p[3]) { return this.k2(a, b, this.aa9); } if (c == PolarBase.$$p[15]) { return this.k2(a, b, this.abr); } if (c == PolarBase.$$p[5]) { return this.k2(a, b, this.abc); } if (c == PolarBase.$$p[6]) { return this.k2(a, b, this.abe); } return super.k1(a, b); } mq(a) { let b = this.nq(a); if (b == PolarBase.$$p[3]) { return this.aa9; } if (b == PolarBase.$$p[15]) { return this.abr; } if (b == PolarBase.$$p[5]) { return this.abc; } if (b == PolarBase.$$p[6]) { return this.abe; } return super.mq(a); } rs(a, b, c, d) { super.rs(a, b, c, d); if (this.zn.dd.g$e(a, b, c, d)) { this.sa(false); this.q2(); } switch (b) { case PolarBase.$$p[1]: case PolarBase.$$p[2]: case PolarBase.$$p[13]: case PolarBase.$$p[14]: this.qw(); break; case "FastItemsSource": if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.z9); c.deregisterColumn(this.aaa); this.z9 = null; this.aaa = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.z9 = this.dl(this.aa9); this.aaa = this.dl(this.abr); } if ((this.zk != null && !this.zk.ee()) || (this.zj != null && !this.zj.ee())) { this.sa(this.go && c != null); } break; case PolarBase.$$p[0]: if (this.zj != null && this.zk != null) { this.zl = new PolarAxes(this.zk, this.zj); } if (c != null) { c.cx(this); } if (d != null) { d.d4(this); } if (this.zj != null && !this.zj.ee()) { this.sa(false); } else if (c != null && d == null) { this.pk(true, this.cw); } break; case PolarBase.$$p[12]: if (this.zj != null && this.zk != null) { this.zl = new PolarAxes(this.zk, this.zj); } if (c != null) { c.cx(this); } if (d != null) { d.d4(this); } if (this.zk != null && !this.zk.ee()) { this.sa(false); } else if (c != null && d == null) { this.pk(true, this.cw); } if (this.zj != null && !this.zj.ee()) { this.zj.lw(); } break; case PolarBase.$$p[3]: if (this.dp != null) { this.dp.deregisterColumn(this.z9); this.z9 = this.dl(this.aa9); } break; case "AngleColumn": this.zn.dd.g$m(); if (this.zj != null && !this.zj.ee()) { this.sa(this.go && this.d9); } break; case PolarBase.$$p[15]: if (this.dp != null) { this.dp.deregisterColumn(this.aaa); this.aaa = this.dl(this.abr); } break; case "RadiusColumn": this.zn.dd.g$m(); if (this.zk != null && !this.zk.ee()) { this.sa(this.go && this.d9); } break; case PolarBase.$$p[16]: this.sa(false); this.q2(); break; case PolarBase.$$p[11]: this.sa(false); this.q2(); break; case "TransitionProgress": this.zm = new PolarAxisInfoCache(this.zj, this.zk, this.dp); this.ac5 = this.cw.ca; this.ac4 = this.cw.b9; this.ac3 = this.cw.getEffectiveViewport(); this.zu.z = this.aap; this.zu.d(this.j1, this.zs, this.zq); if (this.d7(this.cw)) { return; } if (this.j1 == 1) { this.ab7(this.zq, this.zn); this.q5(); } else { this.ab7(this.zu, this.zn); } if (this.dc != null) { this.dc.sv(this); } break; case "TrendLineBrush": this.ry(b); break; case PolarBase.$$p[4]: this.sa(false); this.q2(); break; case "TrendLineType": this.q2(); break; case PolarBase.$$p[8]: this.aac = this.aal(); this.sa(false); break; case PolarBase.$$p[7]: this.aab = this.aak(); this.sa(false); break; case PolarBase.$$p[9]: this.zx = this.zy(); break; } } get zx() { return this.zw; } set zx(a) { let b = this.zw; this.zw = a; if (b != this.zw) { this.raisePropertyChanged("ActualItemSearchMode", enumGetBox(ScatterItemSearchMode_$type, b), enumGetBox(ScatterItemSearchMode_$type, this.zw)); } } zy() { if (this.zz != 0) { return this.zz; } return this.aaj ? 4 : 1; } get_aaj() { return false; } get aaj() { return this.get_aaj(); } aal() { return this.aai; } aak() { return this.aah; } aae(a) { if (typeCast(NumericRadiusAxis.$, a) !== null) { return true; } return false; } aad(a) { if (typeCast(NumericAngleAxis.$, a) !== null) { return true; } return false; } pk(a, b) { super.pk(a, b); let c = b; if (a) { c.de.clear(); } c.dd.g$h(); } zg(a, b) { let c = a.top - 10; let d = a.bottom + 10; let e = a.left - 10; let f = a.right + 10; let g = ((() => { let $ret = new Clipper(1, e, d, f, c, false); $ret.i = b; return $ret; })()); return g; } abv(a, b, c, d) { a.j = new Dictionary$2(Base.$, OwnedPoint.$, 1, b); let e = this.dp; for (let f = 0; f < b; f++) { let g = a.aa._inner[f]; if (!isInfinity(g.x) && !isInfinity(g.y)) { let h = { $type: Point_$type, x: this.z9.item(f), y: this.aaa.item(f) }; let i = { $type: Point_$type, x: g.x, y: g.y }; a.j.addItem(e.item(f), ((() => { let $ret = new OwnedPoint(); $ret.a = e.item(f); $ret.b = h; $ret.c = i; return $ret; })())); } } } ab3(a, b) { let c = b.ca; let d = b.b9; let e = b.getEffectiveViewport(); a.m.clear(); a.r.clear(); let f = Math.min(this.z9 != null ? this.z9.count : 0, this.aaa != null ? this.aaa.count : 0); if (f < 1) { return; } this.zm = new PolarAxisInfoCache(this.zj, this.zk, this.dp); this.zo = a; this.ac4 = d; this.ac5 = c; this.ac3 = b.getEffectiveViewport(); b.db.l(a.m, this.aaz, c, d, this.im); if (f <= this.aaz) { this.abv(a, f, c, d); } let g = this.zg(d, a.r); let h = Math.min(this.zj.qy, this.zj.qx); let i = Math.max(this.zj.qx, this.zj.qy); b.dd.k = this.aap; b.dd.j = 0; b.dd.m = this.zk.ti; b.dd.l = this.zk.th; b.dd.n = (j, k) => this.zl.c(j, k, c, d, e, Math.cos); b.dd.o = (j, k) => this.zl.d(j, k, c, d, e, Math.sin); let j = new List$1(Number_$type, 0); for (let k = 0; k < this.z9.count; k++) { if (this.z9.item(k) >= h && this.z9.item(k) <= i) { j.add(this.z9.item(k)); } } let l = this.aaa; if (j.count != this.z9.count) { l = new List$1(Number_$type, 0); for (let m = 0; m < this.z9.count; m++) { if (this.z9.item(m) >= h && this.z9.item(m) <= i) { l.add(this.aaa.item(m)); } } } b.dd.p(a.r, this.z1, j, l, this.aa0, runOn(this.zj, this.zj.getScaledAngle), runOn(this.zk, this.zk.to), ((() => { let $ret = new TrendResolutionParams(); $ret.d = this.im; $ret.i = d; $ret.h = e; $ret.j = c; return $ret; })()), g, h, i); if (b.aa.count > 0) { a.p.clear(); for (let n = 0; n < b.aa.count; n++) { a.p.add(new List$1(Point_$type, 0)); let o = b.aa._inner[n]; o.k = this.aap; o.j = 0; o.m = this.zk.ti; o.l = this.zk.th; o.n = (p, q) => this.zl.c(p, q, c, d, e, Math.cos); o.o = (p, q) => this.zl.d(p, q, c, d, e, Math.sin); o.p(a.p._inner[n], o.g$b, j, l, o.g$f, runOn(this.zj, this.zj.getScaledAngle), runOn(this.zk, this.zk.to), ((() => { let $ret = new TrendResolutionParams(); $ret.d = this.im; $ret.i = d; $ret.h = e; $ret.j = c; return $ret; })()), g, h, i); } } } get_fh() { return true; } z3(a, b, c) { return null; } z4(a, b, c) { if (this.dp == null) { return null; } let d = this.zr(); let e = this.zn.ce(this.wt(b)); let f = -1; if (e == null) { if (a != null) { f = this.dp.indexOf(a); } else { return null; } } else { f = e.al; } if (f == -1) { return null; } let g = new HighlightingInfo(); g.i = this; g.g = f; g.f = f; g.c = false; g.d = true; if (c != null && c.g == g.g && c.f == g.f) { return c; } return g; } z2(a, b, c) { let d = new HighlightingInfo(); d.i = this; d.g = 0; d.f = this.dp.count - 1; d.c = true; if (c != null && c.g == d.g && c.f == d.f) { return c; } return d; } dh(a, b, c) { if (this.ef && this.f3(this.by) && !c) { let d = this.z3(a, b, this.z5); this.z5 = d; return d; } else { let e = this.z2(a, b, this.z5); this.z5 = e; return e; } } di(a, b, c) { if (this.f3(this.by) && !c) { let d = this.z4(a, b, this.z6); this.z6 = d; return d; } else { let e = this.z2(a, b, this.z6); e.d = true; this.z6 = e; return e; } } aan() { return (this.assigningPolarStyle != null && this.aac) || (this.by != 1) || this.d3 || (this.cq != 1) || (this.cp != 1); } aam() { return (this.assigningPolarMarkerStyle != null && this.aab) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1); } ab7(a, b) { this.rf(); let c = b.ca; let d = b.b9; let e = this.getEffectiveViewport1(b); let f = this.w6(b); this.zm = new PolarAxisInfoCache(this.zj, this.zk, this.dp); if (this.x3()) { b.db.j(a.m, this.x5); if (this.aam()) { this.abx(b, a); } } b.c4(); let g = this.zg(d, b.dd.g$n.an); b.dd.g$l(a.r, g); if (b.aa.count > 0) { for (let h = 0; h < b.aa.count; h++) { let i = b.aa._inner[h]; i.g$l(a.p._inner[h], g); } } this.abu(d, c, e, f, b); } zd(a, b) { return this.ze(a, b); } ze(a, b) { if (b < a || a < 0 || a > this.z9.count || b < 0 || b > this.z9.count) { return null; } let c = new Array((b - a) + 1); for (let d = a; d <= b; d++) { let e = d; c[d - a] = this.dp.item(d); } return c; } abx(a, b) { a.ck = true; this.zv.ay(this, this.aam(), runOn(this, this.zd)); let c = this.zv.d; let d = c != null; let e = this.getEffectiveViewport1(a); let f = this.dp == null ? 0 : this.dp.count; this.zn.cw((g) => { if (g._visibility == 0) { let h = g.al; let i = g.content; if (i == null) { i = new DataContext(); g.content = i; } if (d) { this.ab1(h, f, a.t); } this.zv.ac(g, i); } }); } ab2(a, b, c) { let d = this.by != 1; let e = this.cq != 1; let f = this.cp != 1; this.zv.a0(this.zv.b, a, b, false); this.zv.ab(this.ik); let g = this.zv.ax; let h = null; let i = null; let j = null; let k = this.dp; if (d && this.dc != null) { h = this.dc.d7.getHighlightingInfo(this, k, g.z, g.y, false); g.c = h; } if (e && this.dc != null) { i = this.dc.d8.getHighlightingInfo(this, k, g.z, g.y, false); if (i == null && this.bo != null) { i = this.dc.d8.getHighlightingInfo(this.bo, this.bo.dp, g.z, g.y, false); } g.d = i; } if (f && this.dc != null) { j = this.dc.d6.getHighlightingInfo(this, k, g.z, g.y, false); g.b = j; } g.h = c; this.ab5(g); this.zv.z(this, h, i, j, c, d, e, f, a < 0); } ab1(a, b, c) { let d = this.by != 1; let e = this.cq != 1; let f = this.cp != 1; this.zv.a0(this.zv.d, a, b, true); this.zv.aa(this.ik); let g = this.zv.aw; let h = null; let i = null; let j = null; let k = this.dp; let l = null; let m = null; let n = null; if (d && this.dc != null) { h = this.dc.d7.getHighlightingInfo(this, k, g.z, g.y, true); if (this.dc.d7.isCrossContextHighlight(this)) { l = this.dc.d7.getHighlightingInfo(this, k, g.z, g.y, true); } g.c = h; } if (e && this.dc != null) { i = this.dc.d8.getHighlightingInfo(this, k, g.z, g.y, true); if (i == null && this.bo != null) { i = this.dc.d8.getHighlightingInfo(this.bo, this.bo.dp, g.z, g.y, true); } if (this.dc.d8.isCrossContextHighlight(this)) { m = this.dc.d8.getHighlightingInfo(this, k, g.z, g.y, true); } g.d = i; } if (f && this.dc != null) { j = this.dc.d6.getHighlightingInfo(this, k, g.z, g.y, true); if (this.dc.d6.isCrossContextHighlight(this)) { n = this.dc.d6.getHighlightingInfo(this, k, g.z, g.y, true); } g.d = i; } g.h = c; this.ab4(g); this.zv.y(this, h, i, j, c, d, e, f, g.v, this.dc.d7.totalHighWaterMark, g.x, this.dc.d8.totalHighWaterMark, g.t, this.dc.d6.totalHighWaterMark); } ab5(a) { if (this.assigningPolarStyle != null && this.aac) { this.assigningPolarStyle(this, a); } } ab4(a) { if (this.assigningPolarMarkerStyle != null && this.aab) { this.assigningPolarMarkerStyle(this, a); } } abu(a, b, c, d, e) { e.dg(a, b, c, d); } s1() { super.s1(); if (this.index < 0) { return; } this.zn.dj(); } sc(a, b) { super.sc(a, b); if (!this.g8) { this.cw.be(b); return; } this.cw.be(b); if (this.d7(this.cv)) { return; } this.sd(); this.g8 = false; } sd() { super.sd(); let a = this.cv; if (!this.g0) { this.zt = new PolarFrame(); this.ab3(this.zt, a); } this.g0 = false; this.ab7(this.zt, a); } r9(a, b, c, d, e) { super.r9(a, b, c, d, e); let f = this.ba.a$k.item(d); let g = f; f.bd(c); if (this.d7(g)) { return; } if (this.zp == null) { this.zp = new PolarFrame(); } this.ab3(this.zp, g); this.ab7(this.zp, g); } ab6(a, b) { let c = new List$1(Base.$, 0); for (let d of fromEnum(b.c)) { if (!a.containsKey(d)) { c.add1(d); } } for (let e of fromEnum(c)) { b.h(e); } } zc(a, b, c) { this.aby(); return this.zo.aa.toArray(); } aar(a) { let b = new List$1(Number_$type, 0); let c = this.dp; for (let d of fromEnum(this.zn.de.c)) { b.add(c.indexOf(d)); } return b; } ac1(a) { return { $type: Point_$type, x: this.z9.item(a), y: this.aaa.item(a) }; } qf(a) { super.qf(a); this.bc.exportTrendlineData(this, a, this.zn.dd.g$n); } getDataLegendSeriesContextAt(a, b) { let c = { $type: Point_$type, x: a, y: b }; let d = this.ky(c); let e = d == null ? NaN : this.i6(d, "RadiusMemberPath"); let f = d == null ? NaN : this.i6(d, "AngleMemberPath"); let g = new DataLegendSeriesValueInfo(); g.l = e; g.a = 11; g.r = this.abr != null ? this.abr : "Radius"; g.q = "Radius"; g.s = this.abn != null ? this.abn : "R:"; g.t = this.abp != null ? this.abp : ""; let h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 10; h.r = this.aa9 != null ? this.aa9 : "Angle"; h.q = "Angle"; h.s = this.aa5 != null ? this.aa5 : "A:"; h.t = this.aa7 != null ? this.aa7 : ""; let i = new DataLegendSeriesContext(); i.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mp(); return i; } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.qk(a, c, b); return c.toArray(); } qk(a, b, c) { let d = this.cw.ca; let e = this.cw.b9; let f = this.getEffectiveViewport1(this.cw); let g = this.dc.y3(this.xf, this.getEffectiveViewport(), d); let h = new CollisionRect(0, this.dc.y0(a)); let i = this.zk.pz(e, d, f, g); for (let j = 0; j < this.dp.count; j++) { let k = this.zj.getScaledAngle(this.z9.item(j)); let l = this.zk.to(this.aaa.item(j)); let m = this.zl.c(k, l, d, e, f, Math.cos); let n = this.zl.d(k, l, d, e, f, Math.sin); if (h.containsLocation(m, n)) { if (c == 7 || c == 6) { b.add(((() => { let $ret = new ChartSelection(); $ret.series = this; return $ret; })())); return; } else if (c == 2 || c == 1) { b.add(((() => { let $ret = new ChartSelection(); $ret.item = this.dp.item(j); return $ret; })())); } else { b.add(((() => { let $ret = new ChartSelection(); $ret.item = this.dp.item(j); $ret.series = this; return $ret; })())); } } } } bd() { return new PolarTrendLineManager(); } } PolarBase.$t = /*@__PURE__*/ markType(PolarBase, 'PolarBase', MarkerSeries.$); PolarBase.ab8 = /*@__PURE__*/ DependencyProperty.i("ActualTrendLineBrush", Brush.$, PolarBase.$, /*@__PURE__*/ new PropertyMetadata(2, null, (a, b) => a.raisePropertyChanged("ActualTrendLineBrush", b.oldValue, b.newValue))); PolarBase.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarBase, 'raisePropertyChanged', ['AngleAxis:zj:ab9', [NumericAngleAxis.$, null], 'AngleMemberAsLegendLabel:aa5:aca', [2, null], 'AngleMemberAsLegendUnit:aa7:acb', [2, null], 'AngleMemberPath:aa9:acc', [2], 'ClipSeriesToBounds:aaf:acd', [0, false], 'HighlightedAngleMemberPath:abc:ace', [2, null], 'HighlightedRadiusMemberPath:abe:acf', [2, null], 'IsCustomPolarMarkerStyleAllowed:aah:acg', [0, false], 'IsCustomPolarStyleAllowed:aai:ach', [0, false], 'ItemSearchMode:zz:aci', [ScatterItemSearchMode_$type, /*@__PURE__*/ enumGetBox(ScatterItemSearchMode_$type, 0)], 'ItemSearchThreshold:aay:acj', [1, 10000], 'MaximumMarkers:aaz:ack', [1, 400], 'RadiusAxis:zk:acl', [NumericRadiusAxis.$, null], 'RadiusMemberAsLegendLabel:abn:acm', [2, null], 'RadiusMemberAsLegendUnit:abp:acn', [2, null], 'RadiusMemberPath:abr:aco', [2], 'UseCartesianInterpolation:aap:acw', [0, true], 'TrendLineType:z1:acu', [TrendLineType_$type, /*@__PURE__*/ enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:aax:act', [1, 1.5], 'TrendLinePeriod:aa0:acs', [1, 7], 'TrendLineZIndex:aa1:acv', [1, 1], 'TrendLineBrush:acy:acp', [Brush.$, null], 'TrendLineDashArray:acz:acq', [DoubleCollection.$], 'TrendLineDashCap:ac0:acr', [PenLineCap_$type, /*@__PURE__*/ enumGetBox(PenLineCap_$type, 0)]]); return PolarBase; })(); /** * @hidden */ export let PolarSeriesRenderManager = /*@__PURE__*/ (() => { class PolarSeriesRenderManager extends SeriesRenderManager { constructor() { super(...arguments); this.aw = null; this.ax = null; } c() { this.aw = new AssigningPolarMarkerStyleEventArgs(); return this.aw; } a() { this.ax = new AssigningPolarStyleEventArgs(); return this.ax; } ay(a, b, c) { this.w(a, b, c); } az(a, b, c) { this.x(a, b, c); } a0(a, b, c, d) { if (b == -1) { a.e = false; a.z = 0; a.y = c - 1; } else { if (d) { a.z = b; a.y = b; } else { a.e = false; a.z = b; a.y = b; } } } } PolarSeriesRenderManager.$t = /*@__PURE__*/ markType(PolarSeriesRenderManager, 'PolarSeriesRenderManager', SeriesRenderManager.$); return PolarSeriesRenderManager; })(); /** * @hidden */ export let PolarBaseView = /*@__PURE__*/ (() => { c