UNPKG

igniteui-angular-charts

Version:

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

134 lines (133 loc) 5.11 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 { FinancialSeries } from "./FinancialSeries"; import { DependencyProperty } from "igniteui-angular-core"; import { ISortingAxis_$type } from "./ISortingAxis"; import { typeCast, markType, markDep } from "igniteui-angular-core"; import { Rect } from "igniteui-angular-core"; import { ScalerParams } from "./ScalerParams"; import { AxisRange } from "./AxisRange"; import { PropertyMetadata } from "igniteui-angular-core"; import { isNaN_ } from "igniteui-angular-core"; /** * @hidden */ export let FinancialOverlay = /*@__PURE__*/ (() => { class FinancialOverlay extends FinancialSeries { constructor() { super(); this.abk = false; this.abk = false; } get_fc() { return true; } pn(a, b, c, d) { super.pn(a, b, c, d); if (this.xq != null && typeCast(ISortingAxis_$type, this.xq) !== null) { this.xq.i$i(); } this.x7.cd.e(this.ik); this.abl(); if (this.x9 != null) { this.x9.ec(); } this.r7(true); } get_hj() { return true; } rp(a, b, c, d) { switch (b) { case "FastItemsSource": this.abk = false; break; case FinancialOverlay.$$p[0]: this.abk = false; this.r7(false); this.qz(); break; case "XAxis": this.abk = false; break; } super.rp(a, b, c, d); } b3() { if (this.b4 == 0) { return 1; } else { return super.b3(); } } g2(a, b) { if (this.g1(a, b)) { return true; } return false; } ac() { super.ac(); this.r7(false); } gj(a) { let b = this.dp != null ? this.dp.indexOf(a) : -1; let c = this.cw.ca; c = c.copy(); let d = this.cw.b9; let e = new Rect(0, 0, 0, 1, 1); let f = this.w5(this.cw); let g = new ScalerParams(0, e, e, this.xq.dn, f); let h = new ScalerParams(0, e, e, this.x9.dn, f); h.b = this.i5(); if (b >= 0 && Rect.l_op_Inequality(c, null) && Rect.l_op_Inequality(d, null)) { if (this.xq != null) { let i = this.xq.f5(b, g); if (i < c.left + 0.1 * c.width) { i = i + 0.4 * c.width; } if (i > c.right - 0.1 * c.width) { i = i - 0.4 * c.width; } c.x = i - 0.5 * c.width; } if (this.x9 != null && this.yl != null && this.yk != null && b < this.yl.count && b < this.yk.count) { let j = this.x9.f5(this.yl.item(b), h); let k = this.x9.f5(this.yk.item(b), h); if (!isNaN_(j) && !isNaN_(k)) { let l = Math.abs(j - k); if (c.height < l) { c.height = l; c.y = Math.min(j, k); } else { if (j < c.top + 0.1 * c.height) { j = j + 0.4 * c.height; } if (j > c.bottom - 0.1 * c.height) { j = j - 0.4 * c.height; } c.y = j - 0.5 * c.height; } } } this.c4.au(this.dc, c, true); } return b >= 0; } ay(a) { if (a != null && a == this.x9 && this.yl != null && this.yk != null) { return new AxisRange(this.yl.minimum, this.yk.maximum); } return null; } } FinancialOverlay.$t = markType(FinancialOverlay, 'FinancialOverlay', FinancialSeries.$); FinancialOverlay.$$p = markDep(DependencyProperty, PropertyMetadata, FinancialOverlay, 'raisePropertyChanged', ['IgnoreFirst:abm:abo', [1, 0]]); return FinancialOverlay; })();