UNPKG

igniteui-react-charts

Version:

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

1,401 lines (1,400 loc) 51.3 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, runOn, delegateCombine, Number_$type, enumGetBox, fromEnum, Point_$type, 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 { List$1 } from "igniteui-react-core"; import { SeriesPointOfInterest } from "./SeriesPointOfInterest"; import { ScalerParams } from "./ScalerParams"; import { Rect } from "igniteui-react-core"; import { Marker } from "./Marker"; import { MarkerSeriesView } from "./MarkerSeriesView"; import { PolarAxes } from "./PolarAxes"; 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 { 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); } q8(a) { super.q8(a); this.y8 = a; } o8() { super.o8(); this.y4 = null; this.y5 = null; } get_fq() { return true; } ed(a, b, c, d, e) { if (!this.hasMarkers) { return false; } let f = this.y4; let g = new ScalerParams(1, this.dc.xn, this.w3, f.df); g.c = this.getEffectiveViewport1(this.cw); let h = this.y5; let i = new ScalerParams(1, this.dc.xn, this.w3, h.df); i.c = this.getEffectiveViewport1(this.cw); a.clear(); this.xh.cw((j) => { if (j._visibility == 0) { let k = new SeriesPointOfInterest(); let l = j.n; let m = j.o; if (!e && (l < this.w3.left || l > this.w3.right || m < this.w3.top || m > this.w3.bottom)) { return; } let n; let o; let p = this.y6.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.vr; k.c = j.ak; if (this.ha) { k.g = this.vy(j.ak); } a.add(k); } }); return true; } constructor() { super(); this.y9 = null; this.y0 = null; this.y7 = null; this.acq = null; this.acp = null; this.aco = null; this.zl = null; this.zs = null; this.zt = null; this.zd = new PolarFrame(); this.zf = new PolarFrame(); this.zb = new PolarFrame(); this.y6 = null; this.aab = null; this.zh = 1; this.zx = false; this.zw = false; this.zq = null; this.zr = null; this.assigningPolarStyle = null; this.assigningPolarMarkerStyle = null; this.zg = null; this.ze = null; this.za = null; this.zg = new PolarSeriesRenderManager(); this.zi = this.zj(); this.ze = new PolarFrame(); this.zf.y = runOn(this, this.acn); this.zd.y = runOn(this, this.acn); this.zb.y = runOn(this, this.acn); this.zl = new SeriesRenderer$2(PolarFrame.$, PolarBaseView.$, 0, runOn(this, this.abo), runOn(this, this.abs), runOn(this, this.d4), runOn(this, this.sg), runOn(this, this.abh)); } abh() { if (this.dd.g) { this.dd.t(); } } abj() { this.y6.e(this.y9.x, this.zu, this.zv, this.acq, this.acp, this.aco, (a, b) => Math.cos(b), (a, b) => Math.sin(b), true); } gc() { return this.highlightedItemsSource != null || (this.aaz != null && this.aax != null); } z9() { return false; } hu() { let a = super.hu(); { 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.abk)); 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.abl)); a.add(c); } if (this.z9()) { 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.z9()) { 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.r9)); a.add(e); } if (!this.z9()) { 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.r9)); a.add(f); } return a; } abl(a, b) { if (this.aaz != null) { b.value = this.aaz; return; } b.value = this.abc; } abk(a, b) { if (this.aax != null) { b.value = this.aax; return; } b.value = this.aau; } get zu() { return this.zs; } set zu(a) { if (this.zs != a) { let b = this.zu; this.zs = a; this.raisePropertyChanged("AngleColumn", b, this.zu); } } get zv() { return this.zt; } set zv(a) { if (this.zt != a) { let b = this.zv; this.zt = a; this.raisePropertyChanged("RadiusColumn", b, this.zv); } } get aci() { return this.c(PolarBase.abt); } set aci(a) { this.h(PolarBase.abt, a); } zc() { let a = this.zb; if (this.d4()) { if (this.dd.g) { this.dd.t(); } a = this.zf; } return a; } qh() { super.qh(); if (this.y5 != null) { this.y5.k3(false); } if (this.y4 != null) { this.y4.k3(false); } } ph(a, b, c, d) { let e = false; this.y8.dd.g$i(a, b, c, d); if (this.y8.aa.count > 0) { for (let f of fromEnum(this.y8.aa)) { f.g$i(a, b, c, d); } } if (this.y4 != null && !this.y4.d2()) { e = true; } if (this.y5 != null && !this.y5.d2()) { e = true; } if (e) { this.rz(true); } } sz(a, b) { this.rz(false); } s0(a, b) { this.rz(false); } hf(a, b, c) { let d = true; if (!super.hf(a, b, c) || !c.r() || b.isEmpty || a.isEmpty || this.y4 == null || this.y5 == null || this.zu == null || this.zv == null || this.zu.count == 0 || this.zv.count == 0 || this.dp == null || this.dp.count != this.zu.count || this.dp.count != this.zv.count || this.y6 == null || this.y4.b0 == null || this.y5.b0 == null || this.y4.pr == this.y4.pq || this.y5.pr == this.y5.pq) { d = false; } return d; } r0(a) { super.r0(a); let b; let c; let d = this.getViewInfo(c, b); c = d.p0; b = d.p1; if (!this.hf(c, b, this.cw)) { this.pb(true, this.cw); return; } this.acq = b; this.acp = c; this.aco = this.cw.getEffectiveViewport(); this.y7 = new PolarAxisInfoCache(this.y4, this.y5, this.dp); let e = new SeriesRenderingArguments(this, c, b, a, this.gs); let f = this.zl.g(e, this.zd, this.zb, this.zf, this.y8); this.zd = f.p1; this.zb = f.p2; this.zf = f.p3; } acn(a) { let b = this.y6.h(a.x, a.y, this.acq, this.acp, this.aco, this.y7.e, this.y7.d, this.y7.g, this.y7.f, this.y7.i, this.y7.h); return b; } ay(a) { if (a != null && a == this.y4 && this.zu != null) { return new AxisRange(this.zu.minimum, this.zu.maximum); } if (a != null && a == this.y5 && this.zv != null) { return new AxisRange(this.zv.minimum, this.zv.maximum); } return null; } ge(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.y4 == null || this.zu == null || this.y5 == null || this.zv == null) { return false; } if (d < 0 || d > this.zu.count - 1 || d > this.zv.count - 1) { return false; } let e = this.y4.getScaledAngle(this.zu.item(d)); let f = this.y5.sh(this.zv.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; } kr(a) { let b = this.j7(a); if (this.dp != null && b >= 0 && b < this.dp.count) { return this.dp.item(b); } return null; } j7(a) { let b = truncate(Math.round(this.it(a))); return b; } it(a) { switch (this.zi) { case 1: return this.aaf(a); case 3: return this.aag(a); case 2: return this.aad(a); case 4: return this.aae(a); } return -1; } aae(a) { return this.aah(a, false); } aad(a) { let b = this.wi(a); let c = b.x; let d = b.y; if (this.dp == null || this.y4 == null || this.y5 == null || this.zu == null || this.zv == null) { return -1; } if (this.dp.count > this.aaj) { return -1; } if (!this.z1()) { return -1; } let e = this.aab; let f = 1.7976931348623157E+308; let g = -1; for (let h = 0; h < this.zu.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; } z1() { let a = this.zb; if (this.d4()) { a = this.zf; } if (a == null || a.x.count == 0) { return false; } this.aab = a.x; return true; } aah(a, b) { if (!this.z4) { return -1; } let c = { $type: Point_$type, x: 0, y: 0 }; let d = true; let e = this.zb; if (this.d4()) { e = this.zf; } if (e == null) { return -1; } if (e.n == null) { return -1; } if (this.dp == null || this.dp.count > this.aaj) { return -1; } if (!this.z1()) { return -1; } let f = this.aab; let g = this.wi(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.j.containsKey(this.dp.item(j)) || e.j.containsKey(this.dp.item(j - 1))) { let l = GeometryUtil.h(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.j.containsKey(this.dp.item(i)) && e.j.containsKey(this.dp.item(i - 1)))) { let o = GeometryUtil.m(g, n, m); return (i - 1) + o; } else if (e.j.containsKey(this.dp.item(i))) { return i; } else { return i - 1; } } return -1; } aag(a) { return this.aah(a, true); } aaf(a) { let b = null; let c = 1.7976931348623157E+308; let d = this.wi(a); let e = d.x; let f = d.y; if (this.y8.de.e > this.aaj) { return -1; } this.y8.dh((g) => { if (g._visibility == 0) { let h = this.y8.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.ak; } return -1; } wn(a, b, c) { if (this.y4 == null || this.y5 == null || this.zu == null || this.zv == 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.y4.df, f); let h = ((() => { let $ret = new ScalerParams(0, d, e, this.y5.df, f); $ret.b = this.i0(); return $ret; })()); if (b) { let i = this.it(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.y6.h(this.zu.item(j), this.zv.item(j), d, e, f, this.y7.e, this.y7.d, this.y7.g, this.y7.f, this.y7.i, this.y7.h); } let l = i - Math.floor(i); let m = this.y6.h(this.zu.item(j), this.zv.item(j), d, e, f, this.y7.e, this.y7.d, this.y7.g, this.y7.f, this.y7.i, this.y7.h); let n = this.y6.h(this.zu.item(k), this.zv.item(k), d, e, f, this.y7.e, this.y7.d, this.y7.g, this.y7.f, this.y7.i, this.y7.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.j7(a); if (u == -1) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.y6.h(this.zu.item(u), this.zv.item(u), d, e, f, this.y7.e, this.y7.d, this.y7.g, this.y7.f, this.y7.i, this.y7.h); } } ai() { return [this.y4, this.y5]; } ku(a, b) { let c = this.ni(b); if (c == PolarBase.$$p[3]) { return this.kv(a, b, this.aau); } if (c == PolarBase.$$p[15]) { return this.kv(a, b, this.abc); } if (c == PolarBase.$$p[5]) { return this.kv(a, b, this.aax); } if (c == PolarBase.$$p[6]) { return this.kv(a, b, this.aaz); } return super.ku(a, b); } mi(a) { let b = this.ni(a); if (b == PolarBase.$$p[3]) { return this.aau; } if (b == PolarBase.$$p[15]) { return this.abc; } if (b == PolarBase.$$p[5]) { return this.aax; } if (b == PolarBase.$$p[6]) { return this.aaz; } return super.mi(a); } rh(a, b, c, d) { super.rh(a, b, c, d); if (this.y8.dd.g$e(a, b, c, d)) { this.rz(false); this.qs(); } switch (b) { case PolarBase.$$p[1]: case PolarBase.$$p[2]: case PolarBase.$$p[13]: case PolarBase.$$p[14]: this.qm(); break; case "FastItemsSource": if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.zu); c.deregisterColumn(this.zv); this.zu = null; this.zv = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.zu = this.dl(this.aau); this.zv = this.dl(this.abc); } if ((this.y5 != null && !this.y5.d2()) || (this.y4 != null && !this.y4.d2())) { this.rz(this.gh && c != null); } break; case PolarBase.$$p[0]: if (this.y4 != null && this.y5 != null) { this.y6 = new PolarAxes(this.y5, this.y4); } if (c != null) { c.cq(this); } if (d != null) { d.du(this); } if (this.y4 != null && !this.y4.d2()) { this.rz(false); } else if (c != null && d == null) { this.pb(true, this.cw); } break; case PolarBase.$$p[12]: if (this.y4 != null && this.y5 != null) { this.y6 = new PolarAxes(this.y5, this.y4); } if (c != null) { c.cq(this); } if (d != null) { d.du(this); } if (this.y5 != null && !this.y5.d2()) { this.rz(false); } else if (c != null && d == null) { this.pb(true, this.cw); } if (this.y4 != null && !this.y4.d2()) { this.y4.kz(); } break; case PolarBase.$$p[3]: if (this.dp != null) { this.dp.deregisterColumn(this.zu); this.zu = this.dl(this.aau); } break; case "AngleColumn": this.y8.dd.g$m(); if (this.y4 != null && !this.y4.d2()) { this.rz(this.gh && this.d9); } break; case PolarBase.$$p[15]: if (this.dp != null) { this.dp.deregisterColumn(this.zv); this.zv = this.dl(this.abc); } break; case "RadiusColumn": this.y8.dd.g$m(); if (this.y5 != null && !this.y5.d2()) { this.rz(this.gh && this.d9); } break; case PolarBase.$$p[16]: this.rz(false); this.qs(); break; case PolarBase.$$p[11]: this.rz(false); this.qs(); break; case "TransitionProgress": this.y7 = new PolarAxisInfoCache(this.y4, this.y5, this.dp); this.acq = this.cw.ca; this.acp = this.cw.b9; this.aco = this.cw.getEffectiveViewport(); this.zf.w = this.aaa; this.zf.c(this.ju, this.zd, this.zb); if (this.d7(this.cw)) { return; } if (this.ju == 1) { this.abs(this.zb, this.y8); this.qv(); } else { this.abs(this.zf, this.y8); } if (this.dc != null) { this.dc.r0(this); } break; case "TrendLineBrush": this.rn(b); break; case PolarBase.$$p[4]: this.rz(false); this.qs(); break; case "TrendLineType": this.qs(); break; case PolarBase.$$p[8]: this.zx = this.z6(); this.rz(false); break; case PolarBase.$$p[7]: this.zw = this.z5(); this.rz(false); break; case PolarBase.$$p[9]: this.zi = this.zj(); break; } } get zi() { return this.zh; } set zi(a) { let b = this.zh; this.zh = a; if (b != this.zh) { this.raisePropertyChanged("ActualItemSearchMode", enumGetBox(ScatterItemSearchMode_$type, b), enumGetBox(ScatterItemSearchMode_$type, this.zh)); } } zj() { if (this.zk != 0) { return this.zk; } return this.z4 ? 4 : 1; } get_z4() { return false; } get z4() { return this.get_z4(); } z6() { return this.z3; } z5() { return this.z2; } zz(a) { if (typeCast(NumericRadiusAxis.$, a) !== null) { return true; } return false; } zy(a) { if (typeCast(NumericAngleAxis.$, a) !== null) { return true; } return false; } pb(a, b) { super.pb(a, b); let c = b; if (a) { c.de.clear(); } c.dd.g$h(); } y1(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; } abg(a, b, c, d) { a.g = new Dictionary$2(Base.$, OwnedPoint.$, 1, b); let e = this.dp; for (let f = 0; f < b; f++) { let g = a.x._inner[f]; if (!isInfinity(g.x) && !isInfinity(g.y)) { let h = { $type: Point_$type, x: this.zu.item(f), y: this.zv.item(f) }; let i = { $type: Point_$type, x: g.x, y: g.y }; a.g.addItem(e.item(f), ((() => { let $ret = new OwnedPoint(); $ret.a = e.item(f); $ret.b = h; $ret.c = i; return $ret; })())); } } } abo(a, b) { let c = b.ca; let d = b.b9; let e = b.getEffectiveViewport(); a.j.clear(); a.o.clear(); let f = Math.min(this.zu != null ? this.zu.count : 0, this.zv != null ? this.zv.count : 0); if (f < 1) { return; } this.y7 = new PolarAxisInfoCache(this.y4, this.y5, this.dp); this.y9 = a; this.acp = d; this.acq = c; this.aco = b.getEffectiveViewport(); b.db.l(a.j, this.aak, c, d, this.ie); if (f <= this.aak) { this.abg(a, f, c, d); } let g = this.y1(d, a.o); let h = Math.min(this.y4.pr, this.y4.pq); let i = Math.max(this.y4.pq, this.y4.pr); b.dd.k = this.aaa; b.dd.j = 0; b.dd.m = this.y5.sb; b.dd.l = this.y5.sa; b.dd.n = (j, k) => this.y6.c(j, k, c, d, e, Math.cos); b.dd.o = (j, k) => this.y6.d(j, k, c, d, e, Math.sin); let j = new List$1(Number_$type, 0); for (let k = 0; k < this.zu.count; k++) { if (this.zu.item(k) >= h && this.zu.item(k) <= i) { j.add(this.zu.item(k)); } } let l = this.zv; if (j.count != this.zu.count) { l = new List$1(Number_$type, 0); for (let m = 0; m < this.zu.count; m++) { if (this.zu.item(m) >= h && this.zu.item(m) <= i) { l.add(this.zv.item(m)); } } } b.dd.p(a.o, this.zm, j, l, this.aal, runOn(this.y4, this.y4.getScaledAngle), runOn(this.y5, this.y5.sh), ((() => { let $ret = new TrendResolutionParams(); $ret.d = this.ie; $ret.i = d; $ret.h = e; $ret.j = c; return $ret; })()), g, h, i); if (b.aa.count > 0) { a.m.clear(); for (let n = 0; n < b.aa.count; n++) { a.m.add(new List$1(Point_$type, 0)); let o = b.aa._inner[n]; o.k = this.aaa; o.j = 0; o.m = this.y5.sb; o.l = this.y5.sa; o.n = (p, q) => this.y6.c(p, q, c, d, e, Math.cos); o.o = (p, q) => this.y6.d(p, q, c, d, e, Math.sin); o.p(a.m._inner[n], o.g$b, j, l, o.g$f, runOn(this.y4, this.y4.getScaledAngle), runOn(this.y5, this.y5.sh), ((() => { let $ret = new TrendResolutionParams(); $ret.d = this.ie; $ret.i = d; $ret.h = e; $ret.j = c; return $ret; })()), g, h, i); } } } get_ff() { return true; } zo(a, b, c) { return null; } zp(a, b, c) { if (this.dp == null) { return null; } let d = this.zc(); let e = this.y8.ce(this.wi(b)); let f = -1; if (e == null) { if (a != null) { f = this.dp.indexOf(a); } else { return null; } } else { f = e.ak; } 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; } zn(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.f0(this.by) && !c) { let d = this.zo(a, b, this.zq); this.zq = d; return d; } else { let e = this.zn(a, b, this.zq); this.zq = e; return e; } } di(a, b, c) { if (this.f0(this.by) && !c) { let d = this.zp(a, b, this.zr); this.zr = d; return d; } else { let e = this.zn(a, b, this.zr); e.d = true; this.zr = e; return e; } } z8() { return (this.assigningPolarStyle != null && this.zx) || (this.by != 1) || this.d3 || (this.cq != 1) || (this.cp != 1); } z7() { return (this.assigningPolarMarkerStyle != null && this.zw) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1); } abs(a, b) { this.q4(); let c = b.ca; let d = b.b9; let e = this.getEffectiveViewport1(b); let f = this.wu(b); this.y7 = new PolarAxisInfoCache(this.y4, this.y5, this.dp); if (this.xr()) { b.db.j(a.j, this.xt); if (this.z7()) { this.abi(b, a); } } b.c4(); let g = this.y1(d, b.dd.g$n.an); b.dd.g$l(a.o, 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.m._inner[h], g); } } this.abf(d, c, e, f, b); } yy(a, b) { return this.yz(a, b); } yz(a, b) { if (b < a || a < 0 || a > this.zu.count || b < 0 || b > this.zu.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; } abi(a, b) { a.ck = true; this.zg.ay(this, this.z7(), runOn(this, this.yy)); let c = this.zg.d; let d = c != null; let e = this.getEffectiveViewport1(a); let f = this.dp == null ? 0 : this.dp.count; this.y8.cw((g) => { if (g._visibility == 0) { let h = g.ak; let i = g.content; if (i == null) { i = new DataContext(); g.content = i; } if (d) { this.abm(h, f, a.t); } this.zg.ac(g, i); } }); } abn(a, b, c) { let d = this.by != 1; let e = this.cq != 1; let f = this.cp != 1; this.zg.a0(this.zg.b, a, b, false); this.zg.ab(this.ic); let g = this.zg.ax; let h = null; let i = null; let j = null; let k = this.dp; if (d && this.dc != null) { h = this.dc.d0.getHighlightingInfo(this, k, g.z, g.y, false); g.c = h; } if (e && this.dc != null) { i = this.dc.d1.getHighlightingInfo(this, k, g.z, g.y, false); if (i == null && this.bo != null) { i = this.dc.d1.getHighlightingInfo(this.bo, this.bo.dp, g.z, g.y, false); } g.d = i; } if (f && this.dc != null) { j = this.dc.dz.getHighlightingInfo(this, k, g.z, g.y, false); g.b = j; } g.h = c; this.abq(g); this.zg.z(this, h, i, j, c, d, e, f, a < 0); } abm(a, b, c) { let d = this.by != 1; let e = this.cq != 1; let f = this.cp != 1; this.zg.a0(this.zg.d, a, b, true); this.zg.aa(this.ic); let g = this.zg.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.d0.getHighlightingInfo(this, k, g.z, g.y, true); if (this.dc.d0.isCrossContextHighlight(this)) { l = this.dc.d0.getHighlightingInfo(this, k, g.z, g.y, true); } g.c = h; } if (e && this.dc != null) { i = this.dc.d1.getHighlightingInfo(this, k, g.z, g.y, true); if (i == null && this.bo != null) { i = this.dc.d1.getHighlightingInfo(this.bo, this.bo.dp, g.z, g.y, true); } if (this.dc.d1.isCrossContextHighlight(this)) { m = this.dc.d1.getHighlightingInfo(this, k, g.z, g.y, true); } g.d = i; } if (f && this.dc != null) { j = this.dc.dz.getHighlightingInfo(this, k, g.z, g.y, true); if (this.dc.dz.isCrossContextHighlight(this)) { n = this.dc.dz.getHighlightingInfo(this, k, g.z, g.y, true); } g.d = i; } g.h = c; this.abp(g); this.zg.y(this, h, i, j, c, d, e, f, g.v, this.dc.d0.totalHighWaterMark, g.x, this.dc.d1.totalHighWaterMark, g.t, this.dc.dz.totalHighWaterMark); } abq(a) { if (this.assigningPolarStyle != null && this.zx) { this.assigningPolarStyle(this, a); } } abp(a) { if (this.assigningPolarMarkerStyle != null && this.zw) { this.assigningPolarMarkerStyle(this, a); } } abf(a, b, c, d, e) { e.dg(a, b, c, d); } sq() { super.sq(); if (this.index < 0) { return; } this.y8.dj(); } r1(a, b) { super.r1(a, b); if (!this.g1) { this.cw.be(b); return; } this.cw.be(b); if (this.d7(this.cv)) { return; } this.r2(); this.g1 = false; } r2() { super.r2(); let a = this.cv; if (!this.gt) { this.ze = new PolarFrame(); this.abo(this.ze, a); } this.gt = false; this.abs(this.ze, a); } ry(a, b, c, d, e) { super.ry(a, b, c, d, e); let f = this.ba.a$j.item(d); let g = f; f.bd(c); if (this.d7(g)) { return; } if (this.za == null) { this.za = new PolarFrame(); } this.abo(this.za, g); this.abs(this.za, g); } abr(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); } } yx(a, b, c) { this.abj(); return this.y9.x.toArray(); } aac(a) { let b = new List$1(Number_$type, 0); let c = this.dp; for (let d of fromEnum(this.y8.de.c)) { b.add(c.indexOf(d)); } return b; } acm(a) { return { $type: Point_$type, x: this.zu.item(a), y: this.zv.item(a) }; } p5(a) { super.p5(a); this.bc.exportTrendlineData(this, a, this.y8.dd.g$n); } getDataLegendSeriesContextAt(a, b) { let c = { $type: Point_$type, x: a, y: b }; let d = this.kr(c); let e = d == null ? NaN : this.iz(d, "RadiusMemberPath"); let f = d == null ? NaN : this.iz(d, "AngleMemberPath"); let g = new DataLegendSeriesValueInfo(); g.l = e; g.a = 11; g.r = this.abc != null ? this.abc : "Radius"; g.q = "Radius"; g.s = this.aa8 != null ? this.aa8 : "R:"; g.t = this.aba != null ? this.aba : ""; let h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 10; h.r = this.aau != null ? this.aau : "Angle"; h.q = "Angle"; h.s = this.aaq != null ? this.aaq : "A:"; h.t = this.aas != null ? this.aas : ""; let i = new DataLegendSeriesContext(); i.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mh(); return i; } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.qa(a, c, b); return c.toArray(); } qa(a, b, c) { let d = this.cw.ca; let e = this.cw.b9; let f = this.getEffectiveViewport1(this.cw); let g = this.dc.xv(this.w3, this.getEffectiveViewport(), d); let h = new CollisionRect(0, this.dc.xs(a)); let i = this.y5.or(e, d, f, g); for (let j = 0; j < this.dp.count; j++) { let k = this.y4.getScaledAngle(this.zu.item(j)); let l = this.y5.sh(this.zv.item(j)); let m = this.y6.c(k, l, d, e, f, Math.cos); let n = this.y6.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.abt = /*@__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:y4:abu', [NumericAngleAxis.$, null], 'AngleMemberAsLegendLabel:aaq:abv', [2, null], 'AngleMemberAsLegendUnit:aas:abw', [2, null], 'AngleMemberPath:aau:abx', [2], 'ClipSeriesToBounds:z0:aby', [0, false], 'HighlightedAngleMemberPath:aax:abz', [2, null], 'HighlightedRadiusMemberPath:aaz:ab0', [2, null], 'IsCustomPolarMarkerStyleAllowed:z2:ab1', [0, false], 'IsCustomPolarStyleAllowed:z3:ab2', [0, false], 'ItemSearchMode:zk:ab3', [ScatterItemSearchMode_$type, /*@__PURE__*/ enumGetBox(ScatterItemSearchMode_$type, 0)], 'ItemSearchThreshold:aaj:ab4', [1, 10000], 'MaximumMarkers:aak:ab5', [1, 400], 'RadiusAxis:y5:ab6', [NumericRadiusAxis.$, null], 'RadiusMemberAsLegendLabel:aa8:ab7', [2, null], 'RadiusMemberAsLegendUnit:aba:ab8', [2, null], 'RadiusMemberPath:abc:ab9', [2], 'UseCartesianInterpolation:aaa:ach', [0, true], 'TrendLineType:zm:acf', [TrendLineType_$type, /*@__PURE__*/ enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:aai:ace', [1, 1.5], 'TrendLinePeriod:aal:acd', [1, 7], 'TrendLineZIndex:aam:acg', [1, 1], 'TrendLineBrush:acj:aca', [Brush.$, null], 'TrendLineDashArray:ack:acb', [DoubleCollection.$], 'TrendLineDashCap:acl:acc', [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__*/ (() => { class PolarBaseView extends MarkerSeriesView { constructor(a) { super(a); this.dc = null; this.db = null; this.dd = null; this.de = null; this.dc = a; this.de = new HashPool$2(Base.$, Marker.$); this.cz(this.de); this.dd = new PolarTrendLineManager(); } a4() { super.a4(); this.db = this.da(); if (!this.t) { this.dc.aak = 1000; this.ch.xl = Defaults.e; } } dh(a) { this.de.g(a); } da() { let a = new NumericMarkerManager(0, (b) => this.de.item(b), (b) => this.dc.y7.c.item(b), runOn(this, this.di), runOn(this, this.c9), runOn(this, this.df)); a.n = true; a.p = runOn(this.dc, this.dc.acm); return a; } di(a) { this.dc.abr(a, this.de); } c9() { return this.dc.yx(this.de, this.ca, this.b9); } df() { return this.dc.aac(this.de); } dg(a, b, c, d) { if (this.dc.z0) { let e = new GeometryGroup(); this.dc.y5.sp(e, a, b, c, d); } else { } } dj() {