UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

1,353 lines 54 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-angular-core"; import { PolarAxisInfoCache } from "./PolarAxisInfoCache"; import { SeriesRenderer$2 } from "./SeriesRenderer$2"; import { PolarFrame } from "./PolarFrame"; import { DependencyProperty } from "igniteui-angular-core"; import { NumericAngleAxis } from "./NumericAngleAxis"; import { NumericRadiusAxis } from "./NumericRadiusAxis"; import { TrendLineType_$type } from "igniteui-angular-core"; import { Brush } from "igniteui-angular-core"; import { PenLineCap_$type } from "igniteui-angular-core"; import { DoubleCollection } from "igniteui-angular-core"; import { ScatterItemSearchMode_$type } from "./ScatterItemSearchMode"; import { HighlightingInfo } from "igniteui-angular-core"; import { Rect } from "igniteui-angular-core"; import { Marker } from "./Marker"; import { MarkerSeriesView } from "./MarkerSeriesView"; import { PolarAxes } from "./PolarAxes"; import { List$1 } from "igniteui-angular-core"; import { SeriesPointOfInterest } from "./SeriesPointOfInterest"; import { ScalerParams } from "./ScalerParams"; import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay"; import { IFastItemsSource_$type } from "igniteui-angular-core"; import { SeriesRenderingArguments } from "./SeriesRenderingArguments"; import { AxisRange } from "./AxisRange"; import { Dictionary$2 } from "igniteui-angular-core"; import { OwnedPoint } from "./OwnedPoint"; import { CoreGeometryUtil } from "igniteui-angular-core"; import { GeometryUtil } from "igniteui-angular-core"; import { DataContext } from "igniteui-angular-core"; import { HashPool$2 } from "igniteui-angular-core"; import { Clipper } from "igniteui-angular-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-angular-core"; import { DataLegendSeriesContext } from "igniteui-angular-core"; import { ChartSelection } from "./ChartSelection"; import { CollisionRect } from "igniteui-angular-core"; import { PropertyMetadata } from "igniteui-angular-core"; import { truncate, isNaN_, isInfinity } from "igniteui-angular-core"; import { Defaults } from "./Defaults"; import { NumericMarkerManager } from "./NumericMarkerManager"; import { GeometryGroup } from "igniteui-angular-core"; import { stringIsNullOrEmpty } from "igniteui-angular-core"; /** * @hidden */ export let PolarBase = /*@__PURE__*/ (() => { class PolarBase extends MarkerSeries { constructor() { super(); this.zi = null; this.y9 = null; this.zg = null; this.acz = null; this.acy = null; this.acx = null; this.zu = null; this.z1 = null; this.z2 = null; this.zm = new PolarFrame(); this.zo = new PolarFrame(); this.zk = new PolarFrame(); this.zf = null; this.aak = null; this.zq = 1; this.z6 = false; this.z5 = false; this.zz = null; this.z0 = null; this.assigningPolarStyle = null; this.assigningPolarMarkerStyle = null; this.zp = null; this.zn = null; this.zj = null; this.zp = new PolarSeriesRenderManager(); this.zr = this.zs(); this.zn = new PolarFrame(); this.zo.ab = runOn(this, this.acw); this.zm.ab = runOn(this, this.acw); this.zk.ab = runOn(this, this.acw); this.zu = new SeriesRenderer$2(PolarFrame.$, PolarBaseView.$, 0, runOn(this, this.abx), runOn(this, this.ab1), runOn(this, this.d4), runOn(this, this.so), runOn(this, this.abq)); } ct() { return new PolarBaseView(this); } rg(a) { super.rg(a); this.zh = a; } b3() { if (this.b4 == 0) { { return 1; } } else { return super.b3(); } } w9(a) { if (!this.hasMarkers || !this.x0()) { return Rect.empty; } let b = this.xq.ce(this.wq(a)); if (b != null) { return this.xq.c7(b); } return Rect.empty; } g2(a, b) { if (this.x1(a, b)) { return true; } return false; } pe() { super.pe(); this.zd = null; this.ze = null; } get_fs() { return true; } w0(a) { let b = this.zd; let c = this.ze; 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.zf.f(a.x, a.y, this.dc.yr, this.dc.y9, 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.zd; let g = new ScalerParams(1, this.dc.yr, this.xc, f.dn); g.c = this.getEffectiveViewport1(this.cw); let h = this.ze; let i = new ScalerParams(1, this.dc.yr, this.xc, h.dn); i.c = this.getEffectiveViewport1(this.cw); a.clear(); this.xq.cw((j) => { if (j._visibility == 0) { let k = new SeriesPointOfInterest(); let l = j.n; let m = j.o; if (!e && (l < this.xc.left || l > this.xc.right || m < this.xc.top || m > this.xc.bottom)) { return; } let n; let o; let p = this.zf.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.vz; k.c = j.ak; if (this.hf) { k.g = this.v6(j.ak); } a.add(k); } }); return true; } abq() { if (this.dd.g) { this.dd.t(); } } abs() { this.zf.e(this.zi.aa, this.z3, this.z4, this.acz, this.acy, this.acx, (a, b) => Math.cos(b), (a, b) => Math.sin(b), true); } gh() { return this.highlightedItemsSource != null || (this.aa8 != null && this.aa6 != null); } aai() { return false; } hz() { let a = super.hz(); { 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.abt)); 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.abu)); a.add(c); } if (this.aai()) { 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.aai()) { 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.sh)); a.add(e); } if (!this.aai()) { 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.sh)); a.add(f); } return a; } abu(a, b) { if (this.aa8 != null) { b.value = this.aa8; return; } b.value = this.abl; } abt(a, b) { if (this.aa6 != null) { b.value = this.aa6; return; } b.value = this.aa3; } get z3() { return this.z1; } set z3(a) { if (this.z1 != a) { let b = this.z3; this.z1 = a; this.raisePropertyChanged("AngleColumn", b, this.z3); } } get z4() { return this.z2; } set z4(a) { if (this.z2 != a) { let b = this.z4; this.z2 = a; this.raisePropertyChanged("RadiusColumn", b, this.z4); } } get acr() { return this.c(PolarBase.ab2); } set acr(a) { this.h(PolarBase.ab2, a); } zl() { let a = this.zk; if (this.d4()) { if (this.dd.g) { this.dd.t(); } a = this.zo; } return a; } qo() { super.qo(); if (this.ze != null) { this.ze.lv(false); } if (this.zd != null) { this.zd.lv(false); } } pn(a, b, c, d) { let e = false; this.zh.dd.g$i(a, b, c, d); if (this.zh.aa.count > 0) { for (let f of fromEnum(this.zh.aa)) { f.g$i(a, b, c, d); } } if (this.zd != null && !this.zd.ec()) { e = true; } if (this.ze != null && !this.ze.ec()) { e = true; } if (e) { this.r7(true); } } s7(a, b) { this.r7(false); } s8(a, b) { this.r7(false); } hk(a, b, c) { let d = true; if (!super.hk(a, b, c) || !c.r() || b.isEmpty || a.isEmpty || this.zd == null || this.ze == null || this.z3 == null || this.z4 == null || this.z3.count == 0 || this.z4.count == 0 || this.dp == null || this.dp.count != this.z3.count || this.dp.count != this.z4.count || this.zf == null || this.zd.b2 == null || this.ze.b2 == null || this.zd.qt == this.zd.qs || this.ze.qt == this.ze.qs) { d = false; } return d; } r8(a) { super.r8(a); let b; let c; let d = this.getViewInfo(c, b); c = d.p0; b = d.p1; if (!this.hk(c, b, this.cw)) { this.ph(true, this.cw); return; } this.acz = b; this.acy = c; this.acx = this.cw.getEffectiveViewport(); this.zg = new PolarAxisInfoCache(this.zd, this.ze, this.dp); let e = new SeriesRenderingArguments(this, c, b, a, this.gx); let f = this.zm; let g = this.zk; let h = this.zo; let i = this.zu.g(e, f, g, h, this.zh); f = i.p1; g = i.p2; h = i.p3; this.zm = f; this.zk = g; this.zo = h; } acw(a) { let b = this.zf.h(a.x, a.y, this.acz, this.acy, this.acx, this.zg.e, this.zg.d, this.zg.g, this.zg.f, this.zg.i, this.zg.h); return b; } ay(a) { if (a != null && a == this.zd && this.z3 != null) { return new AxisRange(this.z3.minimum, this.z3.maximum); } if (a != null && a == this.ze && this.z4 != null) { return new AxisRange(this.z4.minimum, this.z4.maximum); } return null; } gj(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.zd == null || this.z3 == null || this.ze == null || this.z4 == null) { return false; } if (d < 0 || d > this.z3.count - 1 || d > this.z4.count - 1) { return false; } let e = this.zd.getScaledAngle(this.z3.item(d)); let f = this.ze.tj(this.z4.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; } kw(a) { let b = this.kc(a); if (this.dp != null && b >= 0 && b < this.dp.count) { return this.dp.item(b); } return null; } kc(a) { let b = truncate(Math.round(this.iy(a))); return b; } iy(a) { switch (this.zr) { case 1: return this.aao(a); case 3: return this.aap(a); case 2: return this.aam(a); case 4: return this.aan(a); } return -1; } aan(a) { return this.aaq(a, false); } aam(a) { let b = this.wq(a); let c = b.x; let d = b.y; if (this.dp == null || this.zd == null || this.ze == null || this.z3 == null || this.z4 == null) { return -1; } if (this.dp.count > this.aas) { return -1; } if (!this.aaa()) { return -1; } let e = this.aak; let f = 1.7976931348623157E+308; let g = -1; for (let h = 0; h < this.z3.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; } aaa() { let a = this.zk; if (this.d4()) { a = this.zo; } if (a == null || a.aa.count == 0) { return false; } this.aak = a.aa; return true; } aaq(a, b) { if (!this.aad) { return -1; } let c = { $type: Point_$type, x: 0, y: 0 }; let d = true; let e = this.zk; if (this.d4()) { e = this.zo; } if (e == null) { return -1; } if (e.q == null) { return -1; } if (this.dp == null || this.dp.count > this.aas) { return -1; } if (!this.aaa()) { return -1; } let f = this.aak; let g = this.wq(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; } aap(a) { return this.aaq(a, true); } aao(a) { let b = null; let c = 1.7976931348623157E+308; let d = this.wq(a); let e = d.x; let f = d.y; if (this.zh.de.e > this.aas) { return -1; } this.zh.dh((g) => { if (g._visibility == 0) { let h = this.zh.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; } wv(a, b, c) { if (this.zd == null || this.ze == null || this.z3 == null || this.z4 == 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.zd.dn, f); let h = ((() => { let $ret = new ScalerParams(0, d, e, this.ze.dn, f); $ret.b = this.i5(); return $ret; })()); if (b) { let i = this.iy(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.zf.h(this.z3.item(j), this.z4.item(j), d, e, f, this.zg.e, this.zg.d, this.zg.g, this.zg.f, this.zg.i, this.zg.h); } let l = i - Math.floor(i); let m = this.zf.h(this.z3.item(j), this.z4.item(j), d, e, f, this.zg.e, this.zg.d, this.zg.g, this.zg.f, this.zg.i, this.zg.h); let n = this.zf.h(this.z3.item(k), this.z4.item(k), d, e, f, this.zg.e, this.zg.d, this.zg.g, this.zg.f, this.zg.i, this.zg.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.kc(a); if (u == -1) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.zf.h(this.z3.item(u), this.z4.item(u), d, e, f, this.zg.e, this.zg.d, this.zg.g, this.zg.f, this.zg.i, this.zg.h); } } ai() { return [this.zd, this.ze]; } kz(a, b) { let c = this.no(b); if (c == PolarBase.$$p[3]) { return this.k0(a, b, this.aa3); } if (c == PolarBase.$$p[15]) { return this.k0(a, b, this.abl); } if (c == PolarBase.$$p[5]) { return this.k0(a, b, this.aa6); } if (c == PolarBase.$$p[6]) { return this.k0(a, b, this.aa8); } return super.kz(a, b); } mo(a) { let b = this.no(a); if (b == PolarBase.$$p[3]) { return this.aa3; } if (b == PolarBase.$$p[15]) { return this.abl; } if (b == PolarBase.$$p[5]) { return this.aa6; } if (b == PolarBase.$$p[6]) { return this.aa8; } return super.mo(a); } rp(a, b, c, d) { super.rp(a, b, c, d); if (this.zh.dd.g$e(a, b, c, d)) { this.r7(false); this.qz(); } switch (b) { case PolarBase.$$p[1]: case PolarBase.$$p[2]: case PolarBase.$$p[13]: case PolarBase.$$p[14]: this.qt(); break; case "FastItemsSource": if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.z3); c.deregisterColumn(this.z4); this.z3 = null; this.z4 = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.z3 = this.dl(this.aa3); this.z4 = this.dl(this.abl); } if ((this.ze != null && !this.ze.ec()) || (this.zd != null && !this.zd.ec())) { this.r7(this.gm && c != null); } break; case PolarBase.$$p[0]: if (this.zd != null && this.ze != null) { this.zf = new PolarAxes(this.ze, this.zd); } if (c != null) { c.cx(this); } if (d != null) { d.d3(this); } if (this.zd != null && !this.zd.ec()) { this.r7(false); } else if (c != null && d == null) { this.ph(true, this.cw); } break; case PolarBase.$$p[12]: if (this.zd != null && this.ze != null) { this.zf = new PolarAxes(this.ze, this.zd); } if (c != null) { c.cx(this); } if (d != null) { d.d3(this); } if (this.ze != null && !this.ze.ec()) { this.r7(false); } else if (c != null && d == null) { this.ph(true, this.cw); } if (this.zd != null && !this.zd.ec()) { this.zd.lr(); } break; case PolarBase.$$p[3]: if (this.dp != null) { this.dp.deregisterColumn(this.z3); this.z3 = this.dl(this.aa3); } break; case "AngleColumn": this.zh.dd.g$m(); if (this.zd != null && !this.zd.ec()) { this.r7(this.gm && this.d9); } break; case PolarBase.$$p[15]: if (this.dp != null) { this.dp.deregisterColumn(this.z4); this.z4 = this.dl(this.abl); } break; case "RadiusColumn": this.zh.dd.g$m(); if (this.ze != null && !this.ze.ec()) { this.r7(this.gm && this.d9); } break; case PolarBase.$$p[16]: this.r7(false); this.qz(); break; case PolarBase.$$p[11]: this.r7(false); this.qz(); break; case "TransitionProgress": this.zg = new PolarAxisInfoCache(this.zd, this.ze, this.dp); this.acz = this.cw.ca; this.acy = this.cw.b9; this.acx = this.cw.getEffectiveViewport(); this.zo.z = this.aaj; this.zo.d(this.jz, this.zm, this.zk); if (this.d7(this.cw)) { return; } if (this.jz == 1) { this.ab1(this.zk, this.zh); this.q2(); } else { this.ab1(this.zo, this.zh); } if (this.dc != null) { this.dc.st(this); } break; case "TrendLineBrush": this.rv(b); break; case PolarBase.$$p[4]: this.r7(false); this.qz(); break; case "TrendLineType": this.qz(); break; case PolarBase.$$p[8]: this.z6 = this.aaf(); this.r7(false); break; case PolarBase.$$p[7]: this.z5 = this.aae(); this.r7(false); break; case PolarBase.$$p[9]: this.zr = this.zs(); break; } } get zr() { return this.zq; } set zr(a) { let b = this.zq; this.zq = a; if (b != this.zq) { this.raisePropertyChanged("ActualItemSearchMode", enumGetBox(ScatterItemSearchMode_$type, b), enumGetBox(ScatterItemSearchMode_$type, this.zq)); } } zs() { if (this.zt != 0) { return this.zt; } return this.aad ? 4 : 1; } get_aad() { return false; } get aad() { return this.get_aad(); } aaf() { return this.aac; } aae() { return this.aab; } z8(a) { if (typeCast(NumericRadiusAxis.$, a) !== null) { return true; } return false; } z7(a) { if (typeCast(NumericAngleAxis.$, a) !== null) { return true; } return false; } ph(a, b) { super.ph(a, b); let c = b; if (a) { c.de.clear(); } c.dd.g$h(); } za(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; } abp(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.z3.item(f), y: this.z4.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; })())); } } } abx(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.z3 != null ? this.z3.count : 0, this.z4 != null ? this.z4.count : 0); if (f < 1) { return; } this.zg = new PolarAxisInfoCache(this.zd, this.ze, this.dp); this.zi = a; this.acy = d; this.acz = c; this.acx = b.getEffectiveViewport(); b.db.l(a.m, this.aat, c, d, this.ik); if (f <= this.aat) { this.abp(a, f, c, d); } let g = this.za(d, a.r); let h = Math.min(this.zd.qt, this.zd.qs); let i = Math.max(this.zd.qs, this.zd.qt); b.dd.k = this.aaj; b.dd.j = 0; b.dd.m = this.ze.td; b.dd.l = this.ze.tc; b.dd.n = (j, k) => this.zf.c(j, k, c, d, e, Math.cos); b.dd.o = (j, k) => this.zf.d(j, k, c, d, e, Math.sin); let j = new List$1(Number_$type, 0); for (let k = 0; k < this.z3.count; k++) { if (this.z3.item(k) >= h && this.z3.item(k) <= i) { j.add(this.z3.item(k)); } } let l = this.z4; if (j.count != this.z3.count) { l = new List$1(Number_$type, 0); for (let m = 0; m < this.z3.count; m++) { if (this.z3.item(m) >= h && this.z3.item(m) <= i) { l.add(this.z4.item(m)); } } } b.dd.p(a.r, this.zv, j, l, this.aau, runOn(this.zd, this.zd.getScaledAngle), runOn(this.ze, this.ze.tj), ((() => { let $ret = new TrendResolutionParams(); $ret.d = this.ik; $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.aaj; o.j = 0; o.m = this.ze.td; o.l = this.ze.tc; o.n = (p, q) => this.zf.c(p, q, c, d, e, Math.cos); o.o = (p, q) => this.zf.d(p, q, c, d, e, Math.sin); o.p(a.p._inner[n], o.g$b, j, l, o.g$f, runOn(this.zd, this.zd.getScaledAngle), runOn(this.ze, this.ze.tj), ((() => { let $ret = new TrendResolutionParams(); $ret.d = this.ik; $ret.i = d; $ret.h = e; $ret.j = c; return $ret; })()), g, h, i); } } } get_fh() { return true; } zx(a, b, c) { return null; } zy(a, b, c) { if (this.dp == null) { return null; } let d = this.zl(); let e = this.zh.ce(this.wq(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; } zw(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.f2(this.by) && !c) { let d = this.zx(a, b, this.zz); this.zz = d; return d; } else { let e = this.zw(a, b, this.zz); this.zz = e; return e; } } di(a, b, c) { if (this.f2(this.by) && !c) { let d = this.zy(a, b, this.z0); this.z0 = d; return d; } else { let e = this.zw(a, b, this.z0); e.d = true; this.z0 = e; return e; } } aah() { return (this.assigningPolarStyle != null && this.z6) || (this.by != 1) || this.d3 || (this.cq != 1) || (this.cp != 1); } aag() { return (this.assigningPolarMarkerStyle != null && this.z5) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1); } ab1(a, b) { this.rc(); let c = b.ca; let d = b.b9; let e = this.getEffectiveViewport1(b); let f = this.w3(b); this.zg = new PolarAxisInfoCache(this.zd, this.ze, this.dp); if (this.x0()) { b.db.j(a.m, this.x2); if (this.aag()) { this.abr(b, a); } } b.c4(); let g = this.za(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.abo(d, c, e, f, b); } y7(a, b) { return this.y8(a, b); } y8(a, b) { if (b < a || a < 0 || a > this.z3.count || b < 0 || b > this.z3.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; } abr(a, b) { a.ck = true; this.zp.ay(this, this.aag(), runOn(this, this.y7)); let c = this.zp.d; let d = c != null; let e = this.getEffectiveViewport1(a); let f = this.dp == null ? 0 : this.dp.count; this.zh.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.abv(h, f, a.t); } this.zp.ac(g, i); } }); } abw(a, b, c) { let d = this.by != 1; let e = this.cq != 1; let f = this.cp != 1; this.zp.a0(this.zp.b, a, b, false); this.zp.ab(this.ii); let g = this.zp.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.abz(g); this.zp.z(this, h, i, j, c, d, e, f, a < 0); } abv(a, b, c) { let d = this.by != 1; let e = this.cq != 1; let f = this.cp != 1; this.zp.a0(this.zp.d, a, b, true); this.zp.aa(this.ii); let g = this.zp.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.aby(g); this.zp.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); } abz(a) { if (this.assigningPolarStyle != null && this.z6) { this.assigningPolarStyle(this, a); } } aby(a) { if (this.assigningPolarMarkerStyle != null && this.z5) { this.assigningPolarMarkerStyle(this, a); } } abo(a, b, c, d, e) { e.dg(a, b, c, d); } sy() { super.sy(); if (this.index < 0) { return; } this.zh.dj(); } r9(a, b) { super.r9(a, b); if (!this.g6) { this.cw.be(b); return; } this.cw.be(b); if (this.d7(this.cv)) { return; } this.sa(); this.g6 = false; } sa() { super.sa(); let a = this.cv; if (!this.gy) { this.zn = new PolarFrame(); this.abx(this.zn, a); } this.gy = false; this.ab1(this.zn, a); } r6(a, b, c, d, e) { super.r6(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.zj == null) { this.zj = new PolarFrame(); } this.abx(this.zj, g); this.ab1(this.zj, g); } ab0(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); } } y6(a, b, c) { this.abs(); return this.zi.aa.toArray(); } aal(a) { let b = new List$1(Number_$type, 0); let c = this.dp; for (let d of fromEnum(this.zh.de.c)) { b.add(c.indexOf(d)); } return b; } acv(a) { return { $type: Point_$type, x: this.z3.item(a), y: this.z4.item(a) }; } qc(a) { super.qc(a); this.bc.exportTrendlineData(this, a, this.zh.dd.g$n); } getDataLegendSeriesContextAt(a, b) { let c = { $type: Point_$type, x: a, y: b }; let d = this.kw(c); let e = d == null ? NaN : this.i4(d, "RadiusMemberPath"); let f = d == null ? NaN : this.i4(d, "AngleMemberPath"); let g = new DataLegendSeriesValueInfo(); g.l = e; g.a = 11; g.r = this.abl != null ? this.abl : "Radius"; g.q = "Radius"; g.s = this.abh != null ? this.abh : "R:"; g.t = this.abj != null ? this.abj : ""; let h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 10; h.r = this.aa3 != null ? this.aa3 : "Angle"; h.q = "Angle"; h.s = this.aaz != null ? this.aaz : "A:"; h.t = this.aa1 != null ? this.aa1 : ""; let i = new DataLegendSeriesContext(); i.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mn(); return i; } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.qh(a, c, b); return c.toArray(); } qh(a, b, c) { let d = this.cw.ca; let e = this.cw.b9; let f = this.getEffectiveViewport1(this.cw); let g = this.dc.yz(this.xc, this.getEffectiveViewport(), d); let h = new CollisionRect(0, this.dc.yw(a)); let i = this.ze.pt(e, d, f, g); for (let j = 0; j < this.dp.count; j++) { let k = this.zd.getScaledAngle(this.z3.item(j)); let l = this.ze.tj(this.z4.item(j)); let m = this.zf.c(k, l, d, e, f, Math.cos); let n = this.zf.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 = markType(PolarBase, 'PolarBase', MarkerSeries.$); PolarBase.ab2 = DependencyProperty.i("ActualTrendLineBrush", Brush.$, PolarBase.$, new PropertyMetadata(2, null, (a, b) => a.raisePropertyChanged("ActualTrendLineBrush", b.oldValue, b.newValue))); PolarBase.$$p = markDep(DependencyProperty, PropertyMetadata, PolarBase, 'raisePropertyChanged', ['AngleAxis:zd:ab3', [NumericAngleAxis.$, null], 'AngleMemberAsLegendLabel:aaz:ab4', [2, null], 'AngleMemberAsLegendUnit:aa1:ab5', [2, null], 'AngleMemberPath:aa3:ab6', [2], 'ClipSeriesToBounds:z9:ab7', [0, false], 'HighlightedAngleMemberPath:aa6:ab8', [2, null], 'HighlightedRadiusMemberPath:aa8:ab9', [2, null], 'IsCustomPolarMarkerStyleAllowed:aab:aca', [0, false], 'IsCustomPolarStyleAllowed:aac:acb', [0, false], 'ItemSearchMode:zt:acc', [ScatterItemSearchMode_$type, enumGetBox(ScatterItemSearchMode_$type, 0)], 'ItemSearchThreshold:aas:acd', [1, 10000], 'MaximumMarkers:aat:ace', [1, 400], 'RadiusAxis:ze:acf', [NumericRadiusAxis.$, null], 'RadiusMemberAsLegendLabel:abh:acg', [2, null], 'RadiusMemberAsLegendUnit:abj:ach', [2, null], 'RadiusMemberPath:abl:aci', [2], 'UseCartesianInterpolation:aaj:acq', [0, true], 'TrendLineType:zv:aco', [TrendLineType_$type, enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:aar:acn', [1, 1.5], 'TrendLinePeriod:aau:acm', [1, 7], 'TrendLineZIndex:aav:acp', [1, 1], 'TrendLineBrush:acs:acj', [Brush.$, null], 'TrendLineDashArray:act:ack', [DoubleCollection.$], 'TrendLineDashCap:acu:acl', [PenLineCap_$type, enumGetBox(PenLineCap_$type, 0)]]); return PolarBase; })(); /** * @hidden */ export let PolarSeriesR