UNPKG

igniteui-angular-charts

Version:

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

72 lines (71 loc) 2.67 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 { VerticalLinearScaler } from "./VerticalLinearScaler"; import { markType } from "igniteui-angular-core"; import { ArrayAccessHelper } from "igniteui-angular-core"; /** * @hidden */ export let FastVerticalLinearScaler = /*@__PURE__*/ (() => { class FastVerticalLinearScaler extends VerticalLinearScaler { u(a, b, c, d, e) { let f; let g = e.e; let h = e.d; let i = e.c; let j = e.a; let k = !i.isEmpty; let l = this.m; let m = this.o; let n = i.top; let o = i.height; let p = g.top; let q = g.height; let r = h.top; let s = h.height; let t = 0; let u = 1; let v = ArrayAccessHelper.a(a); let w = false; if (v != null) { w = true; } let x; for (let y = 0; y < b.count; y++) { x = b.item(y); for (let z = c; z < d; z++) { if (w) { f = v[z]; } else { f = a.item(z); } if (k) { let aa = (f[x] - m) / (l); if (!j) { aa = 1 - aa; } aa = n + o * (aa - t) / u; let ab = (aa - r) / s; ab = r + s * (ab - p) / q; f[x] = ab; } else { let ac = (f[x] - m) / (l); if (!j) { ac = 1 - ac; } ac = r + s * (ac - p) / q; f[x] = ac; } } } } } FastVerticalLinearScaler.$t = markType(FastVerticalLinearScaler, 'FastVerticalLinearScaler', VerticalLinearScaler.$); return FastVerticalLinearScaler; })();