UNPKG

igniteui-angular-charts

Version:

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

153 lines (152 loc) 5.14 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-angular-core"; import { PolarLinePlanner } from "./PolarLinePlanner"; import { List$1 } from "igniteui-angular-core"; import { isNaN_ } from "igniteui-angular-core"; import { Color } from "igniteui-angular-core"; /** * @hidden */ export let PolarLineSeriesBase = /*@__PURE__*/ (() => { class PolarLineSeriesBase extends PolarBase { constructor() { super(); this.ac0 = null; this.ac2 = null; this.ac1 = null; this.ac0 = new PathRenderer(1, new DefaultFlattener()); this.ac2 = new PathRenderer(0); } get_aad() { return true; } aai() { return true; } ct() { return new PolarLineSeriesBaseView(this); } rg(a) { super.rg(a); this.ac3 = a; } ac4() { return 1; } get_ac7() { return false; } get ac7() { return this.get_ac7(); } get_ac9() { return false; } get ac9() { return this.get_ac9(); } abx(a, b) { super.abx(a, b); a.q.clear(); let c = b.ca; let d = b.b9; let e = b.getEffectiveViewport(); let f = this.z3 != null ? this.z3.count : 0; let g = this.z4 != null ? this.z4.count : 0; let h = Math.min(f, g); let i = ((() => { let $ret = new PolarLinePlanner(); $ret.m = (j) => this.zg.a.getScaledAngle1(this.z3.item(j), this.zg.e, this.zg.d); $ret.q = h; $ret.n = (j) => this.ze.tk(this.z4.item(j), this.zg.g, this.zg.f, this.zg.i, this.zg.h); $ret.l = this.ik; $ret.f = this.aaj; $ret.b = this.ac4(); $ret.o = (j) => this.ada(a, j); $ret.p = (j) => this.adb(a, j); $ret.ad = d; $ret.ac = e; $ret.ae = c; $ret.d = this.ac9; $ret.c = this.ac7; return $ret; })()); let j = new List$1(Number_$type, 0); for (let k = 0; k < h; k++) { if (this.ac8(k)) { j.add(k); } } if (this.ac9 && j.count > 0) { j.add(j._inner[0]); } i.x(a.q, j); } ada(a, b) { return a.aa._inner[b].x; } adb(a, b) { return a.aa._inner[b].y; } ac6() { return !this.ac5(); } ac5() { let a = this.dc.yr; return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 }); } ac8(a) { return (this.z3.item(a) >= this.zg.a.qt && this.z3.item(a) <= this.zg.a.qs && this.z4.item(a) >= this.zg.b.qt && this.z4.item(a) <= this.zg.b.qs) || (isNaN_(this.z3.item(a)) || isNaN_(this.z4.item(a))); } ph(a, b) { super.ph(a, b); this.adc(b); } ab1(a, b) { super.ab1(a, b); if (this.aaj) { this.ac1 = this.ac0; } else { this.ac1 = this.ac2; } this.ac1.b = this.ac4(); this.adc(b); this.add(a, b); } } PolarLineSeriesBase.$t = 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.wk = a; this.f.jv = 3; this.f.jw = 1; this.f.jx = 4; this.f.hi = false; } } PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$); return PolarLineSeriesBaseView; })();