UNPKG

igniteui-react-charts

Version:

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

153 lines (152 loc) 5 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_zy() { return true; } z3() { return true; } ct() { return new PolarLineSeriesBaseView(this); } q3(a) { super.q3(a); this.aco = a; } constructor() { super(); this.acl = null; this.acn = null; this.acm = null; this.acl = new PathRenderer(1, new DefaultFlattener()); this.acn = new PathRenderer(0); } acp() { return 1; } get_acs() { return false; } get acs() { return this.get_acs(); } get_acu() { return false; } get acu() { return this.get_acu(); } abi(a, b) { super.abi(a, b); a.n.clear(); let c = b.ca; let d = b.b9; let e = b.getEffectiveViewport(); let f = this.zo != null ? this.zo.count : 0; let g = this.zp != null ? this.zp.count : 0; let h = Math.min(f, g); let i = ((() => { let $ret = new PolarLinePlanner(); $ret.m = (j) => this.y1.a.getScaledAngle1(this.zo.item(j), this.y1.e, this.y1.d); $ret.q = h; $ret.n = (j) => this.yz.oe(this.zp.item(j), this.y1.g, this.y1.f, this.y1.i, this.y1.h); $ret.l = this.ie; $ret.f = this.z4; $ret.b = this.acp(); $ret.o = (j) => this.acv(a, j); $ret.p = (j) => this.acw(a, j); $ret.ad = d; $ret.ac = e; $ret.ae = c; $ret.d = this.acu; $ret.c = this.acs; return $ret; })()); let j = new List$1(Number_$type, 0); for (let k = 0; k < h; k++) { if (this.act(k)) { j.add(k); } } if (this.acu && j.count > 0) { j.add(j._inner[0]); } i.x(a.n, j); } acv(a, b) { return a.x._inner[b].x; } acw(a, b) { return a.x._inner[b].y; } acr() { return !this.acq(); } acq() { let a = this.dc.wt; return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 }); } act(a) { return (this.zo.item(a) >= this.y1.a.l4 && this.zo.item(a) <= this.y1.a.l3 && this.zp.item(a) >= this.y1.b.l4 && this.zp.item(a) <= this.y1.b.l3) || (isNaN_(this.zo.item(a)) || isNaN_(this.zp.item(a))); } o7(a, b) { super.o7(a, b); this.acx(b); } abm(a, b) { super.abm(a, b); if (this.z4) { this.acm = this.acl; } else { this.acm = this.acn; } this.acm.b = this.acp(); this.acx(b); this.acy(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.v6 = a; this.f.jn = 3; this.f.jo = 1; this.f.jp = 4; this.f.hd = false; } } PolarLineSeriesBaseView.$t = /*@__PURE__*/ markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$); return PolarLineSeriesBaseView; })();