UNPKG

igniteui-angular-charts

Version:

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

157 lines (156 loc) 6.05 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 { DictInterpolator$3 } from "./DictInterpolator$3"; import { Base, Point_$type, Array_$type, runOn, fromEnum, markType } from "igniteui-angular-core"; import { OwnedPoint } from "./OwnedPoint"; import { Dictionary$2 } from "igniteui-angular-core"; import { List$1 } from "igniteui-angular-core"; import { isNaN_ } from "igniteui-angular-core"; /** * @hidden */ export let ScatterFrameBase$1 = /*@__PURE__*/ (() => { class ScatterFrameBase$1 extends Frame { constructor($t) { super(); this.$t = null; this.i = null; this.s = null; this.m = null; this.j = null; this.q = null; this.r = null; this.k = null; this.o = null; this.l = null; this.n = null; this.p = null; this.$t = $t; this.$type = this.$type.specialize(this.$t); this.q = new List$1(Point_$type, 0); this.j = new Dictionary$2(Base.$, OwnedPoint.$, 0); this.m = new Dictionary$2(Base.$, OwnedPoint.$, 0); this.r = new List$1(Point_$type, 0); this.k = new Dictionary$2(Base.$, OwnedPoint.$, 0); this.o = new Dictionary$2(Base.$, OwnedPoint.$, 0); this.l = new Dictionary$2(Base.$, Array_$type, 0); this.n = new Dictionary$2(Base.$, Array_$type, 0); this.p = new List$1(List$1.$.specialize(Point_$type), 0); this.s = (a, b, c) => a; this.i = new DictInterpolator$3(Base.$, OwnedPoint.$, ScatterFrameBase$1.$.specialize(this.$t), runOn(this, this.w), (a) => a.a, (a) => !isNaN_(a.c.x) && !isNaN_(a.c.y), () => new OwnedPoint()); } d(a, b, c) { let d = b; let e = c; if (d == null || e == null) { return; } this.i.f(this.j, a, d.j, e.j, d, e); Frame.b(this.q, a, d.q, e.q); this.i.f(this.m, a, d.m, e.m, d, e); this.i.f(this.k, a, d.k, e.k, d, e); this.i.f(this.o, a, d.o, e.o, d, e); this.t(this.m, a, d, e); Frame.b(this.r, a, d.r, e.r); for (let f = 0; f < this.p.count; f++) { let g = this.p._inner[f]; let h = f > d.p.count - 1 ? new List$1(Point_$type, 0) : d.p._inner[f]; let i = f > e.p.count - 1 ? new List$1(Point_$type, 0) : e.p._inner[f]; Frame.b(g, a, h, i); } this.l = e.l; this.n = e.n; this.v(a, d, e); } v(a, b, c) { } t(a, b, c, d) { for (let e of fromEnum(c.j.values)) { if (a.containsKey(e.a)) { continue; } let f; if (!((() => { let g = d.j.tryGetValue(e.a, f); f = g.p1; return g.ret; })()) || (f.b.x == e.b.x && f.b.y == e.b.y)) { continue; } let g = new OwnedPoint(); this.w(g, b, e, f, c, d); if (isNaN_(g.c.x) || isNaN_(g.c.y)) { continue; } a.addItem(g.a, g); } } u(a, b, c, d) { if (c != null) { a.b = { $type: Point_$type, x: c.b.x, y: c.b.y }; } else if (d != null) { a.b = { $type: Point_$type, x: d.b.x, y: d.b.y }; } } w(a, b, c, d, e, f) { let g; let h; if (c == null) { if (d != null) { let i; if (((() => { let j = e.j.tryGetValue(d.a, i); i = j.p1; return j.ret; })())) { g = i; } else { g = this.s(d, e, f); } } else { a.c = { $type: Point_$type, x: NaN, y: NaN }; return; } } else { g = c; if (a.a == null) { a.a = c.a; } } if (d == null) { if (c != null) { let j; if (((() => { let k = f.j.tryGetValue(c.a, j); j = k.p1; return k.ret; })())) { h = j; } else { a.c = { $type: Point_$type, x: NaN, y: NaN }; return; } } else { a.c = { $type: Point_$type, x: NaN, y: NaN }; return; } } else { h = d; if (a.a == null) { a.a = d.a; } } this.u(a, b, g, h); if (isNaN_(g.c.x) || isNaN_(g.c.y)) { g = h; } this.x(a, b, g, h); } x(a, b, c, d) { let e = 1 - b; a.c = { $type: Point_$type, x: c.c.x * e + d.c.x * b, y: c.c.y * e + d.c.y * b }; } } ScatterFrameBase$1.$t = markType(ScatterFrameBase$1, 'ScatterFrameBase$1', Frame.$); return ScatterFrameBase$1; })();