igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
948 lines (947 loc) • 32.1 kB
JavaScript
/*
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.aaq = null;
_this.aan = new ScalerParams(1, ScatterPolygonSeries.abw, ScatterPolygonSeries.abw, false);
_this.aao = new ScalerParams(1, ScatterPolygonSeries.abw, ScatterPolygonSeries.abw, false);
_this.abc = null;
_this.aai = 1;
_this.aae = 1;
_this.ab = ScatterPolygonSeries.$;
return _this;
}
ScatterPolygonSeries.prototype.bk = function () {
return new ScatterPolygonSeries();
};
ScatterPolygonSeries.prototype.get_fr = function () {
return true;
};
ScatterPolygonSeries.prototype.get_fm = function () {
return true;
};
ScatterPolygonSeries.prototype.yk = function () {
return this.aas();
};
ScatterPolygonSeries.prototype.zs = function (a) {
var _this = this;
var b = a;
b.db(this.aby);
b.dc(this.aar);
_super.prototype.zs.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.aan = new ScalerParams(1, d, c, this.xj.ch);
this.aan.c = f;
this.aao = new ScalerParams(1, d, c, this.xl.ch);
this.aao.c = f;
if (c.width < 1 || c.height < 1) {
return;
}
this.aaq = ((function () {
var $ret = new ShapeAxisInfoCache();
$ret.a = _this.xj;
$ret.b = _this.xl;
$ret.e = _this.xj.ch;
$ret.f = _this.xl.ch;
$ret.d = _this.dp;
$ret.c = _this.x1;
return $ret;
})());
if (this.aas()) {
var g = new Dictionary$2(Base.$, OwnedPoint.$, 0);
b.du.l(g, 400, d, c, this.ie);
b.du.j(g, false);
if (this.yi()) {
this.aa9(a);
}
}
};
ScatterPolygonSeries.prototype.aa9 = function (a) {
var _this = this;
a.dy = true;
this.xq.ay(this, this.yi(), runOn(this, this.w9));
var b = this.xq.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.zn(g, e, a.t);
}
_this.xq.ac(f, h);
}
});
};
ScatterPolygonSeries.prototype.aas = function () {
return this.abc != null && ((this.aam != 1 && this.aam != 0) || this.abd != null);
};
ScatterPolygonSeries.prototype.ct = function () {
return new ScatterPolygonSeriesView(this);
};
ScatterPolygonSeries.prototype.q3 = function (a) {
_super.prototype.q3.call(this, a);
this.aap = a;
};
ScatterPolygonSeries.prototype.get_hasMarkers = function () {
return true;
};
ScatterPolygonSeries.prototype.get_en = function () {
return this.aam != 13 && this.aam != 1;
};
ScatterPolygonSeries.prototype.vq = function () {
return this.abs;
};
ScatterPolygonSeries.prototype.vr = function () {
return this.abt;
};
ScatterPolygonSeries.prototype.s3 = function () {
return this.abb;
};
ScatterPolygonSeries.prototype.mc = function () {
return this.md(this, this.abc);
};
ScatterPolygonSeries.prototype.ip = function () {
return this.aau;
};
Object.defineProperty(ScatterPolygonSeries.prototype, "aaj", {
get: function () {
return this.aai;
},
set: function (a) {
this.aai = a;
},
enumerable: false,
configurable: true
});
ScatterPolygonSeries.prototype.aal = function () {
if (this.aak == 0) {
return 1;
}
return this.aak;
};
ScatterPolygonSeries.prototype.sp = function (a) {
_super.prototype.sp.call(this, a);
this.aak = a;
};
Object.defineProperty(ScatterPolygonSeries.prototype, "aaf", {
get: function () {
return this.aae;
},
set: function (a) {
this.aae = a;
},
enumerable: false,
configurable: true
});
ScatterPolygonSeries.prototype.aah = function () {
if (this.aag == 0) {
return 2;
}
return this.aag;
};
ScatterPolygonSeries.prototype.so = function (a) {
_super.prototype.so.call(this, a);
this.aag = a;
};
ScatterPolygonSeries.prototype.sq = function (a) {
_super.prototype.sq.call(this, a);
this.aau = a;
};
ScatterPolygonSeries.prototype.sl = function () {
_super.prototype.sl.call(this);
if (this.index < 0) {
return;
}
if (this.abd != null) {
this.aap.d8();
this.aap.d5();
}
else {
var a = MarkerSeries.xg(this, this.aam);
var b = MarkerSeries.xt(a);
if (b == null) {
this.abb = MarkerSeries.x8;
}
else {
this.aap.d2(b);
}
}
if (this.abu != null && this.aam != 13) {
this.sc("ActualMarkerBrush");
var c = this.abs;
this.aap.d6();
this.aap.d3();
var d = this.abs;
var e = this.fi("ActualMarkerBrush", this.hw.f > 0 ? this.hw.d() : null, c, d);
this.se("ActualMarkerBrush", e);
}
else {
if (this.aam == 13) {
this.abs = this.cw.b5();
}
else {
if (this.aaf != 2) {
if (this.dc != null) {
var f = this.dc.v3(this.index);
if (!isNaN_(this.id) && this.id != 1) {
f = BrushUtil.s(f, this.id);
}
this.abs = f;
}
else {
this.abs = null;
}
}
}
}
if (this.abv != null) {
this.aap.d7();
this.aap.d4();
}
else {
if (this.aam == 13) {
this.abt = this.cw.b5();
}
else {
if (this.aak == 2) {
this.abt = this.abs;
}
else {
this.abt = this.dc == null ? null : this.dc.v4(this.index);
}
}
}
if (this.aaf == 2 && this.abu == null && this.aam != 13) {
if (this.abt != null) {
var g = this.abt;
if (!isNaN_(this.id) && this.id != 1) {
g = BrushUtil.s(g, this.id);
}
this.abs = g;
}
else {
this.abs = null;
}
}
};
ScatterPolygonSeries.prototype.qu = function () {
_super.prototype.qu.call(this);
this.aaj = this.aal();
this.aaf = this.aah();
};
ScatterPolygonSeries.prototype.rc = function (a, b, c, d) {
_super.prototype.rc.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.ri(b);
this.q5();
break;
case ScatterPolygonSeries.$$p[6]:
this.aaj = this.aal();
this.ri(null);
this.q5();
break;
case ScatterPolygonSeries.$$p[5]:
this.aaf = this.aah();
this.ri(null);
this.q5();
break;
case ScatterPolygonSeries.$$p[2]:
this.abc = d;
if (c == MarkerSeries.x8 || d == MarkerSeries.x8 || (c == null || d != null)) {
this.aap.ea();
this.ru(false);
}
this.cw.bx();
if (this.toolTip != null && this.fj) {
this.ba.a$as(this, this.toolTip);
}
this.ru(false);
this.qn();
break;
case ScatterPolygonSeries.$$p[12]:
this.aap.db(this.aby);
this.ru(false);
this.qn();
break;
case ScatterPolygonSeries.$$p[13]:
this.aap.dc(this.aar);
this.ru(false);
this.qn();
break;
case ScatterPolygonSeries.$$p[4]:
this.ru(false);
this.qn();
break;
case ScatterPolygonSeries.$$p[0]:
case ScatterPolygonSeries.$$p[1]:
if (this.aas()) {
this.ru(false);
}
break;
}
};
ScatterPolygonSeries.prototype.a2 = function (a, b) {
var c = this.aap.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.aba = 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.xj;
var g = new ScalerParams(1, this.dc.wt, this.wx, f.ch);
g.c = this.getEffectiveViewport1(this.cw);
var h = this.xl;
var i = new ScalerParams(1, this.dc.wt, this.wx, h.ch);
i.c = this.getEffectiveViewport1(this.cw);
a.clear();
this.aap.d9(function (j) {
if (j._visibility == 0) {
var k = new SeriesPointOfInterest();
var l = j.n;
var m = j.o;
if (!e && (l < _this.wx.left || l > _this.wx.right || m < _this.wx.top || m > _this.wx.bottom)) {
return;
}
k.d = f.eo(l, g);
k.e = h.eo(m, i);
k.b = j.content;
k.g = _this.vl;
k.c = j.ak;
if (_this.ha) {
k.g = _this.vs(j.ak);
}
a.add(k);
}
});
return true;
};
ScatterPolygonSeries.prototype.aac = function (a, b, c, d, e) {
var _this = this;
if (c == null || c.length != this.aaq.d.count) {
c = new Array(this.aaq.d.count);
for (var f = 0; f < this.aaq.d.count; f++) {
c[f] = PointUtil.create();
}
}
var g = ((function () {
var $ret = new ScalerParams(1, d, e, _this.xj.ch);
$ret.c = _this.getEffectiveViewport1(a);
return $ret;
})());
var h = ((function () {
var $ret = new ScalerParams(1, d, e, _this.xl.ch);
$ret.c = _this.getEffectiveViewport1(a);
return $ret;
})());
var i = this.wo(a);
var j = this.aaq.a.eo(i.left, g);
var k = this.aaq.a.eo(i.right, g);
var l = this.aaq.b.eo(i.bottom, h);
var m = this.aaq.b.eo(i.top, h);
if (this.aaq.e) {
var n = j;
j = k;
k = n;
}
if (this.aaq.f) {
var o = l;
l = m;
m = o;
}
var p = this.aaq;
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.aaq.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.aat = 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.p6(a, c, b);
return c.toArray();
};
ScatterPolygonSeries.prototype.p6 = function (a, b, c) {
this.zk(a, b, c);
};
ScatterPolygonSeries.$t = markType(ScatterPolygonSeries, 'ScatterPolygonSeries', ShapeSeriesBase.$);
ScatterPolygonSeries.abw = new Rect(0, 0, 0, 1, 1);
ScatterPolygonSeries.$$p = markDep(DependencyProperty, PropertyMetadata, ScatterPolygonSeries, 'raisePropertyChanged', ['ActualMarkerBrush:abs:abe', [Brush.$], 'ActualMarkerOutline:abt:abf', [Brush.$], 'ActualMarkerTemplate:abb:abg', [DataTemplate.$, null], 'MarkerBrush:abu:abh', [Brush.$], 'MarkerCollisionAvoidance:aad:abi', [CollisionAvoidanceType_$type, enumGetBox(CollisionAvoidanceType_$type, 0)], 'MarkerFillMode:aag:abj', [MarkerFillMode_$type, enumGetBox(MarkerFillMode_$type, 0)], 'MarkerOutlineMode:aak:abk', [MarkerOutlineMode_$type, enumGetBox(MarkerOutlineMode_$type, 0)], 'MarkerOutline:abv:abl', [Brush.$], 'MarkerStyle:abx:abm', [Style.$], 'MarkerTemplate:abd:abn', [DataTemplate.$, null], 'MarkerThickness:aau:abo', [1, DeviceUtils.g(2)], 'MarkerType:aam:abp', [MarkerType_$type, enumGetBox(MarkerType_$type, 1)], 'ShapeStyle:aby:abq', [Style.$, null], 'ShapeStyleSelector:aar:abr', [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.aaq.d.item(b); }, runOn(_this, _this.ef), runOn(_this, _this.dn), runOn(_this, _this.dz), function () { return _this.dv.aad; });
_this.dt.q = runOn(_this, _this.ei);
return _this;
}
ScatterPolygonSeriesView.prototype.a4 = function () {
_super.prototype.a4.call(this);
if (!this.t) {
this.dv.abv = Defaults.bb;
this.dv.jq = Defaults.am;
this.dv.aau = Defaults.al;
this.dv.aam = Defaults.f;
this.dv.aag = Defaults.b;
}
};
Object.defineProperty(ScatterPolygonSeriesView.prototype, "du", {
get: function () {
return this.dt;
},
enumerable: false,
configurable: true
});
ScatterPolygonSeriesView.prototype.ef = function (a) {
this.dv.aba(a, this.dw);
};
ScatterPolygonSeriesView.prototype.dn = function () {
this.dp = this.dv.aac(this, this.dw, this.dp, this.ca, this.b9);
return this.dp;
};
ScatterPolygonSeriesView.prototype.dz = function () {
this.d0 = this.dv.aat(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.abb;
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.abs != null) {
d.actualItemBrush = this.dv.abs;
}
else {
d.actualItemBrush = this.cj.ve;
}
if (this.dv.abs != null) {
d.outline = this.dv.abt;
}
else {
d.outline = this.cj.vi;
}
d.thickness = this.dv.aau;
}
}
};
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.aau + 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.abb != null && this.dv.abb.passStarting != null) {
this.dv.abb.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.abb != null && this.dv.abb.passCompleted != null) {
this.dv.abb.passCompleted(c);
}
};
ScatterPolygonSeriesView.prototype.d8 = function () {
this.dv.abb = null;
};
ScatterPolygonSeriesView.prototype.d5 = function () {
this.dv.abb = null;
this.dv.abb = this.dv.abd;
};
ScatterPolygonSeriesView.prototype.d6 = function () {
this.dv.abs = null;
};
ScatterPolygonSeriesView.prototype.d3 = function () {
this.dv.abs = null;
if (!isNaN_(this.f.id) && this.f.id != 1) {
var a = BrushUtil.s(this.dv.abu, this.f.id);
this.dv.abs = a;
}
else {
this.dv.abs = this.dv.abu;
}
};
ScatterPolygonSeriesView.prototype.d7 = function () {
this.dv.abt = null;
};
ScatterPolygonSeriesView.prototype.d4 = function () {
this.dv.abt = null;
this.dv.abt = this.dv.abv;
};
ScatterPolygonSeriesView.prototype.d2 = function (a) {
switch (a) {
case "CircleMarkerTemplate":
this.dv.abb = this.dv.dc.sl;
break;
case "TriangleMarkerTemplate":
this.dv.abb = this.dv.dc.su;
break;
case "PyramidMarkerTemplate":
this.dv.abb = this.dv.dc.sr;
break;
case "SquareMarkerTemplate":
this.dv.abb = this.dv.dc.ss;
break;
case "DiamondMarkerTemplate":
this.dv.abb = this.dv.dc.sm;
break;
case "PentagonMarkerTemplate":
this.dv.abb = this.dv.dc.sp;
break;
case "HexagonMarkerTemplate":
this.dv.abb = this.dv.dc.sn;
break;
case "TetragramMarkerTemplate":
this.dv.abb = this.dv.dc.sp;
break;
case "PentagramMarkerTemplate":
this.dv.abb = this.dv.dc.sq;
break;
case "HexagramMarkerTemplate":
this.dv.abb = this.dv.dc.so;
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.abb;
}
}
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.ei = 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.abb);
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.dv.title + "</span><br/>";
a += "</div>";
return a;
};
ScatterPolygonSeriesView.$t = markType(ScatterPolygonSeriesView, 'ScatterPolygonSeriesView', ShapeSeriesViewBase.$);
return ScatterPolygonSeriesView;
}(ShapeSeriesViewBase));
export { ScatterPolygonSeriesView };