UNPKG

igniteui-angular-charts

Version:

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

1,367 lines 76.7 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 { EventArgs, Base, markType, typeCast, runOn, delegateCombine, enumGetBox, Point_$type, String_$type, Number_$type, fromEnum, toEnum, Date_$type, markDep, Delegate_$type } from "igniteui-angular-core"; import { IBucketizer_$type } from "./IBucketizer"; import { ArgumentNullException } from "igniteui-angular-core"; import { IFastItemColumn$1_$type } from "igniteui-angular-core"; import { Series } from "./Series"; import { Rect } from "igniteui-angular-core"; import { ScalerParams } from "./ScalerParams"; import { ISortingAxis_$type } from "./ISortingAxis"; import { SeriesView } from "./SeriesView"; import { truncate, intDivide, isInfinity, isNaN_ } from "igniteui-angular-core"; import { IHasCategoryAxis_$type } from "./IHasCategoryAxis"; import { IHasCategoryModePreference_$type } from "./IHasCategoryModePreference"; import { Brush } from "igniteui-angular-core"; import { DependencyProperty } from "igniteui-angular-core"; import { CategoryAxisBase } from "./CategoryAxisBase"; import { NumericYAxis } from "./NumericYAxis"; import { HighlightingInfo } from "igniteui-angular-core"; import { CategoryTransitionInMode_$type } from "./CategoryTransitionInMode"; import { CategoryTransitionSourceFramePreparer } from "./CategoryTransitionSourceFramePreparer"; import { CategoryFrame } from "./CategoryFrame"; import { CategoryMode_$type } from "./CategoryMode"; import { ITimeRangeSelectorAxis_$type } from "./ITimeRangeSelectorAxis"; import { FastReflectionHelper } from "igniteui-angular-core"; import { List$1 } from "igniteui-angular-core"; import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay"; import { Dictionary$2 } from "igniteui-angular-core"; import { CategorySeriesRenderManager } from "./CategorySeriesRenderManager"; import { IFastItemsSource_$type } from "igniteui-angular-core"; import { FinancialValueList } from "./FinancialValueList"; import { CategoryXAxis } from "./CategoryXAxis"; import { SafeSortedReadOnlyDoubleCollection } from "./SafeSortedReadOnlyDoubleCollection"; import { SafeReadOnlyDoubleCollection } from "./SafeReadOnlyDoubleCollection"; import { SafeEnumerable } from "./SafeEnumerable"; import { CalculatedColumn } from "./CalculatedColumn"; import { TrendCalculators } from "igniteui-angular-core"; import { ColumnSupportingCalculation } from "./ColumnSupportingCalculation"; import { IDateTimeAxis_$type } from "./IDateTimeAxis"; import { PropertyMetadata } from "igniteui-angular-core"; import { stringIsNullOrEmpty } from "igniteui-angular-core"; import { dateToStringFormat } from "igniteui-angular-core"; import { SupportingCalculation$1 } from "./SupportingCalculation$1"; import { SRProvider } from "igniteui-angular-core"; import { Color } from "igniteui-angular-core"; /** * @hidden */ export let FinancialEventArgs = /*@__PURE__*/ (() => { class FinancialEventArgs extends EventArgs { constructor(a, b, c, d, e) { super(); this._position = 0; this._count = 0; this._dataSource = null; this._supportingCalculations = null; this._basedOn = null; this.position = a; this.count = b; this.dataSource = c; this.supportingCalculations = d; if (c != null) { c.series = e; } } get position() { return this._position; } set position(a) { this._position = a; } get count() { return this._count; } set count(a) { this._count = a; } get dataSource() { return this._dataSource; } set dataSource(a) { this._dataSource = a; } get supportingCalculations() { return this._supportingCalculations; } set supportingCalculations(a) { this._supportingCalculations = a; } get basedOn() { return this._basedOn; } set basedOn(a) { this._basedOn = a; } } FinancialEventArgs.$t = markType(FinancialEventArgs, 'FinancialEventArgs', EventArgs.$); return FinancialEventArgs; })(); /** * @hidden */ export let FinancialBucketCalculator = /*@__PURE__*/ (() => { class FinancialBucketCalculator extends Base { constructor(a) { super(); this.a = null; this.c = 0; this.d = 0; this.b = 0; if (a == null) { throw new ArgumentNullException(0, "view"); } this.a = a; this.c = -1; this.d = this.d; this.b = 0; } getBucket(a) { return null; } getBucketWithoutUnknowns(a) { return this.getBucket(a); } getErrorBucket(a, b) { return NaN; } getBucketInfo(a, b, c, d) { a = this.c; b = this.d; c = this.b; d = this.a.cf.ik; return { p0: a, p1: b, p2: c, p3: d }; } e(a) { let b = this.a.ca; let c = this.a.b9; let d = this.a.b9; if (this.a.cf != null) { d = this.a.cf.getEffectiveViewport1(this.a); } if (b.isEmpty || c.isEmpty || this.a.cf.xq == null) { this.b = 0; return; } let e = (this.a.cf.xq != null) ? this.a.cf.xq.dn : false; let f = new ScalerParams(0, b, c, e, d); let g = this.a.cf.w3(this.a); let h = typeCast(ISortingAxis_$type, this.a.cf.xq); if (h == null || h.i$b == null) { let i = Math.floor(this.a.cf.xq.f8(g.left, f)); let j = Math.ceil(this.a.cf.xq.f8(g.right, f)); if (this.a.cf.xq.dn) { j = Math.ceil(this.a.cf.xq.f8(g.left, f)); i = Math.floor(this.a.cf.xq.f8(g.right, f)); } let k = Math.floor((j - i + 1) * a / g.width); this.b = truncate(Math.max(1, k)); this.c = truncate(Math.floor(i / this.b)); this.d = truncate(Math.ceil(j / this.b)); } else { this.c = h.i$e(b, c, d, g); this.d = h.i$g(b, c, d, g); this.b = 1; } } cacheValues() { } unCacheValues() { } } FinancialBucketCalculator.$t = markType(FinancialBucketCalculator, 'FinancialBucketCalculator', Base.$, [IBucketizer_$type]); return FinancialBucketCalculator; })(); /** * @hidden */ export let FinancialSeries = /*@__PURE__*/ (() => { class FinancialSeries extends Series { constructor() { super(); this.yh = null; this.yf = null; this.yg = null; this.ye = null; this.yi = null; this.yr = false; this.assigningCategoryStyle = null; this.xz = null; this.y1 = new Dictionary$2(IFastItemColumn$1_$type.specialize(Number_$type), String_$type, 0); this.y2 = new Dictionary$2(String_$type, String_$type, 0); this.yq = false; this.yd = null; this.xu = null; this.xw = null; this.xs = null; this.x2 = null; this.typical = null; this.typicalBasedOn = null; this.yp = false; this.ze = null; this.zc = null; this.zd = null; this.zb = null; this.zf = null; this.xv = null; this.xr = null; this.xx = 0; this.x8 = null; this.ya = null; this.xz = new CategorySeriesRenderManager(); this.yr = false; this.x2 = new CategoryTransitionSourceFramePreparer(); this.xv = new CategoryFrame(3); this.ab = FinancialSeries.$; this.xy = 0; } hz() { let a = super.hz(); { let b = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.ad = "OpenMemberPath"; $ret.p = true; $ret.y = "HighlightedOpenMemberPath"; $ret.q = true; return $ret; })()); b.valueResolving = delegateCombine(b.valueResolving, runOn(this, this.aat)); a.add(b); } { let c = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.ad = "HighMemberPath"; $ret.p = true; $ret.y = "HighlightedHighMemberPath"; $ret.q = true; return $ret; })()); c.valueResolving = delegateCombine(c.valueResolving, runOn(this, this.aar)); a.add(c); } { let d = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.ad = "LowMemberPath"; $ret.p = true; $ret.y = "HighlightedLowMemberPath"; $ret.q = true; return $ret; })()); d.valueResolving = delegateCombine(d.valueResolving, runOn(this, this.aas)); a.add(d); } { let e = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.ad = "CloseMemberPath"; $ret.p = true; $ret.y = "HighlightedCloseMemberPath"; $ret.q = true; return $ret; })()); e.valueResolving = delegateCombine(e.valueResolving, runOn(this, this.aaq)); a.add(e); } { let f = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.ad = "VolumeMemberPath"; $ret.p = true; $ret.y = "HighlightedVolumeMemberPath"; $ret.q = true; return $ret; })()); f.valueResolving = delegateCombine(f.valueResolving, runOn(this, this.aau)); a.add(f); } { let g = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.r = true; $ret.ad = "Brush"; $ret.p = true; $ret.y = "ActualBrush"; $ret.q = true; return $ret; })()); g.valueResolving = delegateCombine(g.valueResolving, runOn(this, this.sh)); a.add(g); } { let h = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.r = true; $ret.ad = "Outline"; $ret.p = true; $ret.y = "ActualOutline"; $ret.q = true; return $ret; })()); h.valueResolving = delegateCombine(h.valueResolving, runOn(this, this.sh)); a.add(h); } { let i = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.r = true; $ret.ad = "NegativeBrush"; $ret.p = true; $ret.q = true; return $ret; })()); i.valueResolving = delegateCombine(i.valueResolving, runOn(this, this.sh)); a.add(i); } { let j = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.r = true; $ret.ad = "NegativeOutline"; $ret.p = true; $ret.q = true; return $ret; })()); j.valueResolving = delegateCombine(j.valueResolving, runOn(this, this.sh)); a.add(j); } let k = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.p = true; $ret.ad = "IsTransitionInEnabled"; $ret.x = true; $ret.q = true; return $ret; })()); a.add(k); let l = ((() => { let $ret = new SeriesLayerPropertyOverlay(); $ret.p = true; $ret.ad = "TransitionInMode"; $ret.x = enumGetBox(CategoryTransitionInMode_$type, 20); $ret.q = true; return $ret; })()); a.add(l); return a; } aat(a, b) { if (this.z3 != null) { b.value = this.z3; return; } b.value = this.aag; } aar(a, b) { if (this.zz != null) { b.value = this.zz; return; } b.value = this.z7; } aas(a, b) { if (this.z1 != null) { b.value = this.z1; return; } b.value = this.aac; } aaq(a, b) { if (this.zx != null) { b.value = this.zx; return; } b.value = this.zu; } aau(a, b) { if (this.z5 != null) { b.value = this.z5; return; } b.value = this.aak; } k4() { if (this.d4()) { return this.bo.xw; } else { return this.bo.xs; } } rg(a) { super.rg(a); this.x7 = a; } get_fa() { return true; } ai() { return [this.xq, this.x9]; } kz(a, b) { let c = this.no(b); if (c == FinancialSeries.$$p[11]) { return this.k0(a, b, this.aag); } if (c == FinancialSeries.$$p[1]) { return this.k0(a, b, this.z7); } if (c == FinancialSeries.$$p[9]) { return this.k0(a, b, this.aac); } if (c == FinancialSeries.$$p[0]) { return this.k0(a, b, this.zu); } if (c == FinancialSeries.$$p[13]) { return this.k0(a, b, this.aak); } if (c == FinancialSeries.$$p[5]) { return this.k0(a, b, this.z3); } if (c == FinancialSeries.$$p[3]) { return this.k0(a, b, this.zz); } if (c == FinancialSeries.$$p[4]) { return this.k0(a, b, this.z1); } if (c == FinancialSeries.$$p[2]) { return this.k0(a, b, this.zx); } if (c == FinancialSeries.$$p[6]) { return this.k0(a, b, this.z5); } return super.kz(a, b); } mo(a) { let b = this.no(a); if (b == FinancialSeries.$$p[11]) { return this.aag; } if (b == FinancialSeries.$$p[1]) { return this.z7; } if (b == FinancialSeries.$$p[9]) { return this.aac; } if (b == FinancialSeries.$$p[0]) { return this.zu; } if (b == FinancialSeries.$$p[13]) { return this.aak; } if (b == FinancialSeries.$$p[5]) { return this.z3; } if (b == FinancialSeries.$$p[3]) { return this.zz; } if (b == FinancialSeries.$$p[4]) { return this.z1; } if (b == FinancialSeries.$$p[2]) { return this.zx; } if (b == FinancialSeries.$$p[6]) { return this.z5; } return super.mo(a); } zq() { return 2; } zo() { return 4; } aj(a) { let b = this.an(this.xq, this.xs.k, this.zn(this.cw), this.zp(this.cw), this.w1(a), true); if (b == null) { return null; } let c = b[0]; let d = b[1]; let e = new Array(1); let f = new Array(2); let g = this.zq(); f[0] = { $type: Point_$type, x: c[0], y: c[g] }; f[1] = { $type: Point_$type, x: d[0], y: d[g] }; e[0] = f; return e; } al(a) { let b = this.an(this.xq, this.xs.k, this.zn(this.cw), this.zp(this.cw), this.w1(a), true); if (b == null) { return null; } let c = b[0]; let d = b[1]; let e = new Array(1); let f = new Array(2); f[0] = { $type: Point_$type, x: c[0], y: c[1] }; f[1] = { $type: Point_$type, x: d[0], y: d[1] }; e[0] = f; return e; } wf() { return this.abg; } wg() { return this.abg; } pe() { super.pe(); this.xq = null; this.x9 = null; } get_em() { return true; } get_gb() { return this.x9 != null && this.x9.dn; } get ym() { return this.yh; } set ym(a) { if (this.yh != a) { let b = this.yh; this.yh = a; this.raisePropertyChanged("OpenColumn", b, this.yh); } } get yk() { return this.yf; } set yk(a) { if (this.yf != a) { let b = this.yf; this.yf = a; this.raisePropertyChanged("HighColumn", b, this.yf); } } get yl() { return this.yg; } set yl(a) { if (this.yg != a) { let b = this.yg; this.yg = a; this.raisePropertyChanged("LowColumn", b, this.yg); } } get yj() { return this.ye; } set yj(a) { if (this.ye != a) { let b = this.ye; this.ye = a; this.raisePropertyChanged("CloseColumn", b, this.ye); } } get yo() { return this.yi; } set yo(a) { if (this.yi != a) { let b = this.yi; this.yi = a; this.raisePropertyChanged("VolumeColumn", b, this.yi); } } gh() { return this.highlightedItemsSource != null || (this.z3 != null && this.zz != null && this.z1 != null && this.zx != null); } yy() { return (this.assigningCategoryStyle != null && this.yr) || this.by != 1 || this.cq != 1 || this.cp != 1; } aax(a) { if (this.assigningCategoryStyle != null && this.yr) { this.assigningCategoryStyle(this, a); } } aav(a, b, c, d, e, f, g) { let h = this.by != 1; let i = this.cq != 1; let j = this.cp != 1; this.xz.a3(this.xz.b, d.dv, a, b, c, d, e, f, false, g); this.xz.ab(this.ii); let k = this.xz.ay; let l = null; let m = null; let n = null; let o = this.dp; if (h && this.dc != null) { l = this.dc.d7.getHighlightingInfo(this, o, k.z, k.y, false); k.c = l; } if (i && this.dc != null) { m = this.dc.d8.getHighlightingInfo(this, o, k.z, k.y, false); if (m == null && this.bo != null) { m = this.dc.d8.getHighlightingInfo(this.bo, this.bo.dp, k.z, k.y, false); } k.d = m; } if (j && this.dc != null) { n = this.dc.d6.getHighlightingInfo(this, o, k.z, k.y, false); k.b = n; } k.h = f; this.aax(k); this.xz.z(this, l, m, n, f, h, i, j, b < 0); } zg(a) { return this.i0(a, this.xq); } kj(a, b) { return this.kk(a, b, this.xq, runOn(this, this.zg), new FinancialValueList(this.ym, this.yk, this.yl, this.yj, this.yo)); } kh(a, b) { return this.ki(a, b, this.xq, runOn(this, this.zg), new FinancialValueList(this.ym, this.yk, this.yl, this.yj, this.yo)); } iw(a, b, c, d, e) { if (c == null) { return Number.POSITIVE_INFINITY; } let f = this.xq.p7; return this.ix(a, b, this.xq, d, e, f, runOn(this, this.zg)); } getOffsetValue() { return this.zh(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)); } getCategoryWidth() { return this.xq.getCategorySize(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)); } wv(a, b, c) { return this.wx(a, b, c, this.zh(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.x9, this.xq, null, null, null); } jd(a, b, c) { let d = this.getEffectiveViewport1(this.cw); let e = this.zh(this.cw.ca, this.cw.b9, d); let f = new ScalerParams(0, this.cw.ca, this.cw.b9, this.xq.dn, d); return this.jf(new FinancialValueList(this.ym, this.yk, this.yl, this.yj, this.yo), a, this.xq, f, e, runOn(this, this.zg), b, c); } i9(a, b, c) { let d = this.getEffectiveViewport1(this.cw); let e = this.zh(this.cw.ca, this.cw.b9, d); let f = new ScalerParams(0, this.cw.ca, this.cw.b9, this.xq.dn, d); return this.jf(this.yk, a, this.xq, f, e, runOn(this, this.zg), b, c); } jb(a, b, c) { let d = this.getEffectiveViewport1(this.cw); let e = this.zh(this.cw.ca, this.cw.b9, d); let f = new ScalerParams(0, this.cw.ca, this.cw.b9, this.xq.dn, d); return this.jf(this.yl, a, this.xq, f, e, runOn(this, this.zg), b, c); } zi(a, b, c) { let d = this.getEffectiveViewport1(this.cw); let e = this.zh(this.cw.ca, this.cw.b9, d); let f = new ScalerParams(0, this.cw.ca, this.cw.b9, this.xq.dn, d); return this.jf(this.yj, a, this.xq, f, e, runOn(this, this.zg), b, c); } zj(a, b, c) { let d = this.getEffectiveViewport1(this.cw); let e = this.zh(this.cw.ca, this.cw.b9, d); let f = new ScalerParams(0, this.cw.ca, this.cw.b9, this.xq.dn, d); return this.jf(this.ym, a, this.xq, f, e, runOn(this, this.zg), b, c); } zk(a, b, c) { let d = this.getEffectiveViewport1(this.cw); let e = this.zh(this.cw.ca, this.cw.b9, d); let f = new ScalerParams(0, this.cw.ca, this.cw.b9, this.xq.dn, d); return this.jf(this.yo, a, this.xq, f, e, runOn(this, this.zg), b, c); } wr(a, b, c) { return this.wx(a, b, c, this.zh(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.x9, this.xq, runOn(this, this.i9), (d, e) => this.kk(d, e, this.xq, runOn(this, this.zg), this.yk), (d, e) => this.ki(d, e, this.xq, runOn(this, this.zg), this.yk)); } wt(a, b, c) { return this.wx(a, b, c, this.zh(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.x9, this.xq, runOn(this, this.jb), (d, e) => this.kk(d, e, this.xq, runOn(this, this.zg), this.yl), (d, e) => this.ki(d, e, this.xq, runOn(this, this.zg), this.yl)); } abi(a, b, c) { return this.wx(a, b, c, this.zh(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.x9, this.xq, runOn(this, this.zj), (d, e) => this.kk(d, e, this.xq, runOn(this, this.zg), this.ym), (d, e) => this.ki(d, e, this.xq, runOn(this, this.zg), this.ym)); } abh(a, b, c) { return this.wx(a, b, c, this.zh(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.x9, this.xq, runOn(this, this.zi), (d, e) => this.kk(d, e, this.xq, runOn(this, this.zg), this.yj), (d, e) => this.ki(d, e, this.xq, runOn(this, this.zg), this.yj)); } abj(a, b, c) { return this.wx(a, b, c, this.zh(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.x9, this.xq, runOn(this, this.zk), (d, e) => this.kk(d, e, this.xq, runOn(this, this.zg), this.yo), (d, e) => this.ki(d, e, this.xq, runOn(this, this.zg), this.yo)); } qo() { super.qo(); if (this.xq != null) { this.xq.lv(false); } if (this.x9 != null) { this.x9.lv(false); } } s8(a, b) { this.x7.cd.e(this.ik); this.r7(false); } s7(a, b) { if (this.g7 && this.jz < 0.05) { this.g8 = true; this.hb = false; this.gq = false; } this.x7.cd.e(this.ik); this.r7(false); } yn(a, b, c) { let d = this.dl(b); this.y1.addItem(d, b); this.y2.addItem(b, c); return d; } aap(a, b) { if (b == null) { return; } a.deregisterColumn(b); let c = this.y1.item(b); this.y2.removeItem(c); this.y1.removeItem(b); } rp(a, b, c, d) { super.rp(a, b, c, d); switch (b) { case "SyncLink": if (this.c4 != null && this.dc != null) { this.x7.cd.e(this.ik); this.r7(false); } break; case "SeriesViewer": if (c != null && d == null) { if (this.xq != null) { this.xq.cx(this); } if (this.x9 != null) { this.x9.cx(this); } } if (c == null && d != null) { if (this.xq != null) { this.xq.d3(this); } if (this.x9 != null) { this.x9.d3(this); } } this.x7.cd.e(this.ik); this.r7(false); break; case "FastItemsSource": this.yq = true; if (typeCast(IFastItemsSource_$type, c) != null) { this.aap(typeCast(IFastItemsSource_$type, c), this.ym); this.aap(typeCast(IFastItemsSource_$type, c), this.yk); this.aap(typeCast(IFastItemsSource_$type, c), this.yl); this.aap(typeCast(IFastItemsSource_$type, c), this.yj); this.aap(typeCast(IFastItemsSource_$type, c), this.yo); this.ym = null; this.yk = null; this.yl = null; this.yj = null; this.yo = null; } if (typeCast(IFastItemsSource_$type, d) != null) { if (stringIsNullOrEmpty(this.aag) == false) { this.ym = this.yn(typeCast(IFastItemsSource_$type, d), this.aag, "OpenColumn"); } if (stringIsNullOrEmpty(this.z7) == false) { this.yk = this.yn(typeCast(IFastItemsSource_$type, d), this.z7, "HighColumn"); } if (stringIsNullOrEmpty(this.aac) == false) { this.yl = this.yn(typeCast(IFastItemsSource_$type, d), this.aac, "LowColumn"); } if (stringIsNullOrEmpty(this.zu) == false) { this.yj = this.yn(typeCast(IFastItemsSource_$type, d), this.zu, "CloseColumn"); } if (stringIsNullOrEmpty(this.aak) == false) { this.yo = this.yn(typeCast(IFastItemsSource_$type, d), this.aak, "VolumeColumn"); } } this.yq = false; if (this.x9 != null && !this.x9.ec()) { this.x7.cd.e(this.ik); this.r7(this.gm && c != null); } break; case FinancialSeries.$$p[11]: if (this.dp != null) { this.aap(this.dp, this.ym); this.ym = this.yn(this.dp, this.aag, "OpenColumn"); } break; case "OpenColumn": if (this.x9 != null && !this.x9.ec() && !this.yq) { this.x7.cd.e(this.ik); this.r7(this.gm && this.d9); } break; case FinancialSeries.$$p[1]: if (this.dp != null) { this.aap(this.dp, this.yk); this.yk = this.yn(this.dp, this.z7, "HighColumn"); } break; case "HighColumn": if (this.x9 != null && !this.x9.ec() && !this.yq) { this.x7.cd.e(this.ik); this.r7(this.gm && this.d9); } break; case FinancialSeries.$$p[9]: if (this.dp != null) { this.aap(this.dp, this.yl); this.yl = this.yn(this.dp, this.aac, "LowColumn"); } break; case "LowColumn": if (this.x9 != null && !this.x9.ec() && !this.yq) { this.x7.cd.e(this.ik); this.r7(this.gm && this.d9); } break; case FinancialSeries.$$p[0]: if (this.dp != null) { this.aap(this.dp, this.yj); this.yj = this.yn(this.dp, this.zu, "CloseColumn"); } break; case "CloseColumn": if (this.x9 != null && !this.x9.ec() && !this.yq) { this.x7.cd.e(this.ik); this.r7(this.gm && this.d9); } this.aaz(); break; case FinancialSeries.$$p[13]: if (this.dp != null) { this.aap(this.dp, this.yo); this.yo = this.yn(this.dp, this.aak, "VolumeColumn"); } break; case "VolumeColumn": if (this.x9 != null && !this.x9.ec() && !this.yq) { this.x7.cd.e(this.ik); this.r7(this.gm && this.d9); } break; case FinancialSeries.$$p[14]: if (c != null) { c.cx(this); } if (d != null) { d.d3(this); } this.x7.cd.e(this.ik); this.r7(false); this.qz(); this.x8 = typeCast(ITimeRangeSelectorAxis_$type, this.xq); break; case FinancialSeries.$$p[15]: if (c != null) { c.cx(this); } if (d != null) { d.d3(this); } this.x7.cd.e(this.ik); if (this.x9 != null) { this.x9.ec(); } { this.r7(false); } this.qz(); break; case "TransitionProgress": this.xw.d(this.jz, this.xu, this.xs); if (this.d7(this.cw)) { return; } if (this.jz == 1) { this.xs.ab(); this.aay(this.xs, this.x7); if (this.g7) { this.g7 = false; this.pi(); this.dd.r = truncate(this.jh()); this.dd.b = this.de; } if (this.ha) { this.ha = false; this.pi(); this.dd.r = truncate(this.jh()); this.dd.b = this.de; this.rf(); } this.q2(); } else { this.aay(this.xw, this.x7); } if (this.dc != null) { this.dc.st(this); } break; case FinancialSeries.$$p[10]: this.r7(false); break; case "IsCustomCategoryStyleAllowed": this.yr = this.yu(); this.r7(false); break; case "CategoryMode": if (this.xq != null) { this.xq.qy(true); } break; } } yt(a) { if (typeCast(NumericYAxis.$, a) !== null) { return true; } return false; } ys(a) { if (typeCast(CategoryXAxis.$, a) !== null || a.dj) { return true; } return false; } xj(a, b, c) { if (b < a || a < 0 || a > this.dp.count || b < 0 || b > this.dp.count || c == null) { return null; } let d = new Array((b - a) + 1); let e = c.dv; let f = null; if (e) { f = c.i$b; } for (let g = a; g <= b; g++) { let h = g; if (e) { h = f._inner[h]; } d[g - a] = this.dp.item(g); } return d; } zn(a) { return a.cd.b; } zp(a) { return a.cd.c; } xi(a, b) { return this.xj(a, b, this.x9); } get_fh() { return true; } pf() { super.pf(); this.yd = null; } dh(a, b, c) { if (this.ef && this.f2(this.by) && !c) { let d = this.yc(a, b, this.yd); this.yd = d; return d; } else { let e = this.yb(a, b, this.yd); this.yd = e; return e; } } zr(a) { let b = this.xt(); let c = this.cw.b9; let d = this.cw.ca; let e = this.xq; let f = 0; if (e.dy) { let g = (a.y - d.top) / d.height; f = g * c.height + c.top; } else { let h = (a.x - d.left) / d.width; f = h * c.width + c.left; } let i = b.k.count; let j = 0; for (j = 0; j < i; j++) { let k = b.k._inner[j]; let l = null; if (j < i - 1) { l = b.k._inner[j + 1]; } if (k[0] <= f && l == null || l[0] >= f) { if (l != null) { if (Math.abs(k[0] - f) < Math.abs(l[0] - f)) { return j; } else { return j + 1; } } else { return j; } } } return j; } yc(a, b, c) { if (this.dp == null) { return null; } let d = this.dp.count; let e = this.x7.cd.c; let f = this.x7.cd.d; let g = this.x7.cd.b; let h = this.xq; let i = -1; let j = -1; if (h.dv) { let k = this.xt(); let l = this.zr(b); if (k.r != null && l >= 0 && l < k.r.count) { l = truncate(Math.round(k.r._inner[l])); } i = l; j = l; } else { let m = this.kc(b); i = truncate(Math.floor((intDivide(m, g)))) * g; j = i + (g - 1); } if (c != null && c.g == i && c.f == j) { return c; } let n = new HighlightingInfo(); n.i = this; n.g = i; n.f = j; return n; } yb(a, b, c) { let d = new HighlightingInfo(); d.i = this; d.g = 0; d.f = this.dp.count - 1; d.c = true; if (c != null && c.g == d.g && c.f == d.f) { return c; } return d; } yu() { return this.yw; } iy(a) { let b = this.cw.ca; let c = this.cw.b9; let d = -1; if (!b.isEmpty && !c.isEmpty && this.xq != null) { let e = this.getEffectiveViewport1(this.cw); let f = new ScalerParams(0, b, c, this.xq.dn, e); let g = this.w3(this.cw); let h = this.xq.f8(g.left, f); let i = this.xq.f8(g.right, f); let j = (a.x - b.left) / b.width; let k = h + (j * (i - h)); if (this.xq.categoryMode != 0) { k -= 0.5; } d = k; } return d; } kc(a) { return truncate(Math.round(this.iy(a))); } get_fv() { return typeCast(ISortingAxis_$type, this.xq) !== null; } a0() { return this.xq; } ke(a) { let b = this.cw.ca; let c = this.cw.b9; let d = this.getEffectiveViewport1(this.cw); if (b.isEmpty || c.isEmpty) { return -1; } let e = new Rect(0, 0, 0, 1, 1); let f = new ScalerParams(0, b, c, this.xq.dn, d); let g = typeCast(ISortingAxis_$type, this.xq); let h = this.w3(this.cw); let i = h.left; let j = h.right; let k = this.wq(a).x; let l = this.xq.f8(k, f); let m = this.xq.f8(i, f); let n = this.xq.f8(j, f); l = Math.max(m, Math.min(n, l)); let o = g.i$f(l); return o; } kw(a) { let b = 0; if (typeCast(ISortingAxis_$type, this.xq) !== null) { b = this.ke(a); if (b == -1) { return null; } } else { b = this.kc(a); } return b >= 0 && this.dp != null && b < this.dp.count ? this.dp.item(b) : null; } xt() { let a = this.xs; if (this.d4()) { if (this.dd.g) { this.dd.t(); } a = this.xw; } return a; } zh(a, b, c) { if (this.xq == null) { return 0; } return this.xq.px(a, b, c, this.index); } gt() { return this.yx; } x0() { return 11; } c5() { return 3; } c8() { return 3; } aay(a, b) { this.rc(); this.w2 = a.ag; b.a6(); } aaw(a, b) { a.aa(); } hk(a, b, c) { let d = super.hk(a, b, c); let e = c; if (this.dp == null || this.dp.count == 0 || !c.r() || b.isEmpty || a.isEmpty || this.xq == null || this.x9 == null || e.cd.b < 1 || this.xq.b2 == null || this.x9.b2 == null || this.x9.qt == this.x9.qs || this.xq.itemsSource == null || this.xq.p7 < 1) { e.cd.b = 0; d = false; } return d; } getViewInfo(a, b) { b = this.cw.ca; a = this.cw.b9; return { p0: a, p1: b }; } zl(a) { let b = 0; let c = a.ca; let d = a.b9; let e = this.getEffectiveViewport1(this.cw); if (!c.isEmpty && !d.isEmpty && this.x9 != null) { let f = new ScalerParams(0, c, d, this.x9.dn, e); f.b = this.i5(); b = this.x9.f5(this.x9.q7, f); } return b; } pi() { super.pi(); this.xu.ab(); this.xs.ab(); this.xw.ab(); } r8(a) { super.r8(a); this.x7.cd.e(this.ik); if (this.d7(this.cw)) { return; } if (this.gx) { if (this.d4()) { this.aay(this.xw, this.x7); } else { this.aay(this.xs, this.x7); } return; } if (this.gl(a)) { let b = this.xu; if (this.d4()) { if (this.dd.g) { this.dd.t(); } this.xu = this.xw; this.xw = b; } else { this.xu = this.xs; this.xs = b; } this.aaw(this.xs, this.x7); let c = false; if (this.g9) { this.dd.w(); this.dd.r = truncate(this.ji()); this.dd.b = this.df != null ? this.df : this.de; if (this.ha) { let d = this.xw; this.xw = this.xu; this.xu = d; c = true; } this.x2.x(this, this.xu, this.xs, this.isVertical, this.xq, this.x9, this.x1, this.x0(), this.c6, this.c5(), () => this.zl(this.x7), this.x7.b9); if (this.ha) { let e = this.xw; this.xw = this.xu; this.xu = e; } this.ha = false; } if (this.hc) { this.dd.w(); this.dd.r = truncate(this.jj()); this.dd.b = this.dg != null ? this.dg : this.de; if (this.g7) { let f = this.xw; this.xw = this.xu; this.xu = f; c = true; } this.x2.x(this, this.xu, this.xs, this.isVertical, this.xq, this.x9, this.x1, this.x0(), this.c6, this.c5(), () => this.zl(this.x7), this.x7.b9); let g = this.xs; this.xs = this.xu; this.xu = g; if (this.g7) { let h = this.xw; this.xw = this.xu; this.xu = h; } this.g7 = false; } this.eb = false; if (!c) { this.pd(); } this.so(); if (this.g9) { this.g8 = false; this.hb = false; this.gq = false; this.g7 = true; } if (this.hc) { this.hb = false; this.ha = true; } } else { this.aaw(this.xs, this.x7); this.aay(this.xs, this.x7); } } gu() { return true; } yz(a) { for (let b of fromEnum(a)) { switch (b) { case "HighColumn": if (this.yk == null) { return false; } break; case "LowColumn": if (this.yl == null) { return false; } break; case "OpenColumn": if (this.ym == null) { return false; } break; case "CloseColumn": if (this.yj == null) { return false; } break; case "VolumeColumn": if (this.yo == null) { return false; } break; } } return true; } get y0() { return this.xq != null && typeCast(ISortingAxis_$type, this.xq) !== null; } yv() { return this.typical != null; } aao(a) { this.typical(this, a); } get y8() { return this.y5(); } *_y5() { let a = false; if (this.yv()) { let b = this.x3(0, this.dp.count); this.aao(new FinancialEventArgs(0, this.dp.count, b, this.x4(b), this)); if (b.typicalColumn != null) { a = true; for (let c of fromEnum(b.typicalColumn)) { yield c; } } } if (!a) { if (this.y0 && this.xq.i$b != null) { let d = this.dp.count; let e = this.xq.i$b; for