UNPKG

igniteui-react-charts

Version:

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

1,451 lines 54.6 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __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.zj = null; _this.za = null; _this.zh = null; _this.ac0 = null; _this.acz = null; _this.acy = null; _this.zv = null; _this.z2 = null; _this.z3 = null; _this.zn = new PolarFrame(); _this.zp = new PolarFrame(); _this.zl = new PolarFrame(); _this.zg = null; _this.aal = null; _this.zr = 1; _this.z7 = false; _this.z6 = false; _this.z0 = null; _this.z1 = null; _this.assigningPolarStyle = null; _this.assigningPolarMarkerStyle = null; _this.zq = null; _this.zo = null; _this.zk = null; _this.zq = new PolarSeriesRenderManager(); _this.zs = _this.zt(); _this.zo = new PolarFrame(); _this.zp.ab = runOn(_this, _this.acx); _this.zn.ab = runOn(_this, _this.acx); _this.zl.ab = runOn(_this, _this.acx); _this.zv = new SeriesRenderer$2(PolarFrame.$, PolarBaseView.$, 0, runOn(_this, _this.aby), runOn(_this, _this.ab2), runOn(_this, _this.d4), runOn(_this, _this.sp), runOn(_this, _this.abr)); return _this; } PolarBase.prototype.ct = function () { return new PolarBaseView(this); }; PolarBase.prototype.rh = function (a) { _super.prototype.rh.call(this, a); this.zi = a; }; PolarBase.prototype.b3 = function () { if (this.b4 == 0) { { return 1; } } else { return _super.prototype.b3.call(this); } }; PolarBase.prototype.xa = function (a) { if (!this.hasMarkers || !this.x1()) { return Rect.empty; } var b = this.xr.ce(this.wr(a)); if (b != null) { return this.xr.c7(b); } return Rect.empty; }; PolarBase.prototype.g2 = function (a, b) { if (this.x2(a, b)) { return true; } return false; }; PolarBase.prototype.pf = function () { _super.prototype.pf.call(this); this.ze = null; this.zf = null; }; PolarBase.prototype.get_fs = function () { return true; }; PolarBase.prototype.w1 = function (a) { var b = this.ze; var c = this.zf; 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.zg.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 }; }; PolarBase.prototype.ed = function (a, b, c, d, e) { var _this = this; if (!this.hasMarkers) { return false; } var f = this.ze; var g = new ScalerParams(1, this.dc.yr, this.xd, f.dn); g.c = this.getEffectiveViewport1(this.cw); var h = this.zf; var i = new ScalerParams(1, this.dc.yr, this.xd, h.dn); i.c = this.getEffectiveViewport1(this.cw); a.clear(); this.xr.cw(function (j) { if (j._visibility == 0) { var k = new SeriesPointOfInterest(); var l = j.n; var m = j.o; if (!e && (l < _this.xd.left || l > _this.xd.right || m < _this.xd.top || m > _this.xd.bottom)) { return; } var n = void 0; var o = void 0; var p = _this.zg.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.v0; k.c = j.ak; if (_this.hf) { k.g = _this.v7(j.ak); } a.add(k); } }); return true; }; PolarBase.prototype.abr = function () { if (this.dd.g) { this.dd.t(); } }; PolarBase.prototype.abt = function () { this.zg.e(this.zj.aa, this.z4, this.z5, this.ac0, this.acz, this.acy, function (a, b) { return Math.cos(b); }, function (a, b) { return Math.sin(b); }, true); }; PolarBase.prototype.gh = function () { return this.highlightedItemsSource != null || (this.aa9 != null && this.aa7 != null); }; PolarBase.prototype.aaj = function () { return false; }; PolarBase.prototype.hz = function () { var a = _super.prototype.hz.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.abu)); 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.abv)); a.add(c); } if (this.aaj()) { 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.aaj()) { 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.si)); a.add(e); } if (!this.aaj()) { 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.si)); a.add(f); } return a; }; PolarBase.prototype.abv = function (a, b) { if (this.aa9 != null) { b.value = this.aa9; return; } b.value = this.abm; }; PolarBase.prototype.abu = function (a, b) { if (this.aa7 != null) { b.value = this.aa7; return; } b.value = this.aa4; }; Object.defineProperty(PolarBase.prototype, "z4", { get: function () { return this.z2; }, set: function (a) { if (this.z2 != a) { var b = this.z4; this.z2 = a; this.raisePropertyChanged("AngleColumn", b, this.z4); } }, enumerable: false, configurable: true }); Object.defineProperty(PolarBase.prototype, "z5", { get: function () { return this.z3; }, set: function (a) { if (this.z3 != a) { var b = this.z5; this.z3 = a; this.raisePropertyChanged("RadiusColumn", b, this.z5); } }, enumerable: false, configurable: true }); Object.defineProperty(PolarBase.prototype, "acs", { get: function () { return this.c(PolarBase.ab3); }, set: function (a) { this.h(PolarBase.ab3, a); }, enumerable: false, configurable: true }); PolarBase.prototype.zm = function () { var a = this.zl; if (this.d4()) { if (this.dd.g) { this.dd.t(); } a = this.zp; } return a; }; PolarBase.prototype.qp = function () { _super.prototype.qp.call(this); if (this.zf != null) { this.zf.ly(false); } if (this.ze != null) { this.ze.ly(false); } }; PolarBase.prototype.po = function (a, b, c, d) { var e_1, _a; var e = false; this.zi.dd.g$i(a, b, c, d); if (this.zi.aa.count > 0) { try { for (var _b = __values(fromEnum(this.zi.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.ze != null && !this.ze.ed()) { e = true; } if (this.zf != null && !this.zf.ed()) { e = true; } if (e) { this.r8(true); } }; PolarBase.prototype.s8 = function (a, b) { this.r8(false); }; PolarBase.prototype.s9 = function (a, b) { this.r8(false); }; PolarBase.prototype.hk = function (a, b, c) { var d = true; if (!_super.prototype.hk.call(this, a, b, c) || !c.r() || b.isEmpty || a.isEmpty || this.ze == null || this.zf == null || this.z4 == null || this.z5 == null || this.z4.count == 0 || this.z5.count == 0 || this.dp == null || this.dp.count != this.z4.count || this.dp.count != this.z5.count || this.zg == null || this.ze.b7 == null || this.zf.b7 == null || this.ze.qw == this.ze.qv || this.zf.qw == this.zf.qv) { d = false; } return d; }; PolarBase.prototype.r9 = function (a) { _super.prototype.r9.call(this, a); var b; var c; var d = this.getViewInfo(c, b); c = d.p0; b = d.p1; if (!this.hk(c, b, this.cw)) { this.pi(true, this.cw); return; } this.ac0 = b; this.acz = c; this.acy = this.cw.getEffectiveViewport(); this.zh = new PolarAxisInfoCache(this.ze, this.zf, this.dp); var e = new SeriesRenderingArguments(this, c, b, a, this.gx); var f = this.zn; var g = this.zl; var h = this.zp; var i = this.zv.g(e, f, g, h, this.zi); f = i.p1; g = i.p2; h = i.p3; this.zn = f; this.zl = g; this.zp = h; }; PolarBase.prototype.acx = function (a) { var b = this.zg.h(a.x, a.y, this.ac0, this.acz, this.acy, this.zh.e, this.zh.d, this.zh.g, this.zh.f, this.zh.i, this.zh.h); return b; }; PolarBase.prototype.ay = function (a) { if (a != null && a == this.ze && this.z4 != null) { return new AxisRange(this.z4.minimum, this.z4.maximum); } if (a != null && a == this.zf && this.z5 != null) { return new AxisRange(this.z5.minimum, this.z5.maximum); } return null; }; PolarBase.prototype.gj = 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.ze == null || this.z4 == null || this.zf == null || this.z5 == null) { return false; } if (d < 0 || d > this.z4.count - 1 || d > this.z5.count - 1) { return false; } var e = this.ze.getScaledAngle(this.z4.item(d)); var f = this.zf.tm(this.z5.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.kw = function (a) { var b = this.kc(a); if (this.dp != null && b >= 0 && b < this.dp.count) { return this.dp.item(b); } return null; }; PolarBase.prototype.kc = function (a) { var b = truncate(Math.round(this.iy(a))); return b; }; PolarBase.prototype.iy = function (a) { switch (this.zs) { case 1: return this.aap(a); case 3: return this.aaq(a); case 2: return this.aan(a); case 4: return this.aao(a); } return -1; }; PolarBase.prototype.aao = function (a) { return this.aar(a, false); }; PolarBase.prototype.aan = function (a) { var b = this.wr(a); var c = b.x; var d = b.y; if (this.dp == null || this.ze == null || this.zf == null || this.z4 == null || this.z5 == null) { return -1; } if (this.dp.count > this.aat) { return -1; } if (!this.aab()) { return -1; } var e = this.aal; var f = 1.7976931348623157E+308; var g = -1; for (var h = 0; h < this.z4.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.aab = function () { var a = this.zl; if (this.d4()) { a = this.zp; } if (a == null || a.aa.count == 0) { return false; } this.aal = a.aa; return true; }; PolarBase.prototype.aar = function (a, b) { if (!this.aae) { return -1; } var c = { $type: Point_$type, x: 0, y: 0 }; var d = true; var e = this.zl; if (this.d4()) { e = this.zp; } if (e == null) { return -1; } if (e.q == null) { return -1; } if (this.dp == null || this.dp.count > this.aat) { return -1; } if (!this.aab()) { return -1; } var f = this.aal; var g = this.wr(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.aaq = function (a) { return this.aar(a, true); }; PolarBase.prototype.aap = function (a) { var _this = this; var b = null; var c = 1.7976931348623157E+308; var d = this.wr(a); var e = d.x; var f = d.y; if (this.zi.de.e > this.aat) { return -1; } this.zi.dh(function (g) { if (g._visibility == 0) { var h = _this.zi.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.ak; } return -1; }; PolarBase.prototype.ww = function (a, b, c) { var _this = this; if (this.ze == null || this.zf == null || this.z4 == null || this.z5 == 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.ze.dn, f); var h = ((function () { var $ret = new ScalerParams(0, d, e, _this.zf.dn, f); $ret.b = _this.i5(); return $ret; })()); if (b) { var i = this.iy(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.zg.h(this.z4.item(j), this.z5.item(j), d, e, f, this.zh.e, this.zh.d, this.zh.g, this.zh.f, this.zh.i, this.zh.h); } var l = i - Math.floor(i); var m = this.zg.h(this.z4.item(j), this.z5.item(j), d, e, f, this.zh.e, this.zh.d, this.zh.g, this.zh.f, this.zh.i, this.zh.h); var n = this.zg.h(this.z4.item(k), this.z5.item(k), d, e, f, this.zh.e, this.zh.d, this.zh.g, this.zh.f, this.zh.i, this.zh.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.kc(a); if (u == -1) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.zg.h(this.z4.item(u), this.z5.item(u), d, e, f, this.zh.e, this.zh.d, this.zh.g, this.zh.f, this.zh.i, this.zh.h); } }; PolarBase.prototype.ai = function () { return [this.ze, this.zf]; }; PolarBase.prototype.kz = function (a, b) { var c = this.no(b); if (c == PolarBase.$$p[3]) { return this.k0(a, b, this.aa4); } if (c == PolarBase.$$p[15]) { return this.k0(a, b, this.abm); } if (c == PolarBase.$$p[5]) { return this.k0(a, b, this.aa7); } if (c == PolarBase.$$p[6]) { return this.k0(a, b, this.aa9); } return _super.prototype.kz.call(this, a, b); }; PolarBase.prototype.mo = function (a) { var b = this.no(a); if (b == PolarBase.$$p[3]) { return this.aa4; } if (b == PolarBase.$$p[15]) { return this.abm; } if (b == PolarBase.$$p[5]) { return this.aa7; } if (b == PolarBase.$$p[6]) { return this.aa9; } return _super.prototype.mo.call(this, a); }; PolarBase.prototype.rq = function (a, b, c, d) { _super.prototype.rq.call(this, a, b, c, d); if (this.zi.dd.g$e(a, b, c, d)) { this.r8(false); this.q0(); } switch (b) { case PolarBase.$$p[1]: case PolarBase.$$p[2]: case PolarBase.$$p[13]: case PolarBase.$$p[14]: this.qu(); break; case "FastItemsSource": if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.z4); c.deregisterColumn(this.z5); this.z4 = null; this.z5 = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.z4 = this.dl(this.aa4); this.z5 = this.dl(this.abm); } if ((this.zf != null && !this.zf.ed()) || (this.ze != null && !this.ze.ed())) { this.r8(this.gm && c != null); } break; case PolarBase.$$p[0]: if (this.ze != null && this.zf != null) { this.zg = new PolarAxes(this.zf, this.ze); } if (c != null) { c.cx(this); } if (d != null) { d.d3(this); } if (this.ze != null && !this.ze.ed()) { this.r8(false); } else if (c != null && d == null) { this.pi(true, this.cw); } break; case PolarBase.$$p[12]: if (this.ze != null && this.zf != null) { this.zg = new PolarAxes(this.zf, this.ze); } if (c != null) { c.cx(this); } if (d != null) { d.d3(this); } if (this.zf != null && !this.zf.ed()) { this.r8(false); } else if (c != null && d == null) { this.pi(true, this.cw); } if (this.ze != null && !this.ze.ed()) { this.ze.lu(); } break; case PolarBase.$$p[3]: if (this.dp != null) { this.dp.deregisterColumn(this.z4); this.z4 = this.dl(this.aa4); } break; case "AngleColumn": this.zi.dd.g$m(); if (this.ze != null && !this.ze.ed()) { this.r8(this.gm && this.d9); } break; case PolarBase.$$p[15]: if (this.dp != null) { this.dp.deregisterColumn(this.z5); this.z5 = this.dl(this.abm); } break; case "RadiusColumn": this.zi.dd.g$m(); if (this.zf != null && !this.zf.ed()) { this.r8(this.gm && this.d9); } break; case PolarBase.$$p[16]: this.r8(false); this.q0(); break; case PolarBase.$$p[11]: this.r8(false); this.q0(); break; case "TransitionProgress": this.zh = new PolarAxisInfoCache(this.ze, this.zf, this.dp); this.ac0 = this.cw.ca; this.acz = this.cw.b9; this.acy = this.cw.getEffectiveViewport(); this.zp.z = this.aak; this.zp.d(this.jz, this.zn, this.zl); if (this.d7(this.cw)) { return; } if (this.jz == 1) { this.ab2(this.zl, this.zi); this.q3(); } else { this.ab2(this.zp, this.zi); } if (this.dc != null) { this.dc.st(this); } break; case "TrendLineBrush": this.rw(b); break; case PolarBase.$$p[4]: this.r8(false); this.q0(); break; case "TrendLineType": this.q0(); break; case PolarBase.$$p[8]: this.z7 = this.aag(); this.r8(false); break; case PolarBase.$$p[7]: this.z6 = this.aaf(); this.r8(false); break; case PolarBase.$$p[9]: this.zs = this.zt(); break; } }; Object.defineProperty(PolarBase.prototype, "zs", { get: function () { return this.zr; }, set: function (a) { var b = this.zr; this.zr = a; if (b != this.zr) { this.raisePropertyChanged("ActualItemSearchMode", enumGetBox(ScatterItemSearchMode_$type, b), enumGetBox(ScatterItemSearchMode_$type, this.zr)); } }, enumerable: false, configurable: true }); PolarBase.prototype.zt = function () { if (this.zu != 0) { return this.zu; } return this.aae ? 4 : 1; }; PolarBase.prototype.get_aae = function () { return false; }; Object.defineProperty(PolarBase.prototype, "aae", { get: function () { return this.get_aae(); }, enumerable: false, configurable: true }); PolarBase.prototype.aag = function () { return this.aad; }; PolarBase.prototype.aaf = function () { return this.aac; }; PolarBase.prototype.z9 = function (a) { if (typeCast(NumericRadiusAxis.$, a) !== null) { return true; } return false; }; PolarBase.prototype.z8 = function (a) { if (typeCast(NumericAngleAxis.$, a) !== null) { return true; } return false; }; PolarBase.prototype.pi = function (a, b) { _super.prototype.pi.call(this, a, b); var c = b; if (a) { c.de.clear(); } c.dd.g$h(); }; PolarBase.prototype.zb = 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.abq = 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.z4.item(f), y: this_1.z5.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.aby = 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.z4 != null ? this.z4.count : 0, this.z5 != null ? this.z5.count : 0); if (f < 1) { return; } this.zh = new PolarAxisInfoCache(this.ze, this.zf, this.dp); this.zj = a; this.acz = d; this.ac0 = c; this.acy = b.getEffectiveViewport(); b.db.l(a.m, this.aau, c, d, this.ik); if (f <= this.aau) { this.abq(a, f, c, d); } var g = this.zb(d, a.r); var h = Math.min(this.ze.qw, this.ze.qv); var i = Math.max(this.ze.qv, this.ze.qw); b.dd.k = this.aak; b.dd.j = 0; b.dd.m = this.zf.tg; b.dd.l = this.zf.tf; b.dd.n = function (j, k) { return _this.zg.c(j, k, c, d, e, Math.cos); }; b.dd.o = function (j, k) { return _this.zg.d(j, k, c, d, e, Math.sin); }; var j = new List$1(Number_$type, 0); for (var k = 0; k < this.z4.count; k++) { if (this.z4.item(k) >= h && this.z4.item(k) <= i) { j.add(this.z4.item(k)); } } var l = this.z5; if (j.count != this.z4.count) { l = new List$1(Number_$type, 0); for (var m = 0; m < this.z4.count; m++) { if (this.z4.item(m) >= h && this.z4.item(m) <= i) { l.add(this.z5.item(m)); } } } b.dd.p(a.r, this.zw, j, l, this.aav, runOn(this.ze, this.ze.getScaledAngle), runOn(this.zf, this.zf.tm), ((function () { var $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 (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.aak; o.j = 0; o.m = this.zf.tg; o.l = this.zf.tf; o.n = function (p, q) { return _this.zg.c(p, q, c, d, e, Math.cos); }; o.o = function (p, q) { return _this.zg.d(p, q, c, d, e, Math.sin); }; o.p(a.p._inner[n], o.g$b, j, l, o.g$f, runOn(this.ze, this.ze.getScaledAngle), runOn(this.zf, this.zf.tm), ((function () { var $ret = new TrendResolutionParams(); $ret.d = _this.ik; $ret.i = d; $ret.h = e; $ret.j = c; return $ret; })()), g, h, i); } } }; PolarBase.prototype.get_fh = function () { return true; }; PolarBase.prototype.zy = function (a, b, c) { return null; }; PolarBase.prototype.zz = function (a, b, c) { if (this.dp == null) { return null; } var d = this.zm(); var e = this.zi.ce(this.wr(b)); var 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; } 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.zx = 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.f2(this.by) && !c) { var d = this.zy(a, b, this.z0); this.z0 = d; return d; } else { var e = this.zx(a, b, this.z0); this.z0 = e; return e; } }; PolarBase.prototype.di = function (a, b, c) { if (this.f2(this.by) && !c) { var d = this.zz(a, b, this.z1); this.z1 = d; return d; } else { var e = this.zx(a, b, this.z1); e.d = true; this.z1 = e; return e; } }; PolarBase.prototype.aai = function () { return (this.assigningPolarStyle != null && this.z7) || (this.by != 1) || this.d3 || (this.cq != 1) || (this.cp != 1); }; PolarBase.prototype.aah = function () { return (this.assigningPolarMarkerStyle != null && this.z6) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1); }; PolarBase.prototype.ab2 = function (a, b) { this.rd(); var c = b.ca; var d = b.b9; var e = this.getEffectiveViewport1(b); var f = this.w4(b); this.zh = new PolarAxisInfoCache(this.ze, this.zf, this.dp); if (this.x1()) { b.db.j(a.m, this.x3); if (this.aah()) { this.abs(b, a); } } b.c4(); var g = this.zb(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.abp(d, c, e, f, b); }; PolarBase.prototype.y8 = function (a, b) { return this.y9(a, b); }; PolarBase.prototype.y9 = function (a, b) { if (b < a || a < 0 || a > this.z4.count || b < 0 || b > this.z4.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.abs = function (a, b) { var _this = this; a.ck = true; this.zq.ay(this, this.aah(), runOn(this, this.y8)); var c = this.zq.d; var d = c != null; var e = this.getEffectiveViewport1(a); var f = this.dp == null ? 0 : this.dp.count; this.zi.cw(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.abw(h, f, a.t); } _this.zq.ac(g, i); } }); }; PolarBase.prototype.abx = function (a, b, c) { var d = this.by != 1; var e = this.cq != 1; var f = this.cp != 1; this.zq.a0(this.zq.b, a, b, false); this.zq.ab(this.ii); var g = this.zq.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.ab0(g); this.zq.z(this, h, i, j, c, d, e, f, a < 0); }; PolarBase.prototype.abw = function (a, b, c) { var d = this.by != 1; var e = this.cq != 1; var f = this.cp != 1; this.zq.a0(this.zq.d, a, b, true); this.zq.aa(this.ii); var g = this.zq.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.abz(g); this.zq.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.ab0 = function (a) { if (this.assigningPolarStyle != null && this.z7) { this.assigningPolarStyle(this, a); } }; PolarBase.prototype.abz = function (a) { if (this.assigningPolarMarkerStyle != null && this.z6) { this.assigningPolarMarkerStyle(this, a); } }; PolarBase.prototype.abp = function (a, b, c, d, e) { e.dg(a, b, c, d); }; PolarBase.prototype.sz = function () { _super.prototype.sz.call(this); if (this.index < 0) { return; } this.zi.dj(); }; PolarBase.prototype.sa = function (a, b) { _super.prototype.sa.call(this, a, b); if (!this.g6) { this.cw.be(b); return; } this.cw.be(b); if (this.d7(this.cv)) { return; } this.sb(); this.g6 = false; }; PolarBase.prototype.sb = function () { _super.prototype.sb.call(this); var a = this.cv; if (!this.gy) { this.zo = new PolarFrame(); this.aby(this.zo, a); } this.gy = false; this.ab2(this.zo, a); }; PolarBase.prototype.r7 = function (a, b, c, d, e) { _super.prototype.r7.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.zk == null) { this.zk = new PolarFrame(); } this.aby(this.zk, g); this.ab2(this.zk, g); }; PolarBase.prototype.ab1 = 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.y7 = function (a, b, c) { this.abt(); return this.zj.aa.toArray(); }; PolarBase.prototype.aam = 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.zi.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.acw = function (a) { return { $type: Point_$type, x: this.z4.item(a), y: this.z5.item(a) }; }; PolarBase.prototype.qd = function (a) { _super.prototype.qd.call(this, a); this.bc.exportTrendlineData(this, a, this.zi.dd.g$n); }; PolarBase.prototype.getDataLegendSeriesContextAt = function (a, b) { var c = { $type: Point_$type, x: a, y: b }; var d = this.kw(c); var e = d == null ? NaN : this.i4(d, "RadiusMemberPath"); var f = d == null ? NaN : this.i4(d, "AngleMemberPath"); var g = new DataLegendSeriesValueInfo(); g.l = e; g.a = 11; g.r = this.abm != null ? this.abm : "Radius"; g.q = "Radius"; g.s = this.abi != null ? this.abi : "R:"; g.t = this.abk != null ? this.abk : ""; var h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 10; h.r = this.aa4 != null ? this.aa4 : "Angle"; h.q = "Angle"; h.s = this.aa0 != null ? this.aa0 : "A:"; h.t = this.aa2 != null ? this.aa2 : ""; 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.mn(); return i; }; PolarBase.prototype.ak = function (a, b) { var c = new List$1(ChartSelection.$, 0); this.qi(a, c, b); return c.toArray(); }; PolarBase.prototype.qi = 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.yz(this.xd, this.getEffectiveViewport(), d); var h = new CollisionRect(0, this.dc.yw(a)); var i = this.zf.px(e, d, f, g); var _loop_2 = function (j) { var k = this_2.ze.getScaledAngle(this_2.z4.item(j)); var l = this_2.zf.tm(this_2.z5.item(j)); var m = this_2.zg.c(k, l, d, e, f, Math.cos); var n = this_2.zg.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.ab3 = 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:ze:ab4', [NumericAngleAxis.$, null], 'AngleMemberAsLegendLabel:aa0:ab5', [2, null], 'AngleMemberAsLegendUnit:aa2:ab6', [2, null], 'AngleMemberPath:aa4:ab7', [2], 'ClipSeriesToBounds:aaa:ab8', [0, false], 'HighlightedAngleMemberPath:aa7:ab9', [2, null], 'HighlightedRadiusMemberPath:aa9:aca', [2, null], 'IsCustomPolarMarkerStyleAllowed:aac:acb', [0, false], 'IsCustomPolarStyleAllowed:aad:acc', [0, false], 'ItemSearchMode:zu:acd', [ScatterItemSearchMode_$type, enumGetBox(ScatterItemSearchMode_$type, 0)], 'ItemSearchThreshold:aat:ace', [1, 10000], 'MaximumMarkers:aau:acf', [1, 400], 'RadiusAxis:zf:acg', [NumericRadiusAxis.$, null], 'RadiusMemberAsLegendLabel:abi:ach', [2, null], 'RadiusMemberAsLegendUnit:abk:aci', [2, null], 'RadiusMemberPath:abm:acj', [2], 'UseCartesianInterpolation:aak:acr', [0, true], 'TrendLineType:zw:acp', [TrendLineType_$type, enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:aas:aco', [1, 1.5], 'TrendLinePeriod:aav:acn', [1, 7], 'TrendLineZIndex:aaw:acq', [1, 1], 'TrendLineBrush:act:ack', [Brush.$, null], 'TrendLineDashArray:acu:acl', [DoubleCollection.$], 'TrendLineDashCap:acv:acm', [PenLineCap