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); } ri(a) { super.ri(a); this.adc = a; } ju() { return 0.7; } xn() { if (this.xm == 0) { return 2; } return super.xn(); } constructor() { super(); this.ae3 = null; this.ae2 = null; this.adq = null; this.adh = null; this.adg = null; this.adf = null; this.add = null; this.ab = BubbleSeries.$; this.zo = new ScatterFrame(); this.zq = new ScatterFrame(); this.zm = new ScatterFrame(); } isAttachedTo(a) { return this.a5 == a; } ej() { return true; } qh(a) { super.qh(a); if (this.adl != null && this.adq != null && this.adq.count > 0) { for (let b = 0; b < this.adq.count; b++) { a(this.adq._inner[b]); } } } get adk() { return this.adm; } get_isColoredItemwise() { return this.adi != null && this.adi.count > 0; } ae1(a) { let b = typeCast(CustomPaletteBrushScale.$, this.adb); let c = typeCast(ValueBrushScale.$, this.adb); let d = this.adb; if (b != null && this.dp != null) { return b.getBrush1(a, this.dp.count); } else if (c != null) { return c.getBrushByIndex(a, this.adi); } else if (d != null) { return d.getBrush(a); } return null; } get legendReady() { return this.adm != null && this.adm.count != 0; } get minScaleText() { let a = this.ada(this.ade).b; return (Math.round(a * 1000) / 1000).toString(); } get maxScaleText() { let a = this.ada(this.ade).a; return (Math.round(a * 1000) / 1000).toString(); } forScaleColors(a) { for (let b = 0; b < this.adm.count; b++) { if (this.adb == null || !this.adb.isReady) { return false; } let c = NaN; if (this.adi != null) { c = (this.adi.item(b) - this.adi.minimum) / (this.adi.maximum - this.adi.minimum); } let d = (this.adm.item(b) - this.adm.minimum) / (this.adm.maximum - this.adm.minimum); if (isNaN_(c)) { c = 0; } if (isNaN_(d)) { d = c; } let e = this.y3; let f = this.ae1(b); let g = f != null ? f : e; a(g, d); } return true; } k0(a, b) { let c = this.np(b); if (c == BubbleSeries.$$p[5]) { return this.k1(a, b, this.ad5); } if (c == BubbleSeries.$$p[11]) { return this.k1(a, b, this.aef); } if (c == ScatterBase.$$p[12]) { return this.k1(a, b, this.abf); } if (c == ScatterBase.$$p[16]) { return this.k1(a, b, this.abn); } if (c == BubbleSeries.$$p[2]) { return this.k1(a, b, this.ad0); } return super.k0(a, b); } mp(a) { let b = this.np(a); if (b == BubbleSeries.$$p[5]) { return this.ad5; } if (b == BubbleSeries.$$p[11]) { return this.aef; } if (b == ScatterBase.$$p[12]) { return this.abf; } if (b == ScatterBase.$$p[16]) { return this.abn; } if (b == BubbleSeries.$$p[2]) { return this.ad0; } return super.mp(a); } get adm() { return this.adh; } set adm(a) { if (this.adh != a) { let b = this.adm; this.adh = a; this.raisePropertyChanged("RadiusColumn", b, this.adm); } } get adl() { return this.adg; } set adl(a) { if (this.adg != a) { let b = this.adl; this.adg = a; this.raisePropertyChanged("LabelColumn", b, this.adl); } } get adi() { return this.adf; } set adi(a) { if (this.adf != a) { let b = this.adi; this.adf = a; this.raisePropertyChanged("FillColumn", b, this.adi); } } abq(a, b, c, d, e) { if (c <= this.aav) { b.j = new Dictionary$2(Base.$, OwnedPoint.$, 1, c); } let f = this.aav; let g = this.dp; let h; let i; let j = this.getEffectiveViewport1(a); let k = new ScalerParams(0, d, e, this.zi.d, j); let l = new ScalerParams(0, d, e, this.zi.e, j); let m = false; let n = 0; if (this.dc != null) { if (this.dc.g1()) { let o = this.dc.ok(d, k); m = o.c; n = o.d; } } for (let p = 0; p < c; p++) { h = this.z3.item(p); i = this.z4.item(p); let q = { $type: Point_$type, x: this.zi.a.f7(h, k), y: this.zi.b.f7(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.j.containsKey(r)) { let s = { $type: Point_$type, x: h, y: i }; b.j.addItem(r, ((() => { let $ret = new OwnedPoint(); $ret.a = r; $ret.b = s; $ret.c = q; return $ret; })())); } } } } } ab1(a, b) { let c = typeCast(BubbleSeriesView.$, b); let d = c.dd; d.m = this.adm; super.ab1(a, b); let e = Math.min(this.z3 != null ? this.z3.count : 0, this.z4 != null ? this.z4.count : 0); if (e < 1) { return; } c.d0(); c.d1(); } aek() { if (this.dc == null) { return; } if (this.a5 == null) { return; } if (this.a5.isItemwise) { let a = this.a5; this.a5.clearLegendItemsForSeries(this); this.aej(); a.renderItemwiseContent(this); } if (this.a5.isScale) { let b = this.a5; b.restoreOriginalState(); b.initializeLegend(this); } } static adr(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 ads(a, b, c, d, logBase_, e) { let f = logBase(e, logBase_); let g = logBase(a, logBase_); let h = logBase(b, logBase_); return BubbleSeries.adr(g, h, c, d, f); } hl(a, b, c) { let d = super.hl(a, b, c); if (this.adm == null || this.dp == null || this.adm.count == 0 || this.dp.count != this.adm.count) { d = false; } return d; } aad(a, b) { if (b != 3) { return true; } if (a == null) { return true; } if (this.abf == a || this.abn == a || this.aef == a) { return true; } return false; } aej() { let a = typeCast(IChartLegend_$type, this.a5); if (a == null || this.dp == null) { return; } this.adq = new List$1(UIElement.$, 0); let b = typeCast(CustomPaletteBrushScale.$, this.adb); let c = typeCast(ValueBrushScale.$, this.adb); let d = this.adb; let e = this.ac9(); 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.adi != null) { let k = this.adi.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.adl != null && this.adl.item(i) != null ? this.adl.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.tg; if (n == null) { n = this.cw.bz(this.c1); } l.ah = n; this.adq.add(l); } } pp(a, b, c, d) { super.pp(a, b, c, d); if (this.ade != null) { this.ade.aa(); } if (this.adb != null) { this.adb.x(); } this.aek(); } qt() { super.qt(); this.aek(); } q0() { super.q0(); this.aek(); } rr(a, b, c, d) { super.rr(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.qv(); break; case "FastItemsSource": if (this.ade != null) { this.ade.aa(); } if (this.adb != null) { this.adb.x(); } if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.adm); c.deregisterColumn(this.adi); c.deregisterColumn(this.adl); this.adm = null; this.adi = null; this.adl = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.adm = this.dl(this.aef); if (!stringIsNullOrEmpty(this.ad0)) { this.adi = this.dl(this.ad0); } this.adl = this.dn(this.ad5); } this.r9(false); this.aek(); break; case BubbleSeries.$$p[11]: if (this.ade != null) { this.ade.aa(); } if (this.dp != null) { this.dp.deregisterColumn(this.adm); this.adm = this.dl(this.aef); this.aek(); } break; case "RadiusColumn": if (this.ade != null) { this.ade.aa(); } this.zj.df.g$m(); this.r9(this.gn && this.d9); this.q2(); break; case BubbleSeries.$$p[12]: if (c != null) { c.l.remove(this); c.aa(); } if (d != null) { d.l.add(this); d.aa(); } this.r9(false); this.q1(); break; case BubbleSeries.$$p[13]: this.r9(false); this.q1(); break; case "DiscreteLegendItemTemplate": this.aek(); break; case BubbleSeries.$$p[3]: if (c != null) { c.o.remove(this); c.x(); } if (d != null) { d.o.add(this); d.x(); } this.r9(false); this.aek(); this.q1(); break; case BubbleSeries.$$p[4]: case BubbleSeries.$$p[8]: case BubbleSeries.$$p[7]: case BubbleSeries.$$p[6]: this.r9(false); this.aek(); this.q1(); break; case "FillColumn": this.r9(this.gn && this.d9); this.q1(); break; case BubbleSeries.$$p[2]: if (this.adb != null) { this.adb.x(); } if (this.dp != null) { this.dp.deregisterColumn(this.adi); this.adi = this.dl(this.ad0); this.aek(); } break; case BubbleSeries.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.adl); this.adl = this.dn(this.ad5); this.aek(); } 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.b9)) { if (j.legend == g) { i = j; h = false; } } } if (h) { g.restoreOriginalState(); } else { g.initializeLegend(typeCast(IScaleLegendSeries_$type, i)); } } this.aek(); break; case "SeriesViewer": this.aek(); break; } } updateSizeScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.adm != null) { a.b = this.adm.minimum; a.a = this.adm.maximum; } if (this.ade != null) { this.ade.ab(a.b, a.a); } } updateFillScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.adi != null) { a.b = this.adi.minimum; a.a = this.adi.maximum; } if (this.adb != null) { this.adb.z(a.b, a.a); } } ada(a) { let b = new ActualRange(); b.b = NaN; b.a = NaN; if (this.adm != null) { b.b = this.adm.minimum; b.a = this.adm.maximum; } if (a != null) { a.x(); if (this.adp) { b.b = a.globalMinimum; b.a = a.globalMaximum; } } return b; } ac9() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.adi != null) { a.b = this.adi.minimum; a.a = this.adi.maximum; } let b = typeCast(ValueBrushScale.$, this.adb); if (b != null) { b.s(); if (this.adn && this.adb.o.count > 1) { a.b = b.q; a.a = b.p; } } return a; } aem(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.za.isEmpty) { e = this.dc.za.width; } let f = DeviceUtils.c(e); this.add = this.ade || ((() => { let $ret = new SizeScale(); $ret.minimumValue = f / 10; $ret.maximumValue = f / 5; return $ret; })()); if (this.add != null) { let g = this.add.minimumValue; let h = this.add.maximumValue; let i = this.add.logarithmBase; let j = this.ada(this.add); let k = j.b; let l = j.a; if (this.add.isLogarithmic) { for (let m = 0; m < b.count; m++) { b._inner[m] = BubbleSeries.ads(k, l, g, h, i, b._inner[m]); } } else { for (let n = 0; n < b.count; n++) { b._inner[n] = BubbleSeries.adr(k, l, g, h, b._inner[n]); } } } let o = 1; o = DeviceUtils.d(); let p = this.ade == 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]); } } } ael(a) { let b = typeCast(BubbleSeriesView.$, this.cv); this.adc.ck = false; if (b != null) { b.ck = false; } let c = typeCast(CustomPaletteBrushScale.$, this.adb); let d = typeCast(ValueBrushScale.$, this.adb); let e = this.adb; let f = this.ac9(); let g = f.b; let h = f.a; let i = this.adb == null || !this.adb.isReady || (d != null && this.ad0 == null); if (i) { this.adc.dz(); if (b != null) { b.dz(); } return; } this.adc.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.adi != null) { let q = this.adi.item(p); o = d.getBrushByRange(q, g, h); } else if (e != null) { o = e.getBrush(p); } else { if (this.y5 == null) { o = this.y3; } else { o = this.y5; } } let r = null; if (this.y6 == null) { r = this.y4; } else { r = this.y6; } if (this.ado && o != null) { r = o; } if (r != null && !isNaN_(this.adu)) { r = BrushUtil.q(r, this.adu); } if (o != null && !isNaN_(this.adt)) { o = BrushUtil.q(o, this.adt); } n.itemBrush = o; n.actualItemBrush = o; n.outline = r; } } } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.qj(a, c, b); return c.toArray(); } qj(a, b, c) { let d = 1; if (d == 1) { let e = this.adj(); this.abt(a, b, c, d, e); } else { super.qj(a, b, c); } } adj() { 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.za.isEmpty) { c = this.dc.za.width; } let d = DeviceUtils.c(c); this.add = this.ade || ((() => { let $ret = new SizeScale(); $ret.minimumValue = d / 10; $ret.maximumValue = d / 5; return $ret; })()); if (this.add != null) { let e = this.add.minimumValue; let f = this.add.maximumValue; let g = this.add.logarithmBase; let h = this.ada(this.add); let i = h.b; let j = h.a; if (this.add.isLogarithmic) { for (let k = 0; k < a.count; k++) { a.item(k, BubbleSeries.ads(i, j, e, f, g, a.item(k))); } } else { for (let l = 0; l < a.count; l++) { a.item(l, BubbleSeries.adr(i, j, e, f, a.item(l))); } } } let m = DeviceUtils.d(); let n = this.ade == 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.kx(c); let e = d == null ? NaN : this.i5(d, "XMemberPath"); let f = d == null ? NaN : this.i5(d, "YMemberPath"); let g = new DataLegendSeriesValueInfo(); g.a = 13; g.l = e; g.q = "X"; g.r = this.abf != null ? this.abf : "X"; g.s = this.abb != null ? this.abb : "X:"; g.t = this.abd != null ? this.abd : ""; let h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 14; h.q = "Y"; h.r = this.abn != null ? this.abn : "Y"; h.s = this.abj != null ? this.abj : "Y:"; h.t = this.abl != null ? this.abl : ""; let i = new DataLegendSeriesContext(); i.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mo(); if (!stringIsNullOrEmpty(this.aef)) { let j = d == null ? NaN : this.i5(d, "RadiusMemberPath"); let k = new DataLegendSeriesValueInfo(); k.l = j; k.a = 11; k.q = "Radius"; k.r = this.aef != null ? this.aef : "Radius"; k.s = this.aeb != null ? this.aeb : "R:"; k.t = this.aed != null ? this.aed : ""; i.e.add(k); } else if (this.add != null) { let l = new DataLegendSeriesValueInfo(); l.l = this.add.maximumValue; l.a = 11; l.q = "Radius"; l.r = this.aef != null ? this.aef : "Radius"; l.s = this.aeb != null ? this.aeb : "R:"; l.t = this.aed != null ? this.aed : ""; i.e.add(l); } if (!stringIsNullOrEmpty(this.ad0)) { let m = d == null ? NaN : this.i5(d, "FillMemberPath"); let n = new DataLegendSeriesValueInfo(); n.l = m; n.a = 12; n.q = "Fill"; n.r = this.ad0 != null ? this.ad0 : "Fill"; n.s = this.adw != null ? this.adw : "F:"; n.t = this.ady != null ? this.ady : ""; i.e.add(n); } return i; } get actualMarkerBrush() { return this.y3; } } BubbleSeries.$t = /*@__PURE__*/ markType(BubbleSeries, 'BubbleSeries', ScatterBase.$, [IScaleLegendSeries_$type, ISupportsSizeScale_$type, ISupportsFillScale_$type]); BubbleSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, BubbleSeries, 'raisePropertyChanged', ['FillMemberAsLegendLabel:adw:aen', [2, null], 'FillMemberAsLegendUnit:ady:aeo', [2, null], 'FillMemberPath:ad0:aep', [2], 'FillScale:adb:aeq', [BrushScale.$], 'FillScaleUseGlobalValues:adn:aer', [0, false], 'LabelMemberPath:ad5:aes', [2], 'MarkerBrushBrightness:adt:aet', [1, NaN], 'MarkerOutlineBrightness:adu:aeu', [1, NaN], 'MarkerOutlineUsesFillScale:ado:aev', [0, false], 'RadiusMemberAsLegendLabel:aeb:aew', [2, null], 'RadiusMemberAsLegendUnit:aed:aex', [2, null], 'RadiusMemberPath:aef:aey', [2, null], 'RadiusScale:ade:aez', [SizeScale.$], 'RadiusScaleUseGlobalValues:adp:ae0', [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.adr(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.xw = Defaults.e; } } dc() { return new BubbleMarkerManager((a) => this.dg.item(a), (a) => this.de.zi.c.item(a), runOn(this, this.ds), runOn(this, this.c9), runOn(this, this.dh)); } d0() { let a = this.dd; this.dy.aem(a.n, a.o, this.b9, this == this.f.cv); this.a2(); } d1() { let a = this.dd; this.dy.ael(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$v(this.f); if (!stringIsNullOrEmpty(b)) { a += " style='color:" + b + "'"; } a += ">" + this.dy.title + "</span><br/><span>" + "(${item." + this.dy.abf + "}, ${item." + this.dy.abn + "})</span>"; if (!stringIsNullOrEmpty(this.dy.aef)) { a += "<span>, Radius: ${item." + this.dy.aef + "}</span>"; } a += "</div>"; return a; } } BubbleSeriesView.$t = /*@__PURE__*/ markType(BubbleSeriesView, 'BubbleSeriesView', ScatterBaseView.$); return BubbleSeriesView; })();