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.zk = null; _this.zb = null; _this.zi = null; _this.ac1 = null; _this.ac0 = null; _this.acz = null; _this.zw = null; _this.z3 = null; _this.z4 = null; _this.zo = new PolarFrame(); _this.zq = new PolarFrame(); _this.zm = new PolarFrame(); _this.zh = null; _this.aam = null; _this.zs = 1; _this.z8 = false; _this.z7 = false; _this.z1 = null; _this.z2 = null; _this.assigningPolarStyle = null; _this.assigningPolarMarkerStyle = null; _this.zr = null; _this.zp = null; _this.zl = null; _this.zr = new PolarSeriesRenderManager(); _this.zt = _this.zu(); _this.zp = new PolarFrame(); _this.zq.ab = runOn(_this, _this.acy); _this.zo.ab = runOn(_this, _this.acy); _this.zm.ab = runOn(_this, _this.acy); _this.zw = new SeriesRenderer$2(PolarFrame.$, PolarBaseView.$, 0, runOn(_this, _this.abz), runOn(_this, _this.ab3), runOn(_this, _this.d4), runOn(_this, _this.sq), runOn(_this, _this.abs)); return _this; } PolarBase.prototype.ct = function () { return new PolarBaseView(this); }; PolarBase.prototype.ri = function (a) { _super.prototype.ri.call(this, a); this.zj = a; }; PolarBase.prototype.b3 = function () { if (this.b4 == 0) { { return 1; } } else { return _super.prototype.b3.call(this); } }; PolarBase.prototype.xb = function (a) { if (!this.hasMarkers || !this.x2()) { return Rect.empty; } var b = this.xs.ce(this.ws(a)); if (b != null) { return this.xs.c7(b); } return Rect.empty; }; PolarBase.prototype.g3 = function (a, b) { if (this.x3(a, b)) { return true; } return false; }; PolarBase.prototype.pg = function () { _super.prototype.pg.call(this); this.zf = null; this.zg = null; }; PolarBase.prototype.get_ft = function () { return true; }; PolarBase.prototype.w2 = function (a) { var b = this.zf; var c = this.zg; 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.zh.f(a.x, a.y, this.dc.ys, this.dc.za, 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.zf; var g = new ScalerParams(1, this.dc.ys, this.xe, f.dn); g.c = this.getEffectiveViewport1(this.cw); var h = this.zg; var i = new ScalerParams(1, this.dc.ys, this.xe, h.dn); i.c = this.getEffectiveViewport1(this.cw); a.clear(); this.xs.cw(function (j) { if (j._visibility == 0) { var k = new SeriesPointOfInterest(); var l = j.n; var m = j.o; if (!e && (l < _this.xe.left || l > _this.xe.right || m < _this.xe.top || m > _this.xe.bottom)) { return; } var n = void 0; var o = void 0; var p = _this.zh.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.v1; k.c = j.ak; if (_this.hg) { k.g = _this.v8(j.ak); } a.add(k); } }); return true; }; PolarBase.prototype.abs = function () { if (this.dd.g) { this.dd.t(); } }; PolarBase.prototype.abu = function () { this.zh.e(this.zk.aa, this.z5, this.z6, this.ac1, this.ac0, this.acz, function (a, b) { return Math.cos(b); }, function (a, b) { return Math.sin(b); }, true); }; PolarBase.prototype.gi = function () { return this.highlightedItemsSource != null || (this.aba != null && this.aa8 != null); }; PolarBase.prototype.aak = function () { return false; }; PolarBase.prototype.h0 = function () { var a = _super.prototype.h0.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.abv)); 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.abw)); a.add(c); } if (this.aak()) { 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.aak()) { 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.sj)); a.add(e); } if (!this.aak()) { 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.sj)); a.add(f); } return a; }; PolarBase.prototype.abw = function (a, b) { if (this.aba != null) { b.value = this.aba; return; } b.value = this.abn; }; PolarBase.prototype.abv = function (a, b) { if (this.aa8 != null) { b.value = this.aa8; return; } b.value = this.aa5; }; 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("AngleColumn", b, this.z5); } }, enumerable: false, configurable: true }); Object.defineProperty(PolarBase.prototype, "z6", { get: function () { return this.z4; }, set: function (a) { if (this.z4 != a) { var b = this.z6; this.z4 = a; this.raisePropertyChanged("RadiusColumn", b, this.z6); } }, enumerable: false, configurable: true }); Object.defineProperty(PolarBase.prototype, "act", { get: function () { return this.c(PolarBase.ab4); }, set: function (a) { this.h(PolarBase.ab4, a); }, enumerable: false, configurable: true }); PolarBase.prototype.zn = function () { var a = this.zm; if (this.d4()) { if (this.dd.g) { this.dd.t(); } a = this.zq; } return a; }; PolarBase.prototype.qq = function () { _super.prototype.qq.call(this); if (this.zg != null) { this.zg.l0(false); } if (this.zf != null) { this.zf.l0(false); } }; PolarBase.prototype.pp = function (a, b, c, d) { var e_1, _a; var e = false; this.zj.dd.g$i(a, b, c, d); if (this.zj.aa.count > 0) { try { for (var _b = __values(fromEnum(this.zj.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.zf != null && !this.zf.ee()) { e = true; } if (this.zg != null && !this.zg.ee()) { e = true; } if (e) { this.r9(true); } }; PolarBase.prototype.s9 = function (a, b) { this.r9(false); }; PolarBase.prototype.ta = function (a, b) { this.r9(false); }; PolarBase.prototype.hl = function (a, b, c) { var d = true; if (!_super.prototype.hl.call(this, a, b, c) || !c.r() || b.isEmpty || a.isEmpty || this.zf == null || this.zg == null || this.z5 == null || this.z6 == null || this.z5.count == 0 || this.z6.count == 0 || this.dp == null || this.dp.count != this.z5.count || this.dp.count != this.z6.count || this.zh == null || this.zf.b7 == null || this.zg.b7 == null || this.zf.qy == this.zf.qx || this.zg.qy == this.zg.qx) { d = false; } return d; }; PolarBase.prototype.sa = function (a) { _super.prototype.sa.call(this, a); var b; var c; var d = this.getViewInfo(c, b); c = d.p0; b = d.p1; if (!this.hl(c, b, this.cw)) { this.pj(true, this.cw); return; } this.ac1 = b; this.ac0 = c; this.acz = this.cw.getEffectiveViewport(); this.zi = new PolarAxisInfoCache(this.zf, this.zg, this.dp); var e = new SeriesRenderingArguments(this, c, b, a, this.gy); var f = this.zo; var g = this.zm; var h = this.zq; var i = this.zw.g(e, f, g, h, this.zj); f = i.p1; g = i.p2; h = i.p3; this.zo = f; this.zm = g; this.zq = h; }; PolarBase.prototype.acy = function (a) { var b = this.zh.h(a.x, a.y, this.ac1, this.ac0, this.acz, this.zi.e, this.zi.d, this.zi.g, this.zi.f, this.zi.i, this.zi.h); return b; }; PolarBase.prototype.ay = function (a) { if (a != null && a == this.zf && this.z5 != null) { return new AxisRange(this.z5.minimum, this.z5.maximum); } if (a != null && a == this.zg && this.z6 != null) { return new AxisRange(this.z6.minimum, this.z6.maximum); } return null; }; PolarBase.prototype.gk = 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.zf == null || this.z5 == null || this.zg == null || this.z6 == null) { return false; } if (d < 0 || d > this.z5.count - 1 || d > this.z6.count - 1) { return false; } var e = this.zf.getScaledAngle(this.z5.item(d)); var f = this.zg.to(this.z6.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.kx = function (a) { var b = this.kd(a); if (this.dp != null && b >= 0 && b < this.dp.count) { return this.dp.item(b); } return null; }; PolarBase.prototype.kd = function (a) { var b = truncate(Math.round(this.iz(a))); return b; }; PolarBase.prototype.iz = function (a) { switch (this.zt) { case 1: return this.aaq(a); case 3: return this.aar(a); case 2: return this.aao(a); case 4: return this.aap(a); } return -1; }; PolarBase.prototype.aap = function (a) { return this.aas(a, false); }; PolarBase.prototype.aao = function (a) { var b = this.ws(a); var c = b.x; var d = b.y; if (this.dp == null || this.zf == null || this.zg == null || this.z5 == null || this.z6 == null) { return -1; } if (this.dp.count > this.aau) { return -1; } if (!this.aac()) { return -1; } var e = this.aam; var f = 1.7976931348623157E+308; var g = -1; for (var h = 0; h < this.z5.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.aac = function () { var a = this.zm; if (this.d4()) { a = this.zq; } if (a == null || a.aa.count == 0) { return false; } this.aam = a.aa; return true; }; PolarBase.prototype.aas = function (a, b) { if (!this.aaf) { return -1; } var c = { $type: Point_$type, x: 0, y: 0 }; var d = true; var e = this.zm; if (this.d4()) { e = this.zq; } if (e == null) { return -1; } if (e.q == null) { return -1; } if (this.dp == null || this.dp.count > this.aau) { return -1; } if (!this.aac()) { return -1; } var f = this.aam; var g = this.ws(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.aar = function (a) { return this.aas(a, true); }; PolarBase.prototype.aaq = function (a) { var _this = this; var b = null; var c = 1.7976931348623157E+308; var d = this.ws(a); var e = d.x; var f = d.y; if (this.zj.de.e > this.aau) { return -1; } this.zj.dh(function (g) { if (g._visibility == 0) { var h = _this.zj.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.wx = function (a, b, c) { var _this = this; if (this.zf == null || this.zg == null || this.z5 == null || this.z6 == 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.zf.dn, f); var h = ((function () { var $ret = new ScalerParams(0, d, e, _this.zg.dn, f); $ret.b = _this.i6(); return $ret; })()); if (b) { var i = this.iz(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.zh.h(this.z5.item(j), this.z6.item(j), d, e, f, this.zi.e, this.zi.d, this.zi.g, this.zi.f, this.zi.i, this.zi.h); } var l = i - Math.floor(i); var m = this.zh.h(this.z5.item(j), this.z6.item(j), d, e, f, this.zi.e, this.zi.d, this.zi.g, this.zi.f, this.zi.i, this.zi.h); var n = this.zh.h(this.z5.item(k), this.z6.item(k), d, e, f, this.zi.e, this.zi.d, this.zi.g, this.zi.f, this.zi.i, this.zi.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.kd(a); if (u == -1) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.zh.h(this.z5.item(u), this.z6.item(u), d, e, f, this.zi.e, this.zi.d, this.zi.g, this.zi.f, this.zi.i, this.zi.h); } }; PolarBase.prototype.ai = function () { return [this.zf, this.zg]; }; PolarBase.prototype.k0 = function (a, b) { var c = this.np(b); if (c == PolarBase.$$p[3]) { return this.k1(a, b, this.aa5); } if (c == PolarBase.$$p[15]) { return this.k1(a, b, this.abn); } if (c == PolarBase.$$p[5]) { return this.k1(a, b, this.aa8); } if (c == PolarBase.$$p[6]) { return this.k1(a, b, this.aba); } return _super.prototype.k0.call(this, a, b); }; PolarBase.prototype.mp = function (a) { var b = this.np(a); if (b == PolarBase.$$p[3]) { return this.aa5; } if (b == PolarBase.$$p[15]) { return this.abn; } if (b == PolarBase.$$p[5]) { return this.aa8; } if (b == PolarBase.$$p[6]) { return this.aba; } return _super.prototype.mp.call(this, a); }; PolarBase.prototype.rr = function (a, b, c, d) { _super.prototype.rr.call(this, a, b, c, d); if (this.zj.dd.g$e(a, b, c, d)) { this.r9(false); this.q1(); } switch (b) { case PolarBase.$$p[1]: case PolarBase.$$p[2]: case PolarBase.$$p[13]: case PolarBase.$$p[14]: this.qv(); break; case "FastItemsSource": if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.z5); c.deregisterColumn(this.z6); this.z5 = null; this.z6 = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.z5 = this.dl(this.aa5); this.z6 = this.dl(this.abn); } if ((this.zg != null && !this.zg.ee()) || (this.zf != null && !this.zf.ee())) { this.r9(this.gn && c != null); } break; case PolarBase.$$p[0]: if (this.zf != null && this.zg != null) { this.zh = new PolarAxes(this.zg, this.zf); } if (c != null) { c.cx(this); } if (d != null) { d.d4(this); } if (this.zf != null && !this.zf.ee()) { this.r9(false); } else if (c != null && d == null) { this.pj(true, this.cw); } break; case PolarBase.$$p[12]: if (this.zf != null && this.zg != null) { this.zh = new PolarAxes(this.zg, this.zf); } if (c != null) { c.cx(this); } if (d != null) { d.d4(this); } if (this.zg != null && !this.zg.ee()) { this.r9(false); } else if (c != null && d == null) { this.pj(true, this.cw); } if (this.zf != null && !this.zf.ee()) { this.zf.lw(); } break; case PolarBase.$$p[3]: if (this.dp != null) { this.dp.deregisterColumn(this.z5); this.z5 = this.dl(this.aa5); } break; case "AngleColumn": this.zj.dd.g$m(); if (this.zf != null && !this.zf.ee()) { this.r9(this.gn && this.d9); } break; case PolarBase.$$p[15]: if (this.dp != null) { this.dp.deregisterColumn(this.z6); this.z6 = this.dl(this.abn); } break; case "RadiusColumn": this.zj.dd.g$m(); if (this.zg != null && !this.zg.ee()) { this.r9(this.gn && this.d9); } break; case PolarBase.$$p[16]: this.r9(false); this.q1(); break; case PolarBase.$$p[11]: this.r9(false); this.q1(); break; case "TransitionProgress": this.zi = new PolarAxisInfoCache(this.zf, this.zg, this.dp); this.ac1 = this.cw.ca; this.ac0 = this.cw.b9; this.acz = this.cw.getEffectiveViewport(); this.zq.z = this.aal; this.zq.d(this.j0, this.zo, this.zm); if (this.d7(this.cw)) { return; } if (this.j0 == 1) { this.ab3(this.zm, this.zj); this.q4(); } else { this.ab3(this.zq, this.zj); } if (this.dc != null) { this.dc.su(this); } break; case "TrendLineBrush": this.rx(b); break; case PolarBase.$$p[4]: this.r9(false); this.q1(); break; case "TrendLineType": this.q1(); break; case PolarBase.$$p[8]: this.z8 = this.aah(); this.r9(false); break; case PolarBase.$$p[7]: this.z7 = this.aag(); this.r9(false); break; case PolarBase.$$p[9]: this.zt = this.zu(); break; } }; Object.defineProperty(PolarBase.prototype, "zt", { get: function () { return this.zs; }, set: function (a) { var b = this.zs; this.zs = a; if (b != this.zs) { this.raisePropertyChanged("ActualItemSearchMode", enumGetBox(ScatterItemSearchMode_$type, b), enumGetBox(ScatterItemSearchMode_$type, this.zs)); } }, enumerable: false, configurable: true }); PolarBase.prototype.zu = function () { if (this.zv != 0) { return this.zv; } return this.aaf ? 4 : 1; }; PolarBase.prototype.get_aaf = function () { return false; }; Object.defineProperty(PolarBase.prototype, "aaf", { get: function () { return this.get_aaf(); }, enumerable: false, configurable: true }); PolarBase.prototype.aah = function () { return this.aae; }; PolarBase.prototype.aag = function () { return this.aad; }; PolarBase.prototype.aaa = function (a) { if (typeCast(NumericRadiusAxis.$, a) !== null) { return true; } return false; }; PolarBase.prototype.z9 = function (a) { if (typeCast(NumericAngleAxis.$, a) !== null) { return true; } return false; }; PolarBase.prototype.pj = function (a, b) { _super.prototype.pj.call(this, a, b); var c = b; if (a) { c.de.clear(); } c.dd.g$h(); }; PolarBase.prototype.zc = 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.abr = 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.z5.item(f), y: this_1.z6.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.abz = 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.z5 != null ? this.z5.count : 0, this.z6 != null ? this.z6.count : 0); if (f < 1) { return; } this.zi = new PolarAxisInfoCache(this.zf, this.zg, this.dp); this.zk = a; this.ac0 = d; this.ac1 = c; this.acz = b.getEffectiveViewport(); b.db.l(a.m, this.aav, c, d, this.il); if (f <= this.aav) { this.abr(a, f, c, d); } var g = this.zc(d, a.r); var h = Math.min(this.zf.qy, this.zf.qx); var i = Math.max(this.zf.qx, this.zf.qy); b.dd.k = this.aal; b.dd.j = 0; b.dd.m = this.zg.ti; b.dd.l = this.zg.th; b.dd.n = function (j, k) { return _this.zh.c(j, k, c, d, e, Math.cos); }; b.dd.o = function (j, k) { return _this.zh.d(j, k, c, d, e, Math.sin); }; var j = new List$1(Number_$type, 0); for (var k = 0; k < this.z5.count; k++) { if (this.z5.item(k) >= h && this.z5.item(k) <= i) { j.add(this.z5.item(k)); } } var l = this.z6; if (j.count != this.z5.count) { l = new List$1(Number_$type, 0); for (var m = 0; m < this.z5.count; m++) { if (this.z5.item(m) >= h && this.z5.item(m) <= i) { l.add(this.z6.item(m)); } } } b.dd.p(a.r, this.zx, j, l, this.aaw, runOn(this.zf, this.zf.getScaledAngle), runOn(this.zg, this.zg.to), ((function () { var $ret = new TrendResolutionParams(); $ret.d = _this.il; $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.aal; o.j = 0; o.m = this.zg.ti; o.l = this.zg.th; o.n = function (p, q) { return _this.zh.c(p, q, c, d, e, Math.cos); }; o.o = function (p, q) { return _this.zh.d(p, q, c, d, e, Math.sin); }; o.p(a.p._inner[n], o.g$b, j, l, o.g$f, runOn(this.zf, this.zf.getScaledAngle), runOn(this.zg, this.zg.to), ((function () { var $ret = new TrendResolutionParams(); $ret.d = _this.il; $ret.i = d; $ret.h = e; $ret.j = c; return $ret; })()), g, h, i); } } }; PolarBase.prototype.get_fh = function () { return true; }; PolarBase.prototype.zz = function (a, b, c) { return null; }; PolarBase.prototype.z0 = function (a, b, c) { if (this.dp == null) { return null; } var d = this.zn(); var e = this.zj.ce(this.ws(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.zy = 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.zz(a, b, this.z1); this.z1 = d; return d; } else { var e = this.zy(a, b, this.z1); this.z1 = e; return e; } }; PolarBase.prototype.di = function (a, b, c) { if (this.f3(this.by) && !c) { var d = this.z0(a, b, this.z2); this.z2 = d; return d; } else { var e = this.zy(a, b, this.z2); e.d = true; this.z2 = e; return e; } }; PolarBase.prototype.aaj = function () { return (this.assigningPolarStyle != null && this.z8) || (this.by != 1) || this.d3 || (this.cq != 1) || (this.cp != 1); }; PolarBase.prototype.aai = function () { return (this.assigningPolarMarkerStyle != null && this.z7) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1); }; PolarBase.prototype.ab3 = function (a, b) { this.re(); var c = b.ca; var d = b.b9; var e = this.getEffectiveViewport1(b); var f = this.w5(b); this.zi = new PolarAxisInfoCache(this.zf, this.zg, this.dp); if (this.x2()) { b.db.j(a.m, this.x4); if (this.aai()) { this.abt(b, a); } } b.c4(); var g = this.zc(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.abq(d, c, e, f, b); }; PolarBase.prototype.y9 = function (a, b) { return this.za(a, b); }; PolarBase.prototype.za = function (a, b) { if (b < a || a < 0 || a > this.z5.count || b < 0 || b > this.z5.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.abt = function (a, b) { var _this = this; a.ck = true; this.zr.ay(this, this.aai(), runOn(this, this.y9)); var c = this.zr.d; var d = c != null; var e = this.getEffectiveViewport1(a); var f = this.dp == null ? 0 : this.dp.count; this.zj.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.abx(h, f, a.t); } _this.zr.ac(g, i); } }); }; PolarBase.prototype.aby = function (a, b, c) { var d = this.by != 1; var e = this.cq != 1; var f = this.cp != 1; this.zr.a0(this.zr.b, a, b, false); this.zr.ab(this.ij); var g = this.zr.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.ab1(g); this.zr.z(this, h, i, j, c, d, e, f, a < 0); }; PolarBase.prototype.abx = function (a, b, c) { var d = this.by != 1; var e = this.cq != 1; var f = this.cp != 1; this.zr.a0(this.zr.d, a, b, true); this.zr.aa(this.ij); var g = this.zr.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.ab0(g); this.zr.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.ab1 = function (a) { if (this.assigningPolarStyle != null && this.z8) { this.assigningPolarStyle(this, a); } }; PolarBase.prototype.ab0 = function (a) { if (this.assigningPolarMarkerStyle != null && this.z7) { this.assigningPolarMarkerStyle(this, a); } }; PolarBase.prototype.abq = function (a, b, c, d, e) { e.dg(a, b, c, d); }; PolarBase.prototype.s0 = function () { _super.prototype.s0.call(this); if (this.index < 0) { return; } this.zj.dj(); }; PolarBase.prototype.sb = function (a, b) { _super.prototype.sb.call(this, a, b); if (!this.g7) { this.cw.be(b); return; } this.cw.be(b); if (this.d7(this.cv)) { return; } this.sc(); this.g7 = false; }; PolarBase.prototype.sc = function () { _super.prototype.sc.call(this); var a = this.cv; if (!this.gz) { this.zp = new PolarFrame(); this.abz(this.zp, a); } this.gz = false; this.ab3(this.zp, a); }; PolarBase.prototype.r8 = function (a, b, c, d, e) { _super.prototype.r8.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.zl == null) { this.zl = new PolarFrame(); } this.abz(this.zl, g); this.ab3(this.zl, g); }; PolarBase.prototype.ab2 = 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.y8 = function (a, b, c) { this.abu(); return this.zk.aa.toArray(); }; PolarBase.prototype.aan = 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.zj.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.acx = function (a) { return { $type: Point_$type, x: this.z5.item(a), y: this.z6.item(a) }; }; PolarBase.prototype.qe = function (a) { _super.prototype.qe.call(this, a); this.bc.exportTrendlineData(this, a, this.zj.dd.g$n); }; PolarBase.prototype.getDataLegendSeriesContextAt = function (a, b) { var c = { $type: Point_$type, x: a, y: b }; var d = this.kx(c); var e = d == null ? NaN : this.i5(d, "RadiusMemberPath"); var f = d == null ? NaN : this.i5(d, "AngleMemberPath"); var g = new DataLegendSeriesValueInfo(); g.l = e; g.a = 11; g.r = this.abn != null ? this.abn : "Radius"; g.q = "Radius"; g.s = this.abj != null ? this.abj : "R:"; g.t = this.abl != null ? this.abl : ""; var h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 10; h.r = this.aa5 != null ? this.aa5 : "Angle"; h.q = "Angle"; h.s = this.aa1 != null ? this.aa1 : "A:"; h.t = this.aa3 != null ? this.aa3 : ""; 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.mo(); return i; }; PolarBase.prototype.ak = function (a, b) { var c = new List$1(ChartSelection.$, 0); this.qj(a, c, b); return c.toArray(); }; PolarBase.prototype.qj = 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.y0(this.xe, this.getEffectiveViewport(), d); var h = new CollisionRect(0, this.dc.yx(a)); var i = this.zg.pz(e, d, f, g); var _loop_2 = function (j) { var k = this_2.zf.getScaledAngle(this_2.z5.item(j)); var l = this_2.zg.to(this_2.z6.item(j)); var m = this_2.zh.c(k, l, d, e, f, Math.cos); var n = this_2.zh.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.ab4 = 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:zf:ab5', [NumericAngleAxis.$, null], 'AngleMemberAsLegendLabel:aa1:ab6', [2, null], 'AngleMemberAsLegendUnit:aa3:ab7', [2, null], 'AngleMemberPath:aa5:ab8', [2], 'ClipSeriesToBounds:aab:ab9', [0, false], 'HighlightedAngleMemberPath:aa8:aca', [2, null], 'HighlightedRadiusMemberPath:aba:acb', [2, null], 'IsCustomPolarMarkerStyleAllowed:aad:acc', [0, false], 'IsCustomPolarStyleAllowed:aae:acd', [0, false], 'ItemSearchMode:zv:ace', [ScatterItemSearchMode_$type, enumGetBox(ScatterItemSearchMode_$type, 0)], 'ItemSearchThreshold:aau:acf', [1, 10000], 'MaximumMarkers:aav:acg', [1, 400], 'RadiusAxis:zg:ach', [NumericRadiusAxis.$, null], 'RadiusMemberAsLegendLabel:abj:aci', [2, null], 'RadiusMemberAsLegendUnit:abl:acj', [2, null], 'RadiusMemberPath:abn:ack', [2], 'UseCartesianInterpolation:aal:acs', [0, true], 'TrendLineType:zx:acq', [TrendLineType_$type, enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:aat:acp', [1, 1.5], 'TrendLinePeriod:aaw:aco', [1, 7], 'TrendLineZIndex:aax:acr', [1, 1], 'TrendLineBrush:acu:acl', [Brush.$, null], 'TrendLineDashArray:acv:acm', [DoubleCollection.$], 'TrendLineDashCap:acw:acn', [PenLineCa