UNPKG

igniteui-react-charts

Version:

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

948 lines (947 loc) 32.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 { Rect } from "igniteui-react-core"; import { ScalerParams } from "./ScalerParams"; import { Base, runOn, enumGetBox, Number_$type, typeCast, fromEnum, markType, markDep, PointUtil } from "igniteui-react-core"; import { Dictionary$2 } from "igniteui-react-core"; import { OwnedPoint } from "./OwnedPoint"; import { ShapeSeriesViewBase } from "./ShapeSeriesViewBase"; import { Marker } from "./Marker"; 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 { RectUtil } from "igniteui-react-core"; 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.aan = null; _this.aak = new ScalerParams(1, ScatterPolygonSeries.abt, ScatterPolygonSeries.abt, false); _this.aal = new ScalerParams(1, ScatterPolygonSeries.abt, ScatterPolygonSeries.abt, false); _this.aa9 = null; _this.aaf = 1; _this.aab = 1; _this.ab = ScatterPolygonSeries.$; return _this; } ScatterPolygonSeries.prototype.bk = function () { return new ScatterPolygonSeries(); }; ScatterPolygonSeries.prototype.get_fq = function () { return true; }; ScatterPolygonSeries.prototype.get_fl = function () { return true; }; ScatterPolygonSeries.prototype.yh = function () { return this.aap(); }; ScatterPolygonSeries.prototype.zp = function (a) { var _this = this; var b = a; b.c2(this.abv); b.c3(this.aao); _super.prototype.zp.call(this, a); if (this.d6(a)) { return; } var c, d; var e = a.getViewInfo(c, d); c = e.p0; d = e.p1; var f = this.getEffectiveViewport1(a); this.aak = new ScalerParams(1, d, c, this.xg.ch); this.aak.c = f; this.aal = new ScalerParams(1, d, c, this.xi.ch); this.aal.c = f; if (c.width < 1 || c.height < 1) { return; } this.aan = ((function () { var $ret = new ShapeAxisInfoCache(); $ret.a = _this.xg; $ret.b = _this.xi; $ret.e = _this.xg.ch; $ret.f = _this.xi.ch; $ret.d = _this.dp; $ret.c = _this.xy; return $ret; })()); if (this.aap()) { var g = new Dictionary$2(Base.$, OwnedPoint.$, 0); b.dk.l(g, 400, d, c, this.id); b.dk.j(g, false); if (this.yf()) { this.aa6(a); } } }; ScatterPolygonSeries.prototype.aa6 = function (a) { var _this = this; a.dp = true; this.xn.ay(this, this.yf(), runOn(this, this.w6)); var b = this.xn.d; var c = b != null; var d = this.getEffectiveViewport1(a); var e = this.dp == null ? 0 : this.dp.count; a.d0(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.zk(g, e, a.r); } _this.xn.ac(f, h); } }); }; ScatterPolygonSeries.prototype.aap = function () { return this.aa9 != null && ((this.aaj != 1 && this.aaj != 0) || this.aba != null); }; ScatterPolygonSeries.prototype.ct = function () { return new ScatterPolygonSeriesView(this); }; ScatterPolygonSeries.prototype.q1 = function (a) { _super.prototype.q1.call(this, a); this.aam = a; }; ScatterPolygonSeries.prototype.get_hasMarkers = function () { return true; }; ScatterPolygonSeries.prototype.get_em = function () { return this.aaj != 13 && this.aaj != 1; }; ScatterPolygonSeries.prototype.vn = function () { return this.abp; }; ScatterPolygonSeries.prototype.vo = function () { return this.abq; }; ScatterPolygonSeries.prototype.s1 = function () { return this.aa8; }; ScatterPolygonSeries.prototype.ma = function () { return this.mb(this, this.aa9); }; ScatterPolygonSeries.prototype.io = function () { return this.aar; }; Object.defineProperty(ScatterPolygonSeries.prototype, "aag", { get: function () { return this.aaf; }, set: function (a) { this.aaf = a; }, enumerable: false, configurable: true }); ScatterPolygonSeries.prototype.aai = function () { if (this.aah == 0) { return 1; } return this.aah; }; ScatterPolygonSeries.prototype.sn = function (a) { _super.prototype.sn.call(this, a); this.aah = a; }; Object.defineProperty(ScatterPolygonSeries.prototype, "aac", { get: function () { return this.aab; }, set: function (a) { this.aab = a; }, enumerable: false, configurable: true }); ScatterPolygonSeries.prototype.aae = function () { if (this.aad == 0) { return 2; } return this.aad; }; ScatterPolygonSeries.prototype.sm = function (a) { _super.prototype.sm.call(this, a); this.aad = a; }; ScatterPolygonSeries.prototype.so = function (a) { _super.prototype.so.call(this, a); this.aar = a; }; ScatterPolygonSeries.prototype.sj = function () { _super.prototype.sj.call(this); if (this.index < 0) { return; } if (this.aba != null) { this.aam.dz(); this.aam.dw(); } else { var a = MarkerSeries.xd(this, this.aaj); var b = MarkerSeries.xq(a); if (b == null) { this.aa8 = MarkerSeries.x5; } else { this.aam.dt(b); } } if (this.abr != null && this.aaj != 13) { this.sa("ActualMarkerBrush"); var c = this.abp; this.aam.dx(); this.aam.du(); var d = this.abp; var e = this.fh("ActualMarkerBrush", this.hv.f > 0 ? this.hv.d() : null, c, d); this.sc("ActualMarkerBrush", e); } else { if (this.aaj == 13) { this.abp = this.cw.bx(); } else { if (this.aac != 2) { if (this.dc != null) { var f = this.dc.vf(this.index); if (!isNaN_(this.ic) && this.ic != 1) { f = BrushUtil.q(f, this.ic); } this.abp = f; } else { this.abp = null; } } } } if (this.abs != null) { this.aam.dy(); this.aam.dv(); } else { if (this.aaj == 13) { this.abq = this.cw.bx(); } else { if (this.aah == 2) { this.abq = this.abp; } else { this.abq = this.dc == null ? null : this.dc.vg(this.index); } } } if (this.aac == 2 && this.abr == null && this.aaj != 13) { if (this.abq != null) { var g = this.abq; if (!isNaN_(this.ic) && this.ic != 1) { g = BrushUtil.q(g, this.ic); } this.abp = g; } else { this.abp = null; } } }; ScatterPolygonSeries.prototype.qs = function () { _super.prototype.qs.call(this); this.aag = this.aai(); this.aac = this.aae(); }; ScatterPolygonSeries.prototype.ra = function (a, b, c, d) { _super.prototype.ra.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.rg(b); this.q3(); break; case ScatterPolygonSeries.$$p[6]: this.aag = this.aai(); this.rg(null); this.q3(); break; case ScatterPolygonSeries.$$p[5]: this.aac = this.aae(); this.rg(null); this.q3(); break; case ScatterPolygonSeries.$$p[2]: this.aa9 = d; if (c == MarkerSeries.x5 || d == MarkerSeries.x5 || (c == null || d != null)) { this.aam.d1(); this.rs(false); } this.cw.bp(); if (this.toolTip != null && this.fi) { this.ba.a$as(this, this.toolTip); } this.rs(false); this.ql(); break; case ScatterPolygonSeries.$$p[12]: this.aam.c2(this.abv); this.rs(false); this.ql(); break; case ScatterPolygonSeries.$$p[13]: this.aam.c3(this.aao); this.rs(false); this.ql(); break; case ScatterPolygonSeries.$$p[4]: this.rs(false); this.ql(); break; case ScatterPolygonSeries.$$p[0]: case ScatterPolygonSeries.$$p[1]: if (this.aap()) { this.rs(false); } break; } }; ScatterPolygonSeries.prototype.a2 = function (a, b) { var c = this.aam.b8(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.aa7 = 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.ec = function (a, b, c, d, e) { var _this = this; if (!this.hasMarkers) { return false; } var f = this.xg; var g = new ScalerParams(1, this.dc.v5, this.wu, f.ch); g.c = this.getEffectiveViewport1(this.cw); var h = this.xi; var i = new ScalerParams(1, this.dc.v5, this.wu, h.ch); i.c = this.getEffectiveViewport1(this.cw); a.clear(); this.aam.d0(function (j) { if (j._visibility == 0) { var k = new SeriesPointOfInterest(); var l = j.n; var m = j.o; if (l < _this.wu.left || l > _this.wu.right || m < _this.wu.top || m > _this.wu.bottom) { return; } k.d = f.eo(l, g); k.e = h.eo(m, i); k.b = j.content; k.g = _this.vi; k.c = j.ak; if (_this.g9) { k.g = _this.vp(j.ak); } a.add(k); } }); return true; }; ScatterPolygonSeries.prototype.z9 = function (a, b, c, d, e) { var _this = this; if (c == null || c.length != this.aan.d.count) { c = new Array(this.aan.d.count); for (var f = 0; f < this.aan.d.count; f++) { c[f] = PointUtil.create(); } } var g = ((function () { var $ret = new ScalerParams(1, d, e, _this.xg.ch); $ret.c = _this.getEffectiveViewport1(a); return $ret; })()); var h = ((function () { var $ret = new ScalerParams(1, d, e, _this.xi.ch); $ret.c = _this.getEffectiveViewport1(a); return $ret; })()); var i = this.wl(a); var j = this.aan.a.eo(i.left, g); var k = this.aan.a.eo(i.right, g); var l = this.aan.b.eo(i.bottom, h); var m = this.aan.b.eo(i.top, h); if (this.aan.e) { var n = j; j = k; k = n; } if (this.aan.f) { var o = l; l = m; m = o; } var p = this.aan; 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.aan.d.count; y++) { s = 0; t = 0; var z = null; var aa = a.cg.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.aaq = 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.p4(a, c, b); return c.toArray(); }; ScatterPolygonSeries.prototype.p4 = function (a, b, c) { this.zh(a, b, c); }; ScatterPolygonSeries.$t = markType(ScatterPolygonSeries, 'ScatterPolygonSeries', ShapeSeriesBase.$); ScatterPolygonSeries.abt = new Rect(0, 0, 0, 1, 1); ScatterPolygonSeries.$$p = markDep(DependencyProperty, PropertyMetadata, ScatterPolygonSeries, 'raisePropertyChanged', ['ActualMarkerBrush:abp:abb', [Brush.$], 'ActualMarkerOutline:abq:abc', [Brush.$], 'ActualMarkerTemplate:aa8:abd', [DataTemplate.$, null], 'MarkerBrush:abr:abe', [Brush.$], 'MarkerCollisionAvoidance:aaa:abf', [CollisionAvoidanceType_$type, enumGetBox(CollisionAvoidanceType_$type, 0)], 'MarkerFillMode:aad:abg', [MarkerFillMode_$type, enumGetBox(MarkerFillMode_$type, 0)], 'MarkerOutlineMode:aah:abh', [MarkerOutlineMode_$type, enumGetBox(MarkerOutlineMode_$type, 0)], 'MarkerOutline:abs:abi', [Brush.$], 'MarkerStyle:abu:abj', [Style.$], 'MarkerTemplate:aba:abk', [DataTemplate.$, null], 'MarkerThickness:aar:abl', [1, DeviceUtils.g(2)], 'MarkerType:aaj:abm', [MarkerType_$type, enumGetBox(MarkerType_$type, 1)], 'ShapeStyle:abv:abn', [Style.$, null], 'ShapeStyleSelector:aao:abo', [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.dp = false; _this.df = null; _this.dr = null; _this.dl = null; _this.dj = null; _this.dn = false; _this.dm = null; _this.ds = null; _this.dg = new Marker(); _this.d8 = null; _this.dg = new Marker(); _this.dg.content = new DataContext(); _this.dl = a; _this.dm = new HashPool$2(Base.$, Marker.$); _this.ds = new List$1(Marker.$, 0); _this.d2(_this.dm); _this.dj = new NumericMarkerManager(1, function (b) { return _this.dm.item(b); }, function (b) { return _this.dl.aan.d.item(b); }, runOn(_this, _this.d6), runOn(_this, _this.de), runOn(_this, _this.dq), function () { return _this.dl.aaa; }); _this.dj.q = runOn(_this, _this.d9); return _this; } ScatterPolygonSeriesView.prototype.ax = function () { _super.prototype.ax.call(this); if (!this.r) { this.dl.abs = Defaults.am; this.dl.jp = Defaults.z; this.dl.aar = Defaults.y; this.dl.aaj = Defaults.f; this.dl.aad = Defaults.b; } }; Object.defineProperty(ScatterPolygonSeriesView.prototype, "dk", { get: function () { return this.dj; }, enumerable: false, configurable: true }); ScatterPolygonSeriesView.prototype.d6 = function (a) { this.dl.aa7(a, this.dm); }; ScatterPolygonSeriesView.prototype.de = function () { this.df = this.dl.z9(this, this.dm, this.df, this.b2, this.b1); return this.df; }; ScatterPolygonSeriesView.prototype.dq = function () { this.dr = this.dl.aaq(this.dm, this.dr); return this.dr; }; ScatterPolygonSeriesView.prototype.c9 = function (a, b) { return this.da(a, b, true); }; ScatterPolygonSeriesView.prototype.cq = function (a, b, c) { _super.prototype.cq.call(this, a, b, c); ShapeSeriesViewBase.cp(this, a, b); }; ScatterPolygonSeriesView.prototype.co = function (a, b) { var c = a; if (c == null) { return; } c.an = b; }; ScatterPolygonSeriesView.prototype.d0 = function (a) { this.dm.f(a); }; ScatterPolygonSeriesView.prototype.d2 = function (a) { a.create = runOn(this, this.di); a.destroy = runOn(this, this.d4); a.activate = runOn(this, this.d3); a.disactivate = runOn(this, this.d5); }; ScatterPolygonSeriesView.prototype.di = function () { var _this = this; var a = new Marker(); if (!this.dn) { a.content = ((function () { var $ret = new DataContext(); $ret.series = _this.f; return $ret; })()); } a.ah = this.f.aa8; this.ds.add(a); return a; }; ScatterPolygonSeriesView.prototype.b8 = function (a) { var b = this.dh(a, 0); if (b == null) { b = this.dh(a, 3); } return b; }; ScatterPolygonSeriesView.prototype.dh = function (a, b) { var c; var d; var e; var f; for (var g = this.ds.count - 1; g >= 0; g--) { var h = this.ds._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.d4 = function (a) { a.content = null; this.ds.remove(a); }; ScatterPolygonSeriesView.prototype.d3 = function (a) { a._visibility = 0; }; ScatterPolygonSeriesView.prototype.d5 = function (a) { if (a.content != null) { (typeCast(DataContext.$, a.content)).item = null; } a._visibility = 1; }; ScatterPolygonSeriesView.prototype.d7 = function (a) { this.dn = a; }; ScatterPolygonSeriesView.prototype.bn = function (a, b) { _super.prototype.bn.call(this, a, b); if (!this.dp) { var c = a; var d = c.content; if (d != null) { if (this.dl.abp != null) { d.actualItemBrush = this.dl.abp; } else { d.actualItemBrush = this.ca.vb; } if (this.dl.abp != null) { d.outline = this.dl.abq; } else { d.outline = this.ca.vf; } d.thickness = this.dl.aar; } } }; ScatterPolygonSeriesView.prototype.bo = function (a, b) { _super.prototype.bo.call(this, a, b); var c = a; this.dg._visibility = c._visibility; this.dg.ah = c.ah; this.dg.width = c.width; this.dg.height = c.height; this.dg.m = c.m; this.dg.l = c.l; this.dg.n = c.n; this.dg.o = c.o; var d = this.bw(b); var e = this.dg.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.dl.aar + 3; } }; ScatterPolygonSeriesView.prototype.bb = function (a, b) { _super.prototype.bb.call(this, a, b); var c = new DataTemplatePassInfo(); c.isHitTestRender = b; c.context = a.h(); c.viewportTop = this.b1.top; c.viewportLeft = this.b1.left; c.viewportWidth = this.b1.width; c.viewportHeight = this.b1.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.dl.aa8 != null && this.dl.aa8.passStarting != null) { this.dl.aa8.passStarting(c); } for (var j = 0; j < this.ds.count; j++) { var k = this.ds._inner[j]; if (k._visibility == 1) { continue; } this.bm(k, j, b); if (b) { k = this.dg; } 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.dl.aa8 != null && this.dl.aa8.passCompleted != null) { this.dl.aa8.passCompleted(c); } }; ScatterPolygonSeriesView.prototype.dz = function () { this.dl.aa8 = null; }; ScatterPolygonSeriesView.prototype.dw = function () { this.dl.aa8 = null; this.dl.aa8 = this.dl.aba; }; ScatterPolygonSeriesView.prototype.dx = function () { this.dl.abp = null; }; ScatterPolygonSeriesView.prototype.du = function () { this.dl.abp = null; if (!isNaN_(this.f.ic) && this.f.ic != 1) { var a = BrushUtil.q(this.dl.abr, this.f.ic); this.dl.abp = a; } else { this.dl.abp = this.dl.abr; } }; ScatterPolygonSeriesView.prototype.dy = function () { this.dl.abq = null; }; ScatterPolygonSeriesView.prototype.dv = function () { this.dl.abq = null; this.dl.abq = this.dl.abs; }; ScatterPolygonSeriesView.prototype.dt = function (a) { switch (a) { case "CircleMarkerTemplate": this.dl.aa8 = this.dl.dc.r2; break; case "TriangleMarkerTemplate": this.dl.aa8 = this.dl.dc.sb; break; case "PyramidMarkerTemplate": this.dl.aa8 = this.dl.dc.r8; break; case "SquareMarkerTemplate": this.dl.aa8 = this.dl.dc.r9; break; case "DiamondMarkerTemplate": this.dl.aa8 = this.dl.dc.r3; break; case "PentagonMarkerTemplate": this.dl.aa8 = this.dl.dc.r6; break; case "HexagonMarkerTemplate": this.dl.aa8 = this.dl.dc.r4; break; case "TetragramMarkerTemplate": this.dl.aa8 = this.dl.dc.r6; break; case "PentagramMarkerTemplate": this.dl.aa8 = this.dl.dc.r7; break; case "HexagramMarkerTemplate": this.dl.aa8 = this.dl.dc.r5; break; } }; ScatterPolygonSeriesView.prototype.d1 = function () { var e_4, _a; try { for (var _b = __values(fromEnum(this.ds)), _c = _b.next(); !_c.done; _c = _b.next()) { var a = _c.value; a.ah = this.dl.aa8; } } 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.av(); }; ScatterPolygonSeriesView.prototype.d9 = function (a) { if (this.d8 == null) { this.d8 = new DataTemplateMeasureInfo(); this.d8.context = this.l.h(); } this.d8.width = a.width; this.d8.height = a.height; this.d8.data = a.content; var b = a.ah; if (b.measure != null) { b.measure(this.d8); } return new Size(1, this.d8.width, this.d8.height); }; ScatterPolygonSeriesView.prototype.aq = function (a) { var e_5, _a; var b = a; _super.prototype.aq.call(this, b); try { for (var _b = __values(fromEnum(this.dm.c)), _c = _b.next(); !_c.done; _c = _b.next()) { var c = _c.value; var d = this.dm.item(c); if (d._visibility != 1) { var e = typeCast(ScatterPolygonSeries.$, this.f); var f = this.f.bc.getMarkerVisualData(e, d, e.aa8); 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$u(this.f); if (!stringIsNullOrEmpty(b)) { a += " style='color:" + b + "'"; } a += ">" + this.dl.title + "</span><br/>"; a += "</div>"; return a; }; ScatterPolygonSeriesView.$t = markType(ScatterPolygonSeriesView, 'ScatterPolygonSeriesView', ShapeSeriesViewBase.$); return ScatterPolygonSeriesView; }(ShapeSeriesViewBase)); export { ScatterPolygonSeriesView };