UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

153 lines (152 loc) 5.01 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 { PolarBase } from "./PolarBase"; import { PathRenderer } from "./PathRenderer"; import { DefaultFlattener } from "./DefaultFlattener"; import { PolarBaseView } from "./PolarBaseView"; import { Number_$type, Point_$type, markType } from "igniteui-react-core"; import { PolarLinePlanner } from "./PolarLinePlanner"; import { List$1 } from "igniteui-react-core"; import { isNaN_ } from "igniteui-react-core"; import { Color } from "igniteui-react-core"; /** * @hidden */ export let PolarLineSeriesBase = /*@__PURE__*/ (() => { class PolarLineSeriesBase extends PolarBase { get_aaf() { return true; } aak() { return true; } ct() { return new PolarLineSeriesBaseView(this); } ri(a) { super.ri(a); this.ac5 = a; } constructor() { super(); this.ac2 = null; this.ac4 = null; this.ac3 = null; this.ac2 = new PathRenderer(1, new DefaultFlattener()); this.ac4 = new PathRenderer(0); } ac6() { return 1; } get_ac9() { return false; } get ac9() { return this.get_ac9(); } get_adb() { return false; } get adb() { return this.get_adb(); } abz(a, b) { super.abz(a, b); a.q.clear(); let c = b.ca; let d = b.b9; let e = b.getEffectiveViewport(); let f = this.z5 != null ? this.z5.count : 0; let g = this.z6 != null ? this.z6.count : 0; let h = Math.min(f, g); let i = ((() => { let $ret = new PolarLinePlanner(); $ret.m = (j) => this.zi.a.getScaledAngle1(this.z5.item(j), this.zi.e, this.zi.d); $ret.q = h; $ret.n = (j) => this.zg.tp(this.z6.item(j), this.zi.g, this.zi.f, this.zi.i, this.zi.h); $ret.l = this.il; $ret.f = this.aal; $ret.b = this.ac6(); $ret.o = (j) => this.adc(a, j); $ret.p = (j) => this.add(a, j); $ret.ad = d; $ret.ac = e; $ret.ae = c; $ret.d = this.adb; $ret.c = this.ac9; return $ret; })()); let j = new List$1(Number_$type, 0); for (let k = 0; k < h; k++) { if (this.ada(k)) { j.add(k); } } if (this.adb && j.count > 0) { j.add(j._inner[0]); } i.x(a.q, j); } adc(a, b) { return a.aa._inner[b].x; } add(a, b) { return a.aa._inner[b].y; } ac8() { return !this.ac7(); } ac7() { let a = this.dc.ys; return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 }); } ada(a) { return (this.z5.item(a) >= this.zi.a.qy && this.z5.item(a) <= this.zi.a.qx && this.z6.item(a) >= this.zi.b.qy && this.z6.item(a) <= this.zi.b.qx) || (isNaN_(this.z5.item(a)) || isNaN_(this.z6.item(a))); } pj(a, b) { super.pj(a, b); this.ade(b); } ab3(a, b) { super.ab3(a, b); if (this.aal) { this.ac3 = this.ac2; } else { this.ac3 = this.ac4; } this.ac3.b = this.ac6(); this.ade(b); this.adf(a, b); } } PolarLineSeriesBase.$t = /*@__PURE__*/ markType(PolarLineSeriesBase, 'PolarLineSeriesBase', PolarBase.$); return PolarLineSeriesBase; })(); /** * @hidden */ export let PolarLineSeriesBaseView = /*@__PURE__*/ (() => { class PolarLineSeriesBaseView extends PolarBaseView { constructor(a) { super(a); this.dl = null; this.dl = a; } an() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.wm = a; this.f.jw = 3; this.f.jx = 1; this.f.jy = 4; this.f.hj = false; } } PolarLineSeriesBaseView.$t = /*@__PURE__*/ markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$); return PolarLineSeriesBaseView; })();