UNPKG

igniteui-react-charts

Version:

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

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