UNPKG

igniteui-angular-charts

Version:

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

924 lines (923 loc) 36 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 { AnnotationLayer } from "./AnnotationLayer"; import { ValueLayerValueMode_$type } from "./ValueLayerValueMode"; import { DependencyProperty } from "igniteui-angular-core"; import { Brush } from "igniteui-angular-core"; import { Series } from "./Series"; import { Axis } from "./Axis"; import { enumGetBox, Delegate_$type, Number_$type, typeCast, fromEnum, Point_$type, markType, markDep, runOn } from "igniteui-angular-core"; import { Thickness } from "igniteui-angular-core"; import { Visibility_$type } from "igniteui-angular-core"; import { OverlayTextLocation_$type } from "./OverlayTextLocation"; import { AnnotationAppearanceMode_$type } from "./AnnotationAppearanceMode"; import { OverlayTextUtil } from "./OverlayTextUtil"; import { ValueLayerFrame } from "./ValueLayerFrame"; import { List$1 } from "igniteui-angular-core"; import { Dictionary$2 } from "igniteui-angular-core"; import { Pool$1 } from "igniteui-angular-core"; import { AxisAnnotation } from "./AxisAnnotation"; import { DataLegendSeriesContext } from "igniteui-angular-core"; import { DataLegendSeriesValueInfo } from "igniteui-angular-core"; import { AxisAnnotationFrameManager } from "./AxisAnnotationFrameManager"; import { DoubleCollection } from "igniteui-angular-core"; import { DeviceUtils } from "igniteui-angular-core"; import { OverlayTextUpdatingEventArgs } from "./OverlayTextUpdatingEventArgs"; import { OverlayTextInfo } from "./OverlayTextInfo"; import { AxisAnnotationFramePrepareSettings } from "./AxisAnnotationFramePrepareSettings"; import { AnnotationLayerView } from "./AnnotationLayerView"; import { TextBlock } from "igniteui-angular-core"; import { Rectangle } from "igniteui-angular-core"; import { Rect } from "igniteui-angular-core"; import { Tuple$2 } from "igniteui-angular-core"; import { Path } from "igniteui-angular-core"; import { PathGeometry } from "igniteui-angular-core"; import { PathFigure } from "igniteui-angular-core"; import { LineSegment } from "igniteui-angular-core"; import { BrushUtil } from "igniteui-angular-core"; import { PropertyMetadata } from "igniteui-angular-core"; import { isNaN_ } from "igniteui-angular-core"; import { stringIsNullOrEmpty } from "igniteui-angular-core"; import { Defaults } from "./Defaults"; import { TranslateTransform } from "igniteui-angular-core"; import { LineGeometry } from "igniteui-angular-core"; /** * @hidden */ export let ValueLayer = /*@__PURE__*/ (() => { class ValueLayer extends AnnotationLayer { constructor() { super(); this.aa7 = null; this.aas = [NaN, NaN]; this.aa1 = null; this.aa2 = null; this.aft = null; this.stylingOverlayText = null; this.abi = null; this.abh = null; let a = new ValueLayerFrame(); let b = new ValueLayerFrame(); let c = new ValueLayerFrame(); let d = this.km / 1000; this.xw = a; this.xv = b; this.xx = c; this.ab = ValueLayer.$; this.aa7 = OverlayTextUtil.c(); } bk() { return new ValueLayer(); } get_ew() { return true; } ct() { return new ValueLayerView(this); } rg(a) { super.rg(a); this.aa6 = a; } g0(a) { if (this.aa3 == null) { return true; } if (this.aa3 == a) { return true; } return false; } get afv() { return new Thickness(1, this.abv, this.abx, this.abw, this.abu); } get afw() { return new Thickness(1, this.ab1, this.ab3, this.ab2, this.ab0); } get aa8() { return this.aa7; } set aa8(a) { let b = this.aa7; if (OverlayTextUtil.q(a)) { a = OverlayTextUtil.c(); } this.aa7 = a; if (b != this.aa7) { this.raisePropertyChanged("OverlayTextStyle", b, this.aa7); } } mn() { return "Value Layer"; } get_isSummarizationSupported() { return false; } jd(a, b, c) { if (isNaN_(this.aas[0]) && isNaN_(this.aas[1])) { return super.jd(a, b, c); } if (!isNaN_(this.aas[0])) { return this.aas[0]; } return this.aas[1]; } getDataLegendSeriesContextAt(a, b) { if (isNaN_(this.aas[0]) || isNaN_(this.aas[1])) { return super.getDataLegendSeriesContextAt(a, b); } if (this.aa3 == null) { let c = new DataLegendSeriesValueInfo(); c.l = this.aas[0]; c.a = 0; c.q = "Value"; c.r = "Value"; c.s = ""; let d = new DataLegendSeriesValueInfo(); d.l = this.aas[1]; d.a = 0; d.q = "Value"; d.r = "Value"; d.s = ""; let e = new DataLegendSeriesContext(); e.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(c); $ret.add(d); return $ret; })()); e.h = this.mn(); return e; } let f = this.aa3.getDataLegendSeriesContextAt(a, b); let g = typeCast(DataLegendSeriesContext.$, f); if (g == null || g.e == null) { return super.getDataLegendSeriesContextAt(a, b); } if (g.e.count == 0) { g.e._inner[0].l = isNaN_(this.aas[0]) ? this.aas[1] : this.aas[0]; } else { g.e._inner[0].l = this.aas[0]; g.e._inner[1].l = this.aas[1]; } return g; } zd(a, b) { if (this.aa3 == null || this.aa3 == a) { if (!this.a1.c) { this.r7(b); } } } zf(a, b) { super.zf(a, b); let c = a; let d = this.abg; let e = this.abf; c.a1.clear(); c.a2.clear(); c.a0.clear(); c.a3.clear(); AxisAnnotationFrameManager.b(c); this.aas = [NaN, NaN]; this.aa1 = null; this.aa2 = null; this.aa6.cu(); let f = this.aa4(); if (this.x3(this.aa3)) { let g = this.aa3.aq(f); this.aas = g; this.adt(c, d, e, this.aa3); } else { if (f == 5 || f == 4 || f == 6) { let h = null; let i = null; let j = [NaN, NaN]; let k = 0; for (let l of fromEnum(this.dc.b9)) { if (!this.x3(l)) { continue; } let m = l.ai(); for (let o = 0; o < m.length; o++) { let n = m[o]; if (!this.aba(n)) { continue; } let p = n.dy ? 1 : 0; let q = j[p]; let r = null; if (f == 5) { let s = l.jg(2, n); if (!isNaN_(s) && (s > q || isNaN_(q))) { r = l; } q = !isNaN_(q) ? Math.max(s, q) : s; } else if (f == 4) { let t = l.jg(1, n); if (!isNaN_(t) && (t < q || isNaN_(q))) { r = l; } q = !isNaN_(q) ? Math.min(t, q) : t; } else if (f == 6) { let u = l.jg(3, n); r = l; q = !isNaN_(q) ? q + u : u; } if (n.dy) { i = r != null ? r : i; } else { h = r != null ? r : h; } j[p] = q; } k++; } if (f == 6) { j[0] = !isNaN_(j[0]) ? j[0] / k : NaN; j[1] = !isNaN_(j[1]) ? j[1] / k : NaN; } if (h != null && !isNaN_(j[0])) { let v = h.wz(j); this.adw(h, { $type: Point_$type, x: v.x, y: NaN }, c, d, e); } if (i != null && !isNaN_(j[1])) { let w = i.wz(j); this.adw(i, { $type: Point_$type, x: NaN, y: w.y }, c, d, e); } this.aas = j; this.aa1 = h; this.aa2 = i; } else { for (let x of fromEnum(this.dc.b9)) { this.adt(c, d, e, x); } } } } adt(a, b, c, d) { if (this.x3(d)) { this.adv(d, a, b, c); } if (d.isStacked) { d.qg((e) => { if (this.x3(e)) { this.adv(e, a, b, c); } if (e.ei) { e.qe((f) => { if (this.x3(f)) { this.adv(f, a, b, c); } return true; }); } return true; }); } if (d.ei) { d.qe((e) => { if (this.x3(e)) { this.adv(e, a, b, c); } return true; }); } } x3(a) { if (!super.x3(a)) { return false; } return true; } aba(a) { if (!a.dq) { return false; } if (this.aaw != null && this.aaw != a) { return false; } return true; } q3() { super.q3(); if (!this.a1.c && !this.d4()) { return; } if (this.d4()) { this.adx(this.xx, false); } else { this.adx(this.xv, false); } } aa4() { if (this.aa5 == 0) { return 2; } return this.aa5; } xm() { return 3; } ya() { return 0.3; } yd() { return -0.4; } yc() { return 0.5; } aah() { return this.xj == 3 ? this.afu() : null; } aai() { return this.xk == 3 ? this.afu() : null; } afu() { if (this.aft == null) { this.aft = new DoubleCollection(); this.aft.add(DeviceUtils.g(5)); this.aft.add(DeviceUtils.g(5)); } return this.aft; } adu() { if (OverlayTextUtil.q(this.aa7)) { this.aa7 = OverlayTextUtil.c(); } else if (OverlayTextUtil.k(this.aa7)) { this.aa7 = this.cw.l(this.aa7.fontString); } } adw(a, b, c, d, e) { let f = false; let g = this.afh; if (g == null) { g = a.vs; f = true; } let h = false; let i = this.afn; if (i == null) { if (this.afh != null) { i = this.afh; } else { i = a.vs; h = true; } } let j = false; let k = this.afq; if (k == null) { if (this.afh != null) { k = this.afh; } else { k = a.vs; j = true; } } let l = g; let m = g; let n = i; let o = k; if (this.afi != null) { l = this.afi; } else if (f) { switch (this.xj) { case 1: l = this.aa6.ck(l, this.x7); break; case 2: l = this.aa6.cm(l, this.x7); break; case 4: l = this.aa6.cl(l, this.x7); break; } } if (this.afm != null) { m = this.afm; } else if (f) { switch (this.xk) { case 1: m = this.aa6.ck(m, this.x9); break; case 2: m = this.aa6.cm(m, this.x9); break; case 4: m = this.aa6.cl(m, this.x9); break; } } if (h) { switch (this.xk) { case 1: n = this.aa6.ck(n, this.x9); break; case 2: n = this.aa6.cm(n, this.x9); break; } } if (j) { switch (this.xj) { case 1: o = this.aa6.ck(o, this.x7); break; case 2: o = this.aa6.cm(o, this.x7); break; } } c.a0.add(l); c.a3.add(m); c.a1.add(b.y); c.a2.add(b.x); let p = isNaN_(b.x); let q = p ? b.y : b.x; this.adu(); let r = this.aa8; let s = OverlayTextUtil.o(r, this.abe); let t = this.aaz; if (t == 18) { s = false; } if (s && !stringIsNullOrEmpty(this.acb)) { let u = this.afl; if (u == null && this.abd) { u = g; } let v = this.afj; if (v == null && this.abb) { v = g; } let w = this.afk; if (w == null && this.abc) { w = g; } let x = new OverlayTextUpdatingEventArgs(); x.textLocation = this.aaz; x.textAngle = this.abj; x.textVisible = this.abe; x.textContent = this.acb; x.textColorMode = this.aav; x.textColorShift = this.abo; x.textColor = u; x.backgroundMode = this.aat; x.backgroundShift = this.abk; x.background = v; x.borderMode = this.aau; x.borderShift = this.abm; x.borderStroke = w; x.borderRadius = this.abl; x.borderThickness = this.abn; x.shapeBrush = g; x.shapeOutline = g; x.f = p; x.horizontalMargin = this.abp; x.verticalPadding = this.abs; x.verticalMargin = this.abr; x.horizontalPadding = this.abq; if (this.stylingOverlayText != null) { this.stylingOverlayText(this, x); } OverlayTextUtil.ad(x); let y = OverlayTextInfo.d(x); if (y.textVisible && !y.h) { this.aa6.cq.count += 1; this.aa6.cp.count += 1; let z = this.aa6.cq.count - 1; y.f = r; y.ad = this.cw.cc(y.textContent, y.f); y.u = this.aa6.cq.item(z); y.ac = this.aa6.cp.item(z); if (y.g) { let aa = this.dc.yj({ $type: Point_$type, x: 0, y: NaN }); let ab = this.dc.yj({ $type: Point_$type, x: 1, y: NaN }); let ac = ab.x - aa.x; y.ab = new Rect(0, aa.x, q, ac, 1); } else { let ad = this.dc.yj({ $type: Point_$type, x: NaN, y: 0 }); let ae = this.dc.yj({ $type: Point_$type, x: NaN, y: 1 }); let af = ae.y - ad.y; y.ab = new Rect(0, q, ad.y, 1, af); } OverlayTextUtil.ac(y); this.cw.av(y.u, y.f); this.cw.aw(y.u, y.f); } } if (this.aa9) { let ag = new AxisAnnotationFramePrepareSettings(); ag.u = n; ag.y = this.afp; ag.x = this.afo; ag.g = this.abt; ag.ae = this.afv; ag.l = this.aby; ag.c = this.afy == 0; ag.z = o; ag.ad = this.afs; ag.ac = this.afr; ag.m = this.abz; ag.af = this.afw; ag.r = this.ab4; ag.d = this.afx == 0; AxisAnnotationFrameManager.c(c, b, a, this.dc, this.getEffectiveViewport(), g, ag); } } adv(a, b, c, d) { let e = { $type: Point_$type, x: NaN, y: NaN }; let f = this.aa4(); switch (f) { case 5: e = a.wy(2); break; case 4: e = a.wy(1); break; case 6: e = a.wy(3); break; default: e = a.wy(f); break; } let i = a.ai(); for (let h = 0; h < i.length; h++) { let g = i[h]; if (!this.aba(g)) { continue; } if (g.dy) { this.adw(a, { $type: Point_$type, x: NaN, y: e.y }, b, c, d); } else { this.adw(a, { $type: Point_$type, x: e.x, y: NaN }, b, c, d); } } } adx(a, b) { let c = false; if (this.abh == null) { c = true; this.abi = new List$1(Axis.$, 0); this.abh = new Dictionary$2(Axis.$, Pool$1.$.specialize(AxisAnnotation.$), 0); } AxisAnnotationFrameManager.d(this, a, c, this.abh, this.abi, b, this.ab5, this.ab6, this.aax, this.aay); } ads(a, b, c, d, e) { let f = a.item(b); b++; if (e) { f._stroke = d.a3._inner[c]; f._fill = d.a3._inner[c]; } else { f._stroke = d.a0._inner[c]; f._fill = d.a0._inner[c]; } f.ad = this.il; f.ai = e ? this.aaf : this.aae; f.am = this.wo; f.al = this.wn; f.ak = this.wn; f.aj = this.wm; f.ac = this.jp; return new Tuple$2(Path.$, Number_$type, f, b); } zi(a, b) { super.zi(a, b); let c = this.aa6.co; let d = a; let e = d.a1.count; let f = 0; let g = b.b9.left; let h = b.b9.right; let i = b.b9.top; let j = b.b9.bottom; let k = this.afy == 0; let l = this.afx == 0; for (let m = 0; m < e; m++) { let n = Math.floor(d.a1._inner[m]); let o = Math.floor(d.a2._inner[m]); let p = null; if (k) { if (!isNaN_(o)) { let q = this.ads(c, f, m, d, true); p = q.c; f = q.d; let r = new PathGeometry(); let s = new PathFigure(); s._startPoint = { $type: Point_$type, x: o, y: i }; let t = new LineSegment(1); t.c = { $type: Point_$type, x: o, y: j }; s._segments.add(t); r.c.add(s); p.an = r; } } if (l) { if (!isNaN_(n)) { let u = this.ads(c, f, m, d, false); p = u.c; f = u.d; let v = new PathGeometry(); let w = new PathFigure(); w._startPoint = { $type: Point_$type, x: g, y: n }; let x = new LineSegment(1); x.c = { $type: Point_$type, x: h, y: n }; w._segments.add(x); v.c.add(w); p.an = v; } } } c.count = f; if (this.d4()) { this.adx(this.xx, true); } else { this.adx(this.xv, false); } } gg() { return true; } rp(a, b, c, d) { super.rp(a, b, c, d); switch (b) { case "SeriesViewer": if (d == null) { if (this.abh != null && this.abh.count > 0) { let e; if (this.d4()) { e = this.xx; } else { e = this.xv; } AxisAnnotationFrameManager.b(e); AxisAnnotationFrameManager.d(this, e, true, this.abh, this.abi, true, this.ab5, this.ab6, this.aax, this.aay); } } break; case ValueLayer.$$p[2]: this.r7(true); break; case ValueLayer.$$p[32]: this.r7(true); break; case ValueLayer.$$p[28]: case "Visibility": this.r7(true); break; case ValueLayer.$$p[3]: case ValueLayer.$$p[34]: case ValueLayer.$$p[33]: case ValueLayer.$$p[37]: case ValueLayer.$$p[39]: case ValueLayer.$$p[41]: case ValueLayer.$$p[40]: case ValueLayer.$$p[38]: case ValueLayer.$$p[42]: case ValueLayer.$$p[43]: case ValueLayer.$$p[45]: case ValueLayer.$$p[48]: case ValueLayer.$$p[50]: case ValueLayer.$$p[52]: case ValueLayer.$$p[51]: case ValueLayer.$$p[49]: case ValueLayer.$$p[53]: case ValueLayer.$$p[54]: case ValueLayer.$$p[1]: case ValueLayer.$$p[31]: case ValueLayer.$$p[29]: this.r7(true); break; case "Brush": case ValueLayer.$$p[30]: if (this.vy != null) { this.afh = this.vy; } else { switch (this.aa5) { case 6: this.afh = BrushUtil.j(255, 248, 173, 118); break; case 4: this.afh = BrushUtil.j(255, 246, 93, 80); break; case 5: this.afh = BrushUtil.j(255, 99, 208, 0); break; default: this.afh = this.aa3 != null ? this.aa3.vs : null; break; } } this.r7(true); break; case ValueLayer.$$p[22]: case ValueLayer.$$p[25]: case ValueLayer.$$p[21]: case ValueLayer.$$p[4]: case ValueLayer.$$p[17]: case ValueLayer.$$p[15]: case ValueLayer.$$p[16]: case ValueLayer.$$p[18]: case ValueLayer.$$p[7]: case ValueLayer.$$p[5]: case ValueLayer.$$p[6]: case ValueLayer.$$p[8]: case ValueLayer.$$p[10]: case ValueLayer.$$p[11]: case ValueLayer.$$p[13]: case ValueLayer.$$p[9]: case ValueLayer.$$p[12]: case ValueLayer.$$p[14]: case ValueLayer.$$p[19]: case ValueLayer.$$p[20]: case ValueLayer.$$p[24]: case ValueLayer.$$p[23]: this.r7(true); break; } } ph(a, b) { super.ph(a, b); if (a) { AxisAnnotationFrameManager.b(this.xv); this.adx(this.xv, false); } } } ValueLayer.$t = markType(ValueLayer, 'ValueLayer', AnnotationLayer.$); ValueLayer.$$p = markDep(DependencyProperty, PropertyMetadata, ValueLayer, 'raisePropertyChanged', ['ActualValueLayerBrush:afh:ady', [Brush.$, null], 'HorizontalLineStroke:afi:adz', [Brush.$, null], 'HorizontalLineVisibility:afx:ad0', [Visibility_$type, enumGetBox(Visibility_$type, 0)], 'IsAxisAnnotationEnabled:aa9:ad1', [0, false], 'OverlayTextAngle:abj:ad2', [1, NaN], 'OverlayTextBackgroundMatchLayer:abb:ad3', [0, false], 'OverlayTextBackgroundMode:aat:ad4', [AnnotationAppearanceMode_$type, enumGetBox(AnnotationAppearanceMode_$type, 0)], 'OverlayTextBackground:afj:ad5', [Brush.$, null], 'OverlayTextBackgroundShift:abk:ad6', [1, NaN], 'OverlayTextBorderColor:afk:ad7', [Brush.$, null], 'OverlayTextBorderMatchLayer:abc:ad8', [0, false], 'OverlayTextBorderMode:aau:ad9', [AnnotationAppearanceMode_$type, enumGetBox(AnnotationAppearanceMode_$type, 0)], 'OverlayTextBorderRadius:abl:aea', [1, NaN], 'OverlayTextBorderShift:abm:aeb', [1, NaN], 'OverlayTextBorderThickness:abn:aec', [1, 1], 'OverlayTextColorMatchLayer:abd:aed', [0, true], 'OverlayTextColorMode:aav:aee', [AnnotationAppearanceMode_$type, enumGetBox(AnnotationAppearanceMode_$type, 0)], 'OverlayTextColor:afl:aef', [Brush.$, null], 'OverlayTextColorShift:abo:aeg', [1, NaN], 'OverlayTextHorizontalMargin:abp:aeh', [1, NaN], 'OverlayTextHorizontalPadding:abq:aei', [1, NaN], 'OverlayTextLocation:aaz:aej', [OverlayTextLocation_$type, enumGetBox(OverlayTextLocation_$type, 0)], 'OverlayText:acb:aek', [2, null], 'OverlayTextVerticalMargin:abr:ael', [1, NaN], 'OverlayTextVerticalPadding:abs:aem', [1, NaN], 'OverlayTextVisible:abe:aen', [0, true], 'SkipUnknownValues:abf:aeo', [0, true], 'TargetAxis:aaw:aep', [Axis.$, null], 'TargetSeries:aa3:aeq', [Series.$, null], 'UseInterpolation:abg:aer', [0, true], 'ValueMode:aa5:aes', [ValueLayerValueMode_$type, enumGetBox(ValueLayerValueMode_$type, 2)], 'VerticalLineStroke:afm:aet', [Brush.$, null], 'VerticalLineVisibility:afy:aeu', [Visibility_$type, enumGetBox(Visibility_$type, 0)], 'XAxisAnnotationBackgroundCornerRadius:abt:aev', [1, DeviceUtils.g(3)], 'XAxisAnnotationBackground:afn:aew', [Brush.$, null], 'XAxisAnnotationFormatLabel:aax:aex', [Delegate_$type], 'XAxisAnnotationInterpolatedValuePrecision:ab5:aey', [1, -1], 'XAxisAnnotationOutline:afo:aez', [Brush.$, null], 'XAxisAnnotationPaddingBottom:abu:ae0', [1, NaN], 'XAxisAnnotationPaddingLeft:abv:ae1', [1, NaN], 'XAxisAnnotationPaddingRight:abw:ae2', [1, NaN], 'XAxisAnnotationPaddingTop:abx:ae3', [1, NaN], 'XAxisAnnotationStrokeThickness:aby:ae4', [1, NaN], 'XAxisAnnotationTextColor:afp:ae5', [Brush.$, null], 'YAxisAnnotationBackgroundCornerRadius:abz:ae6', [1, DeviceUtils.g(3)], 'YAxisAnnotationBackground:afq:ae7', [Brush.$, null], 'YAxisAnnotationFormatLabel:aay:ae8', [Delegate_$type], 'YAxisAnnotationInterpolatedValuePrecision:ab6:ae9', [1, -1], 'YAxisAnnotationOutline:afr:afa', [Brush.$, null], 'YAxisAnnotationPaddingBottom:ab0:afb', [1, NaN], 'YAxisAnnotationPaddingLeft:ab1:afc', [1, NaN], 'YAxisAnnotationPaddingRight:ab2:afd', [1, NaN], 'YAxisAnnotationPaddingTop:ab3:afe', [1, NaN], 'YAxisAnnotationStrokeThickness:ab4:aff', [1, NaN], 'YAxisAnnotationTextColor:afs:afg', [Brush.$, null]]); return ValueLayer; })(); /** * @hidden */ export let ValueLayerView = /*@__PURE__*/ (() => { class ValueLayerView extends AnnotationLayerView { constructor(a) { super(a); this.cn = null; this.co = null; this.ct = null; this.cs = null; this.cq = null; this.cr = null; this.cp = null; this.cn = a; this.ct = new List$1(Path.$, 0); } cu() { OverlayTextUtil.u(this.cq); OverlayTextUtil.v(this.cs); this.cp.clear(); this.cr.clear(); this.cq.count = 0; this.cp.count = 0; } a4() { super.a4(); this.co = ((() => { let $ret = new Pool$1(Path.$); $ret.create = runOn(this, this.c6); $ret.activate = runOn(this, this.cv); $ret.disactivate = runOn(this, this.cx); $ret.destroy = runOn(this, this.cw); return $ret; })()); this.cs = new List$1(TextBlock.$, 0); this.cq = ((() => { let $ret = new Pool$1(TextBlock.$); $ret.create = runOn(this, this.c5); $ret.activate = runOn(this, this.c1); $ret.disactivate = runOn(this, this.c3); $ret.destroy = runOn(this, this.c2); return $ret; })()); this.cr = new List$1(Rectangle.$, 0); this.cp = ((() => { let $ret = new Pool$1(Rectangle.$); $ret.create = runOn(this, this.c7); $ret.activate = runOn(this, this.cy); $ret.disactivate = runOn(this, this.c0); $ret.destroy = runOn(this, this.cz); return $ret; })()); this.cn.jy = Defaults.crosshairLineThickness; } c5() { let a = new TextBlock(); this.cs.add(a); return a; } c2(a) { if (this.cs.contains(a)) { this.cs.remove(a); } } c1(a) { a._visibility = 0; a.s = 0; } c3(a) { a._visibility = 1; } c7() { let a = new Rectangle(); this.cr.add(a); return a; } cz(a) { a.dataContext = null; if (this.cr.contains(a)) { this.cr.remove(a); } } cy(a) { a._visibility = 0; } c0(a) { a._visibility = 1; } c6() { let a = new Path(); a.j = new TranslateTransform(); this.ct.add(a); return a; } cv(a) { a._visibility = 0; } cx(a) { a._visibility = 1; } cw(a) { this.ct.remove(a); } c4(a, b, c, d) { if (a.an == null || a.an.c.x != d || a.an.d.x != c) { let e = ((() => { let $ret = new LineGeometry(); $ret.d = { $type: Point_$type, x: c, y: b }; $ret.c = { $type: Point_$type, x: d, y: b }; return $ret; })()); a.an = e; } } bj(a, b) { super.bj(a, b); if (a.d && !b) { for (let c = 0; c < this.ct.count; c++) { let d = this.ct._inner[c]; if (d._visibility == 0) { a.t(d); } } for (let e = 0; e < this.cp.count; e++) { let f = this.cp.item(e); if (f._visibility == 0) { a.w(f); } } for (let g = 0; g < this.cq.count; g++) { let h = this.cq.item(g); a.af(h.dataContext); a.x(h); } } } ax(a) { super.ax(a); for (let b = 0; b < this.ct.count; b++) { this.f.bc.exportPathData(a, this.ct._inner[b], "crosshairLine", ["Main", "Crosshair"]); } } } ValueLayerView.$t = markType(ValueLayerView, 'ValueLayerView', AnnotationLayerView.$); return ValueLayerView; })();