UNPKG

igniteui-angular-charts

Version:

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

1,412 lines 52.8 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 { __extends, __values } from "tslib"; import { MarkerSeries } from "./MarkerSeries"; import { Base, runOn, delegateCombine, Number_$type, enumGetBox, Point_$type, typeCast, fromEnum, 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 { List$1 } from "igniteui-angular-core"; import { SeriesPointOfInterest } from "./SeriesPointOfInterest"; import { ScalerParams } from "./ScalerParams"; import { Rect } from "igniteui-angular-core"; import { Marker } from "./Marker"; import { MarkerSeriesView } from "./MarkerSeriesView"; import { PolarAxes } from "./PolarAxes"; 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 { 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 */ var PolarBase = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarBase, _super); function PolarBase() { var _this = _super.call(this) || this; _this.yx = null; _this.yo = null; _this.yv = null; _this.ace = null; _this.acd = null; _this.acc = null; _this.y9 = null; _this.zg = null; _this.zh = null; _this.y1 = new PolarFrame(); _this.y3 = new PolarFrame(); _this.yz = new PolarFrame(); _this.yu = null; _this.zz = null; _this.y5 = 1; _this.zl = false; _this.zk = false; _this.ze = null; _this.zf = null; _this.assigningPolarStyle = null; _this.assigningPolarMarkerStyle = null; _this.y4 = null; _this.y2 = null; _this.yy = null; _this.y4 = new PolarSeriesRenderManager(); _this.y6 = _this.y7(); _this.y2 = new PolarFrame(); _this.y3.x = runOn(_this, _this.acb); _this.y1.x = runOn(_this, _this.acb); _this.yz.x = runOn(_this, _this.acb); _this.y9 = new SeriesRenderer$2(PolarFrame.$, PolarBaseView.$, 0, runOn(_this, _this.abc), runOn(_this, _this.abg), runOn(_this, _this.d3), runOn(_this, _this.r6), runOn(_this, _this.aa5)); return _this; } PolarBase.prototype.cs = function () { return new PolarBaseView(this); }; PolarBase.prototype.q0 = function (a) { _super.prototype.q0.call(this, a); this.yw = a; }; PolarBase.prototype.o1 = function () { _super.prototype.o1.call(this); this.ys = null; this.yt = null; }; PolarBase.prototype.get_fo = function () { return true; }; PolarBase.prototype.eb = function (a, b, c, d, e) { var _this = this; if (!this.hasMarkers) { return false; } var f = this.ys; var g = new ScalerParams(1, this.db.v4, this.wr, f.ch); g.c = this.getEffectiveViewport1(this.cv); var h = this.yt; var i = new ScalerParams(1, this.db.v4, this.wr, h.ch); i.c = this.getEffectiveViewport1(this.cv); a.clear(); this.w5.cj(function (j) { if (j._visibility == 0) { var k = new SeriesPointOfInterest(); var l = j.n; var m = j.o; if (l < _this.wr.left || l > _this.wr.right || m < _this.wr.top || m > _this.wr.bottom) { return; } var n = void 0; var o = void 0; var p = _this.yu.f(l, m, _this.cv.by, _this.cv.bx, _this.cv.getEffectiveViewport(), n, o); n = p.p5; o = p.p6; k.d = n; k.e = o; k.b = j.content; k.g = _this.vf; k.c = j.ak; if (_this.g8) { k.g = _this.vm(j.ak); } a.add(k); } }); return true; }; PolarBase.prototype.aa5 = function () { if (this.dc.g) { this.dc.t(); } }; PolarBase.prototype.aa7 = function () { this.yu.e(this.yx.w, this.zi, this.zj, this.ace, this.acd, this.acc, function (a, b) { return Math.cos(b); }, function (a, b) { return Math.sin(b); }, true); }; PolarBase.prototype.ga = function () { return this.highlightedItemsSource != null || (this.aan != null && this.aal != null); }; PolarBase.prototype.zx = function () { return false; }; PolarBase.prototype.hs = function () { var a = _super.prototype.hs.call(this); { var b = ((function () { var $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.aa8)); a.add(b); } { var c = ((function () { var $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.aa9)); a.add(c); } if (this.zx()) { var d = ((function () { var $ret = new SeriesLayerPropertyOverlay(); $ret.r = true; $ret.ad = "DashArray"; $ret.p = true; $ret.x = ((function () { var $ret = new DoubleCollection(); $ret.add(5); $ret.add(5); return $ret; })()); $ret.q = true; return $ret; })()); a.add(d); } if (!this.zx()) { var e = ((function () { var $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.rz)); a.add(e); } if (!this.zx()) { var f = ((function () { var $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.rz)); a.add(f); } return a; }; PolarBase.prototype.aa9 = function (a, b) { if (this.aan != null) { b.value = this.aan; return; } b.value = this.aa0; }; PolarBase.prototype.aa8 = function (a, b) { if (this.aal != null) { b.value = this.aal; return; } b.value = this.aai; }; Object.defineProperty(PolarBase.prototype, "zi", { get: function () { return this.zg; }, set: function (a) { if (this.zg != a) { var b = this.zi; this.zg = a; this.raisePropertyChanged("AngleColumn", b, this.zi); } }, enumerable: false, configurable: true }); Object.defineProperty(PolarBase.prototype, "zj", { get: function () { return this.zh; }, set: function (a) { if (this.zh != a) { var b = this.zj; this.zh = a; this.raisePropertyChanged("RadiusColumn", b, this.zj); } }, enumerable: false, configurable: true }); Object.defineProperty(PolarBase.prototype, "ab6", { get: function () { return this.c(PolarBase.abh); }, set: function (a) { this.h(PolarBase.abh, a); }, enumerable: false, configurable: true }); PolarBase.prototype.y0 = function () { var a = this.yz; if (this.d3()) { if (this.dc.g) { this.dc.t(); } a = this.y3; } return a; }; PolarBase.prototype.qa = function () { _super.prototype.qa.call(this); if (this.yt != null) { this.yt.ib(false); } if (this.ys != null) { this.ys.ib(false); } }; PolarBase.prototype.pa = function (a, b, c, d) { var e = false; this.yw.c0.g$e(a, b, c, d); if (this.ys != null && !this.ys.c1()) { e = true; } if (this.yt != null && !this.yt.c1()) { e = true; } if (e) { this.rq(true); } }; PolarBase.prototype.sp = function (a, b) { this.rq(false); }; PolarBase.prototype.sq = function (a, b) { this.rq(false); }; PolarBase.prototype.hd = function (a, b, c) { var d = true; if (!_super.prototype.hd.call(this, a, b, c) || !c.o() || b.isEmpty || a.isEmpty || this.ys == null || this.yt == null || this.zi == null || this.zj == null || this.zi.count == 0 || this.zj.count == 0 || this.dn == null || this.dn.count != this.zi.count || this.dn.count != this.zj.count || this.yu == null || this.ys.bi == null || this.yt.bi == null || this.ys.l4 == this.ys.l3 || this.yt.l4 == this.yt.l3) { d = false; } return d; }; PolarBase.prototype.rr = function (a) { _super.prototype.rr.call(this, a); var b; var c; var d = this.getViewInfo(c, b); c = d.p0; b = d.p1; if (!this.hd(c, b, this.cv)) { this.o4(true, this.cv); return; } this.ace = b; this.acd = c; this.acc = this.cv.getEffectiveViewport(); this.yv = new PolarAxisInfoCache(this.ys, this.yt, this.dn); var e = new SeriesRenderingArguments(this, c, b, a, this.gq); var f = this.y9.g(e, this.y1, this.yz, this.y3, this.yw); this.y1 = f.p1; this.yz = f.p2; this.y3 = f.p3; }; PolarBase.prototype.acb = function (a) { var b = this.yu.h(a.x, a.y, this.ace, this.acd, this.acc, this.yv.e, this.yv.d, this.yv.g, this.yv.f, this.yv.i, this.yv.h); return b; }; PolarBase.prototype.ay = function (a) { if (a != null && a == this.ys && this.zi != null) { return new AxisRange(this.zi.minimum, this.zi.maximum); } if (a != null && a == this.yt && this.zj != null) { return new AxisRange(this.zj.minimum, this.zj.maximum); } return null; }; PolarBase.prototype.gc = function (a) { var b = this.cv.by; b = b.copy(); var c = this.cv.bx; var d = !b.isEmpty && !c.isEmpty && this.dn != null ? this.dn.indexOf(a) : -1; if (this.ys == null || this.zi == null || this.yt == null || this.zj == null) { return false; } if (d < 0 || d > this.zi.count - 1 || d > this.zj.count - 1) { return false; } var e = this.ys.getScaledAngle(this.zi.item(d)); var f = this.yt.od(this.zj.item(d)); var g = 0.5 + (Math.cos(e) * f); var 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.c3 != null) { this.c3.au(this.db, b, true); } return d >= 0; }; PolarBase.prototype.km = function (a) { var b = this.j2(a); if (this.dn != null && b >= 0 && b < this.dn.count) { return this.dn.item(b); } return null; }; PolarBase.prototype.j2 = function (a) { var b = truncate(Math.round(this.iq(a))); return b; }; PolarBase.prototype.iq = function (a) { switch (this.y6) { case 1: return this.z3(a); case 3: return this.z4(a); case 2: return this.z1(a); case 4: return this.z2(a); } return -1; }; PolarBase.prototype.z2 = function (a) { return this.z5(a, false); }; PolarBase.prototype.z1 = function (a) { var b = this.v6(a); var c = b.x; var d = b.y; if (this.dn == null || this.ys == null || this.yt == null || this.zi == null || this.zj == null) { return -1; } if (this.dn.count > this.z7) { return -1; } if (!this.zp()) { return -1; } var e = this.zz; var f = 1.7976931348623157E+308; var g = -1; for (var h = 0; h < this.zi.count; h++) { var i = e._inner[h].x; var j = e._inner[h].y; var k = (c - i) * (c - i) + (d - j) * (d - j); if (k < f) { f = k; g = h; } } return g; }; PolarBase.prototype.zp = function () { var a = this.yz; if (this.d3()) { a = this.y3; } if (a == null || a.w.count == 0) { return false; } this.zz = a.w; return true; }; PolarBase.prototype.z5 = function (a, b) { if (!this.zs) { return -1; } var c = { $type: Point_$type, x: 0, y: 0 }; var d = true; var e = this.yz; if (this.d3()) { e = this.y3; } if (e == null) { return -1; } if (e.m == null) { return -1; } if (this.dn == null || this.dn.count > this.z7) { return -1; } if (!this.zp()) { return -1; } var f = this.zz; var g = this.v6(a); var h = 1.7976931348623157E+308; var i = -1; for (var j = 0; j < f.count; j++) { var 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.dn.item(j)) || e.j.containsKey(this.dn.item(j - 1))) { var l = GeometryUtil.h(g, c, k); if (l < h) { h = l; i = j; } } } c = k; } if (i >= 0) { var m = f._inner[i]; var n = f._inner[i - 1]; if (!b || (e.j.containsKey(this.dn.item(i)) && e.j.containsKey(this.dn.item(i - 1)))) { var o = GeometryUtil.m(g, n, m); return (i - 1) + o; } else if (e.j.containsKey(this.dn.item(i))) { return i; } else { return i - 1; } } return -1; }; PolarBase.prototype.z4 = function (a) { return this.z5(a, true); }; PolarBase.prototype.z3 = function (a) { var _this = this; var b = null; var c = 1.7976931348623157E+308; var d = this.v6(a); var e = d.x; var f = d.y; if (this.yw.c1.e > this.z7) { return -1; } this.yw.c4(function (g) { if (g._visibility == 0) { var h = _this.yw.cu(g); var i = h.left + h.width / 2; var j = h.top + h.height / 2; var k = (e - i) * (e - i) + (f - j) * (f - j); if (k < c) { c = k; b = g; } } }); if (b != null) { return b.ak; } return -1; }; PolarBase.prototype.wb = function (a, b, c) { var _this = this; if (this.ys == null || this.yt == null || this.zi == null || this.zj == null) { return { $type: Point_$type, x: NaN, y: NaN }; } var d = this.cv.by; var e = this.cv.bx; var f = this.getEffectiveViewport(); var g = new ScalerParams(0, d, e, this.ys.ch, f); var h = ((function () { var $ret = new ScalerParams(0, d, e, _this.yt.ch, f); $ret.b = _this.ix(); return $ret; })()); if (b) { var i = this.iq(a); if (i == -1) { return { $type: Point_$type, x: NaN, y: NaN }; } var j = truncate(Math.floor(i)); var k = truncate(Math.ceil(i)); if (j < 0) { j = 0; } if (k < 0) { k = 0; } if (k > this.dn.count - 1) { k = this.dn.count - 1; } if (j > this.dn.count - 1) { j = this.dn.count - 1; } if (k == j) { return this.yu.h(this.zi.item(j), this.zj.item(j), d, e, f, this.yv.e, this.yv.d, this.yv.g, this.yv.f, this.yv.i, this.yv.h); } var l = i - Math.floor(i); var m = this.yu.h(this.zi.item(j), this.zj.item(j), d, e, f, this.yv.e, this.yv.d, this.yv.g, this.yv.f, this.yv.i, this.yv.h); var n = this.yu.h(this.zi.item(k), this.zj.item(k), d, e, f, this.yv.e, this.yv.d, this.yv.g, this.yv.f, this.yv.i, this.yv.h); var o = m.x; var p = m.y; var q = n.x; var r = n.y; var s = q - o; var t = r - p; return { $type: Point_$type, x: o + s * l, y: p + t * l }; } else { var u = this.j2(a); if (u == -1) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.yu.h(this.zi.item(u), this.zj.item(u), d, e, f, this.yv.e, this.yv.d, this.yv.g, this.yv.f, this.yv.i, this.yv.h); } }; PolarBase.prototype.ai = function () { return [this.ys, this.yt]; }; PolarBase.prototype.kp = function (a, b) { var c = this.nc(b); if (c == PolarBase.$$p[3]) { return this.kq(a, b, this.aai); } if (c == PolarBase.$$p[15]) { return this.kq(a, b, this.aa0); } if (c == PolarBase.$$p[5]) { return this.kq(a, b, this.aal); } if (c == PolarBase.$$p[6]) { return this.kq(a, b, this.aan); } return _super.prototype.kp.call(this, a, b); }; PolarBase.prototype.mc = function (a) { var b = this.nc(a); if (b == PolarBase.$$p[3]) { return this.aai; } if (b == PolarBase.$$p[15]) { return this.aa0; } if (b == PolarBase.$$p[5]) { return this.aal; } if (b == PolarBase.$$p[6]) { return this.aan; } return _super.prototype.mc.call(this, a); }; PolarBase.prototype.q8 = function (a, b, c, d) { _super.prototype.q8.call(this, a, b, c, d); if (this.yw.c0.g$b(a, b, c, d)) { this.rq(false); this.qk(); } switch (b) { case PolarBase.$$p[1]: case PolarBase.$$p[2]: case PolarBase.$$p[13]: case PolarBase.$$p[14]: this.qe(); break; case "FastItemsSource": if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.zi); c.deregisterColumn(this.zj); this.zi = null; this.zj = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.zi = this.dk(this.aai); this.zj = this.dk(this.aa0); } if ((this.yt != null && !this.yt.c1()) || (this.ys != null && !this.ys.c1())) { this.rq(this.gf && c != null); } break; case PolarBase.$$p[0]: if (this.ys != null && this.yt != null) { this.yu = new PolarAxes(this.yt, this.ys); } if (c != null) { c.b0(this); } if (d != null) { d.ct(this); } if (this.ys != null && !this.ys.c1()) { this.rq(false); } else if (c != null && d == null) { this.o4(true, this.cv); } break; case PolarBase.$$p[12]: if (this.ys != null && this.yt != null) { this.yu = new PolarAxes(this.yt, this.ys); } if (c != null) { c.b0(this); } if (d != null) { d.ct(this); } if (this.yt != null && !this.yt.c1()) { this.rq(false); } else if (c != null && d == null) { this.o4(true, this.cv); } if (this.ys != null && !this.ys.c1()) { this.ys.h7(); } break; case PolarBase.$$p[3]: if (this.dn != null) { this.dn.deregisterColumn(this.zi); this.zi = this.dk(this.aai); } break; case "AngleColumn": this.yw.c0.g$i(); if (this.ys != null && !this.ys.c1()) { this.rq(this.gf && this.d7); } break; case PolarBase.$$p[15]: if (this.dn != null) { this.dn.deregisterColumn(this.zj); this.zj = this.dk(this.aa0); } break; case "RadiusColumn": this.yw.c0.g$i(); if (this.yt != null && !this.yt.c1()) { this.rq(this.gf && this.d7); } break; case PolarBase.$$p[16]: this.rq(false); this.qk(); break; case PolarBase.$$p[11]: this.rq(false); this.qk(); break; case "TransitionProgress": this.yv = new PolarAxisInfoCache(this.ys, this.yt, this.dn); this.ace = this.cv.by; this.acd = this.cv.bx; this.acc = this.cv.getEffectiveViewport(); this.y3.v = this.zy; this.y3.c(this.jp, this.y1, this.yz); if (this.d5(this.cv)) { return; } if (this.jp == 1) { this.abg(this.yz, this.yw); this.qn(); } else { this.abg(this.y3, this.yw); } if (this.db != null) { this.db.qo(this); } break; case "TrendLineBrush": this.re(b); break; case PolarBase.$$p[4]: this.rq(false); this.qk(); break; case "TrendLineType": this.qk(); break; case PolarBase.$$p[8]: this.zl = this.zu(); this.rq(false); break; case PolarBase.$$p[7]: this.zk = this.zt(); this.rq(false); break; case PolarBase.$$p[9]: this.y6 = this.y7(); break; } }; Object.defineProperty(PolarBase.prototype, "y6", { get: function () { return this.y5; }, set: function (a) { var b = this.y5; this.y5 = a; if (b != this.y5) { this.raisePropertyChanged("ActualItemSearchMode", enumGetBox(ScatterItemSearchMode_$type, b), enumGetBox(ScatterItemSearchMode_$type, this.y5)); } }, enumerable: false, configurable: true }); PolarBase.prototype.y7 = function () { if (this.y8 != 0) { return this.y8; } return this.zs ? 4 : 1; }; PolarBase.prototype.get_zs = function () { return false; }; Object.defineProperty(PolarBase.prototype, "zs", { get: function () { return this.get_zs(); }, enumerable: false, configurable: true }); PolarBase.prototype.zu = function () { return this.zr; }; PolarBase.prototype.zt = function () { return this.zq; }; PolarBase.prototype.zn = function (a) { if (typeCast(NumericRadiusAxis.$, a) !== null) { return true; } return false; }; PolarBase.prototype.zm = function (a) { if (typeCast(NumericAngleAxis.$, a) !== null) { return true; } return false; }; PolarBase.prototype.o4 = function (a, b) { _super.prototype.o4.call(this, a, b); var c = b; if (a) { c.c1.clear(); } c.c0.g$d(); }; PolarBase.prototype.yp = function (a, b) { var c = a.top - 10; var d = a.bottom + 10; var e = a.left - 10; var f = a.right + 10; var g = ((function () { var $ret = new Clipper(1, e, d, f, c, false); $ret.i = b; return $ret; })()); return g; }; PolarBase.prototype.aa4 = function (a, b, c, d) { a.g = new Dictionary$2(Base.$, OwnedPoint.$, 1, b); var e = this.dn; var _loop_1 = function (f) { var g = a.w._inner[f]; if (!isInfinity(g.x) && !isInfinity(g.y)) { var h_1 = { $type: Point_$type, x: this_1.zi.item(f), y: this_1.zj.item(f) }; var i_1 = { $type: Point_$type, x: g.x, y: g.y }; a.g.addItem(e.item(f), ((function () { var $ret = new OwnedPoint(); $ret.a = e.item(f); $ret.b = h_1; $ret.c = i_1; return $ret; })())); } }; var this_1 = this; for (var f = 0; f < b; f++) { _loop_1(f); } }; PolarBase.prototype.abc = function (a, b) { var _this = this; var c = b.by; var d = b.bx; var e = b.getEffectiveViewport(); a.j.clear(); a.n.clear(); var f = Math.min(this.zi != null ? this.zi.count : 0, this.zj != null ? this.zj.count : 0); if (f < 1) { return; } this.yv = new PolarAxisInfoCache(this.ys, this.yt, this.dn); this.yx = a; this.acd = d; this.ace = c; this.acc = b.getEffectiveViewport(); b.cy.l(a.j, this.z8, c, d, this.ic); if (f <= this.z8) { this.aa4(a, f, c, d); } var g = this.yp(d, a.n); var h = Math.min(this.ys.l4, this.ys.l3); var i = Math.max(this.ys.l3, this.ys.l4); b.c0.i = this.zy; b.c0.h = 0; b.c0.k = this.yt.n7; b.c0.j = this.yt.n6; b.c0.l = function (j, k) { return _this.yu.c(j, k, c, d, e, Math.cos); }; b.c0.m = function (j, k) { return _this.yu.d(j, k, c, d, e, Math.sin); }; var j = new List$1(Number_$type, 0); for (var k = 0; k < this.zi.count; k++) { if (this.zi.item(k) >= h && this.zi.item(k) <= i) { j.add(this.zi.item(k)); } } var l = this.zj; if (j.count != this.zi.count) { l = new List$1(Number_$type, 0); for (var m = 0; m < this.zi.count; m++) { if (this.zi.item(m) >= h && this.zi.item(m) <= i) { l.add(this.zj.item(m)); } } } b.c0.n(a.n, this.za, j, l, this.z9, runOn(this.ys, this.ys.getScaledAngle), runOn(this.yt, this.yt.od), ((function () { var $ret = new TrendResolutionParams(); $ret.d = _this.ic; $ret.i = d; $ret.h = e; $ret.j = c; return $ret; })()), g, h, i); }; PolarBase.prototype.get_fd = function () { return true; }; PolarBase.prototype.zc = function (a, b, c) { return null; }; PolarBase.prototype.zd = function (a, b, c) { if (this.dn == null) { return null; } var d = this.y0(); var e = this.yw.b1(this.v6(b)); var f = -1; if (e == null) { if (a != null) { f = this.dn.indexOf(a); } else { return null; } } else { f = e.ak; } if (f == -1) { return null; } var 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; }; PolarBase.prototype.zb = function (a, b, c) { var d = new HighlightingInfo(); d.i = this; d.g = 0; d.f = this.dn.count - 1; d.c = true; if (c != null && c.g == d.g && c.f == d.f) { return c; } return d; }; PolarBase.prototype.dg = function (a, b, c) { if (this.ed && this.fy(this.bx) && !c) { var d = this.zc(a, b, this.ze); this.ze = d; return d; } else { var e = this.zb(a, b, this.ze); this.ze = e; return e; } }; PolarBase.prototype.dh = function (a, b, c) { if (this.fy(this.bx) && !c) { var d = this.zd(a, b, this.zf); this.zf = d; return d; } else { var e = this.zb(a, b, this.zf); e.d = true; this.zf = e; return e; } }; PolarBase.prototype.zw = function () { return (this.assigningPolarStyle != null && this.zl) || (this.bx != 1) || this.d2 || (this.cp != 1) || (this.co != 1); }; PolarBase.prototype.zv = function () { return (this.assigningPolarMarkerStyle != null && this.zk) || this.d2 || (this.bx != 1) || (this.cp != 1) || (this.co != 1); }; PolarBase.prototype.abg = function (a, b) { this.qw(); var c = b.by; var d = b.bx; var e = this.getEffectiveViewport1(b); var f = this.wi(b); this.yv = new PolarAxisInfoCache(this.ys, this.yt, this.dn); if (this.xf()) { b.cy.j(a.j, this.xh); if (this.zv()) { this.aa6(b, a); } } b.cr(); var g = this.yp(d, b.c0.g$j.an); b.c0.g$h(a.n, g); this.aa3(d, c, e, f, b); }; PolarBase.prototype.ym = function (a, b) { return this.yn(a, b); }; PolarBase.prototype.yn = function (a, b) { if (b < a || a < 0 || a > this.zi.count || b < 0 || b > this.zi.count) { return null; } var c = new Array((b - a) + 1); for (var d = a; d <= b; d++) { var e = d; c[d - a] = this.dn.item(d); } return c; }; PolarBase.prototype.aa6 = function (a, b) { var _this = this; a.b7 = true; this.y4.ay(this, this.zv(), runOn(this, this.ym)); var c = this.y4.d; var d = c != null; var e = this.getEffectiveViewport1(a); var f = this.dn == null ? 0 : this.dn.count; this.yw.cj(function (g) { if (g._visibility == 0) { var h = g.ak; var i = g.content; if (i == null) { i = new DataContext(); g.content = i; } if (d) { _this.aba(h, f, a.q); } _this.y4.ac(g, i); } }); }; PolarBase.prototype.abb = function (a, b, c) { var d = this.bx != 1; var e = this.cp != 1; var f = this.co != 1; this.y4.a0(this.y4.b, a, b, false); this.y4.ab(this.ia); var g = this.y4.ax; var h = null; var i = null; var j = null; var k = this.dn; if (d && this.db != null) { h = this.db.dl.getHighlightingInfo(this, k, g.z, g.y, false); g.c = h; } if (e && this.db != null) { i = this.db.dm.getHighlightingInfo(this, k, g.z, g.y, false); if (i == null && this.bn != null) { i = this.db.dm.getHighlightingInfo(this.bn, this.bn.dn, g.z, g.y, false); } g.d = i; } if (f && this.db != null) { j = this.db.dk.getHighlightingInfo(this, k, g.z, g.y, false); g.b = j; } g.h = c; this.abe(g); this.y4.z(this, h, i, j, c, d, e, f, a < 0); }; PolarBase.prototype.aba = function (a, b, c) { var d = this.bx != 1; var e = this.cp != 1; var f = this.co != 1; this.y4.a0(this.y4.d, a, b, true); this.y4.aa(this.ia); var g = this.y4.aw; var h = null; var i = null; var j = null; var k = this.dn; var l = null; var m = null; var n = null; if (d && this.db != null) { h = this.db.dl.getHighlightingInfo(this, k, g.z, g.y, true); if (this.db.dl.isCrossContextHighlight(this)) { l = this.db.dl.getHighlightingInfo(this, k, g.z, g.y, true); } g.c = h; } if (e && this.db != null) { i = this.db.dm.getHighlightingInfo(this, k, g.z, g.y, true); if (i == null && this.bn != null) { i = this.db.dm.getHighlightingInfo(this.bn, this.bn.dn, g.z, g.y, true); } if (this.db.dm.isCrossContextHighlight(this)) { m = this.db.dm.getHighlightingInfo(this, k, g.z, g.y, true); } g.d = i; } if (f && this.db != null) { j = this.db.dk.getHighlightingInfo(this, k, g.z, g.y, true); if (this.db.dk.isCrossContextHighlight(this)) { n = this.db.dk.getHighlightingInfo(this, k, g.z, g.y, true); } g.d = i; } g.h = c; this.abd(g); this.y4.y(this, h, i, j, c, d, e, f, g.v, this.db.dl.totalHighWaterMark, g.x, this.db.dm.totalHighWaterMark, g.t, this.db.dk.totalHighWaterMark); }; PolarBase.prototype.abe = function (a) { if (this.assigningPolarStyle != null && this.zl) { this.assigningPolarStyle(this, a); } }; PolarBase.prototype.abd = function (a) { if (this.assigningPolarMarkerStyle != null && this.zk) { this.assigningPolarMarkerStyle(this, a); } }; PolarBase.prototype.aa3 = function (a, b, c, d, e) { e.c3(a, b, c, d); }; PolarBase.prototype.sg = function () { _super.prototype.sg.call(this); if (this.index < 0) { return; } this.yw.c6(); }; PolarBase.prototype.rs = function (a, b) { _super.prototype.rs.call(this, a, b); if (!this.gz) { this.cv.a4(b); return; } this.cv.a4(b); if (this.d5(this.cu)) { return; } var c = this.cu; if (!this.gr) { this.y2 = new PolarFrame(); this.abc(this.y2, c); } this.gr = false; this.abg(this.y2, c); this.gz = false; }; PolarBase.prototype.rp = function (a, b, c, d, e) { _super.prototype.rp.call(this, a, b, c, d, e); var f = this.ba.a$j.item(d); var g = f; f.a3(c); if (this.d5(g)) { return; } if (this.yy == null) { this.yy = new PolarFrame(); } this.abc(this.yy, g); this.abg(this.yy, g); }; PolarBase.prototype.abf = function (a, b) { var e_1, _a, e_2, _b; var c = new List$1(Base.$, 0); try { for (var _c = __values(fromEnum(b.c)), _d = _c.next(); !_d.done; _d = _c.next()) { var d = _d.value; if (!a.containsKey(d)) { c.add1(d); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } try { for (var _e = __values(fromEnum(c)), _f = _e.next(); !_f.done; _f = _e.next()) { var e = _f.value; b.h(e); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } }; PolarBase.prototype.yl = function (a, b, c) { this.aa7(); return this.yx.w.toArray(); }; PolarBase.prototype.z0 = function (a) { var e_3, _a; var b = new List$1(Number_$type, 0); var c = this.dn; try { for (var _b = __values(fromEnum(this.yw.c1.c)), _c = _b.next(); !_c.done; _c = _b.next()) { var d = _c.value; b.add(c.indexOf(d)); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } return b; }; PolarBase.prototype.aca = function (a) { return { $type: Point_$type, x: this.zi.item(a), y: this.zj.item(a) }; }; PolarBase.prototype.py = function (a) { _super.prototype.py.call(this, a); this.bc.exportTrendlineData(this, a, this.yw.c0.g$j); }; PolarBase.prototype.getDataLegendSeriesContextAt = function (a, b) { var c = { $type: Point_$type, x: a, y: b }; var d = this.km(c); var e = d == null ? NaN : this.iw(d, "RadiusMemberPath"); var f = d == null ? NaN : this.iw(d, "AngleMemberPath"); var g = new DataLegendSeriesValueInfo(); g.l = e; g.a = 11; g.r = this.aa0 != null ? this.aa0 : "Radius"; g.q = "Radius"; g.s = this.aaw != null ? this.aaw : "R:"; g.t = this.aay != null ? this.aay : ""; var h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 10; h.r = this.aai != null ? this.aai : "Angle"; h.q = "Angle"; h.s = this.aae != null ? this.aae : "A:"; h.t = this.aag != null ? this.aag : ""; var i = new DataLegendSeriesContext(); i.e = ((function () { var $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mb(); return i; }; PolarBase.prototype.ak = function (a, b) { var c = new List$1(ChartSelection.$, 0); this.p3(a, c, b); return c.toArray(); }; PolarBase.prototype.p3 = function (a, b, c) { var _this = this; var d = this.cv.by; var e = this.cv.bx; var f = this.getEffectiveViewport1(this.cv); var g = this.wi(this.cv); var h = new CollisionRect(0, a); var i = this.yt.k5(e, d, f, g); var _loop_2 = function (j) { var k = this_2.ys.getScaledAngle(this_2.zi.item(j)); var l = this_2.yt.od(this_2.zj.item(j)); var m = this_2.yu.c(k, l, d, e, f, Math.cos); var n = this_2.yu.d(k, l, d, e, f, Math.sin); if (h.containsLocation(m, n)) { if (c == 7 || c == 6) { b.add(((function () { var $ret = new ChartSelection(); $ret.series = _this; return $ret; })())); return { value: void 0 }; } else if (c == 2 || c == 1) { b.add(((function () { var $ret = new ChartSelection(); $ret.item = _this.dn.item(j); return $ret; })())); } else { b.add(((function () { var $ret = new ChartSelection(); $ret.item = _this.dn.item(j); $ret.series = _this; return $ret; })())); } } }; var this_2 = this; for (var j = 0; j < this.dn.count; j++) { var state_1 = _loop_2(j); if (typeof state_1 === "object") return state_1.value; } }; PolarBase.$t = markType(PolarBase, 'PolarBase', MarkerSeries.$); PolarBase.abh = DependencyProperty.i("ActualTrendLineBrush", Brush.$, PolarBase.$, new PropertyMetadata(2, null, function (a, b) { return a.raisePropertyChanged("ActualTrendLineBrush", b.oldValue, b.newValue); })); PolarBase.$$p = markDep(DependencyProperty, PropertyMetadata, PolarBase, 'raisePropertyChanged', ['AngleAxis:ys:abi', [NumericAngleAxis.$, null], 'AngleMemberAsLegendLabel:aae:abj', [2, null], 'AngleMemberAsLegendUnit:aag:abk', [2, null], 'AngleMemberPath:aai:abl', [2], 'ClipSeriesToBounds:zo:abm', [0, false], 'HighlightedAngleMemberPath:aal:abn', [2, null], 'HighlightedRadiusMemberPath:aan:abo', [2, null], 'IsCustomPolarMarkerStyleAllowed:zq:abp', [0, false], 'IsCustomPolarStyleAllowed:zr:abq', [0, false], 'ItemSearchMode:y8:abr', [ScatterItemSearchMode_$type, enumGetBox(ScatterItemSearchMode_$type, 0)], 'ItemSearchThreshold:z7:abs', [1, 10000], 'MaximumMarkers:z8:abt', [1, 400], 'RadiusAxis:yt:abu', [NumericRadiusAxis.$, null], 'RadiusMemberAsLegendLabel:aaw:abv', [2, null], 'RadiusMemberAsLegendUnit:aay:abw', [2, null], 'RadiusMemberPath:aa0:abx', [2], 'UseCartesianInterpolation:zy:ab5', [0, true], 'TrendLineType:za:ab3', [TrendLineType_$type, enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:z6:ab2', [1, 1.5], 'TrendLinePeriod:z9:ab1', [1, 7], 'TrendLineZIndex:aaa:ab4', [1, 1], 'TrendLineBrush:ab7:aby', [Brush.$, null], 'TrendLineDashArray:ab8:abz', [DoubleCollection.$], 'TrendLineDashCap:ab9:ab0', [PenLineCap_$type, enumGetBox(PenLineCap_$type, 0)]]); return PolarBase; }(MarkerSeries)); export { PolarBase }; /** * @hidden */ var PolarSeriesRenderManager = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarSeriesRenderManager, _super); function PolarSeriesRenderManager() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.aw = null; _this.ax = null; return _this; } PolarSeriesRenderManager.prototype.c = function () { this.aw = new AssigningPolarMarkerStyleEventArgs(); return this.aw; }; PolarSeriesRenderManager.prototype.a = function () { this.ax = new AssigningPolarStyleEventArgs(); return this.ax; }; PolarSeriesRenderManager.prototype.ay = function (a, b, c) { this.w(a, b, c); }; PolarSeriesRenderManager.prototype.az = function (a, b, c) { this.x(a, b, c); }; PolarSeriesRenderManager.prototype.a0 = function (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 = markType(PolarSeriesRenderManager, 'PolarSeriesRenderManager', SeriesRenderManager.$); return PolarSeriesRenderManager; }(SeriesRenderManager)); export { PolarSeriesRenderManager }; /** * @hidden */ var PolarBaseView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarBaseView, _super); function PolarBaseView(a) { var _this = _super.call(this, a) || this; _this.cz = null; _this.cy = null; _this.c0 = null; _this.c1 = null; _this.cz = a; _this.c1 = new H