UNPKG

igniteui-angular-charts

Version:

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

1,368 lines (1,367 loc) 76.5 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { 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.b2.id; return { p0: a, p1: b, p2: c, p3: d }; } e(a) { let b = this.a.by; let c = this.a.bx; let d = this.a.bx; if (this.a.b2 != null) { d = this.a.b2.getEffectiveViewport1(this.a); } if (b.isEmpty || c.isEmpty || this.a.b2.w6 == null) { this.b = 0; return; } let e = (this.a.b2.w6 != null) ? this.a.b2.w6.ch : false; let f = new ScalerParams(0, b, c, e, d); let g = this.a.b2.wj(this.a); let h = typeCast(ISortingAxis_$type, this.a.b2.w6); if (h == null || h.i$b == null) { let i = Math.floor(this.a.b2.w6.eo(g.left, f)); let j = Math.ceil(this.a.b2.w6.eo(g.right, f)); if (this.a.b2.w6.ch) { j = Math.ceil(this.a.b2.w6.eo(g.left, f)); i = Math.floor(this.a.b2.w6.eo(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.xx = null; this.xv = null; this.xw = null; this.xu = null; this.xy = null; this.x7 = false; this.assigningCategoryStyle = null; this.xf = null; this.yh = new Dictionary$2(IFastItemColumn$1_$type.specialize(Number_$type), String_$type, 0); this.yi = new Dictionary$2(String_$type, String_$type, 0); this.x6 = false; this.xt = null; this.xa = null; this.xc = null; this.w8 = null; this.xi = null; this.typical = null; this.typicalBasedOn = null; this.x5 = false; this.yu = null; this.ys = null; this.yt = null; this.yr = null; this.yv = null; this.xb = null; this.w7 = null; this.xd = 0; this.xo = null; this.xq = null; this.xf = new CategorySeriesRenderManager(); this.x7 = false; this.xi = new CategoryTransitionSourceFramePreparer(); this.xb = new CategoryFrame(3); this.ab = FinancialSeries.$; this.xe = 0; } ht() { let a = super.ht(); { 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.z9)); 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.z7)); 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.z8)); 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.z6)); 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.aaa)); 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.r0)); 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.r0)); 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.r0)); 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.r0)); 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; } z9(a, b) { if (this.zj != null) { b.value = this.zj; return; } b.value = this.zw; } z7(a, b) { if (this.zf != null) { b.value = this.zf; return; } b.value = this.zn; } z8(a, b) { if (this.zh != null) { b.value = this.zh; return; } b.value = this.zs; } z6(a, b) { if (this.zd != null) { b.value = this.zd; return; } b.value = this.za; } aaa(a, b) { if (this.zl != null) { b.value = this.zl; return; } b.value = this.z0; } kv() { if (this.d3()) { return this.bn.xc; } else { return this.bn.w8; } } q1(a) { super.q1(a); this.xn = a; } get_e6() { return true; } ai() { return [this.w6, this.xp]; } kq(a, b) { let c = this.nd(b); if (c == FinancialSeries.$$p[11]) { return this.kr(a, b, this.zw); } if (c == FinancialSeries.$$p[1]) { return this.kr(a, b, this.zn); } if (c == FinancialSeries.$$p[9]) { return this.kr(a, b, this.zs); } if (c == FinancialSeries.$$p[0]) { return this.kr(a, b, this.za); } if (c == FinancialSeries.$$p[13]) { return this.kr(a, b, this.z0); } if (c == FinancialSeries.$$p[5]) { return this.kr(a, b, this.zj); } if (c == FinancialSeries.$$p[3]) { return this.kr(a, b, this.zf); } if (c == FinancialSeries.$$p[4]) { return this.kr(a, b, this.zh); } if (c == FinancialSeries.$$p[2]) { return this.kr(a, b, this.zd); } if (c == FinancialSeries.$$p[6]) { return this.kr(a, b, this.zl); } return super.kq(a, b); } md(a) { let b = this.nd(a); if (b == FinancialSeries.$$p[11]) { return this.zw; } if (b == FinancialSeries.$$p[1]) { return this.zn; } if (b == FinancialSeries.$$p[9]) { return this.zs; } if (b == FinancialSeries.$$p[0]) { return this.za; } if (b == FinancialSeries.$$p[13]) { return this.z0; } if (b == FinancialSeries.$$p[5]) { return this.zj; } if (b == FinancialSeries.$$p[3]) { return this.zf; } if (b == FinancialSeries.$$p[4]) { return this.zh; } if (b == FinancialSeries.$$p[2]) { return this.zd; } if (b == FinancialSeries.$$p[6]) { return this.zl; } return super.md(a); } y6() { return 2; } y4() { return 4; } aj(a) { let b = this.an(this.w6, this.w8.f, this.y3(this.cv), this.y5(this.cv), this.wh(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.y6(); 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.w6, this.w8.f, this.y3(this.cv), this.y5(this.cv), this.wh(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; } vw() { return this.aaw; } vx() { return this.aaw; } o2() { super.o2(); this.w6 = null; this.xp = null; } get_ek() { return true; } get_f5() { return this.xp != null && this.xp.ch; } get x2() { return this.xx; } set x2(a) { if (this.xx != a) { let b = this.xx; this.xx = a; this.raisePropertyChanged("OpenColumn", b, this.xx); } } get x0() { return this.xv; } set x0(a) { if (this.xv != a) { let b = this.xv; this.xv = a; this.raisePropertyChanged("HighColumn", b, this.xv); } } get x1() { return this.xw; } set x1(a) { if (this.xw != a) { let b = this.xw; this.xw = a; this.raisePropertyChanged("LowColumn", b, this.xw); } } get xz() { return this.xu; } set xz(a) { if (this.xu != a) { let b = this.xu; this.xu = a; this.raisePropertyChanged("CloseColumn", b, this.xu); } } get x4() { return this.xy; } set x4(a) { if (this.xy != a) { let b = this.xy; this.xy = a; this.raisePropertyChanged("VolumeColumn", b, this.xy); } } gb() { return this.highlightedItemsSource != null || (this.zj != null && this.zf != null && this.zh != null && this.zd != null); } ye() { return (this.assigningCategoryStyle != null && this.x7) || this.bx != 1 || this.cp != 1 || this.co != 1; } aad(a) { if (this.assigningCategoryStyle != null && this.x7) { this.assigningCategoryStyle(this, a); } } aab(a, b, c, d, e, f, g) { let h = this.bx != 1; let i = this.cp != 1; let j = this.co != 1; this.xf.a3(this.xf.b, d.cn, a, b, c, d, e, f, false, g); this.xf.ab(this.ib); let k = this.xf.ay; let l = null; let m = null; let n = null; let o = this.dn; if (h && this.db != null) { l = this.db.dl.getHighlightingInfo(this, o, k.z, k.y, false); k.c = l; } if (i && this.db != null) { m = this.db.dm.getHighlightingInfo(this, o, k.z, k.y, false); if (m == null && this.bn != null) { m = this.db.dm.getHighlightingInfo(this.bn, this.bn.dn, k.z, k.y, false); } k.d = m; } if (j && this.db != null) { n = this.db.dk.getHighlightingInfo(this, o, k.z, k.y, false); k.b = n; } k.h = f; this.aad(k); this.xf.z(this, l, m, n, f, h, i, j, b < 0); } yw(a) { return this.it(a, this.w6); } ka(a, b) { return this.kb(a, b, this.w6, runOn(this, this.yw), new FinancialValueList(this.x2, this.x0, this.x1, this.xz, this.x4)); } j8(a, b) { return this.j9(a, b, this.w6, runOn(this, this.yw), new FinancialValueList(this.x2, this.x0, this.x1, this.xz, this.x4)); } ip(a, b, c, d, e) { if (c == null) { return Number.POSITIVE_INFINITY; } let f = this.w6.lj; return this.iq(a, b, this.w6, d, e, f, runOn(this, this.yw)); } getOffsetValue() { return this.yx(this.cv.by, this.cv.bx, this.getEffectiveViewport1(this.cv)); } getCategoryWidth() { return this.w6.getCategorySize(this.cv.by, this.cv.bx, this.getEffectiveViewport1(this.cv)); } wc(a, b, c) { return this.we(a, b, c, this.yx(this.cv.by, this.cv.bx, this.getEffectiveViewport1(this.cv)), this.xp, this.w6, null, null, null); } i5(a, b, c) { let d = this.getEffectiveViewport1(this.cv); let e = this.yx(this.cv.by, this.cv.bx, d); let f = new ScalerParams(0, this.cv.by, this.cv.bx, this.w6.ch, d); return this.i7(new FinancialValueList(this.x2, this.x0, this.x1, this.xz, this.x4), a, this.w6, f, e, runOn(this, this.yw), b, c); } i1(a, b, c) { let d = this.getEffectiveViewport1(this.cv); let e = this.yx(this.cv.by, this.cv.bx, d); let f = new ScalerParams(0, this.cv.by, this.cv.bx, this.w6.ch, d); return this.i7(this.x0, a, this.w6, f, e, runOn(this, this.yw), b, c); } i3(a, b, c) { let d = this.getEffectiveViewport1(this.cv); let e = this.yx(this.cv.by, this.cv.bx, d); let f = new ScalerParams(0, this.cv.by, this.cv.bx, this.w6.ch, d); return this.i7(this.x1, a, this.w6, f, e, runOn(this, this.yw), b, c); } yy(a, b, c) { let d = this.getEffectiveViewport1(this.cv); let e = this.yx(this.cv.by, this.cv.bx, d); let f = new ScalerParams(0, this.cv.by, this.cv.bx, this.w6.ch, d); return this.i7(this.xz, a, this.w6, f, e, runOn(this, this.yw), b, c); } yz(a, b, c) { let d = this.getEffectiveViewport1(this.cv); let e = this.yx(this.cv.by, this.cv.bx, d); let f = new ScalerParams(0, this.cv.by, this.cv.bx, this.w6.ch, d); return this.i7(this.x2, a, this.w6, f, e, runOn(this, this.yw), b, c); } y0(a, b, c) { let d = this.getEffectiveViewport1(this.cv); let e = this.yx(this.cv.by, this.cv.bx, d); let f = new ScalerParams(0, this.cv.by, this.cv.bx, this.w6.ch, d); return this.i7(this.x4, a, this.w6, f, e, runOn(this, this.yw), b, c); } v8(a, b, c) { return this.we(a, b, c, this.yx(this.cv.by, this.cv.bx, this.getEffectiveViewport1(this.cv)), this.xp, this.w6, runOn(this, this.i1), (d, e) => this.kb(d, e, this.w6, runOn(this, this.yw), this.x0), (d, e) => this.j9(d, e, this.w6, runOn(this, this.yw), this.x0)); } wa(a, b, c) { return this.we(a, b, c, this.yx(this.cv.by, this.cv.bx, this.getEffectiveViewport1(this.cv)), this.xp, this.w6, runOn(this, this.i3), (d, e) => this.kb(d, e, this.w6, runOn(this, this.yw), this.x1), (d, e) => this.j9(d, e, this.w6, runOn(this, this.yw), this.x1)); } aay(a, b, c) { return this.we(a, b, c, this.yx(this.cv.by, this.cv.bx, this.getEffectiveViewport1(this.cv)), this.xp, this.w6, runOn(this, this.yz), (d, e) => this.kb(d, e, this.w6, runOn(this, this.yw), this.x2), (d, e) => this.j9(d, e, this.w6, runOn(this, this.yw), this.x2)); } aax(a, b, c) { return this.we(a, b, c, this.yx(this.cv.by, this.cv.bx, this.getEffectiveViewport1(this.cv)), this.xp, this.w6, runOn(this, this.yy), (d, e) => this.kb(d, e, this.w6, runOn(this, this.yw), this.xz), (d, e) => this.j9(d, e, this.w6, runOn(this, this.yw), this.xz)); } aaz(a, b, c) { return this.we(a, b, c, this.yx(this.cv.by, this.cv.bx, this.getEffectiveViewport1(this.cv)), this.xp, this.w6, runOn(this, this.y0), (d, e) => this.kb(d, e, this.w6, runOn(this, this.yw), this.x4), (d, e) => this.j9(d, e, this.w6, runOn(this, this.yw), this.x4)); } qb() { super.qb(); if (this.w6 != null) { this.w6.ib(false); } if (this.xp != null) { this.xp.ib(false); } } sr(a, b) { this.xn.b0.e(this.id); this.rr(false); } sq(a, b) { if (this.g1 && this.jq < 0.05) { this.g2 = true; this.g5 = false; this.gk = false; } this.xn.b0.e(this.id); this.rr(false); } x3(a, b, c) { let d = this.dk(b); this.yh.addItem(d, b); this.yi.addItem(b, c); return d; } z5(a, b) { if (b == null) { return; } a.deregisterColumn(b); let c = this.yh.item(b); this.yi.removeItem(c); this.yh.removeItem(b); } q9(a, b, c, d) { super.q9(a, b, c, d); switch (b) { case "SyncLink": if (this.c3 != null && this.db != null) { this.xn.b0.e(this.id); this.rr(false); } break; case "SeriesViewer": if (c != null && d == null) { if (this.w6 != null) { this.w6.b0(this); } if (this.xp != null) { this.xp.b0(this); } } if (c == null && d != null) { if (this.w6 != null) { this.w6.ct(this); } if (this.xp != null) { this.xp.ct(this); } } this.xn.b0.e(this.id); this.rr(false); break; case "FastItemsSource": this.x6 = true; if (typeCast(IFastItemsSource_$type, c) != null) { this.z5(typeCast(IFastItemsSource_$type, c), this.x2); this.z5(typeCast(IFastItemsSource_$type, c), this.x0); this.z5(typeCast(IFastItemsSource_$type, c), this.x1); this.z5(typeCast(IFastItemsSource_$type, c), this.xz); this.z5(typeCast(IFastItemsSource_$type, c), this.x4); this.x2 = null; this.x0 = null; this.x1 = null; this.xz = null; this.x4 = null; } if (typeCast(IFastItemsSource_$type, d) != null) { if (stringIsNullOrEmpty(this.zw) == false) { this.x2 = this.x3(typeCast(IFastItemsSource_$type, d), this.zw, "OpenColumn"); } if (stringIsNullOrEmpty(this.zn) == false) { this.x0 = this.x3(typeCast(IFastItemsSource_$type, d), this.zn, "HighColumn"); } if (stringIsNullOrEmpty(this.zs) == false) { this.x1 = this.x3(typeCast(IFastItemsSource_$type, d), this.zs, "LowColumn"); } if (stringIsNullOrEmpty(this.za) == false) { this.xz = this.x3(typeCast(IFastItemsSource_$type, d), this.za, "CloseColumn"); } if (stringIsNullOrEmpty(this.z0) == false) { this.x4 = this.x3(typeCast(IFastItemsSource_$type, d), this.z0, "VolumeColumn"); } } this.x6 = false; if (this.xp != null && !this.xp.c1()) { this.xn.b0.e(this.id); this.rr(this.gg && c != null); } break; case FinancialSeries.$$p[11]: if (this.dn != null) { this.z5(this.dn, this.x2); this.x2 = this.x3(this.dn, this.zw, "OpenColumn"); } break; case "OpenColumn": if (this.xp != null && !this.xp.c1() && !this.x6) { this.xn.b0.e(this.id); this.rr(this.gg && this.d7); } break; case FinancialSeries.$$p[1]: if (this.dn != null) { this.z5(this.dn, this.x0); this.x0 = this.x3(this.dn, this.zn, "HighColumn"); } break; case "HighColumn": if (this.xp != null && !this.xp.c1() && !this.x6) { this.xn.b0.e(this.id); this.rr(this.gg && this.d7); } break; case FinancialSeries.$$p[9]: if (this.dn != null) { this.z5(this.dn, this.x1); this.x1 = this.x3(this.dn, this.zs, "LowColumn"); } break; case "LowColumn": if (this.xp != null && !this.xp.c1() && !this.x6) { this.xn.b0.e(this.id); this.rr(this.gg && this.d7); } break; case FinancialSeries.$$p[0]: if (this.dn != null) { this.z5(this.dn, this.xz); this.xz = this.x3(this.dn, this.za, "CloseColumn"); } break; case "CloseColumn": if (this.xp != null && !this.xp.c1() && !this.x6) { this.xn.b0.e(this.id); this.rr(this.gg && this.d7); } this.aaf(); break; case FinancialSeries.$$p[13]: if (this.dn != null) { this.z5(this.dn, this.x4); this.x4 = this.x3(this.dn, this.z0, "VolumeColumn"); } break; case "VolumeColumn": if (this.xp != null && !this.xp.c1() && !this.x6) { this.xn.b0.e(this.id); this.rr(this.gg && this.d7); } break; case FinancialSeries.$$p[14]: if (c != null) { c.b0(this); } if (d != null) { d.ct(this); } this.xn.b0.e(this.id); this.rr(false); this.ql(); this.xo = typeCast(ITimeRangeSelectorAxis_$type, this.w6); break; case FinancialSeries.$$p[15]: if (c != null) { c.b0(this); } if (d != null) { d.ct(this); } this.xn.b0.e(this.id); if (this.xp != null) { this.xp.c1(); } { this.rr(false); } this.ql(); break; case "TransitionProgress": this.xc.c(this.jq, this.xa, this.w8); if (this.d5(this.cv)) { return; } if (this.jq == 1) { this.w8.w(); this.aae(this.w8, this.xn); if (this.g1) { this.g1 = false; this.o6(); this.dc.r = truncate(this.i9()); this.dc.b = this.dd; } if (this.g4) { this.g4 = false; this.o6(); this.dc.r = truncate(this.i9()); this.dc.b = this.dd; this.q0(); } this.qo(); } else { this.aae(this.xc, this.xn); } if (this.db != null) { this.db.qo(this); } break; case FinancialSeries.$$p[10]: this.rr(false); break; case "IsCustomCategoryStyleAllowed": this.x7 = this.ya(); this.rr(false); break; case "CategoryMode": if (this.w6 != null) { this.w6.ma(true); } break; } } x9(a) { if (typeCast(NumericYAxis.$, a) !== null) { return true; } return false; } x8(a) { if (typeCast(CategoryXAxis.$, a) !== null || a.ce) { return true; } return false; } wz(a, b, c) { if (b < a || a < 0 || a > this.dn.count || b < 0 || b > this.dn.count || c == null) { return null; } let d = new Array((b - a) + 1); let e = c.cn; 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.dn.item(g); } return d; } y3(a) { return a.b0.b; } y5(a) { return a.b0.c; } wy(a, b) { return this.wz(a, b, this.xp); } get_fe() { return true; } o3() { super.o3(); this.xt = null; } dg(a, b, c) { if (this.ed && this.fz(this.bx) && !c) { let d = this.xs(a, b, this.xt); this.xt = d; return d; } else { let e = this.xr(a, b, this.xt); this.xt = e; return e; } } y7(a) { let b = this.w9(); let c = this.cv.bx; let d = this.cv.by; let e = this.w6; let f = 0; if (e.cp) { 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.f.count; let j = 0; for (j = 0; j < i; j++) { let k = b.f._inner[j]; let l = null; if (j < i - 1) { l = b.f._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; } xs(a, b, c) { if (this.dn == null) { return null; } let d = this.dn.count; let e = this.xn.b0.c; let f = this.xn.b0.d; let g = this.xn.b0.b; let h = this.w6; let i = -1; let j = -1; if (h.cn) { let k = this.w9(); let l = this.y7(b); if (k.m != null && l >= 0 && l < k.m.count) { l = truncate(Math.round(k.m._inner[l])); } i = l; j = l; } else { let m = this.j3(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; } xr(a, b, c) { let d = new HighlightingInfo(); d.i = this; d.g = 0; d.f = this.dn.count - 1; d.c = true; if (c != null && c.g == d.g && c.f == d.f) { return c; } return d; } ya() { return this.yc; } ir(a) { let b = this.cv.by; let c = this.cv.bx; let d = -1; if (!b.isEmpty && !c.isEmpty && this.w6 != null) { let e = this.getEffectiveViewport1(this.cv); let f = new ScalerParams(0, b, c, this.w6.ch, e); let g = this.wj(this.cv); let h = this.w6.eo(g.left, f); let i = this.w6.eo(g.right, f); let j = (a.x - b.left) / b.width; let k = h + (j * (i - h)); if (this.w6.categoryMode != 0) { k -= 0.5; } d = k; } return d; } j3(a) { return truncate(Math.round(this.ir(a))); } get_fs() { return typeCast(ISortingAxis_$type, this.w6) !== null; } a0() { return this.w6; } j5(a) { let b = this.cv.by; let c = this.cv.bx; let d = this.getEffectiveViewport1(this.cv); if (b.isEmpty || c.isEmpty) { return -1; } let e = new Rect(0, 0, 0, 1, 1); let f = new ScalerParams(0, b, c, this.w6.ch, d); let g = typeCast(ISortingAxis_$type, this.w6); let h = this.wj(this.cv); let i = h.left; let j = h.right; let k = this.v7(a).x; let l = this.w6.eo(k, f); let m = this.w6.eo(i, f); let n = this.w6.eo(j, f); l = Math.max(m, Math.min(n, l)); let o = g.i$f(l); return o; } kn(a) { let b = 0; if (typeCast(ISortingAxis_$type, this.w6) !== null) { b = this.j5(a); if (b == -1) { return null; } } else { b = this.j3(a); } return b >= 0 && this.dn != null && b < this.dn.count ? this.dn.item(b) : null; } w9() { let a = this.w8; if (this.d3()) { if (this.dc.g) { this.dc.t(); } a = this.xc; } return a; } yx(a, b, c) { if (this.w6 == null) { return 0; } return this.w6.k9(a, b, c, this.index); } gn() { return this.yd; } xg() { return 11; } c4() { return 3; } c7() { return 3; } aae(a, b) { this.qx(); this.wi = a.ab; b.aw(); } aac(a, b) { a.v(); } he(a, b, c) { let d = super.he(a, b, c); let e = c; if (this.dn == null || this.dn.count == 0 || !c.o() || b.isEmpty || a.isEmpty || this.w6 == null || this.xp == null || e.b0.b < 1 || this.w6.bi == null || this.xp.bi == null || this.xp.l4 == this.xp.l3 || this.w6.itemsSource == null || this.w6.lj < 1) { e.b0.b = 0; d = false; } return d; } getViewInfo(a, b) { b = this.cv.by; a = this.cv.bx; return { p0: a, p1: b }; } y1(a) { let b = 0; let c = a.by; let d = a.bx; let e = this.getEffectiveViewport1(this.cv); if (!c.isEmpty && !d.isEmpty && this.xp != null) { let f = new ScalerParams(0, c, d, this.xp.ch, e); f.b = this.iy(); b = this.xp.el(this.xp.me, f); } return b; } o6() { super.o6(); this.xa.w(); this.w8.w(); this.xc.w(); } rs(a) { super.rs(a); this.xn.b0.e(this.id); if (this.d5(this.cv)) { return; } if (this.gr) { if (this.d3()) { this.aae(this.xc, this.xn); } else { this.aae(this.w8, this.xn); } return; } if (this.gf(a)) { let b = this.xa; if (this.d3()) { if (this.dc.g) { this.dc.t(); } this.xa = this.xc; this.xc = b; } else { this.xa = this.w8; this.w8 = b; } this.aac(this.w8, this.xn); let c = false; if (this.g3) { this.dc.w(); this.dc.r = truncate(this.ja()); this.dc.b = this.de != null ? this.de : this.dd; if (this.g4) { let d = this.xc; this.xc = this.xa; this.xa = d; c = true; } this.xi.s(this, this.xa, this.w8, this.isVertical, this.w6, this.xp, this.xh, this.xg(), this.c5, this.c4(), () => this.y1(this.xn), this.xn.bx); if (this.g4) { let e = this.xc; this.xc = this.xa; this.xa = e; } this.g4 = false; } if (this.g6) { this.dc.w(); this.dc.r = truncate(this.jb()); this.dc.b = this.df != null ? this.df : this.dd; if (this.g1) { let f = this.xc; this.xc = this.xa; this.xa = f; c = true; } this.xi.s(this, this.xa, this.w8, this.isVertical, this.w6, this.xp, this.xh, this.xg(), this.c5, this.c4(), () => this.y1(this.xn), this.xn.bx); let g = this.w8; this.w8 = this.xa; this.xa = g; if (this.g1) { let h = this.xc; this.xc = this.xa; this.xa = h; } this.g1 = false; } this.d9 = false; if (!c) { this.o1(); } this.r7(); if (this.g3) { this.g2 = false; this.g5 = false; this.gk = false; this.g1 = true; } if (this.g6) { this.g5 = false; this.g4 = true; } } else { this.aac(this.w8, this.xn); this.aae(this.w8, this.xn); } } go() { return true; } yf(a) { for (let b of fromEnum(a)) { switch (b) { case "HighColumn": if (this.x0 == null) { return false; } break; case "LowColumn": if (this.x1 == null) { return false; } break; case "OpenColumn": if (this.x2 == null) { return false; } break; case "CloseColumn": if (this.xz == null) { return false; } break; case "VolumeColumn": if (this.x4 == null) { return false; } break; } } return true; } get yg() { return this.w6 != null && typeCast(ISortingAxis_$type, this.w6) !== null; } yb() { return this.typical != null; } z4(a) { this.typical(this, a); } get yo() { return this.yl(); } *_yl() { let a = false; if (this.yb()) { let b = this.xj(0, this.dn.count); this.z4(new FinancialEventArgs(0, this.dn.count, b, this.xk(b), this)); if (b.typicalColumn != null) { a = true; for (let c of fromEnum(b.typicalColumn)) { yield c; } } } if (!a) { if (this.yg && this.w6.i$b != null) { let d = this.dn.count; let e = this.w6.i$b; for (let f = 0; f < d; ++f) {