UNPKG

igniteui-angular-charts

Version:

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

109 lines (108 loc) 3.98 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 { Frame } from "./Frame"; import { Dictionary$2 } from "igniteui-angular-core"; import { CategoryHighlightFrameRect } from "./CategoryHighlightFrameRect"; import { Number_$type, runOn, markType } from "igniteui-angular-core"; import { DictInterpolator$3 } from "./DictInterpolator$3"; import { BrushUtil } from "igniteui-angular-core"; import { isNaN_ } from "igniteui-angular-core"; /** * @hidden */ export let CategoryHighlightLayerFrame = /*@__PURE__*/ (() => { class CategoryHighlightLayerFrame extends Frame { constructor() { super(); this.j = null; this.i = null; this.j = new Dictionary$2(Number_$type, CategoryHighlightFrameRect.$, 0); this.i = new DictInterpolator$3(Number_$type, CategoryHighlightFrameRect.$, CategoryHighlightLayerFrame.$, runOn(this, this.k), (a) => a.f, (a) => true, () => new CategoryHighlightFrameRect()); } k(a, b, c, d, e, f) { if (d != null) { a.f = d.f; } else if (c != null) { a.f = c.f; } else { a.f = 0; } if (c == null || isNaN_(c.e)) { a.e = d != null ? d.e : NaN; } else if (d == null || isNaN_(d.e)) { a.e = NaN; } else { a.e = c.e + b * (d.e - c.e); } if (c == null || isNaN_(c.b)) { a.b = d != null ? d.b : NaN; } else if (d == null || isNaN_(d.b)) { a.b = NaN; } else { a.b = c.b + b * (d.b - c.b); } if (c == null || isNaN_(c.c)) { a.c = d != null ? d.c : NaN; } else if (d == null || isNaN_(d.c)) { a.c = NaN; } else { a.c = c.c + b * (d.c - c.c); } if (c == null || isNaN_(c.a)) { a.a = d != null ? d.a : NaN; } else if (d == null || isNaN_(d.a)) { a.a = NaN; } else { a.a = c.a + b * (d.a - c.a); } if (c == null || isNaN_(c.d)) { a.d = d != null ? d.d : NaN; } else if (d == null || isNaN_(d.d)) { a.d = NaN; } else { a.d = c.d + b * (d.d - c.d); } if (c == null || c.g == null) { a.g = d != null ? d.g : null; } else if (d == null || d.g == null) { a.g = null; } else { a.g = BrushUtil.n(c.g, b, d.g, 0); } if (c == null || c.h == null) { a.h = d != null ? d.h : null; } else if (d == null || d.h == null) { a.h = null; } else { a.h = BrushUtil.n(c.h, b, d.h, 0); } } d(a, b, c) { let d = b; let e = c; this.i.f(this.j, a, d.j, e.j, d, e); } } CategoryHighlightLayerFrame.$t = markType(CategoryHighlightLayerFrame, 'CategoryHighlightLayerFrame', Frame.$); return CategoryHighlightLayerFrame; })();