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_ej() { return true; } ct() { return new BubbleSeriesView(this); } q1(a) { super.q1(a); this.acs = a; } jl() { return 0.7; } w3() { if (this.w2 == 0) { return 2; } return super.w3(); } constructor() { super(); this.aej = null; this.aei = null; this.ac6 = null; this.acx = null; this.acw = null; this.acv = null; this.act = null; this.ab = BubbleSeries.$; this.y4 = new ScatterFrame(); this.y6 = new ScatterFrame(); this.y2 = new ScatterFrame(); } isAttachedTo(a) { return this.a5 == a; } ei() { return true; } p2(a) { super.p2(a); if (this.ac1 != null && this.ac6 != null && this.ac6.count > 0) { for (let b = 0; b < this.ac6.count; b++) { a(this.ac6._inner[b]); } } } get ac0() { return this.ac2; } get_isColoredItemwise() { return this.acy != null && this.acy.count > 0; } aeh(a) { let b = typeCast(CustomPaletteBrushScale.$, this.acr); let c = typeCast(ValueBrushScale.$, this.acr); let d = this.acr; if (b != null && this.dp != null) { return b.getBrush1(a, this.dp.count); } else if (c != null) { return c.getBrushByIndex(a, this.acy); } else if (d != null) { return d.getBrush(a); } return null; } get legendReady() { return this.ac2 != null && this.ac2.count != 0; } get minScaleText() { let a = this.acq(this.acu).b; return (Math.round(a * 1000) / 1000).toString(); } get maxScaleText() { let a = this.acq(this.acu).a; return (Math.round(a * 1000) / 1000).toString(); } forScaleColors(a) { for (let b = 0; b < this.ac2.count; b++) { if (this.acr == null || !this.acr.isReady) { return false; } let c = NaN; if (this.acy != null) { c = (this.acy.item(b) - this.acy.minimum) / (this.acy.maximum - this.acy.minimum); } let d = (this.ac2.item(b) - this.ac2.minimum) / (this.ac2.maximum - this.ac2.minimum); if (isNaN_(c)) { c = 0; } if (isNaN_(d)) { d = c; } let e = this.yj; let f = this.aeh(b); let g = f != null ? f : e; a(g, d); } return true; } kq(a, b) { let c = this.nd(b); if (c == BubbleSeries.$$p[5]) { return this.kr(a, b, this.adl); } if (c == BubbleSeries.$$p[11]) { return this.kr(a, b, this.adv); } if (c == ScatterBase.$$p[12]) { return this.kr(a, b, this.aav); } if (c == ScatterBase.$$p[16]) { return this.kr(a, b, this.aa3); } if (c == BubbleSeries.$$p[2]) { return this.kr(a, b, this.adg); } return super.kq(a, b); } md(a) { let b = this.nd(a); if (b == BubbleSeries.$$p[5]) { return this.adl; } if (b == BubbleSeries.$$p[11]) { return this.adv; } if (b == ScatterBase.$$p[12]) { return this.aav; } if (b == ScatterBase.$$p[16]) { return this.aa3; } if (b == BubbleSeries.$$p[2]) { return this.adg; } return super.md(a); } get ac2() { return this.acx; } set ac2(a) { if (this.acx != a) { let b = this.ac2; this.acx = a; this.raisePropertyChanged("RadiusColumn", b, this.ac2); } } get ac1() { return this.acw; } set ac1(a) { if (this.acw != a) { let b = this.ac1; this.acw = a; this.raisePropertyChanged("LabelColumn", b, this.ac1); } } get acy() { return this.acv; } set acy(a) { if (this.acv != a) { let b = this.acy; this.acv = a; this.raisePropertyChanged("FillColumn", b, this.acy); } } aa6(a, b, c, d, e) { if (c <= this.aab) { b.g = new Dictionary$2(Base.$, OwnedPoint.$, 1, c); } let f = this.aab; let g = this.dp; let h; let i; let j = this.getEffectiveViewport1(a); let k = new ScalerParams(0, d, e, this.yy.d, j); let l = new ScalerParams(0, d, e, this.yy.e, j); let m = false; let n = 0; if (this.dc != null) { if (this.dc.f3()) { let o = this.dc.m5(d, k); m = o.c; n = o.d; } } for (let p = 0; p < c; p++) { h = this.zj.item(p); i = this.zk.item(p); let q = { $type: Point_$type, x: this.yy.a.el(h, k), y: this.yy.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)) { 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; })())); } } } } } abh(a, b) { let c = typeCast(BubbleSeriesView.$, b); let d = c.c4; d.m = this.ac2; super.abh(a, b); let e = Math.min(this.zj != null ? this.zj.count : 0, this.zk != null ? this.zk.count : 0); if (e < 1) { return; } c.dr(); c.ds(); } ad0() { if (this.dc == null) { return; } if (this.a5 == null) { return; } if (this.a5.isItemwise) { let a = this.a5; this.a5.clearLegendItemsForSeries(this); this.adz(); a.renderItemwiseContent(this); } if (this.a5.isScale) { let b = this.a5; b.restoreOriginalState(); b.initializeLegend(this); } } static ac7(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 ac8(a, b, c, d, logBase_, e) { let f = logBase(e, logBase_); let g = logBase(a, logBase_); let h = logBase(b, logBase_); return BubbleSeries.ac7(g, h, c, d, f); } he(a, b, c) { let d = super.he(a, b, c); if (this.ac2 == null || this.dp == null || this.ac2.count == 0 || this.dp.count != this.ac2.count) { d = false; } return d; } zt(a, b) { if (b != 3) { return true; } if (a == null) { return true; } if (this.aav == a || this.aa3 == a || this.adv == a) { return true; } return false; } adz() { let a = typeCast(IChartLegend_$type, this.a5); if (a == null || this.dp == null) { return; } this.ac6 = new List$1(UIElement.$, 0); let b = typeCast(CustomPaletteBrushScale.$, this.acr); let c = typeCast(ValueBrushScale.$, this.acr); let d = this.acr; let e = this.acp(); 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.acy != null) { let k = this.acy.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.ac1 != null && this.ac1.item(i) != null ? this.ac1.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.sz; if (n == null) { n = this.cw.br(this.c1); } l.ah = n; this.ac6.add(l); } } pb(a, b, c, d) { super.pb(a, b, c, d); if (this.acu != null) { this.acu.aa(); } if (this.acr != null) { this.acr.x(); } this.ad0(); } qd() { super.qd(); this.ad0(); } qk() { super.qk(); this.ad0(); } ra(a, b, c, d) { super.ra(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.qf(); break; case "FastItemsSource": if (this.acu != null) { this.acu.aa(); } if (this.acr != null) { this.acr.x(); } if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.ac2); c.deregisterColumn(this.acy); c.deregisterColumn(this.ac1); this.ac2 = null; this.acy = null; this.ac1 = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.ac2 = this.dl(this.adv); if (!stringIsNullOrEmpty(this.adg)) { this.acy = this.dl(this.adg); } this.ac1 = this.dn(this.adl); } this.rs(false); this.ad0(); break; case BubbleSeries.$$p[11]: if (this.acu != null) { this.acu.aa(); } if (this.dp != null) { this.dp.deregisterColumn(this.ac2); this.ac2 = this.dl(this.adv); this.ad0(); } break; case "RadiusColumn": if (this.acu != null) { this.acu.aa(); } this.yz.c6.g$m(); this.rs(this.gg && this.d8); this.qm(); break; case BubbleSeries.$$p[12]: if (c != null) { c.l.remove(this); c.aa(); } if (d != null) { d.l.add(this); d.aa(); } this.rs(false); this.ql(); break; case BubbleSeries.$$p[13]: this.rs(false); this.ql(); break; case "DiscreteLegendItemTemplate": this.ad0(); break; case BubbleSeries.$$p[3]: if (c != null) { c.o.remove(this); c.x(); } if (d != null) { d.o.add(this); d.x(); } this.rs(false); this.ad0(); this.ql(); break; case BubbleSeries.$$p[4]: case BubbleSeries.$$p[8]: case BubbleSeries.$$p[7]: case BubbleSeries.$$p[6]: this.rs(false); this.ad0(); this.ql(); break; case "FillColumn": this.rs(this.gg && this.d8); this.ql(); break; case BubbleSeries.$$p[2]: if (this.acr != null) { this.acr.x(); } if (this.dp != null) { this.dp.deregisterColumn(this.acy); this.acy = this.dl(this.adg); this.ad0(); } break; case BubbleSeries.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.ac1); this.ac1 = this.dn(this.adl); this.ad0(); } 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.ad0(); break; case "SeriesViewer": this.ad0(); break; } } updateSizeScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.ac2 != null) { a.b = this.ac2.minimum; a.a = this.ac2.maximum; } if (this.acu != null) { this.acu.ab(a.b, a.a); } } updateFillScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.acy != null) { a.b = this.acy.minimum; a.a = this.acy.maximum; } if (this.acr != null) { this.acr.z(a.b, a.a); } } acq(a) { let b = new ActualRange(); b.b = NaN; b.a = NaN; if (this.ac2 != null) { b.b = this.ac2.minimum; b.a = this.ac2.maximum; } if (a != null) { a.x(); if (this.ac5) { b.b = a.globalMinimum; b.a = a.globalMaximum; } } return b; } acp() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.acy != null) { a.b = this.acy.minimum; a.a = this.acy.maximum; } let b = typeCast(ValueBrushScale.$, this.acr); if (b != null) { b.s(); if (this.ac3 && this.acr.o.count > 1) { a.b = b.q; a.a = b.p; } } return a; } ad2(a, b, c, d) { let e = c.width; if (!this.cw.b1.isEmpty) { e = this.cw.b1.width; } else if (this.dc != null && !this.dc.wn.isEmpty) { e = this.dc.wn.width; } let f = DeviceUtils.c(e); this.act = this.acu || ((() => { let $ret = new SizeScale(); $ret.minimumValue = f / 10; $ret.maximumValue = f / 5; return $ret; })()); if (this.act != null) { let g = this.act.minimumValue; let h = this.act.maximumValue; let i = this.act.logarithmBase; let j = this.acq(this.act); let k = j.b; let l = j.a; if (this.act.isLogarithmic) { for (let m = 0; m < b.count; m++) { b._inner[m] = BubbleSeries.ac8(k, l, g, h, i, b._inner[m]); } } else { for (let n = 0; n < b.count; n++) { b._inner[n] = BubbleSeries.ac7(k, l, g, h, b._inner[n]); } } } let o = 1; o = DeviceUtils.d(); let p = this.acu == 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]); } } } ad1(a) { let b = typeCast(BubbleSeriesView.$, this.cv); this.acs.cb = false; if (b != null) { b.cb = false; } let c = typeCast(CustomPaletteBrushScale.$, this.acr); let d = typeCast(ValueBrushScale.$, this.acr); let e = this.acr; let f = this.acp(); let g = f.b; let h = f.a; let i = this.acr == null || !this.acr.isReady || (d != null && this.adg == null); if (i) { this.acs.dq(); if (b != null) { b.dq(); } return; } this.acs.cb = true; if (b != null) { b.cb = 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.acy != null) { let q = this.acy.item(p); o = d.getBrushByRange(q, g, h); } else if (e != null) { o = e.getBrush(p); } else { if (this.yl == null) { o = this.yj; } else { o = this.yl; } } let r = null; if (this.ym == null) { r = this.yk; } else { r = this.ym; } if (this.ac4 && o != null) { r = o; } if (r != null && !isNaN_(this.ada)) { r = BrushUtil.m(r, this.ada); } if (o != null && !isNaN_(this.ac9)) { o = BrushUtil.m(o, this.ac9); } n.itemBrush = o; n.actualItemBrush = o; n.outline = r; } } } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.p4(a, c, b); return c.toArray(); } p4(a, b, c) { let d = 1; if (d == 1) { let e = this.acz(); this.aa9(a, b, c, d, e); } else { super.p4(a, b, c); } } acz() { let a = new FastItemColumn(typeCast(FastItemsSource.$, this.dp), "RadiusColumn", null, false); let b = this.cw.b1; let c = b.width; if (!this.cw.b1.isEmpty) { c = this.cw.b1.width; } else if (this.dc != null && !this.dc.wn.isEmpty) { c = this.dc.wn.width; } let d = DeviceUtils.c(c); this.act = this.acu || ((() => { let $ret = new SizeScale(); $ret.minimumValue = d / 10; $ret.maximumValue = d / 5; return $ret; })()); if (this.act != null) { let e = this.act.minimumValue; let f = this.act.maximumValue; let g = this.act.logarithmBase; let h = this.acq(this.act); let i = h.b; let j = h.a; if (this.act.isLogarithmic) { for (let k = 0; k < a.count; k++) { a.item(k, BubbleSeries.ac8(i, j, e, f, g, a.item(k))); } } else { for (let l = 0; l < a.count; l++) { a.item(l, BubbleSeries.ac7(i, j, e, f, a.item(l))); } } } let m = DeviceUtils.d(); let n = this.acu == 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.kn(c); let e = d == null ? NaN : this.ix(d, "XMemberPath"); let f = d == null ? NaN : this.ix(d, "YMemberPath"); let g = new DataLegendSeriesValueInfo(); g.a = 13; g.l = e; g.q = "X"; g.r = this.aav != null ? this.aav : "X"; g.s = this.aar != null ? this.aar : "X:"; g.t = this.aat != null ? this.aat : ""; let h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 14; h.q = "Y"; h.r = this.aa3 != null ? this.aa3 : "Y"; h.s = this.aaz != null ? this.aaz : "Y:"; h.t = this.aa1 != null ? this.aa1 : ""; let i = new DataLegendSeriesContext(); i.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mc(); if (!stringIsNullOrEmpty(this.adv)) { let j = d == null ? NaN : this.ix(d, "RadiusMemberPath"); let k = new DataLegendSeriesValueInfo(); k.l = j; k.a = 11; k.q = "Radius"; k.r = this.adv != null ? this.adv : "Radius"; k.s = this.adr != null ? this.adr : "R:"; k.t = this.adt != null ? this.adt : ""; i.e.add(k); } else if (this.act != null) { let l = new DataLegendSeriesValueInfo(); l.l = this.act.maximumValue; l.a = 11; l.q = "Radius"; l.r = this.adv != null ? this.adv : "Radius"; l.s = this.adr != null ? this.adr : "R:"; l.t = this.adt != null ? this.adt : ""; i.e.add(l); } if (!stringIsNullOrEmpty(this.adg)) { let m = d == null ? NaN : this.ix(d, "FillMemberPath"); let n = new DataLegendSeriesValueInfo(); n.l = m; n.a = 12; n.q = "Fill"; n.r = this.adg != null ? this.adg : "Fill"; n.s = this.adc != null ? this.adc : "F:"; n.t = this.ade != null ? this.ade : ""; i.e.add(n); } return i; } get actualMarkerBrush() { return this.yj; } } BubbleSeries.$t = /*@__PURE__*/ markType(BubbleSeries, 'BubbleSeries', ScatterBase.$, [IScaleLegendSeries_$type, ISupportsSizeScale_$type, ISupportsFillScale_$type]); BubbleSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, BubbleSeries, 'raisePropertyChanged', ['FillMemberAsLegendLabel:adc:ad3', [2, null], 'FillMemberAsLegendUnit:ade:ad4', [2, null], 'FillMemberPath:adg:ad5', [2], 'FillScale:acr:ad6', [BrushScale.$], 'FillScaleUseGlobalValues:ac3:ad7', [0, false], 'LabelMemberPath:adl:ad8', [2], 'MarkerBrushBrightness:ac9:ad9', [1, NaN], 'MarkerOutlineBrightness:ada:aea', [1, NaN], 'MarkerOutlineUsesFillScale:ac4:aeb', [0, false], 'RadiusMemberAsLegendLabel:adr:aec', [2, null], 'RadiusMemberAsLegendUnit:adt:aed', [2, null], 'RadiusMemberPath:adv:aee', [2, null], 'RadiusScale:acu:aef', [SizeScale.$], 'RadiusScaleUseGlobalValues:ac5:aeg', [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.ac7(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.dp = null; this.dp = a; this.c6 = new ScatterTrendLineManager(); } ax() { super.ax(); if (!this.r) { this.b8.xc = Defaults.e; } } c3() { return new BubbleMarkerManager((a) => this.c7.item(a), (a) => this.c5.yy.c.item(a), runOn(this, this.di), runOn(this, this.c0), runOn(this, this.c8)); } dr() { let a = this.c4; this.dp.ad2(a.n, a.o, this.b1, this == this.f.cv); this.av(); } ds() { let a = this.c4; this.dp.ad1(a.n); } dq() { let a = this.c4; 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.dp.title + "</span><br/><span>" + "(${item." + this.dp.aav + "}, ${item." + this.dp.aa3 + "})</span>"; if (!stringIsNullOrEmpty(this.dp.adv)) { a += "<span>, Radius: ${item." + this.dp.adv + "}</span>"; } a += "</div>"; return a; } } BubbleSeriesView.$t = /*@__PURE__*/ markType(BubbleSeriesView, 'BubbleSeriesView', ScatterBaseView.$); return BubbleSeriesView; })();