UNPKG

igniteui-react-charts

Version:

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

957 lines (956 loc) 34.5 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 { 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 */ export let BubbleSeries = /*@__PURE__*/ (() => { class BubbleSeries extends ScatterBase { bk() { return new BubbleSeries(); } get_ek() { return true; } ct() { return new BubbleSeriesView(this); } q8(a) { super.q8(a); this.ac1 = a; } jo() { return 0.7; } xc() { if (this.xb == 0) { return 2; } return super.xc(); } constructor() { super(); this.aes = null; this.aer = null; this.adf = null; this.ac6 = null; this.ac5 = null; this.ac4 = null; this.ac2 = null; this.ab = BubbleSeries.$; this.zd = new ScatterFrame(); this.zf = new ScatterFrame(); this.zb = new ScatterFrame(); } isAttachedTo(a) { return this.a5 == a; } ej() { return true; } p8(a) { super.p8(a); if (this.ada != null && this.adf != null && this.adf.count > 0) { for (let b = 0; b < this.adf.count; b++) { a(this.adf._inner[b]); } } } get ac9() { return this.adb; } get_isColoredItemwise() { return this.ac7 != null && this.ac7.count > 0; } aeq(a) { let b = typeCast(CustomPaletteBrushScale.$, this.ac0); let c = typeCast(ValueBrushScale.$, this.ac0); let d = this.ac0; if (b != null && this.dp != null) { return b.getBrush1(a, this.dp.count); } else if (c != null) { return c.getBrushByIndex(a, this.ac7); } else if (d != null) { return d.getBrush(a); } return null; } get legendReady() { return this.adb != null && this.adb.count != 0; } get minScaleText() { let a = this.acz(this.ac3).b; return (Math.round(a * 1000) / 1000).toString(); } get maxScaleText() { let a = this.acz(this.ac3).a; return (Math.round(a * 1000) / 1000).toString(); } forScaleColors(a) { for (let b = 0; b < this.adb.count; b++) { if (this.ac0 == null || !this.ac0.isReady) { return false; } let c = NaN; if (this.ac7 != null) { c = (this.ac7.item(b) - this.ac7.minimum) / (this.ac7.maximum - this.ac7.minimum); } let d = (this.adb.item(b) - this.adb.minimum) / (this.adb.maximum - this.adb.minimum); if (isNaN_(c)) { c = 0; } if (isNaN_(d)) { d = c; } let e = this.ys; let f = this.aeq(b); let g = f != null ? f : e; a(g, d); } return true; } ku(a, b) { let c = this.ni(b); if (c == BubbleSeries.$$p[5]) { return this.kv(a, b, this.adu); } if (c == BubbleSeries.$$p[11]) { return this.kv(a, b, this.ad4); } if (c == ScatterBase.$$p[12]) { return this.kv(a, b, this.aa4); } if (c == ScatterBase.$$p[16]) { return this.kv(a, b, this.abc); } if (c == BubbleSeries.$$p[2]) { return this.kv(a, b, this.adp); } return super.ku(a, b); } mi(a) { let b = this.ni(a); if (b == BubbleSeries.$$p[5]) { return this.adu; } if (b == BubbleSeries.$$p[11]) { return this.ad4; } if (b == ScatterBase.$$p[12]) { return this.aa4; } if (b == ScatterBase.$$p[16]) { return this.abc; } if (b == BubbleSeries.$$p[2]) { return this.adp; } return super.mi(a); } get adb() { return this.ac6; } set adb(a) { if (this.ac6 != a) { let b = this.adb; this.ac6 = a; this.raisePropertyChanged("RadiusColumn", b, this.adb); } } get ada() { return this.ac5; } set ada(a) { if (this.ac5 != a) { let b = this.ada; this.ac5 = a; this.raisePropertyChanged("LabelColumn", b, this.ada); } } get ac7() { return this.ac4; } set ac7(a) { if (this.ac4 != a) { let b = this.ac7; this.ac4 = a; this.raisePropertyChanged("FillColumn", b, this.ac7); } } abf(a, b, c, d, e) { if (c <= this.aak) { b.g = new Dictionary$2(Base.$, OwnedPoint.$, 1, c); } let f = this.aak; let g = this.dp; let h; let i; let j = this.getEffectiveViewport1(a); let k = new ScalerParams(0, d, e, this.y7.d, j); let l = new ScalerParams(0, d, e, this.y7.e, j); let m = false; let n = 0; if (this.dc != null) { if (this.dc.gl()) { let o = this.dc.n2(d, k); m = o.c; n = o.d; } } for (let p = 0; p < c; p++) { h = this.zs.item(p); i = this.zt.item(p); let q = { $type: Point_$type, x: this.y7.a.ft(h, k), y: this.y7.b.ft(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)) { let r = g.item(p); if (c <= f) { if (!b.g.containsKey(r)) { let s = { $type: Point_$type, x: h, y: i }; b.g.addItem(r, ((() => { let $ret = new OwnedPoint(); $ret.a = r; $ret.b = s; $ret.c = q; return $ret; })())); } } } } } abq(a, b) { let c = typeCast(BubbleSeriesView.$, b); let d = c.dd; d.m = this.adb; super.abq(a, b); let e = Math.min(this.zs != null ? this.zs.count : 0, this.zt != null ? this.zt.count : 0); if (e < 1) { return; } c.d0(); c.d1(); } ad9() { if (this.dc == null) { return; } if (this.a5 == null) { return; } if (this.a5.isItemwise) { let a = this.a5; this.a5.clearLegendItemsForSeries(this); this.ad8(); a.renderItemwiseContent(this); } if (this.a5.isScale) { let b = this.a5; b.restoreOriginalState(); b.initializeLegend(this); } } static adg(a, b, c, d, e) { if (e <= a || isNaN_(e) || isInfinity(e)) { return c; } if (e >= b) { return d; } let f = c + ((d - c) / (b - a)) * (e - a); return f; } static adh(a, b, c, d, logBase_, e) { let f = logBase(e, logBase_); let g = logBase(a, logBase_); let h = logBase(b, logBase_); return BubbleSeries.adg(g, h, c, d, f); } hf(a, b, c) { let d = super.hf(a, b, c); if (this.adb == null || this.dp == null || this.adb.count == 0 || this.dp.count != this.adb.count) { d = false; } return d; } z2(a, b) { if (b != 3) { return true; } if (a == null) { return true; } if (this.aa4 == a || this.abc == a || this.ad4 == a) { return true; } return false; } ad8() { let a = typeCast(IChartLegend_$type, this.a5); if (a == null || this.dp == null) { return; } this.adf = new List$1(UIElement.$, 0); let b = typeCast(CustomPaletteBrushScale.$, this.ac0); let c = typeCast(ValueBrushScale.$, this.ac0); let d = this.ac0; let e = this.acy(); let f = e.b; let g = e.a; let h = this.dp; for (let i = 0; i < h.count; i++) { let j = null; if (c != null && this.ac7 != null) { let k = this.ac7.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); } let l = new ContentControl(); let m = this.ada != null && this.ada.item(i) != null ? this.ada.item(i).toString() : ""; l.content = ((() => { let $ret = new DataContext(); $ret.series = this; $ret.item = h.item(i); $ret.itemBrush = j; $ret.itemLabel = m; $ret.legendLabel = m; return $ret; })()); let n = this.s6; if (n == null) { n = this.cw.bz(this.c1); } l.ah = n; this.adf.add(l); } } ph(a, b, c, d) { super.ph(a, b, c, d); if (this.ac3 != null) { this.ac3.aa(); } if (this.ac0 != null) { this.ac0.x(); } this.ad9(); } qk() { super.qk(); this.ad9(); } qr() { super.qr(); this.ad9(); } rh(a, b, c, d) { super.rh(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.qm(); break; case "FastItemsSource": if (this.ac3 != null) { this.ac3.aa(); } if (this.ac0 != null) { this.ac0.x(); } if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.adb); c.deregisterColumn(this.ac7); c.deregisterColumn(this.ada); this.adb = null; this.ac7 = null; this.ada = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.adb = this.dl(this.ad4); if (!stringIsNullOrEmpty(this.adp)) { this.ac7 = this.dl(this.adp); } this.ada = this.dn(this.adu); } this.rz(false); this.ad9(); break; case BubbleSeries.$$p[11]: if (this.ac3 != null) { this.ac3.aa(); } if (this.dp != null) { this.dp.deregisterColumn(this.adb); this.adb = this.dl(this.ad4); this.ad9(); } break; case "RadiusColumn": if (this.ac3 != null) { this.ac3.aa(); } this.y8.df.g$m(); this.rz(this.gh && this.d9); this.qt(); break; case BubbleSeries.$$p[12]: if (c != null) { c.l.remove(this); c.aa(); } if (d != null) { d.l.add(this); d.aa(); } this.rz(false); this.qs(); break; case BubbleSeries.$$p[13]: this.rz(false); this.qs(); break; case "DiscreteLegendItemTemplate": this.ad9(); break; case BubbleSeries.$$p[3]: if (c != null) { c.o.remove(this); c.x(); } if (d != null) { d.o.add(this); d.x(); } this.rz(false); this.ad9(); this.qs(); break; case BubbleSeries.$$p[4]: case BubbleSeries.$$p[8]: case BubbleSeries.$$p[7]: case BubbleSeries.$$p[6]: this.rz(false); this.ad9(); this.qs(); break; case "FillColumn": this.rz(this.gh && this.d9); this.qs(); break; case BubbleSeries.$$p[2]: if (this.ac0 != null) { this.ac0.x(); } if (this.dp != null) { this.dp.deregisterColumn(this.ac7); this.ac7 = this.dl(this.adp); this.ad9(); } break; case BubbleSeries.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.ada); this.ada = this.dn(this.adu); this.ad9(); } break; case "ActualLegend": let e = typeCast(IChartLegend_$type, c); if (e != null && e.isItemwise) { let f = typeCast(IChartItemLegend_$type, e); f.clearLegendItemsForSeries(this); } if (e != null && e.isScale) { let g = typeCast(IChartScaleLegend_$type, e); let h = true; let i = null; if (this.dc != null) { for (let j of fromEnum(this.dc.series)) { if (j.legend == g) { i = j; h = false; } } } if (h) { g.restoreOriginalState(); } else { g.initializeLegend(typeCast(IScaleLegendSeries_$type, i)); } } this.ad9(); break; case "SeriesViewer": this.ad9(); break; } } updateSizeScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.adb != null) { a.b = this.adb.minimum; a.a = this.adb.maximum; } if (this.ac3 != null) { this.ac3.ab(a.b, a.a); } } updateFillScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.ac7 != null) { a.b = this.ac7.minimum; a.a = this.ac7.maximum; } if (this.ac0 != null) { this.ac0.z(a.b, a.a); } } acz(a) { let b = new ActualRange(); b.b = NaN; b.a = NaN; if (this.adb != null) { b.b = this.adb.minimum; b.a = this.adb.maximum; } if (a != null) { a.x(); if (this.ade) { b.b = a.globalMinimum; b.a = a.globalMaximum; } } return b; } acy() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.ac7 != null) { a.b = this.ac7.minimum; a.a = this.ac7.maximum; } let b = typeCast(ValueBrushScale.$, this.ac0); if (b != null) { b.s(); if (this.adc && this.ac0.o.count > 1) { a.b = b.q; a.a = b.p; } } return a; } aeb(a, b, c, d) { let e = c.width; if (!this.cw.b9.isEmpty) { e = this.cw.b9.width; } else if (this.dc != null && !this.dc.x5.isEmpty) { e = this.dc.x5.width; } let f = DeviceUtils.c(e); this.ac2 = this.ac3 || ((() => { let $ret = new SizeScale(); $ret.minimumValue = f / 10; $ret.maximumValue = f / 5; return $ret; })()); if (this.ac2 != null) { let g = this.ac2.minimumValue; let h = this.ac2.maximumValue; let i = this.ac2.logarithmBase; let j = this.acz(this.ac2); let k = j.b; let l = j.a; if (this.ac2.isLogarithmic) { for (let m = 0; m < b.count; m++) { b._inner[m] = BubbleSeries.adh(k, l, g, h, i, b._inner[m]); } } else { for (let n = 0; n < b.count; n++) { b._inner[n] = BubbleSeries.adg(k, l, g, h, b._inner[n]); } } } let o = 1; o = DeviceUtils.d(); let p = this.ac3 == null; if (d) { let q = c.width / e; for (let r = 0; r < b.count; r++) { if (p) { b._inner[r] = b._inner[r] / o; } b._inner[r] = b._inner[r] * q; } } for (let s = 0; s < a.count; s++) { let 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]); } } } aea(a) { let b = typeCast(BubbleSeriesView.$, this.cv); this.ac1.ck = false; if (b != null) { b.ck = false; } let c = typeCast(CustomPaletteBrushScale.$, this.ac0); let d = typeCast(ValueBrushScale.$, this.ac0); let e = this.ac0; let f = this.acy(); let g = f.b; let h = f.a; let i = this.ac0 == null || !this.ac0.isReady || (d != null && this.adp == null); if (i) { this.ac1.dz(); if (b != null) { b.dz(); } return; } this.ac1.ck = true; if (b != null) { b.ck = true; } let j = a.count; let k = this.dp; for (let l = 0; l < j; l++) { let m = a._inner[l]; let n = typeCast(DataContext.$, m.content); if (n != null) { let o = null; let p = k.indexOf(n.item); if (c != null) { o = c.getBrush1(p, k.count); } else if (d != null && this.ac7 != null) { let q = this.ac7.item(p); o = d.getBrushByRange(q, g, h); } else if (e != null) { o = e.getBrush(p); } else { if (this.yu == null) { o = this.ys; } else { o = this.yu; } } let r = null; if (this.yv == null) { r = this.yt; } else { r = this.yv; } if (this.add && o != null) { r = o; } if (r != null && !isNaN_(this.adj)) { r = BrushUtil.o(r, this.adj); } if (o != null && !isNaN_(this.adi)) { o = BrushUtil.o(o, this.adi); } n.itemBrush = o; n.actualItemBrush = o; n.outline = r; } } } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.qa(a, c, b); return c.toArray(); } qa(a, b, c) { let d = 1; if (d == 1) { let e = this.ac8(); this.abi(a, b, c, d, e); } else { super.qa(a, b, c); } } ac8() { let a = new FastItemColumn(typeCast(FastItemsSource.$, this.dp), "RadiusColumn", null, false); let b = this.cw.b9; let c = b.width; if (!this.cw.b9.isEmpty) { c = this.cw.b9.width; } else if (this.dc != null && !this.dc.x5.isEmpty) { c = this.dc.x5.width; } let d = DeviceUtils.c(c); this.ac2 = this.ac3 || ((() => { let $ret = new SizeScale(); $ret.minimumValue = d / 10; $ret.maximumValue = d / 5; return $ret; })()); if (this.ac2 != null) { let e = this.ac2.minimumValue; let f = this.ac2.maximumValue; let g = this.ac2.logarithmBase; let h = this.acz(this.ac2); let i = h.b; let j = h.a; if (this.ac2.isLogarithmic) { for (let k = 0; k < a.count; k++) { a.item(k, BubbleSeries.adh(i, j, e, f, g, a.item(k))); } } else { for (let l = 0; l < a.count; l++) { a.item(l, BubbleSeries.adg(i, j, e, f, a.item(l))); } } } let m = DeviceUtils.d(); let n = this.ac3 == null; let o = this.cw == this.cv; if (o) { let p = b.width / c; for (let q = 0; q < a.count; q++) { if (n) { a.item(q, a.item(q) / m); } a.item(q, a.item(q) * p); } } for (let r = 0; r < a.count; r++) { let s; 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; } getDataLegendSeriesContextAt(a, b) { let c = { $type: Point_$type, x: a, y: b }; let d = this.kr(c); let e = d == null ? NaN : this.iz(d, "XMemberPath"); let f = d == null ? NaN : this.iz(d, "YMemberPath"); let g = new DataLegendSeriesValueInfo(); g.a = 13; g.l = e; g.q = "X"; g.r = this.aa4 != null ? this.aa4 : "X"; g.s = this.aa0 != null ? this.aa0 : "X:"; g.t = this.aa2 != null ? this.aa2 : ""; let h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 14; h.q = "Y"; h.r = this.abc != null ? this.abc : "Y"; h.s = this.aa8 != null ? this.aa8 : "Y:"; h.t = this.aba != null ? this.aba : ""; let i = new DataLegendSeriesContext(); i.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mh(); if (!stringIsNullOrEmpty(this.ad4)) { let j = d == null ? NaN : this.iz(d, "RadiusMemberPath"); let k = new DataLegendSeriesValueInfo(); k.l = j; k.a = 11; k.q = "Radius"; k.r = this.ad4 != null ? this.ad4 : "Radius"; k.s = this.ad0 != null ? this.ad0 : "R:"; k.t = this.ad2 != null ? this.ad2 : ""; i.e.add(k); } else if (this.ac2 != null) { let l = new DataLegendSeriesValueInfo(); l.l = this.ac2.maximumValue; l.a = 11; l.q = "Radius"; l.r = this.ad4 != null ? this.ad4 : "Radius"; l.s = this.ad0 != null ? this.ad0 : "R:"; l.t = this.ad2 != null ? this.ad2 : ""; i.e.add(l); } if (!stringIsNullOrEmpty(this.adp)) { let m = d == null ? NaN : this.iz(d, "FillMemberPath"); let n = new DataLegendSeriesValueInfo(); n.l = m; n.a = 12; n.q = "Fill"; n.r = this.adp != null ? this.adp : "Fill"; n.s = this.adl != null ? this.adl : "F:"; n.t = this.adn != null ? this.adn : ""; i.e.add(n); } return i; } get actualMarkerBrush() { return this.ys; } } BubbleSeries.$t = /*@__PURE__*/ markType(BubbleSeries, 'BubbleSeries', ScatterBase.$, [IScaleLegendSeries_$type, ISupportsSizeScale_$type, ISupportsFillScale_$type]); BubbleSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, BubbleSeries, 'raisePropertyChanged', ['FillMemberAsLegendLabel:adl:aec', [2, null], 'FillMemberAsLegendUnit:adn:aed', [2, null], 'FillMemberPath:adp:aee', [2], 'FillScale:ac0:aef', [BrushScale.$], 'FillScaleUseGlobalValues:adc:aeg', [0, false], 'LabelMemberPath:adu:aeh', [2], 'MarkerBrushBrightness:adi:aei', [1, NaN], 'MarkerOutlineBrightness:adj:aej', [1, NaN], 'MarkerOutlineUsesFillScale:add:aek', [0, false], 'RadiusMemberAsLegendLabel:ad0:ael', [2, null], 'RadiusMemberAsLegendUnit:ad2:aem', [2, null], 'RadiusMemberPath:ad4:aen', [2, null], 'RadiusScale:ac3:aeo', [SizeScale.$], 'RadiusScaleUseGlobalValues:ade:aep', [0, false]]); return BubbleSeries; })(); /** * @hidden */ export let CustomPaletteBrushScale = /*@__PURE__*/ (() => { class CustomPaletteBrushScale extends BrushScale { constructor() { super(); } getBrush1(a, b) { if (this.brushes == null || this.brushes.count == 0) { return null; } if (this.brushSelectionMode == 0) { return super.getBrush(a % this.brushes.count); } let c = BubbleSeries.adg(0, b - 1, 0, this.brushes.count - 1, a); return this.ab(c); } get_isReady() { return this.brushes != null && this.brushes.count > 0; } } CustomPaletteBrushScale.$t = /*@__PURE__*/ markType(CustomPaletteBrushScale, 'CustomPaletteBrushScale', BrushScale.$); CustomPaletteBrushScale.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, CustomPaletteBrushScale, 'v', ['BrushSelectionMode', [BrushSelectionMode_$type, /*@__PURE__*/ enumGetBox(BrushSelectionMode_$type, 0)]]); return CustomPaletteBrushScale; })(); /** * @hidden */ export let BubbleSeriesView = /*@__PURE__*/ (() => { class BubbleSeriesView extends ScatterBaseView { constructor(a) { super(a); this.dy = null; this.dy = a; this.df = new ScatterTrendLineManager(); } a4() { super.a4(); if (!this.t) { this.ch.xl = Defaults.e; } } dc() { return new BubbleMarkerManager((a) => this.dg.item(a), (a) => this.de.y7.c.item(a), runOn(this, this.ds), runOn(this, this.c9), runOn(this, this.dh)); } d0() { let a = this.dd; this.dy.aeb(a.n, a.o, this.b9, this == this.f.cv); this.a2(); } d1() { let a = this.dd; this.dy.aea(a.n); } dz() { let a = this.dd; for (let b of fromEnum(a.n)) { let c = typeCast(DataContext.$, b.content); if (c != null) { c.itemBrush = null; c.outline = null; } } } getDefaultTooltipTemplate() { let a = "<div class='ui-chart-default-tooltip-content'><span"; let 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.aa4 + "}, ${item." + this.dy.abc + "})</span>"; if (!stringIsNullOrEmpty(this.dy.ad4)) { a += "<span>, Radius: ${item." + this.dy.ad4 + "}</span>"; } a += "</div>"; return a; } } BubbleSeriesView.$t = /*@__PURE__*/ markType(BubbleSeriesView, 'BubbleSeriesView', ScatterBaseView.$); return BubbleSeriesView; })();