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_zv() { return true; } z0() { return true; } ct() { return new PolarLineSeriesBaseView(this); } q1(a) { super.q1(a); this.acl = a; } constructor() { super(); this.aci = null; this.ack = null; this.acj = null; this.aci = new PathRenderer(1, new DefaultFlattener()); this.ack = new PathRenderer(0); } acm() { return 1; } get_acp() { return false; } get acp() { return this.get_acp(); } get_acr() { return false; } get acr() { return this.get_acr(); } abf(a, b) { super.abf(a, b); a.n.clear(); let c = b.b2; let d = b.b1; let e = b.getEffectiveViewport(); let f = this.zl != null ? this.zl.count : 0; let g = this.zm != null ? this.zm.count : 0; let h = Math.min(f, g); let i = ((() => { let $ret = new PolarLinePlanner(); $ret.m = (j) => this.yy.a.getScaledAngle1(this.zl.item(j), this.yy.e, this.yy.d); $ret.q = h; $ret.n = (j) => this.yw.oe(this.zm.item(j), this.yy.g, this.yy.f, this.yy.i, this.yy.h); $ret.l = this.id; $ret.f = this.z1; $ret.b = this.acm(); $ret.o = (j) => this.acs(a, j); $ret.p = (j) => this.act(a, j); $ret.ad = d; $ret.ac = e; $ret.ae = c; $ret.d = this.acr; $ret.c = this.acp; return $ret; })()); let j = new List$1(Number_$type, 0); for (let k = 0; k < h; k++) { if (this.acq(k)) { j.add(k); } } if (this.acr && j.count > 0) { j.add(j._inner[0]); } i.x(a.n, j); } acs(a, b) { return a.x._inner[b].x; } act(a, b) { return a.x._inner[b].y; } aco() { return !this.acn(); } acn() { let a = this.dc.v5; return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 }); } acq(a) { return (this.zl.item(a) >= this.yy.a.l4 && this.zl.item(a) <= this.yy.a.l3 && this.zm.item(a) >= this.yy.b.l4 && this.zm.item(a) <= this.yy.b.l3) || (isNaN_(this.zl.item(a)) || isNaN_(this.zm.item(a))); } o5(a, b) { super.o5(a, b); this.acu(b); } abj(a, b) { super.abj(a, b); if (this.z1) { this.acj = this.aci; } else { this.acj = this.ack; } this.acj.b = this.acm(); this.acu(b); this.acv(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.dc = null; this.dc = a; } ai() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.v3 = a; this.f.jm = 3; this.f.jn = 1; this.f.jo = 4; this.f.hc = false; } } PolarLineSeriesBaseView.$t = /*@__PURE__*/ markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$); return PolarLineSeriesBaseView; })();