UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

957 lines (956 loc) 35.4 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-angular-core"; import { ISupportsSizeScale_$type } from "./ISupportsSizeScale"; import { ISupportsFillScale_$type } from "./ISupportsFillScale"; import { Base, typeCast, Point_$type, fromEnum, markType, markDep, enumGetBox, runOn } from "igniteui-angular-core"; import { List$1 } from "igniteui-angular-core"; import { UIElement } from "igniteui-angular-core"; import { ActualRange } from "./ActualRange"; import { DependencyProperty } from "igniteui-angular-core"; import { SizeScale } from "./SizeScale"; import { BrushScale } from "./BrushScale"; import { ScatterFrame } from "./ScatterFrame"; import { IChartLegend_$type } from "igniteui-angular-core"; import { ValueBrushScale } from "./ValueBrushScale"; import { IFastItemsSource_$type } from "igniteui-angular-core"; import { ScatterBaseView } from "./ScatterBaseView"; import { ScalerParams } from "./ScalerParams"; import { Dictionary$2 } from "igniteui-angular-core"; import { OwnedPoint } from "./OwnedPoint"; import { BubbleMarkerManager } from "./BubbleMarkerManager"; import { IChartItemLegend_$type } from "igniteui-angular-core"; import { IChartScaleLegend_$type } from "igniteui-angular-core"; import { ContentControl } from "igniteui-angular-core"; import { DataContext } from "igniteui-angular-core"; import { DeviceUtils } from "igniteui-angular-core"; import { BrushUtil } from "igniteui-angular-core"; import { ChartSelection } from "./ChartSelection"; import { FastItemsSource } from "igniteui-angular-core"; import { FastItemColumn } from "igniteui-angular-core"; import { DataLegendSeriesValueInfo } from "igniteui-angular-core"; import { DataLegendSeriesContext } from "igniteui-angular-core"; import { PropertyMetadata } from "igniteui-angular-core"; import { isNaN_, isInfinity, logBase } from "igniteui-angular-core"; import { stringIsNullOrEmpty } from "igniteui-angular-core"; import { BrushSelectionMode_$type } from "./BrushSelectionMode"; import { ScatterTrendLineManager } from "./ScatterTrendLineManager"; import { Defaults } from "./Defaults"; /** * @hidden */ export let BubbleSeries = /*@__PURE__*/ (() => { class BubbleSeries extends ScatterBase { constructor() { super(); this.aeg = null; this.aef = null; this.ac3 = null; this.acu = null; this.act = null; this.acs = null; this.acq = null; this.ab = BubbleSeries.$; this.y1 = new ScatterFrame(); this.y3 = new ScatterFrame(); this.yz = new ScatterFrame(); } bj() { return new BubbleSeries(); } get_ei() { return true; } cs() { return new BubbleSeriesView(this); } q0(a) { super.q0(a); this.acp = a; } jk() { return 0.7; } w0() { if (this.wz == 0) { return 2; } return super.w0(); } isAttachedTo(a) { return this.a5 == a; } eh() { return true; } p1(a) { super.p1(a); if (this.acy != null && this.ac3 != null && this.ac3.count > 0) { for (let b = 0; b < this.ac3.count; b++) { a(this.ac3._inner[b]); } } } get acx() { return this.acz; } get_isColoredItemwise() { return this.acv != null && this.acv.count > 0; } aee(a) { let b = typeCast(CustomPaletteBrushScale.$, this.aco); let c = typeCast(ValueBrushScale.$, this.aco); let d = this.aco; if (b != null && this.dn != null) { return b.getBrush1(a, this.dn.count); } else if (c != null) { return c.getBrushByIndex(a, this.acv); } else if (d != null) { return d.getBrush(a); } return null; } get legendReady() { return this.acz != null && this.acz.count != 0; } get minScaleText() { let a = this.acn(this.acr).b; return (Math.round(a * 1000) / 1000).toString(); } get maxScaleText() { let a = this.acn(this.acr).a; return (Math.round(a * 1000) / 1000).toString(); } forScaleColors(a) { for (let b = 0; b < this.acz.count; b++) { if (this.aco == null || !this.aco.isReady) { return false; } let c = NaN; if (this.acv != null) { c = (this.acv.item(b) - this.acv.minimum) / (this.acv.maximum - this.acv.minimum); } let d = (this.acz.item(b) - this.acz.minimum) / (this.acz.maximum - this.acz.minimum); if (isNaN_(c)) { c = 0; } if (isNaN_(d)) { d = c; } let e = this.yg; let f = this.aee(b); let g = f != null ? f : e; a(g, d); } return true; } kp(a, b) { let c = this.nc(b); if (c == BubbleSeries.$$p[5]) { return this.kq(a, b, this.adi); } if (c == BubbleSeries.$$p[11]) { return this.kq(a, b, this.ads); } if (c == ScatterBase.$$p[12]) { return this.kq(a, b, this.aas); } if (c == ScatterBase.$$p[16]) { return this.kq(a, b, this.aa0); } if (c == BubbleSeries.$$p[2]) { return this.kq(a, b, this.add); } return super.kp(a, b); } mc(a) { let b = this.nc(a); if (b == BubbleSeries.$$p[5]) { return this.adi; } if (b == BubbleSeries.$$p[11]) { return this.ads; } if (b == ScatterBase.$$p[12]) { return this.aas; } if (b == ScatterBase.$$p[16]) { return this.aa0; } if (b == BubbleSeries.$$p[2]) { return this.add; } return super.mc(a); } get acz() { return this.acu; } set acz(a) { if (this.acu != a) { let b = this.acz; this.acu = a; this.raisePropertyChanged("RadiusColumn", b, this.acz); } } get acy() { return this.act; } set acy(a) { if (this.act != a) { let b = this.acy; this.act = a; this.raisePropertyChanged("LabelColumn", b, this.acy); } } get acv() { return this.acs; } set acv(a) { if (this.acs != a) { let b = this.acv; this.acs = a; this.raisePropertyChanged("FillColumn", b, this.acv); } } aa3(a, b, c, d, e) { if (c <= this.z8) { b.g = new Dictionary$2(Base.$, OwnedPoint.$, 1, c); } let f = this.z8; let g = this.dn; let h; let i; let j = this.getEffectiveViewport1(a); let k = new ScalerParams(0, d, e, this.yv.d, j); let l = new ScalerParams(0, d, e, this.yv.e, j); let m = false; let n = 0; if (this.db != null) { if (this.db.f4()) { let o = this.db.m4(d, k); m = o.c; n = o.d; } } for (let p = 0; p < c; p++) { h = this.zg.item(p); i = this.zh.item(p); let q = { $type: Point_$type, x: this.yv.a.el(h, k), y: this.yv.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; })())); } } } } } abe(a, b) { let c = typeCast(BubbleSeriesView.$, b); let d = c.c0; d.m = this.acz; super.abe(a, b); let e = Math.min(this.zg != null ? this.zg.count : 0, this.zh != null ? this.zh.count : 0); if (e < 1) { return; } c.dm(); c.dn(); } adx() { if (this.db == null) { return; } if (this.a5 == null) { return; } if (this.a5.isItemwise) { let a = this.a5; this.a5.clearLegendItemsForSeries(this); this.adw(); a.renderItemwiseContent(this); } if (this.a5.isScale) { let b = this.a5; b.restoreOriginalState(); b.initializeLegend(this); } } static ac4(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 ac5(a, b, c, d, logBase_, e) { let f = logBase(e, logBase_); let g = logBase(a, logBase_); let h = logBase(b, logBase_); return BubbleSeries.ac4(g, h, c, d, f); } hd(a, b, c) { let d = super.hd(a, b, c); if (this.acz == null || this.dn == null || this.acz.count == 0 || this.dn.count != this.acz.count) { d = false; } return d; } zq(a, b) { if (b != 3) { return true; } if (a == null) { return true; } if (this.aas == a || this.aa0 == a || this.ads == a) { return true; } return false; } adw() { let a = typeCast(IChartLegend_$type, this.a5); if (a == null || this.dn == null) { return; } this.ac3 = new List$1(UIElement.$, 0); let b = typeCast(CustomPaletteBrushScale.$, this.aco); let c = typeCast(ValueBrushScale.$, this.aco); let d = this.aco; let e = this.acm(); let f = e.b; let g = e.a; let h = this.dn; for (let i = 0; i < h.count; i++) { let j = null; if (c != null && this.acv != null) { let k = this.acv.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.acy != null && this.acy.item(i) != null ? this.acy.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.sw; if (n == null) { n = this.cv.bn(this.c0); } l.ah = n; this.ac3.add(l); } } pa(a, b, c, d) { super.pa(a, b, c, d); if (this.acr != null) { this.acr.aa(); } if (this.aco != null) { this.aco.x(); } this.adx(); } qc() { super.qc(); this.adx(); } qj() { super.qj(); this.adx(); } q8(a, b, c, d) { super.q8(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.qe(); break; case "FastItemsSource": if (this.acr != null) { this.acr.aa(); } if (this.aco != null) { this.aco.x(); } if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.acz); c.deregisterColumn(this.acv); c.deregisterColumn(this.acy); this.acz = null; this.acv = null; this.acy = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.acz = this.dk(this.ads); if (!stringIsNullOrEmpty(this.add)) { this.acv = this.dk(this.add); } this.acy = this.dm(this.adi); } this.rq(false); this.adx(); break; case BubbleSeries.$$p[11]: if (this.acr != null) { this.acr.aa(); } if (this.dn != null) { this.dn.deregisterColumn(this.acz); this.acz = this.dk(this.ads); this.adx(); } break; case "RadiusColumn": if (this.acr != null) { this.acr.aa(); } this.yw.c2.g$i(); this.rq(this.gf && this.d7); this.ql(); break; case BubbleSeries.$$p[12]: if (c != null) { c.l.remove(this); c.aa(); } if (d != null) { d.l.add(this); d.aa(); } this.rq(false); this.qk(); break; case BubbleSeries.$$p[13]: this.rq(false); this.qk(); break; case "DiscreteLegendItemTemplate": this.adx(); break; case BubbleSeries.$$p[3]: if (c != null) { c.o.remove(this); c.x(); } if (d != null) { d.o.add(this); d.x(); } this.rq(false); this.adx(); this.qk(); break; case BubbleSeries.$$p[4]: case BubbleSeries.$$p[8]: case BubbleSeries.$$p[7]: case BubbleSeries.$$p[6]: this.rq(false); this.adx(); this.qk(); break; case "FillColumn": this.rq(this.gf && this.d7); this.qk(); break; case BubbleSeries.$$p[2]: if (this.aco != null) { this.aco.x(); } if (this.dn != null) { this.dn.deregisterColumn(this.acv); this.acv = this.dk(this.add); this.adx(); } break; case BubbleSeries.$$p[5]: if (this.dn != null) { this.dn.deregisterColumn(this.acy); this.acy = this.dm(this.adi); this.adx(); } 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.db != null) { for (let j of fromEnum(this.db.series)) { if (j.legend == g) { i = j; h = false; } } } if (h) { g.restoreOriginalState(); } else { g.initializeLegend(typeCast(IScaleLegendSeries_$type, i)); } } this.adx(); break; case "SeriesViewer": this.adx(); break; } } updateSizeScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.acz != null) { a.b = this.acz.minimum; a.a = this.acz.maximum; } if (this.acr != null) { this.acr.ab(a.b, a.a); } } updateFillScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.acv != null) { a.b = this.acv.minimum; a.a = this.acv.maximum; } if (this.aco != null) { this.aco.z(a.b, a.a); } } acn(a) { let b = new ActualRange(); b.b = NaN; b.a = NaN; if (this.acz != null) { b.b = this.acz.minimum; b.a = this.acz.maximum; } if (a != null) { a.x(); if (this.ac2) { b.b = a.globalMinimum; b.a = a.globalMaximum; } } return b; } acm() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.acv != null) { a.b = this.acv.minimum; a.a = this.acv.maximum; } let b = typeCast(ValueBrushScale.$, this.aco); if (b != null) { b.s(); if (this.ac0 && this.aco.o.count > 1) { a.b = b.q; a.a = b.p; } } return a; } adz(a, b, c, d) { let e = c.width; if (!this.cv.bx.isEmpty) { e = this.cv.bx.width; } else if (this.db != null && !this.db.wk.isEmpty) { e = this.db.wk.width; } let f = DeviceUtils.c(e); this.acq = this.acr || ((() => { let $ret = new SizeScale(); $ret.minimumValue = f / 10; $ret.maximumValue = f / 5; return $ret; })()); if (this.acq != null) { let g = this.acq.minimumValue; let h = this.acq.maximumValue; let i = this.acq.logarithmBase; let j = this.acn(this.acq); let k = j.b; let l = j.a; if (this.acq.isLogarithmic) { for (let m = 0; m < b.count; m++) { b._inner[m] = BubbleSeries.ac5(k, l, g, h, i, b._inner[m]); } } else { for (let n = 0; n < b.count; n++) { b._inner[n] = BubbleSeries.ac4(k, l, g, h, b._inner[n]); } } } let o = 1; o = DeviceUtils.d(); let p = this.acr == 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]); } } } ady(a) { let b = typeCast(BubbleSeriesView.$, this.cu); this.acp.b7 = false; if (b != null) { b.b7 = false; } let c = typeCast(CustomPaletteBrushScale.$, this.aco); let d = typeCast(ValueBrushScale.$, this.aco); let e = this.aco; let f = this.acm(); let g = f.b; let h = f.a; let i = this.aco == null || !this.aco.isReady || (d != null && this.add == null); if (i) { this.acp.dl(); if (b != null) { b.dl(); } return; } this.acp.b7 = true; if (b != null) { b.b7 = true; } let j = a.count; let k = this.dn; 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.acv != null) { let q = this.acv.item(p); o = d.getBrushByRange(q, g, h); } else if (e != null) { o = e.getBrush(p); } else { if (this.yi == null) { o = this.yg; } else { o = this.yi; } } let r = null; if (this.yj == null) { r = this.yh; } else { r = this.yj; } if (this.ac1 && o != null) { r = o; } if (r != null && !isNaN_(this.ac7)) { r = BrushUtil.m(r, this.ac7); } if (o != null && !isNaN_(this.ac6)) { o = BrushUtil.m(o, this.ac6); } n.itemBrush = o; n.actualItemBrush = o; n.outline = r; } } } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.p3(a, c, b); return c.toArray(); } p3(a, b, c) { let d = 1; if (d == 1) { let e = this.acw(); this.aa6(a, b, c, d, e); } else { super.p3(a, b, c); } } acw() { let a = new FastItemColumn(typeCast(FastItemsSource.$, this.dn), "RadiusColumn", null, false); let b = this.cv.bx; let c = b.width; if (!this.cv.bx.isEmpty) { c = this.cv.bx.width; } else if (this.db != null && !this.db.wk.isEmpty) { c = this.db.wk.width; } let d = DeviceUtils.c(c); this.acq = this.acr || ((() => { let $ret = new SizeScale(); $ret.minimumValue = d / 10; $ret.maximumValue = d / 5; return $ret; })()); if (this.acq != null) { let e = this.acq.minimumValue; let f = this.acq.maximumValue; let g = this.acq.logarithmBase; let h = this.acn(this.acq); let i = h.b; let j = h.a; if (this.acq.isLogarithmic) { for (let k = 0; k < a.count; k++) { a.item(k, BubbleSeries.ac5(i, j, e, f, g, a.item(k))); } } else { for (let l = 0; l < a.count; l++) { a.item(l, BubbleSeries.ac4(i, j, e, f, a.item(l))); } } } let m = DeviceUtils.d(); let n = this.acr == null; let o = this.cv == this.cu; 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.km(c); let e = d == null ? NaN : this.iw(d, "XMemberPath"); let f = d == null ? NaN : this.iw(d, "YMemberPath"); let g = new DataLegendSeriesValueInfo(); g.a = 13; g.l = e; g.q = "X"; g.r = this.aas != null ? this.aas : "X"; g.s = this.aao != null ? this.aao : "X:"; g.t = this.aaq != null ? this.aaq : ""; let h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 14; h.q = "Y"; h.r = this.aa0 != null ? this.aa0 : "Y"; h.s = this.aaw != null ? this.aaw : "Y:"; h.t = this.aay != null ? this.aay : ""; let i = new DataLegendSeriesContext(); i.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mb(); if (!stringIsNullOrEmpty(this.ads)) { let j = d == null ? NaN : this.iw(d, "RadiusMemberPath"); let k = new DataLegendSeriesValueInfo(); k.l = j; k.a = 11; k.q = "Radius"; k.r = this.ads != null ? this.ads : "Radius"; k.s = this.ado != null ? this.ado : "R:"; k.t = this.adq != null ? this.adq : ""; i.e.add(k); } else if (this.acq != null) { let l = new DataLegendSeriesValueInfo(); l.l = this.acq.maximumValue; l.a = 11; l.q = "Radius"; l.r = this.ads != null ? this.ads : "Radius"; l.s = this.ado != null ? this.ado : "R:"; l.t = this.adq != null ? this.adq : ""; i.e.add(l); } if (!stringIsNullOrEmpty(this.add)) { let m = d == null ? NaN : this.iw(d, "FillMemberPath"); let n = new DataLegendSeriesValueInfo(); n.l = m; n.a = 12; n.q = "Fill"; n.r = this.add != null ? this.add : "Fill"; n.s = this.ac9 != null ? this.ac9 : "F:"; n.t = this.adb != null ? this.adb : ""; i.e.add(n); } return i; } get actualMarkerBrush() { return this.yg; } } BubbleSeries.$t = markType(BubbleSeries, 'BubbleSeries', ScatterBase.$, [IScaleLegendSeries_$type, ISupportsSizeScale_$type, ISupportsFillScale_$type]); BubbleSeries.$$p = markDep(DependencyProperty, PropertyMetadata, BubbleSeries, 'raisePropertyChanged', ['FillMemberAsLegendLabel:ac9:ad0', [2, null], 'FillMemberAsLegendUnit:adb:ad1', [2, null], 'FillMemberPath:add:ad2', [2], 'FillScale:aco:ad3', [BrushScale.$], 'FillScaleUseGlobalValues:ac0:ad4', [0, false], 'LabelMemberPath:adi:ad5', [2], 'MarkerBrushBrightness:ac6:ad6', [1, NaN], 'MarkerOutlineBrightness:ac7:ad7', [1, NaN], 'MarkerOutlineUsesFillScale:ac1:ad8', [0, false], 'RadiusMemberAsLegendLabel:ado:ad9', [2, null], 'RadiusMemberAsLegendUnit:adq:aea', [2, null], 'RadiusMemberPath:ads:aeb', [2, null], 'RadiusScale:acr:aec', [SizeScale.$], 'RadiusScaleUseGlobalValues:ac2:aed', [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.ac4(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 = markType(CustomPaletteBrushScale, 'CustomPaletteBrushScale', BrushScale.$); CustomPaletteBrushScale.$$p = markDep(DependencyProperty, PropertyMetadata, CustomPaletteBrushScale, 'v', ['BrushSelectionMode', [BrushSelectionMode_$type, enumGetBox(BrushSelectionMode_$type, 0)]]); return CustomPaletteBrushScale; })(); /** * @hidden */ export let BubbleSeriesView = /*@__PURE__*/ (() => { class BubbleSeriesView extends ScatterBaseView { constructor(a) { super(a); this.dk = null; this.dk = a; this.c2 = new ScatterTrendLineManager(); } au() { super.au(); if (!this.q) { this.b4.w9 = Defaults.e; } } cz() { return new BubbleMarkerManager((a) => this.c3.item(a), (a) => this.c1.yv.c.item(a), runOn(this, this.de), runOn(this, this.cw), runOn(this, this.c4)); } dm() { let a = this.c0; this.dk.adz(a.n, a.o, this.bx, this == this.e.cu); this.as(); } dn() { let a = this.c0; this.dk.ady(a.n); } dl() { let a = this.c0; 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.e.ba.a$u(this.e); if (!stringIsNullOrEmpty(b)) { a += " style='color:" + b + "'"; } a += ">" + this.dk.title + "</span><br/><span>" + "(${item." + this.dk.aas + "}, ${item." + this.dk.aa0 + "})</span>"; if (!stringIsNullOrEmpty(this.dk.ads)) { a += "<span>, Radius: ${item." + this.dk.ads + "}</span>"; } a += "</div>"; return a; } } BubbleSeriesView.$t = markType(BubbleSeriesView, 'BubbleSeriesView', ScatterBaseView.$); return BubbleSeriesView; })();