UNPKG

igniteui-angular-charts

Version:

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

65 lines (64 loc) 2.49 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 { ScatterFrameBase$1 } from "./ScatterFrameBase$1"; import { List$1 } from "igniteui-angular-core"; import { Point_$type, typeCast, markType } from "igniteui-angular-core"; import { Frame } from "./Frame"; import { isNaN_, isInfinity } from "igniteui-angular-core"; /** * @hidden */ export let PolarFrame = /*@__PURE__*/ (() => { class PolarFrame extends ScatterFrameBase$1 { constructor() { super(PolarFrame.$); this.aa = null; this.z = false; this.ab = null; this.aa = new List$1(Point_$type, 0); this.z = true; } v(a, b, c) { let d = typeCast(PolarFrame.$, b); let e = typeCast(PolarFrame.$, c); if (d == null || e == null) { return; } Frame.b(this.aa, a, d.aa, e.aa); } u(a, b, c, d) { if (this.z) { super.u(a, b, c, d); } else { super.u(a, b, c, d); if (c != null && d != null && (c.b.x != d.b.x || c.b.y != d.b.y)) { let e = 1 - b; a.b = { $type: Point_$type, x: c.b.x * e + d.b.x * b, y: c.b.y * e + d.b.y * b }; } } } y(a) { return !isNaN_(a.x) && !isNaN_(a.y) && !isInfinity(a.x) && !isInfinity(a.y); } x(a, b, c, d) { if (this.z) { super.x(a, b, c, d); } else { if (c != null && d != null && (c.c.x != d.c.x || c.c.y != d.c.y) && this.y(a.b)) { a.c = this.ab(a.b); } else { super.x(a, b, c, d); } } } } PolarFrame.$t = markType(PolarFrame, 'PolarFrame', ScatterFrameBase$1.$.specialize(-1)).initSelfReferences(); return PolarFrame; })();