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_aaj() { return true; } aao() { return true; } ct() { return new PolarLineSeriesBaseView(this); } rj(a) { super.rj(a); this.ac9 = a; } constructor() { super(); this.ac6 = null; this.ac8 = null; this.ac7 = null; this.ac6 = new PathRenderer(1, new DefaultFlattener()); this.ac8 = new PathRenderer(0); } ada() { return 1; } get_add() { return false; } get add() { return this.get_add(); } get_adf() { return false; } get adf() { return this.get_adf(); } ab3(a, b) { super.ab3(a, b); a.q.clear(); let c = b.ca; let d = b.b9; let e = b.getEffectiveViewport(); let f = this.z9 != null ? this.z9.count : 0; let g = this.aaa != null ? this.aaa.count : 0; let h = Math.min(f, g); let i = ((() => { let $ret = new PolarLinePlanner(); $ret.m = (j) => this.zm.a.getScaledAngle1(this.z9.item(j), this.zm.e, this.zm.d); $ret.q = h; $ret.n = (j) => this.zk.tp(this.aaa.item(j), this.zm.g, this.zm.f, this.zm.i, this.zm.h); $ret.l = this.im; $ret.f = this.aap; $ret.b = this.ada(); $ret.o = (j) => this.adg(a, j); $ret.p = (j) => this.adh(a, j); $ret.ad = d; $ret.ac = e; $ret.ae = c; $ret.d = this.adf; $ret.c = this.add; return $ret; })()); let j = new List$1(Number_$type, 0); for (let k = 0; k < h; k++) { if (this.ade(k)) { j.add(k); } } if (this.adf && j.count > 0) { j.add(j._inner[0]); } i.x(a.q, j); } adg(a, b) { return a.aa._inner[b].x; } adh(a, b) { return a.aa._inner[b].y; } adc() { return !this.adb(); } adb() { let a = this.dc.yv; return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 }); } ade(a) { return (this.z9.item(a) >= this.zm.a.qy && this.z9.item(a) <= this.zm.a.qx && this.aaa.item(a) >= this.zm.b.qy && this.aaa.item(a) <= this.zm.b.qx) || (isNaN_(this.z9.item(a)) || isNaN_(this.aaa.item(a))); } pk(a, b) { super.pk(a, b); this.adi(b); } ab7(a, b) { super.ab7(a, b); if (this.aap) { this.ac7 = this.ac6; } else { this.ac7 = this.ac8; } this.ac7.b = this.ada(); this.adi(b); this.adj(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.wn = a; this.f.jx = 3; this.f.jy = 1; this.f.jz = 4; this.f.hk = false; } } PolarLineSeriesBaseView.$t = /*@__PURE__*/ markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$); return PolarLineSeriesBaseView; })();