UNPKG

igniteui-react-charts

Version:

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

1,036 lines (1,035 loc) 36 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 { ScatterBase } from "./ScatterBase"; import { IScaleLegendSeries_$type } from "igniteui-react-core"; import { ISupportsSizeScale_$type } from "./ISupportsSizeScale"; import { ISupportsFillScale_$type } from "./ISupportsFillScale"; import { Base, typeCast, Point_$type, fromEnum, markType, markDep, enumGetBox, runOn } from "igniteui-react-core"; import { List$1 } from "igniteui-react-core"; import { UIElement } from "igniteui-react-core"; import { ActualRange } from "./ActualRange"; import { DependencyProperty } from "igniteui-react-core"; import { SizeScale } from "./SizeScale"; import { BrushScale } from "./BrushScale"; import { ScatterFrame } from "./ScatterFrame"; import { IChartLegend_$type } from "igniteui-react-core"; import { ValueBrushScale } from "./ValueBrushScale"; import { IFastItemsSource_$type } from "igniteui-react-core"; import { ScatterBaseView } from "./ScatterBaseView"; import { ScalerParams } from "./ScalerParams"; import { Dictionary$2 } from "igniteui-react-core"; import { OwnedPoint } from "./OwnedPoint"; import { BubbleMarkerManager } from "./BubbleMarkerManager"; import { IChartItemLegend_$type } from "igniteui-react-core"; import { IChartScaleLegend_$type } from "igniteui-react-core"; import { ContentControl } from "igniteui-react-core"; import { DataContext } from "igniteui-react-core"; import { DeviceUtils } from "igniteui-react-core"; import { BrushUtil } from "igniteui-react-core"; import { ChartSelection } from "./ChartSelection"; import { FastItemsSource } from "igniteui-react-core"; import { FastItemColumn } from "igniteui-react-core"; import { DataLegendSeriesValueInfo } from "igniteui-react-core"; import { DataLegendSeriesContext } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; import { isNaN_, isInfinity, logBase } from "igniteui-react-core"; import { stringIsNullOrEmpty } from "igniteui-react-core"; import { BrushSelectionMode_$type } from "./BrushSelectionMode"; import { ScatterTrendLineManager } from "./ScatterTrendLineManager"; import { Defaults } from "./Defaults"; /** * @hidden */ var BubbleSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(BubbleSeries, _super); function BubbleSeries() { var _this = _super.call(this) || this; _this.aem = null; _this.ael = null; _this.ac9 = null; _this.ac0 = null; _this.acz = null; _this.acy = null; _this.acw = null; _this.ab = BubbleSeries.$; _this.y7 = new ScatterFrame(); _this.y9 = new ScatterFrame(); _this.y5 = new ScatterFrame(); return _this; } BubbleSeries.prototype.bk = function () { return new BubbleSeries(); }; BubbleSeries.prototype.get_ek = function () { return true; }; BubbleSeries.prototype.ct = function () { return new BubbleSeriesView(this); }; BubbleSeries.prototype.q3 = function (a) { _super.prototype.q3.call(this, a); this.acv = a; }; BubbleSeries.prototype.jm = function () { return 0.7; }; BubbleSeries.prototype.w6 = function () { if (this.w5 == 0) { return 2; } return _super.prototype.w6.call(this); }; BubbleSeries.prototype.isAttachedTo = function (a) { return this.a5 == a; }; BubbleSeries.prototype.ej = function () { return true; }; BubbleSeries.prototype.p4 = function (a) { _super.prototype.p4.call(this, a); if (this.ac4 != null && this.ac9 != null && this.ac9.count > 0) { for (var b = 0; b < this.ac9.count; b++) { a(this.ac9._inner[b]); } } }; Object.defineProperty(BubbleSeries.prototype, "ac3", { get: function () { return this.ac5; }, enumerable: false, configurable: true }); BubbleSeries.prototype.get_isColoredItemwise = function () { return this.ac1 != null && this.ac1.count > 0; }; BubbleSeries.prototype.aek = function (a) { var b = typeCast(CustomPaletteBrushScale.$, this.acu); var c = typeCast(ValueBrushScale.$, this.acu); var d = this.acu; if (b != null && this.dp != null) { return b.getBrush1(a, this.dp.count); } else if (c != null) { return c.getBrushByIndex(a, this.ac1); } else if (d != null) { return d.getBrush(a); } return null; }; Object.defineProperty(BubbleSeries.prototype, "legendReady", { get: function () { return this.ac5 != null && this.ac5.count != 0; }, enumerable: false, configurable: true }); Object.defineProperty(BubbleSeries.prototype, "minScaleText", { get: function () { var a = this.act(this.acx).b; return (Math.round(a * 1000) / 1000).toString(); }, enumerable: false, configurable: true }); Object.defineProperty(BubbleSeries.prototype, "maxScaleText", { get: function () { var a = this.act(this.acx).a; return (Math.round(a * 1000) / 1000).toString(); }, enumerable: false, configurable: true }); BubbleSeries.prototype.forScaleColors = function (a) { for (var b = 0; b < this.ac5.count; b++) { if (this.acu == null || !this.acu.isReady) { return false; } var c = NaN; if (this.ac1 != null) { c = (this.ac1.item(b) - this.ac1.minimum) / (this.ac1.maximum - this.ac1.minimum); } var d = (this.ac5.item(b) - this.ac5.minimum) / (this.ac5.maximum - this.ac5.minimum); if (isNaN_(c)) { c = 0; } if (isNaN_(d)) { d = c; } var e = this.ym; var f = this.aek(b); var g = f != null ? f : e; a(g, d); } return true; }; BubbleSeries.prototype.kr = function (a, b) { var c = this.nf(b); if (c == BubbleSeries.$$p[5]) { return this.ks(a, b, this.ado); } if (c == BubbleSeries.$$p[11]) { return this.ks(a, b, this.ady); } if (c == ScatterBase.$$p[12]) { return this.ks(a, b, this.aay); } if (c == ScatterBase.$$p[16]) { return this.ks(a, b, this.aa6); } if (c == BubbleSeries.$$p[2]) { return this.ks(a, b, this.adj); } return _super.prototype.kr.call(this, a, b); }; BubbleSeries.prototype.mf = function (a) { var b = this.nf(a); if (b == BubbleSeries.$$p[5]) { return this.ado; } if (b == BubbleSeries.$$p[11]) { return this.ady; } if (b == ScatterBase.$$p[12]) { return this.aay; } if (b == ScatterBase.$$p[16]) { return this.aa6; } if (b == BubbleSeries.$$p[2]) { return this.adj; } return _super.prototype.mf.call(this, a); }; Object.defineProperty(BubbleSeries.prototype, "ac5", { get: function () { return this.ac0; }, set: function (a) { if (this.ac0 != a) { var b = this.ac5; this.ac0 = a; this.raisePropertyChanged("RadiusColumn", b, this.ac5); } }, enumerable: false, configurable: true }); Object.defineProperty(BubbleSeries.prototype, "ac4", { get: function () { return this.acz; }, set: function (a) { if (this.acz != a) { var b = this.ac4; this.acz = a; this.raisePropertyChanged("LabelColumn", b, this.ac4); } }, enumerable: false, configurable: true }); Object.defineProperty(BubbleSeries.prototype, "ac1", { get: function () { return this.acy; }, set: function (a) { if (this.acy != a) { var b = this.ac1; this.acy = a; this.raisePropertyChanged("FillColumn", b, this.ac1); } }, enumerable: false, configurable: true }); BubbleSeries.prototype.aa9 = function (a, b, c, d, e) { if (c <= this.aae) { b.g = new Dictionary$2(Base.$, OwnedPoint.$, 1, c); } var f = this.aae; var g = this.dp; var h; var i; var j = this.getEffectiveViewport1(a); var k = new ScalerParams(0, d, e, this.y1.d, j); var l = new ScalerParams(0, d, e, this.y1.e, j); var m = false; var n = 0; if (this.dc != null) { if (this.dc.f8()) { var o = this.dc.nm(d, k); m = o.c; n = o.d; } } var _loop_1 = function (p) { h = this_1.zm.item(p); i = this_1.zn.item(p); var q = { $type: Point_$type, x: this_1.y1.a.el(h, k), y: this_1.y1.b.el(i, l) }; if (m) { if (q.x < e.left || q.x > e.right) { if (q.x + n >= e.left && q.x + n <= e.right) { q = { $type: Point_$type, x: q.x + n, y: i }; } } } if (!isInfinity(q.x) && !isInfinity(q.y)) { var r_1 = g.item(p); if (c <= f) { if (!b.g.containsKey(r_1)) { var s_1 = { $type: Point_$type, x: h, y: i }; b.g.addItem(r_1, ((function () { var $ret = new OwnedPoint(); $ret.a = r_1; $ret.b = s_1; $ret.c = q; return $ret; })())); } } } }; var this_1 = this; for (var p = 0; p < c; p++) { _loop_1(p); } }; BubbleSeries.prototype.abk = function (a, b) { var c = typeCast(BubbleSeriesView.$, b); var d = c.dd; d.m = this.ac5; _super.prototype.abk.call(this, a, b); var e = Math.min(this.zm != null ? this.zm.count : 0, this.zn != null ? this.zn.count : 0); if (e < 1) { return; } c.d0(); c.d1(); }; BubbleSeries.prototype.ad3 = function () { if (this.dc == null) { return; } if (this.a5 == null) { return; } if (this.a5.isItemwise) { var a = this.a5; this.a5.clearLegendItemsForSeries(this); this.ad2(); a.renderItemwiseContent(this); } if (this.a5.isScale) { var b = this.a5; b.restoreOriginalState(); b.initializeLegend(this); } }; BubbleSeries.ada = function (a, b, c, d, e) { if (e <= a || isNaN_(e) || isInfinity(e)) { return c; } if (e >= b) { return d; } var f = c + ((d - c) / (b - a)) * (e - a); return f; }; BubbleSeries.adb = function (a, b, c, d, logBase_, e) { var f = logBase(e, logBase_); var g = logBase(a, logBase_); var h = logBase(b, logBase_); return BubbleSeries.ada(g, h, c, d, f); }; BubbleSeries.prototype.hf = function (a, b, c) { var d = _super.prototype.hf.call(this, a, b, c); if (this.ac5 == null || this.dp == null || this.ac5.count == 0 || this.dp.count != this.ac5.count) { d = false; } return d; }; BubbleSeries.prototype.zw = function (a, b) { if (b != 3) { return true; } if (a == null) { return true; } if (this.aay == a || this.aa6 == a || this.ady == a) { return true; } return false; }; BubbleSeries.prototype.ad2 = function () { var _this = this; var a = typeCast(IChartLegend_$type, this.a5); if (a == null || this.dp == null) { return; } this.ac9 = new List$1(UIElement.$, 0); var b = typeCast(CustomPaletteBrushScale.$, this.acu); var c = typeCast(ValueBrushScale.$, this.acu); var d = this.acu; var e = this.acs(); var f = e.b; var g = e.a; var h = this.dp; var _loop_2 = function (i) { var j = null; if (c != null && this_2.ac1 != null) { var k = this_2.ac1.item(i); j = c.getBrushByRange(k, f, g); } else if (b != null) { j = b.getBrush1(i, h.count); } else if (d != null) { j = d.getBrush(i); } var l = new ContentControl(); var m = this_2.ac4 != null && this_2.ac4.item(i) != null ? this_2.ac4.item(i).toString() : ""; l.content = ((function () { var $ret = new DataContext(); $ret.series = _this; $ret.item = h.item(i); $ret.itemBrush = j; $ret.itemLabel = m; $ret.legendLabel = m; return $ret; })()); var n = this_2.s1; if (n == null) { n = this_2.cw.bz(this_2.c1); } l.ah = n; this_2.ac9.add(l); }; var this_2 = this; for (var i = 0; i < h.count; i++) { _loop_2(i); } }; BubbleSeries.prototype.pd = function (a, b, c, d) { _super.prototype.pd.call(this, a, b, c, d); if (this.acx != null) { this.acx.aa(); } if (this.acu != null) { this.acu.x(); } this.ad3(); }; BubbleSeries.prototype.qf = function () { _super.prototype.qf.call(this); this.ad3(); }; BubbleSeries.prototype.qm = function () { _super.prototype.qm.call(this); this.ad3(); }; BubbleSeries.prototype.rc = function (a, b, c, d) { var e_1, _a; _super.prototype.rc.call(this, a, b, c, d); switch (b) { case ScatterBase.$$p[10]: case ScatterBase.$$p[14]: case ScatterBase.$$p[11]: case ScatterBase.$$p[15]: case BubbleSeries.$$p[9]: case BubbleSeries.$$p[10]: this.qh(); break; case "FastItemsSource": if (this.acx != null) { this.acx.aa(); } if (this.acu != null) { this.acu.x(); } if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.ac5); c.deregisterColumn(this.ac1); c.deregisterColumn(this.ac4); this.ac5 = null; this.ac1 = null; this.ac4 = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.ac5 = this.dl(this.ady); if (!stringIsNullOrEmpty(this.adj)) { this.ac1 = this.dl(this.adj); } this.ac4 = this.dn(this.ado); } this.ru(false); this.ad3(); break; case BubbleSeries.$$p[11]: if (this.acx != null) { this.acx.aa(); } if (this.dp != null) { this.dp.deregisterColumn(this.ac5); this.ac5 = this.dl(this.ady); this.ad3(); } break; case "RadiusColumn": if (this.acx != null) { this.acx.aa(); } this.y2.df.g$m(); this.ru(this.gh && this.d9); this.qo(); break; case BubbleSeries.$$p[12]: if (c != null) { c.l.remove(this); c.aa(); } if (d != null) { d.l.add(this); d.aa(); } this.ru(false); this.qn(); break; case BubbleSeries.$$p[13]: this.ru(false); this.qn(); break; case "DiscreteLegendItemTemplate": this.ad3(); break; case BubbleSeries.$$p[3]: if (c != null) { c.o.remove(this); c.x(); } if (d != null) { d.o.add(this); d.x(); } this.ru(false); this.ad3(); this.qn(); break; case BubbleSeries.$$p[4]: case BubbleSeries.$$p[8]: case BubbleSeries.$$p[7]: case BubbleSeries.$$p[6]: this.ru(false); this.ad3(); this.qn(); break; case "FillColumn": this.ru(this.gh && this.d9); this.qn(); break; case BubbleSeries.$$p[2]: if (this.acu != null) { this.acu.x(); } if (this.dp != null) { this.dp.deregisterColumn(this.ac1); this.ac1 = this.dl(this.adj); this.ad3(); } break; case BubbleSeries.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.ac4); this.ac4 = this.dn(this.ado); this.ad3(); } break; case "ActualLegend": var e = typeCast(IChartLegend_$type, c); if (e != null && e.isItemwise) { var f = typeCast(IChartItemLegend_$type, e); f.clearLegendItemsForSeries(this); } if (e != null && e.isScale) { var g = typeCast(IChartScaleLegend_$type, e); var h = true; var i = null; if (this.dc != null) { try { for (var _b = __values(fromEnum(this.dc.series)), _c = _b.next(); !_c.done; _c = _b.next()) { var j = _c.value; if (j.legend == g) { i = j; h = false; } } } 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 (h) { g.restoreOriginalState(); } else { g.initializeLegend(typeCast(IScaleLegendSeries_$type, i)); } } this.ad3(); break; case "SeriesViewer": this.ad3(); break; } }; BubbleSeries.prototype.updateSizeScaleGlobals = function () { var a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.ac5 != null) { a.b = this.ac5.minimum; a.a = this.ac5.maximum; } if (this.acx != null) { this.acx.ab(a.b, a.a); } }; BubbleSeries.prototype.updateFillScaleGlobals = function () { var a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.ac1 != null) { a.b = this.ac1.minimum; a.a = this.ac1.maximum; } if (this.acu != null) { this.acu.z(a.b, a.a); } }; BubbleSeries.prototype.act = function (a) { var b = new ActualRange(); b.b = NaN; b.a = NaN; if (this.ac5 != null) { b.b = this.ac5.minimum; b.a = this.ac5.maximum; } if (a != null) { a.x(); if (this.ac8) { b.b = a.globalMinimum; b.a = a.globalMaximum; } } return b; }; BubbleSeries.prototype.acs = function () { var a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.ac1 != null) { a.b = this.ac1.minimum; a.a = this.ac1.maximum; } var b = typeCast(ValueBrushScale.$, this.acu); if (b != null) { b.s(); if (this.ac6 && this.acu.o.count > 1) { a.b = b.q; a.a = b.p; } } return a; }; BubbleSeries.prototype.ad5 = function (a, b, c, d) { var e = c.width; if (!this.cw.b9.isEmpty) { e = this.cw.b9.width; } else if (this.dc != null && !this.dc.xb.isEmpty) { e = this.dc.xb.width; } var f = DeviceUtils.c(e); this.acw = this.acx || ((function () { var $ret = new SizeScale(); $ret.minimumValue = f / 10; $ret.maximumValue = f / 5; return $ret; })()); if (this.acw != null) { var g = this.acw.minimumValue; var h = this.acw.maximumValue; var i = this.acw.logarithmBase; var j = this.act(this.acw); var k = j.b; var l = j.a; if (this.acw.isLogarithmic) { for (var m = 0; m < b.count; m++) { b._inner[m] = BubbleSeries.adb(k, l, g, h, i, b._inner[m]); } } else { for (var n = 0; n < b.count; n++) { b._inner[n] = BubbleSeries.ada(k, l, g, h, b._inner[n]); } } } var o = 1; o = DeviceUtils.d(); var p = this.acx == null; if (d) { var q = c.width / e; for (var r = 0; r < b.count; r++) { if (p) { b._inner[r] = b._inner[r] / o; } b._inner[r] = b._inner[r] * q; } } for (var s = 0; s < a.count; s++) { var t = a._inner[s]; if (p && !d) { t.width = Math.max(0, b._inner[s] / o); t.height = Math.max(0, b._inner[s] / o); } else { t.width = Math.max(0, b._inner[s]); t.height = Math.max(0, b._inner[s]); } } }; BubbleSeries.prototype.ad4 = function (a) { var b = typeCast(BubbleSeriesView.$, this.cv); this.acv.ck = false; if (b != null) { b.ck = false; } var c = typeCast(CustomPaletteBrushScale.$, this.acu); var d = typeCast(ValueBrushScale.$, this.acu); var e = this.acu; var f = this.acs(); var g = f.b; var h = f.a; var i = this.acu == null || !this.acu.isReady || (d != null && this.adj == null); if (i) { this.acv.dz(); if (b != null) { b.dz(); } return; } this.acv.ck = true; if (b != null) { b.ck = true; } var j = a.count; var k = this.dp; for (var l = 0; l < j; l++) { var m = a._inner[l]; var n = typeCast(DataContext.$, m.content); if (n != null) { var o = null; var p = k.indexOf(n.item); if (c != null) { o = c.getBrush1(p, k.count); } else if (d != null && this.ac1 != null) { var q = this.ac1.item(p); o = d.getBrushByRange(q, g, h); } else if (e != null) { o = e.getBrush(p); } else { if (this.yo == null) { o = this.ym; } else { o = this.yo; } } var r = null; if (this.yp == null) { r = this.yn; } else { r = this.yp; } if (this.ac7 && o != null) { r = o; } if (r != null && !isNaN_(this.add)) { r = BrushUtil.o(r, this.add); } if (o != null && !isNaN_(this.adc)) { o = BrushUtil.o(o, this.adc); } n.itemBrush = o; n.actualItemBrush = o; n.outline = r; } } }; BubbleSeries.prototype.ak = function (a, b) { var c = new List$1(ChartSelection.$, 0); this.p6(a, c, b); return c.toArray(); }; BubbleSeries.prototype.p6 = function (a, b, c) { var d = 1; if (d == 1) { var e = this.ac2(); this.abc(a, b, c, d, e); } else { _super.prototype.p6.call(this, a, b, c); } }; BubbleSeries.prototype.ac2 = function () { var a = new FastItemColumn(typeCast(FastItemsSource.$, this.dp), "RadiusColumn", null, false); var b = this.cw.b9; var c = b.width; if (!this.cw.b9.isEmpty) { c = this.cw.b9.width; } else if (this.dc != null && !this.dc.xb.isEmpty) { c = this.dc.xb.width; } var d = DeviceUtils.c(c); this.acw = this.acx || ((function () { var $ret = new SizeScale(); $ret.minimumValue = d / 10; $ret.maximumValue = d / 5; return $ret; })()); if (this.acw != null) { var e = this.acw.minimumValue; var f = this.acw.maximumValue; var g = this.acw.logarithmBase; var h = this.act(this.acw); var i = h.b; var j = h.a; if (this.acw.isLogarithmic) { for (var k = 0; k < a.count; k++) { a.item(k, BubbleSeries.adb(i, j, e, f, g, a.item(k))); } } else { for (var l = 0; l < a.count; l++) { a.item(l, BubbleSeries.ada(i, j, e, f, a.item(l))); } } } var m = DeviceUtils.d(); var n = this.acx == null; var o = this.cw == this.cv; if (o) { var p = b.width / c; for (var q = 0; q < a.count; q++) { if (n) { a.item(q, a.item(q) / m); } a.item(q, a.item(q) * p); } } for (var r = 0; r < a.count; r++) { var s = void 0; if (n && !o) { a.item(r, Math.max(0, a.item(r) / m)); } else { a.item(r, Math.max(0, a.item(r))); } } return a; }; BubbleSeries.prototype.getDataLegendSeriesContextAt = function (a, b) { var c = { $type: Point_$type, x: a, y: b }; var d = this.ko(c); var e = d == null ? NaN : this.iy(d, "XMemberPath"); var f = d == null ? NaN : this.iy(d, "YMemberPath"); var g = new DataLegendSeriesValueInfo(); g.a = 13; g.l = e; g.q = "X"; g.r = this.aay != null ? this.aay : "X"; g.s = this.aau != null ? this.aau : "X:"; g.t = this.aaw != null ? this.aaw : ""; var h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 14; h.q = "Y"; h.r = this.aa6 != null ? this.aa6 : "Y"; h.s = this.aa2 != null ? this.aa2 : "Y:"; h.t = this.aa4 != null ? this.aa4 : ""; 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.me(); if (!stringIsNullOrEmpty(this.ady)) { var j = d == null ? NaN : this.iy(d, "RadiusMemberPath"); var k = new DataLegendSeriesValueInfo(); k.l = j; k.a = 11; k.q = "Radius"; k.r = this.ady != null ? this.ady : "Radius"; k.s = this.adu != null ? this.adu : "R:"; k.t = this.adw != null ? this.adw : ""; i.e.add(k); } else if (this.acw != null) { var l = new DataLegendSeriesValueInfo(); l.l = this.acw.maximumValue; l.a = 11; l.q = "Radius"; l.r = this.ady != null ? this.ady : "Radius"; l.s = this.adu != null ? this.adu : "R:"; l.t = this.adw != null ? this.adw : ""; i.e.add(l); } if (!stringIsNullOrEmpty(this.adj)) { var m = d == null ? NaN : this.iy(d, "FillMemberPath"); var n = new DataLegendSeriesValueInfo(); n.l = m; n.a = 12; n.q = "Fill"; n.r = this.adj != null ? this.adj : "Fill"; n.s = this.adf != null ? this.adf : "F:"; n.t = this.adh != null ? this.adh : ""; i.e.add(n); } return i; }; Object.defineProperty(BubbleSeries.prototype, "actualMarkerBrush", { get: function () { return this.ym; }, enumerable: false, configurable: true }); BubbleSeries.$t = markType(BubbleSeries, 'BubbleSeries', ScatterBase.$, [IScaleLegendSeries_$type, ISupportsSizeScale_$type, ISupportsFillScale_$type]); BubbleSeries.$$p = markDep(DependencyProperty, PropertyMetadata, BubbleSeries, 'raisePropertyChanged', ['FillMemberAsLegendLabel:adf:ad6', [2, null], 'FillMemberAsLegendUnit:adh:ad7', [2, null], 'FillMemberPath:adj:ad8', [2], 'FillScale:acu:ad9', [BrushScale.$], 'FillScaleUseGlobalValues:ac6:aea', [0, false], 'LabelMemberPath:ado:aeb', [2], 'MarkerBrushBrightness:adc:aec', [1, NaN], 'MarkerOutlineBrightness:add:aed', [1, NaN], 'MarkerOutlineUsesFillScale:ac7:aee', [0, false], 'RadiusMemberAsLegendLabel:adu:aef', [2, null], 'RadiusMemberAsLegendUnit:adw:aeg', [2, null], 'RadiusMemberPath:ady:aeh', [2, null], 'RadiusScale:acx:aei', [SizeScale.$], 'RadiusScaleUseGlobalValues:ac8:aej', [0, false]]); return BubbleSeries; }(ScatterBase)); export { BubbleSeries }; /** * @hidden */ var CustomPaletteBrushScale = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CustomPaletteBrushScale, _super); function CustomPaletteBrushScale() { return _super.call(this) || this; } CustomPaletteBrushScale.prototype.getBrush1 = function (a, b) { if (this.brushes == null || this.brushes.count == 0) { return null; } if (this.brushSelectionMode == 0) { return _super.prototype.getBrush.call(this, a % this.brushes.count); } var c = BubbleSeries.ada(0, b - 1, 0, this.brushes.count - 1, a); return this.ab(c); }; CustomPaletteBrushScale.prototype.get_isReady = function () { return this.brushes != null && this.brushes.count > 0; }; CustomPaletteBrushScale.$t = markType(CustomPaletteBrushScale, 'CustomPaletteBrushScale', BrushScale.$); CustomPaletteBrushScale.$$p = markDep(DependencyProperty, PropertyMetadata, CustomPaletteBrushScale, 'v', ['BrushSelectionMode', [BrushSelectionMode_$type, enumGetBox(BrushSelectionMode_$type, 0)]]); return CustomPaletteBrushScale; }(BrushScale)); export { CustomPaletteBrushScale }; /** * @hidden */ var BubbleSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(BubbleSeriesView, _super); function BubbleSeriesView(a) { var _this = _super.call(this, a) || this; _this.dy = null; _this.dy = a; _this.df = new ScatterTrendLineManager(); return _this; } BubbleSeriesView.prototype.a4 = function () { _super.prototype.a4.call(this); if (!this.t) { this.ch.xf = Defaults.e; } }; BubbleSeriesView.prototype.dc = function () { var _this = this; return new BubbleMarkerManager(function (a) { return _this.dg.item(a); }, function (a) { return _this.de.y1.c.item(a); }, runOn(this, this.ds), runOn(this, this.c9), runOn(this, this.dh)); }; BubbleSeriesView.prototype.d0 = function () { var a = this.dd; this.dy.ad5(a.n, a.o, this.b9, this == this.f.cv); this.a2(); }; BubbleSeriesView.prototype.d1 = function () { var a = this.dd; this.dy.ad4(a.n); }; BubbleSeriesView.prototype.dz = function () { var e_2, _a; var a = this.dd; try { for (var _b = __values(fromEnum(a.n)), _c = _b.next(); !_c.done; _c = _b.next()) { var b = _c.value; var c = typeCast(DataContext.$, b.content); if (c != null) { c.itemBrush = null; c.outline = null; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; BubbleSeriesView.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.dy.title + "</span><br/><span>" + "(${item." + this.dy.aay + "}, ${item." + this.dy.aa6 + "})</span>"; if (!stringIsNullOrEmpty(this.dy.ady)) { a += "<span>, Radius: ${item." + this.dy.ady + "}</span>"; } a += "</div>"; return a; }; BubbleSeriesView.$t = markType(BubbleSeriesView, 'BubbleSeriesView', ScatterBaseView.$); return BubbleSeriesView; }(ScatterBaseView)); export { BubbleSeriesView };