UNPKG

igniteui-angular-charts

Version:

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

953 lines (952 loc) 30.8 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 class BubbleSeries extends ScatterBase { static { this.$t = markType(BubbleSeries, 'BubbleSeries', ScatterBase.$, [IScaleLegendSeries_$type, ISupportsSizeScale_$type, ISupportsFillScale_$type]); } bk() { return new BubbleSeries(); } get_ek() { return true; } yb() { return 1; } ct() { return new BubbleSeriesView(this); } rj(a) { super.rj(a); this.ad2 = a; } jv() { return 0.7; } xp() { if (this.xo == 0) { return 2; } return super.xp(); } constructor() { super(); this.aft = null; this.afs = null; this.aeg = null; this.ad7 = null; this.ad6 = null; this.ad5 = null; this.ad3 = null; this.ab = BubbleSeries.$; this.aae = new ScatterFrame(); this.aag = new ScatterFrame(); this.aac = new ScatterFrame(); } isAttachedTo(a) { return this.a5 == a; } ej() { return true; } qi(a) { super.qi(a); if (this.aeb != null && this.aeg != null && this.aeg.count > 0) { for (let b = 0; b < this.aeg.count; b++) { a(this.aeg._inner[b]); } } } get aea() { return this.aec; } get_isColoredItemwise() { return this.ad8 != null && this.ad8.count > 0; } afr(a) { let b = typeCast(CustomPaletteBrushScale.$, this.ad1); let c = typeCast(ValueBrushScale.$, this.ad1); let d = this.ad1; if (b != null && this.dp != null) { return b.getBrush1(a, this.dp.count); } else if (c != null) { return c.getBrushByIndex(a, this.ad8); } else if (d != null) { return d.getBrush(a); } return null; } get legendReady() { return this.aec != null && this.aec.count != 0; } get minScaleText() { let a = this.ad0(this.ad4).b; return (Math.round(a * 1000) / 1000).toString(); } get maxScaleText() { let a = this.ad0(this.ad4).a; return (Math.round(a * 1000) / 1000).toString(); } forScaleColors(a) { for (let b = 0; b < this.aec.count; b++) { if (this.ad1 == null || !this.ad1.isReady) { return false; } let c = NaN; if (this.ad8 != null) { c = (this.ad8.item(b) - this.ad8.minimum) / (this.ad8.maximum - this.ad8.minimum); } let d = (this.aec.item(b) - this.aec.minimum) / (this.aec.maximum - this.aec.minimum); if (isNaN_(c)) { c = 0; } if (isNaN_(d)) { d = c; } let e = this.zt; let f = this.afr(b); let g = f != null ? f : e; a(g, d); } return true; } k1(a, b) { let c = this.nq(b); if (c == BubbleSeries.$$p[5]) { return this.k2(a, b, this.aev); } if (c == BubbleSeries.$$p[11]) { return this.k2(a, b, this.ae5); } if (c == ScatterBase.$$p[12]) { return this.k2(a, b, this.ab5); } if (c == ScatterBase.$$p[16]) { return this.k2(a, b, this.acd); } if (c == BubbleSeries.$$p[2]) { return this.k2(a, b, this.aeq); } return super.k1(a, b); } mq(a) { let b = this.nq(a); if (b == BubbleSeries.$$p[5]) { return this.aev; } if (b == BubbleSeries.$$p[11]) { return this.ae5; } if (b == ScatterBase.$$p[12]) { return this.ab5; } if (b == ScatterBase.$$p[16]) { return this.acd; } if (b == BubbleSeries.$$p[2]) { return this.aeq; } return super.mq(a); } get aec() { return this.ad7; } set aec(a) { if (this.ad7 != a) { let b = this.aec; this.ad7 = a; this.raisePropertyChanged("RadiusColumn", b, this.aec); } } get aeb() { return this.ad6; } set aeb(a) { if (this.ad6 != a) { let b = this.aeb; this.ad6 = a; this.raisePropertyChanged("LabelColumn", b, this.aeb); } } get ad8() { return this.ad5; } set ad8(a) { if (this.ad5 != a) { let b = this.ad8; this.ad5 = a; this.raisePropertyChanged("FillColumn", b, this.ad8); } } acg(a, b, c, d, e) { if (c <= this.abl) { b.j = new Dictionary$2(Base.$, OwnedPoint.$, 1, c); } let f = this.abl; let g = this.dp; let h; let i; let j = this.getEffectiveViewport1(a); let k = new ScalerParams(0, d, e, this.z8.d, j); let l = new ScalerParams(0, d, e, this.z8.e, j); let m = false; let n = 0; if (this.dc != null) { if (this.dc.g1()) { let o = this.dc.ol(d, k); m = o.c; n = o.d; } } for (let p = 0; p < c; p++) { h = this.aat.item(p); i = this.aau.item(p); let q = { $type: Point_$type, x: this.z8.a.gc(h, k), y: this.z8.b.gc(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; })())); } } } } } acr(a, b) { let c = typeCast(BubbleSeriesView.$, b); let d = c.dd; d.m = this.aec; super.acr(a, b); let e = Math.min(this.aat != null ? this.aat.count : 0, this.aau != null ? this.aau.count : 0); if (e < 1) { return; } c.d0(); c.d1(); } afa() { if (this.dc == null) { return; } if (this.a5 == null) { return; } if (this.a5.isItemwise) { let a = this.a5; this.a5.clearLegendItemsForSeries(this); this.ae9(); a.renderItemwiseContent(this); } if (this.a5.isScale) { let b = this.a5; b.restoreOriginalState(); b.initializeLegend(this); } } static aeh(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 aei(a, b, c, d, logBase_, e) { let f = logBase(e, logBase_); let g = logBase(a, logBase_); let h = logBase(b, logBase_); return BubbleSeries.aeh(g, h, c, d, f); } hm(a, b, c) { let d = super.hm(a, b, c); if (this.aec == null || this.dp == null || this.aec.count == 0 || this.dp.count != this.aec.count) { d = false; } return d; } aa3(a, b) { if (b != 3) { return true; } if (a == null) { return true; } if (this.ab5 == a || this.acd == a || this.ae5 == a) { return true; } return false; } ae9() { let a = typeCast(IChartLegend_$type, this.a5); if (a == null || this.dp == null) { return; } this.aeg = new List$1(UIElement.$, 0); let b = typeCast(CustomPaletteBrushScale.$, this.ad1); let c = typeCast(ValueBrushScale.$, this.ad1); let d = this.ad1; let e = this.adz(); 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.ad8 != null) { let k = this.ad8.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.aeb != null && this.aeb.item(i) != null ? this.aeb.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.th; if (n == null) { n = this.cw.bz(this.c1); } l.ah = n; this.aeg.add(l); } } pq(a, b, c, d) { super.pq(a, b, c, d); if (this.ad4 != null) { this.ad4.aa(); } if (this.ad1 != null) { this.ad1.x(); } this.afa(); } qu() { super.qu(); this.afa(); } q1() { super.q1(); this.afa(); } rs(a, b, c, d) { super.rs(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.qw(); break; case "FastItemsSource": if (this.ad4 != null) { this.ad4.aa(); } if (this.ad1 != null) { this.ad1.x(); } if (typeCast(IFastItemsSource_$type, c) != null) { c.deregisterColumn(this.aec); c.deregisterColumn(this.ad8); c.deregisterColumn(this.aeb); this.aec = null; this.ad8 = null; this.aeb = null; } if (typeCast(IFastItemsSource_$type, d) != null) { this.aec = this.dl(this.ae5); if (!stringIsNullOrEmpty(this.aeq)) { this.ad8 = this.dl(this.aeq); } this.aeb = this.dn(this.aev); } this.sa(false); this.afa(); break; case BubbleSeries.$$p[11]: if (this.ad4 != null) { this.ad4.aa(); } if (this.dp != null) { this.dp.deregisterColumn(this.aec); this.aec = this.dl(this.ae5); this.afa(); } break; case "RadiusColumn": if (this.ad4 != null) { this.ad4.aa(); } this.z9.df.g$m(); this.sa(this.go && this.d9); this.q3(); break; case BubbleSeries.$$p[12]: if (c != null) { c.l.remove(this); c.aa(); } if (d != null) { d.l.add(this); d.aa(); } this.sa(false); this.q2(); break; case BubbleSeries.$$p[13]: this.sa(false); this.q2(); break; case "DiscreteLegendItemTemplate": this.afa(); break; case BubbleSeries.$$p[3]: if (c != null) { c.o.remove(this); c.x(); } if (d != null) { d.o.add(this); d.x(); } this.sa(false); this.afa(); this.q2(); break; case BubbleSeries.$$p[4]: case BubbleSeries.$$p[8]: case BubbleSeries.$$p[7]: case BubbleSeries.$$p[6]: this.sa(false); this.afa(); this.q2(); break; case "FillColumn": this.sa(this.go && this.d9); this.q2(); break; case BubbleSeries.$$p[2]: if (this.ad1 != null) { this.ad1.x(); } if (this.dp != null) { this.dp.deregisterColumn(this.ad8); this.ad8 = this.dl(this.aeq); this.afa(); } break; case BubbleSeries.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.aeb); this.aeb = this.dn(this.aev); this.afa(); } 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.afa(); break; case "SeriesViewer": this.afa(); break; } } updateSizeScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.aec != null) { a.b = this.aec.minimum; a.a = this.aec.maximum; } if (this.ad4 != null) { this.ad4.ab(a.b, a.a); } } updateFillScaleGlobals() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.ad8 != null) { a.b = this.ad8.minimum; a.a = this.ad8.maximum; } if (this.ad1 != null) { this.ad1.z(a.b, a.a); } } ad0(a) { let b = new ActualRange(); b.b = NaN; b.a = NaN; if (this.aec != null) { b.b = this.aec.minimum; b.a = this.aec.maximum; } if (a != null) { a.x(); if (this.aef) { b.b = a.globalMinimum; b.a = a.globalMaximum; } } return b; } adz() { let a = new ActualRange(); a.b = NaN; a.a = NaN; if (this.ad8 != null) { a.b = this.ad8.minimum; a.a = this.ad8.maximum; } let b = typeCast(ValueBrushScale.$, this.ad1); if (b != null) { b.s(); if (this.aed && this.ad1.o.count > 1) { a.b = b.q; a.a = b.p; } } return a; } afc(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.zd.isEmpty) { e = this.dc.zd.width; } let f = DeviceUtils.c(e); this.ad3 = this.ad4 || ((() => { let $ret = new SizeScale(); $ret.minimumValue = f / 10; $ret.maximumValue = f / 5; return $ret; })()); if (this.ad3 != null) { let g = this.ad3.minimumValue; let h = this.ad3.maximumValue; let i = this.ad3.logarithmBase; let j = this.ad0(this.ad3); let k = j.b; let l = j.a; if (this.ad3.isLogarithmic) { for (let m = 0; m < b.count; m++) { b._inner[m] = BubbleSeries.aei(k, l, g, h, i, b._inner[m]); } } else { for (let n = 0; n < b.count; n++) { b._inner[n] = BubbleSeries.aeh(k, l, g, h, b._inner[n]); } } } let o = 1; o = DeviceUtils.d(); let p = this.ad4 == 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); t.ai = false; } else { t.width = Math.max(0, b._inner[s]); t.height = Math.max(0, b._inner[s]); t.ai = false; } } } afb(a) { let b = typeCast(BubbleSeriesView.$, this.cv); this.ad2.ck = false; if (b != null) { b.ck = false; } let c = typeCast(CustomPaletteBrushScale.$, this.ad1); let d = typeCast(ValueBrushScale.$, this.ad1); let e = this.ad1; let f = this.adz(); let g = f.b; let h = f.a; let i = this.ad1 == null || !this.ad1.isReady || (d != null && this.aeq == null); if (i) { this.ad2.dz(); if (b != null) { b.dz(); } return; } this.ad2.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.ad8 != null) { let q = this.ad8.item(p); o = d.getBrushByRange(q, g, h); } else if (e != null) { o = e.getBrush(p); } else { if (this.zv == null) { o = this.zt; } else { o = this.zv; } } let r = null; if (this.zw == null) { r = this.zu; } else { r = this.zw; } if (this.aee && o != null) { r = o; } if (r != null && !isNaN_(this.aek)) { r = BrushUtil.q(r, this.aek); } if (o != null && !isNaN_(this.aej)) { o = BrushUtil.q(o, this.aej); } n.itemBrush = o; n.actualItemBrush = o; n.outline = r; } } } ak(a, b) { let c = new List$1(ChartSelection.$, 0); this.qk(a, c, b); return c.toArray(); } qk(a, b, c) { let d = 1; if (d == 1) { let e = this.ad9(); this.acj(a, b, c, d, e); } else { super.qk(a, b, c); } } ad9() { 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.zd.isEmpty) { c = this.dc.zd.width; } let d = DeviceUtils.c(c); this.ad3 = this.ad4 || ((() => { let $ret = new SizeScale(); $ret.minimumValue = d / 10; $ret.maximumValue = d / 5; return $ret; })()); if (this.ad3 != null) { let e = this.ad3.minimumValue; let f = this.ad3.maximumValue; let g = this.ad3.logarithmBase; let h = this.ad0(this.ad3); let i = h.b; let j = h.a; if (this.ad3.isLogarithmic) { for (let k = 0; k < a.count; k++) { a.item(k, BubbleSeries.aei(i, j, e, f, g, a.item(k))); } } else { for (let l = 0; l < a.count; l++) { a.item(l, BubbleSeries.aeh(i, j, e, f, a.item(l))); } } } let m = DeviceUtils.d(); let n = this.ad4 == 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.ky(c); let e = d == null ? NaN : this.i6(d, "XMemberPath"); let f = d == null ? NaN : this.i6(d, "YMemberPath"); let g = new DataLegendSeriesValueInfo(); g.a = 13; g.l = e; g.q = "X"; g.r = this.ab5 != null ? this.ab5 : "X"; g.s = this.ab1 != null ? this.ab1 : "X:"; g.t = this.ab3 != null ? this.ab3 : ""; let h = new DataLegendSeriesValueInfo(); h.l = f; h.a = 14; h.q = "Y"; h.r = this.acd != null ? this.acd : "Y"; h.s = this.ab9 != null ? this.ab9 : "Y:"; h.t = this.acb != null ? this.acb : ""; let i = new DataLegendSeriesContext(); i.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(h); return $ret; })()); i.h = this.mp(); if (!stringIsNullOrEmpty(this.ae5)) { let j = d == null ? NaN : this.i6(d, "RadiusMemberPath"); let k = new DataLegendSeriesValueInfo(); k.l = j; k.a = 11; k.q = "Radius"; k.r = this.ae5 != null ? this.ae5 : "Radius"; k.s = this.ae1 != null ? this.ae1 : "R:"; k.t = this.ae3 != null ? this.ae3 : ""; i.e.add(k); } else if (this.ad3 != null) { let l = new DataLegendSeriesValueInfo(); l.l = this.ad3.maximumValue; l.a = 11; l.q = "Radius"; l.r = this.ae5 != null ? this.ae5 : "Radius"; l.s = this.ae1 != null ? this.ae1 : "R:"; l.t = this.ae3 != null ? this.ae3 : ""; i.e.add(l); } if (!stringIsNullOrEmpty(this.aeq)) { let m = d == null ? NaN : this.i6(d, "FillMemberPath"); let n = new DataLegendSeriesValueInfo(); n.l = m; n.a = 12; n.q = "Fill"; n.r = this.aeq != null ? this.aeq : "Fill"; n.s = this.aem != null ? this.aem : "F:"; n.t = this.aeo != null ? this.aeo : ""; i.e.add(n); } return i; } get actualMarkerBrush() { return this.zt; } static { this.$$p = markDep(DependencyProperty, PropertyMetadata, BubbleSeries, 'raisePropertyChanged', ['FillMemberAsLegendLabel:aem:afd', [2, null], 'FillMemberAsLegendUnit:aeo:afe', [2, null], 'FillMemberPath:aeq:aff', [2], 'FillScale:ad1:afg', [BrushScale.$], 'FillScaleUseGlobalValues:aed:afh', [0, false], 'LabelMemberPath:aev:afi', [2], 'MarkerBrushBrightness:aej:afj', [1, NaN], 'MarkerOutlineBrightness:aek:afk', [1, NaN], 'MarkerOutlineUsesFillScale:aee:afl', [0, false], 'RadiusMemberAsLegendLabel:ae1:afm', [2, null], 'RadiusMemberAsLegendUnit:ae3:afn', [2, null], 'RadiusMemberPath:ae5:afo', [2, null], 'RadiusScale:ad4:afp', [SizeScale.$], 'RadiusScaleUseGlobalValues:aef:afq', [0, false]]); } } /** * @hidden */ export class CustomPaletteBrushScale extends BrushScale { static { this.$t = markType(CustomPaletteBrushScale, 'CustomPaletteBrushScale', 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.aeh(0, b - 1, 0, this.brushes.count - 1, a); return this.ab(c); } get_isReady() { return this.brushes != null && this.brushes.count > 0; } static { this.$$p = markDep(DependencyProperty, PropertyMetadata, CustomPaletteBrushScale, 'v', ['BrushSelectionMode', [BrushSelectionMode_$type, enumGetBox(BrushSelectionMode_$type, 0)]]); } } /** * @hidden */ export class BubbleSeriesView extends ScatterBaseView { static { this.$t = markType(BubbleSeriesView, 'BubbleSeriesView', ScatterBaseView.$); } constructor(a) { super(a); this.dy = null; this.dy = a; this.df = new ScatterTrendLineManager(); } a4() { super.a4(); if (!this.t) { this.ch.xy = Defaults.e; } } dc() { return new BubbleMarkerManager((a) => this.dg.item(a), (a) => this.de.z8.c.item(a), runOn(this, this.ds), runOn(this, this.c9), runOn(this, this.dh)); } d0() { let a = this.dd; this.dy.afc(a.n, a.o, this.b9, this == this.f.cv); this.a2(); } d1() { let a = this.dd; this.dy.afb(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.ab5 + "}, ${item." + this.dy.acd + "})</span>"; if (!stringIsNullOrEmpty(this.dy.ae5)) { a += "<span>, Radius: ${item." + this.dy.ae5 + "}</span>"; } a += "</div>"; return a; } }