UNPKG

igniteui-react-charts

Version:

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

987 lines (986 loc) 33.1 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __extends, __values } from "tslib"; import { ShapeSeriesBase } from "./ShapeSeriesBase"; import { ShapeAxisInfoCache } from "./ShapeAxisInfoCache"; import { StyleSelector } from "./StyleSelector"; import { DependencyProperty } from "igniteui-react-core"; import { Style } from "igniteui-react-core"; import { MarkerType_$type } from "./MarkerType"; import { DataTemplate } from "igniteui-react-core"; import { Brush } from "igniteui-react-core"; import { CollisionAvoidanceType_$type } from "./CollisionAvoidanceType"; import { MarkerOutlineMode_$type } from "./MarkerOutlineMode"; import { MarkerFillMode_$type } from "./MarkerFillMode"; import { Base, runOn, enumGetBox, Number_$type, typeCast, fromEnum, markType, markDep, PointUtil } from "igniteui-react-core"; import { Rect } from "igniteui-react-core"; import { RectUtil } from "igniteui-react-core"; import { Marker } from "./Marker"; import { ShapeSeriesViewBase } from "./ShapeSeriesViewBase"; import { ScalerParams } from "./ScalerParams"; import { Dictionary$2 } from "igniteui-react-core"; import { OwnedPoint } from "./OwnedPoint"; import { MarkerSeries } from "./MarkerSeries"; import { BrushUtil } from "igniteui-react-core"; import { DataContext } from "igniteui-react-core"; import { HashPool$2 } from "igniteui-react-core"; import { List$1 } from "igniteui-react-core"; import { SeriesPointOfInterest } from "./SeriesPointOfInterest"; import { ChartSelection } from "./ChartSelection"; import { PropertyMetadata } from "igniteui-react-core"; import { DeviceUtils } from "igniteui-react-core"; import { isNaN_, isInfinity } from "igniteui-react-core"; import { NumericMarkerManager } from "./NumericMarkerManager"; import { DataTemplateMeasureInfo } from "igniteui-react-core"; import { Size } from "igniteui-react-core"; import { Defaults } from "./Defaults"; import { DataTemplatePassInfo } from "igniteui-react-core"; import { DataTemplateRenderInfo } from "igniteui-react-core"; import { MarkerVisualData } from "./MarkerVisualData"; import { stringIsNullOrEmpty } from "igniteui-react-core"; /** * @hidden */ var ScatterPolygonSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(ScatterPolygonSeries, _super); function ScatterPolygonSeries() { var _this = _super.call(this) || this; _this.aa6 = null; _this.aa3 = new ScalerParams(1, ScatterPolygonSeries.acd, ScatterPolygonSeries.acd, false); _this.aa4 = new ScalerParams(1, ScatterPolygonSeries.acd, ScatterPolygonSeries.acd, false); _this.abt = null; _this.aay = 1; _this.aau = 1; _this.ab = ScatterPolygonSeries.$; return _this; } ScatterPolygonSeries.prototype.bk = function () { return new ScatterPolygonSeries(); }; ScatterPolygonSeries.prototype.get_ft = function () { return true; }; ScatterPolygonSeries.prototype.get_fo = function () { return true; }; ScatterPolygonSeries.prototype.aa9 = function (a, b) { if (this.hasMarkers && this.aa8()) { var c = this.xb(a); if (c.isEmpty) { return false; } var d = RectUtil.r(c, this.i1(b)); if (d.containsPoint(a)) { return true; } } return false; }; ScatterPolygonSeries.prototype.g2 = function (a, b) { if (this.aa9(a, b)) { return true; } if (this.g5(a, b)) { return true; } return false; }; ScatterPolygonSeries.prototype.xa = function (a) { if (!this.hasMarkers || !this.aa8()) { return Rect.empty; } var b = this.aa5.ch(this.wr(a)); if (b != null) { return this.aa5.ei(b); } return Rect.empty; }; ScatterPolygonSeries.prototype.y0 = function () { return this.aa8(); }; ScatterPolygonSeries.prototype.z8 = function (a) { var _this = this; var b = a; b.db(this.acf); b.dc(this.aa7); _super.prototype.z8.call(this, a); if (this.d7(a)) { return; } var c, d; var e = a.getViewInfo(c, d); c = e.p0; d = e.p1; var f = this.getEffectiveViewport1(a); this.aa3 = new ScalerParams(1, d, c, this.xz.dn); this.aa3.c = f; this.aa4 = new ScalerParams(1, d, c, this.x1.dn); this.aa4.c = f; if (c.width < 1 || c.height < 1) { return; } this.aa6 = ((function () { var $ret = new ShapeAxisInfoCache(); $ret.a = _this.xz; $ret.b = _this.x1; $ret.e = _this.xz.dn; $ret.f = _this.x1.dn; $ret.d = _this.dp; $ret.c = _this.yh; return $ret; })()); if (this.aa8()) { var g = new Dictionary$2(Base.$, OwnedPoint.$, 0); b.du.l(g, 400, d, c, this.ik); b.du.j(g, false); if (this.yy()) { this.abq(a); } } }; ScatterPolygonSeries.prototype.abq = function (a) { var _this = this; a.dy = true; this.x6.ay(this, this.yy(), runOn(this, this.xp)); var b = this.x6.d; var c = b != null; var d = this.getEffectiveViewport1(a); var e = this.dp == null ? 0 : this.dp.count; a.d9(function (f) { if (f._visibility == 0) { var g = f.ak; var h = f.content; if (h == null) { h = new DataContext(); f.content = h; } if (c) { _this.z3(g, e, a.t); } _this.x6.ac(f, h); } }); }; ScatterPolygonSeries.prototype.aa8 = function () { return this.abt != null && ((this.aa2 != 1 && this.aa2 != 0) || this.abu != null); }; ScatterPolygonSeries.prototype.ct = function () { return new ScatterPolygonSeriesView(this); }; ScatterPolygonSeries.prototype.rh = function (a) { _super.prototype.rh.call(this, a); this.aa5 = a; }; ScatterPolygonSeries.prototype.get_hasMarkers = function () { return true; }; ScatterPolygonSeries.prototype.get_en = function () { return this.aa2 != 13 && this.aa2 != 1; }; ScatterPolygonSeries.prototype.v5 = function () { return this.ab9; }; ScatterPolygonSeries.prototype.v6 = function () { return this.aca; }; ScatterPolygonSeries.prototype.th = function () { return this.abs; }; ScatterPolygonSeries.prototype.ml = function () { return this.mm(this, this.abt); }; ScatterPolygonSeries.prototype.iu = function () { return this.abb; }; Object.defineProperty(ScatterPolygonSeries.prototype, "aaz", { get: function () { return this.aay; }, set: function (a) { this.aay = a; }, enumerable: false, configurable: true }); ScatterPolygonSeries.prototype.aa1 = function () { if (this.aa0 == 0) { return 1; } return this.aa0; }; ScatterPolygonSeries.prototype.s3 = function (a) { _super.prototype.s3.call(this, a); this.aa0 = a; }; Object.defineProperty(ScatterPolygonSeries.prototype, "aav", { get: function () { return this.aau; }, set: function (a) { this.aau = a; }, enumerable: false, configurable: true }); ScatterPolygonSeries.prototype.aax = function () { if (this.aaw == 0) { return 2; } return this.aaw; }; ScatterPolygonSeries.prototype.s2 = function (a) { _super.prototype.s2.call(this, a); this.aaw = a; }; ScatterPolygonSeries.prototype.s4 = function (a) { _super.prototype.s4.call(this, a); this.abb = a; }; ScatterPolygonSeries.prototype.sz = function () { _super.prototype.sz.call(this); if (this.index < 0) { return; } if (this.abu != null) { this.aa5.d8(); this.aa5.d5(); } else { var a = MarkerSeries.xw(this, this.aa2); var b = MarkerSeries.x9(a); if (b == null) { this.abs = MarkerSeries.yo; } else { this.aa5.d2(b); } } if (this.acb != null && this.aa2 != 13) { this.sq("ActualMarkerBrush"); var c = this.ab9; this.aa5.d6(); this.aa5.d3(); var d = this.ab9; var e = this.fk("ActualMarkerBrush", this.h1.f > 0 ? this.h1.d() : null, c, d); this.ss("ActualMarkerBrush", e); } else { if (this.aa2 == 13) { this.ab9 = this.cw.b5(); } else { if (this.aav != 2) { if (this.dc != null) { var f = this.dc.x1(this.index); if (!isNaN_(this.ij) && this.ij != 1) { f = BrushUtil.s(f, this.ij); } this.ab9 = f; } else { this.ab9 = null; } } } } if (this.acc != null) { this.aa5.d7(); this.aa5.d4(); } else { if (this.aa2 == 13) { this.aca = this.cw.b5(); } else { if (this.aa0 == 2) { this.aca = this.ab9; } else { this.aca = this.dc == null ? null : this.dc.x2(this.index); } } } if (this.aav == 2 && this.acb == null && this.aa2 != 13) { if (this.aca != null) { var g = this.aca; if (!isNaN_(this.ij) && this.ij != 1) { g = BrushUtil.s(g, this.ij); } this.ab9 = g; } else { this.ab9 = null; } } }; ScatterPolygonSeries.prototype.q8 = function () { _super.prototype.q8.call(this); this.aaz = this.aa1(); this.aav = this.aax(); }; ScatterPolygonSeries.prototype.rq = function (a, b, c, d) { _super.prototype.rq.call(this, a, b, c, d); switch (b) { case ScatterPolygonSeries.$$p[3]: case ScatterPolygonSeries.$$p[11]: case ScatterPolygonSeries.$$p[7]: case ScatterPolygonSeries.$$p[9]: case ScatterPolygonSeries.$$p[10]: this.rw(b); this.rj(); break; case ScatterPolygonSeries.$$p[6]: this.aaz = this.aa1(); this.rw(null); this.rj(); break; case ScatterPolygonSeries.$$p[5]: this.aav = this.aax(); this.rw(null); this.rj(); break; case ScatterPolygonSeries.$$p[2]: this.abt = d; if (c == MarkerSeries.yo || d == MarkerSeries.yo || (c == null || d != null)) { this.aa5.ea(); this.r8(false); } this.cw.bx(); if (this.toolTip != null && this.fl) { this.ba.a$at(this, this.toolTip); } this.r8(false); this.q0(); break; case ScatterPolygonSeries.$$p[12]: this.aa5.db(this.acf); this.r8(false); this.q0(); break; case ScatterPolygonSeries.$$p[13]: this.aa5.dc(this.aa7); this.r8(false); this.q0(); break; case ScatterPolygonSeries.$$p[4]: this.r8(false); this.q0(); break; case ScatterPolygonSeries.$$p[0]: case ScatterPolygonSeries.$$p[1]: if (this.aa8()) { this.r8(false); } break; } }; ScatterPolygonSeries.prototype.a2 = function (a, b) { var c = this.aa5.ch(a); var d = null; if (c != null) { d = c.content; } if (d != null) { return d; } return _super.prototype.a2.call(this, a, b); }; ScatterPolygonSeries.prototype.abr = function (a, b) { var e_1, _a, e_2, _b; var c = new List$1(Base.$, 0); try { for (var _c = __values(fromEnum(b.c)), _d = _c.next(); !_d.done; _d = _c.next()) { var d = _d.value; if (!a.containsKey(d)) { c.add1(d); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } try { for (var _e = __values(fromEnum(c)), _f = _e.next(); !_f.done; _f = _e.next()) { var e = _f.value; b.h(e); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } }; ScatterPolygonSeries.prototype.ed = function (a, b, c, d, e) { var _this = this; if (!this.hasMarkers) { return false; } var f = this.xz; var g = new ScalerParams(1, this.dc.yr, this.xd, f.dn); g.c = this.getEffectiveViewport1(this.cw); var h = this.x1; var i = new ScalerParams(1, this.dc.yr, this.xd, h.dn); i.c = this.getEffectiveViewport1(this.cw); a.clear(); this.aa5.d9(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; } k.d = f.f9(l, g); k.e = h.f9(m, i); 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; }; ScatterPolygonSeries.prototype.aas = function (a, b, c, d, e) { var _this = this; if (c == null || c.length != this.aa6.d.count) { c = new Array(this.aa6.d.count); for (var f = 0; f < this.aa6.d.count; f++) { c[f] = PointUtil.create(); } } var g = ((function () { var $ret = new ScalerParams(1, d, e, _this.xz.dn); $ret.c = _this.getEffectiveViewport1(a); return $ret; })()); var h = ((function () { var $ret = new ScalerParams(1, d, e, _this.x1.dn); $ret.c = _this.getEffectiveViewport1(a); return $ret; })()); var i = this.w4(a); var j = this.aa6.a.f9(i.left, g); var k = this.aa6.a.f9(i.right, g); var l = this.aa6.b.f9(i.bottom, h); var m = this.aa6.b.f9(i.top, h); if (this.aa6.e) { var n = j; j = k; k = n; } if (this.aa6.f) { var o = l; l = m; m = o; } var p = this.aa6; var q = p.a; var r = p.b; var s; var t; var u = g.d.left; var v = g.d.right; var w = h.d.top; var x = h.d.bottom; for (var y = 0; y < this.aa6.d.count; y++) { s = 0; t = 0; var z = null; var aa = a.cp.tryGetValue(y, z); z = aa.p1; if (z == null) { c[y].x = NaN; c[y].y = NaN; } else { var ab = z.c; var ac = RectUtil.l(ab); s = ac.x; t = ac.y; if (s >= u && s <= v && t >= w && t <= x) { c[y].x = s; c[y].y = t; } else { c[y].x = NaN; c[y].y = NaN; } } } return c; }; ScatterPolygonSeries.prototype.aba = function (a, b) { var e_3, _a; if (b == null) { b = new List$1(Number_$type, 2, a.e); } else { b.clear(); } var c = 0; var d = this.dp; try { for (var _b = __values(fromEnum(a.c)), _c = _b.next(); !_c.done; _c = _b.next()) { var e = _c.value; b.add(d.indexOf(e)); c++; } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } return b; }; ScatterPolygonSeries.prototype.ak = function (a, b) { var c = new List$1(ChartSelection.$, 0); this.qi(a, c, b); return c.toArray(); }; ScatterPolygonSeries.prototype.qi = function (a, b, c) { this.z0(a, b, c); }; ScatterPolygonSeries.$t = markType(ScatterPolygonSeries, 'ScatterPolygonSeries', ShapeSeriesBase.$); ScatterPolygonSeries.acd = new Rect(0, 0, 0, 1, 1); ScatterPolygonSeries.$$p = markDep(DependencyProperty, PropertyMetadata, ScatterPolygonSeries, 'raisePropertyChanged', ['ActualMarkerBrush:ab9:abv', [Brush.$], 'ActualMarkerOutline:aca:abw', [Brush.$], 'ActualMarkerTemplate:abs:abx', [DataTemplate.$, null], 'MarkerBrush:acb:aby', [Brush.$], 'MarkerCollisionAvoidance:aat:abz', [CollisionAvoidanceType_$type, enumGetBox(CollisionAvoidanceType_$type, 0)], 'MarkerFillMode:aaw:ab0', [MarkerFillMode_$type, enumGetBox(MarkerFillMode_$type, 0)], 'MarkerOutlineMode:aa0:ab1', [MarkerOutlineMode_$type, enumGetBox(MarkerOutlineMode_$type, 0)], 'MarkerOutline:acc:ab2', [Brush.$], 'MarkerStyle:ace:ab3', [Style.$], 'MarkerTemplate:abu:ab4', [DataTemplate.$, null], 'MarkerThickness:abb:ab5', [1, DeviceUtils.g(2)], 'MarkerType:aa2:ab6', [MarkerType_$type, enumGetBox(MarkerType_$type, 1)], 'ShapeStyle:acf:ab7', [Style.$, null], 'ShapeStyleSelector:aa7:ab8', [StyleSelector.$, null]]); return ScatterPolygonSeries; }(ShapeSeriesBase)); export { ScatterPolygonSeries }; /** * @hidden */ var ScatterPolygonSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(ScatterPolygonSeriesView, _super); function ScatterPolygonSeriesView(a) { var _this = _super.call(this, a) || this; _this.dy = false; _this.dp = null; _this.d0 = null; _this.dv = null; _this.dt = null; _this.dx = false; _this.dw = null; _this.d1 = null; _this.dq = new Marker(); _this.eh = null; _this.dq = new Marker(); _this.dq.content = new DataContext(); _this.dv = a; _this.dw = new HashPool$2(Base.$, Marker.$); _this.d1 = new List$1(Marker.$, 0); _this.eb(_this.dw); _this.dt = new NumericMarkerManager(1, function (b) { return _this.dw.item(b); }, function (b) { return _this.dv.aa6.d.item(b); }, runOn(_this, _this.ef), runOn(_this, _this.dn), runOn(_this, _this.dz), function () { return _this.dv.aat; }); _this.dt.q = runOn(_this, _this.ej); return _this; } ScatterPolygonSeriesView.prototype.a4 = function () { _super.prototype.a4.call(this); if (!this.t) { this.dv.acc = Defaults.bb; this.dv.jy = Defaults.am; this.dv.abb = Defaults.al; this.dv.aa2 = Defaults.f; this.dv.aaw = Defaults.b; } }; Object.defineProperty(ScatterPolygonSeriesView.prototype, "du", { get: function () { return this.dt; }, enumerable: false, configurable: true }); ScatterPolygonSeriesView.prototype.ei = function (a) { var b = a.n; var c = a.o; var d = a.m; var e = a.l; return new Rect(0, b - d / 2, c - d / 2, d, e); }; ScatterPolygonSeriesView.prototype.ef = function (a) { this.dv.abr(a, this.dw); }; ScatterPolygonSeriesView.prototype.dn = function () { this.dp = this.dv.aas(this, this.dw, this.dp, this.ca, this.b9); return this.dp; }; ScatterPolygonSeriesView.prototype.dz = function () { this.d0 = this.dv.aba(this.dw, this.d0); return this.d0; }; ScatterPolygonSeriesView.prototype.di = function (a, b) { return this.dj(a, b, true); }; ScatterPolygonSeriesView.prototype.cz = function (a, b, c) { _super.prototype.cz.call(this, a, b, c); ShapeSeriesViewBase.cy(this, a, b); }; ScatterPolygonSeriesView.prototype.cx = function (a, b) { var c = a; if (c == null) { return; } c.an = b; }; ScatterPolygonSeriesView.prototype.d9 = function (a) { this.dw.f(a); }; ScatterPolygonSeriesView.prototype.eb = function (a) { a.create = runOn(this, this.ds); a.destroy = runOn(this, this.ed); a.activate = runOn(this, this.ec); a.disactivate = runOn(this, this.ee); }; ScatterPolygonSeriesView.prototype.ds = function () { var _this = this; var a = new Marker(); if (!this.dx) { a.content = ((function () { var $ret = new DataContext(); $ret.series = _this.f; return $ret; })()); } a.ah = this.f.abs; this.d1.add(a); return a; }; ScatterPolygonSeriesView.prototype.ch = function (a) { var b = this.dr(a, 0); if (b == null) { b = this.dr(a, 3); } return b; }; ScatterPolygonSeriesView.prototype.dr = function (a, b) { var c; var d; var e; var f; for (var g = this.d1.count - 1; g >= 0; g--) { var h = this.d1._inner[g]; if (h._visibility == 1 || h._opacity == 0) { continue; } c = (h.m / 2) + b; d = (h.l / 2) + b; e = h.ai; f = h.aj; if ((h.n + e) - c <= a.x && (h.n + e) + c >= a.x && (h.o + f) - d <= a.y && (h.o + f) + d >= a.y) { return h; } } return null; }; ScatterPolygonSeriesView.prototype.ed = function (a) { a.content = null; this.d1.remove(a); }; ScatterPolygonSeriesView.prototype.ec = function (a) { a._visibility = 0; }; ScatterPolygonSeriesView.prototype.ee = function (a) { if (a.content != null) { (typeCast(DataContext.$, a.content)).item = null; } a._visibility = 1; }; ScatterPolygonSeriesView.prototype.eg = function (a) { this.dx = a; }; ScatterPolygonSeriesView.prototype.bv = function (a, b) { _super.prototype.bv.call(this, a, b); if (!this.dy) { var c = a; var d = c.content; if (d != null) { if (this.dv.ab9 != null) { d.actualItemBrush = this.dv.ab9; } else { d.actualItemBrush = this.cj.vt; } if (this.dv.ab9 != null) { d.outline = this.dv.aca; } else { d.outline = this.cj.vx; } d.thickness = this.dv.abb; } } }; ScatterPolygonSeriesView.prototype.bw = function (a, b) { _super.prototype.bw.call(this, a, b); var c = a; this.dq._visibility = c._visibility; this.dq.ah = c.ah; this.dq.width = c.width; this.dq.height = c.height; this.dq.m = c.m; this.dq.l = c.l; this.dq.n = c.n; this.dq.o = c.o; var d = this.b4(b); var e = this.dq.content; var f = c.content; e.item = f.item; e.series = f.series; e.thickness = f.thickness; if (e != null) { e.actualItemBrush = d; e.outline = d; e.thickness = this.dv.abb + 3; } }; ScatterPolygonSeriesView.prototype.bi = function (a, b) { _super.prototype.bi.call(this, a, b); var c = new DataTemplatePassInfo(); c.isHitTestRender = b; c.context = a.h(); c.viewportTop = this.b9.top; c.viewportLeft = this.b9.left; c.viewportWidth = this.b9.width; c.viewportHeight = this.b9.height; c.passID = "Markers"; var d = new DataTemplateRenderInfo(); d.passInfo = c; d.isHitTestRender = b; var e = new DataTemplateMeasureInfo(); e.passInfo = c; var f = false; var g = a.h(); e.context = g; d.context = g; var h = 0; var i = 0; if (this.dv.abs != null && this.dv.abs.passStarting != null) { this.dv.abs.passStarting(c); } for (var j = 0; j < this.d1.count; j++) { var k = this.d1._inner[j]; if (k._visibility == 1) { continue; } this.bu(k, j, b); if (b) { k = this.dq; } if (!f) { e.width = k.width; e.height = k.height; e.renderOffsetX = 0; e.renderOffsetY = 0; e.renderContext = a; var l = k.ah; if (l.measure != null) { e.data = k.content; l.measure(e); f = e.isConstant; if (f) { h = e.width; i = e.height; } } d.availableWidth = e.width; d.availableHeight = e.height; d.renderOffsetX = e.renderOffsetX; d.renderOffsetY = e.renderOffsetY; d.renderContext = a; } else { d.availableWidth = h; d.availableHeight = i; } if (!isNaN_(k.width) && !isInfinity(k.width)) { d.availableWidth = k.width; } if (!isNaN_(k.height) && !isInfinity(k.height)) { d.availableHeight = k.height; } a.q(d, k); k.m = d.availableWidth; k.l = d.availableHeight; k.ai = d.renderOffsetX; k.aj = d.renderOffsetY; } if (this.dv.abs != null && this.dv.abs.passCompleted != null) { this.dv.abs.passCompleted(c); } }; ScatterPolygonSeriesView.prototype.d8 = function () { this.dv.abs = null; }; ScatterPolygonSeriesView.prototype.d5 = function () { this.dv.abs = null; this.dv.abs = this.dv.abu; }; ScatterPolygonSeriesView.prototype.d6 = function () { this.dv.ab9 = null; }; ScatterPolygonSeriesView.prototype.d3 = function () { this.dv.ab9 = null; if (!isNaN_(this.f.ij) && this.f.ij != 1) { var a = BrushUtil.s(this.dv.acb, this.f.ij); this.dv.ab9 = a; } else { this.dv.ab9 = this.dv.acb; } }; ScatterPolygonSeriesView.prototype.d7 = function () { this.dv.aca = null; }; ScatterPolygonSeriesView.prototype.d4 = function () { this.dv.aca = null; this.dv.aca = this.dv.acc; }; ScatterPolygonSeriesView.prototype.d2 = function (a) { switch (a) { case "CircleMarkerTemplate": this.dv.abs = this.dv.dc.uh; break; case "TriangleMarkerTemplate": this.dv.abs = this.dv.dc.uq; break; case "PyramidMarkerTemplate": this.dv.abs = this.dv.dc.un; break; case "SquareMarkerTemplate": this.dv.abs = this.dv.dc.uo; break; case "DiamondMarkerTemplate": this.dv.abs = this.dv.dc.ui; break; case "PentagonMarkerTemplate": this.dv.abs = this.dv.dc.ul; break; case "HexagonMarkerTemplate": this.dv.abs = this.dv.dc.uj; break; case "TetragramMarkerTemplate": this.dv.abs = this.dv.dc.ul; break; case "PentagramMarkerTemplate": this.dv.abs = this.dv.dc.um; break; case "HexagramMarkerTemplate": this.dv.abs = this.dv.dc.uk; break; } }; ScatterPolygonSeriesView.prototype.ea = function () { var e_4, _a; try { for (var _b = __values(fromEnum(this.d1)), _c = _b.next(); !_c.done; _c = _b.next()) { var a = _c.value; a.ah = this.dv.abs; } } 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; } } this.a2(); }; ScatterPolygonSeriesView.prototype.ej = function (a) { if (this.eh == null) { this.eh = new DataTemplateMeasureInfo(); this.eh.context = this.m.h(); } this.eh.width = a.width; this.eh.height = a.height; this.eh.data = a.content; var b = a.ah; if (b.measure != null) { b.measure(this.eh); } return new Size(1, this.eh.width, this.eh.height); }; ScatterPolygonSeriesView.prototype.ax = function (a) { var e_5, _a; var b = a; _super.prototype.ax.call(this, b); try { for (var _b = __values(fromEnum(this.dw.c)), _c = _b.next(); !_c.done; _c = _b.next()) { var c = _c.value; var d = this.dw.item(c); if (d._visibility != 1) { var e = typeCast(ScatterPolygonSeries.$, this.f); var f = this.f.bc.getMarkerVisualData(e, d, e.abs); b.markerShapes.add(typeCast(MarkerVisualData.$, f)); } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } }; ScatterPolygonSeriesView.prototype.getDefaultTooltipTemplate = function () { var a = "<div class='ui-chart-default-tooltip-content'><span"; var b = this.f.ba.a$v(this.f); if (!stringIsNullOrEmpty(b)) { a += " style='color:" + b + "'"; } a += ">" + this.dv.title + "</span><br/>"; a += "</div>"; return a; }; ScatterPolygonSeriesView.$t = markType(ScatterPolygonSeriesView, 'ScatterPolygonSeriesView', ShapeSeriesViewBase.$); return ScatterPolygonSeriesView; }(ShapeSeriesViewBase)); export { ScatterPolygonSeriesView };