UNPKG

igniteui-angular-charts

Version:

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

153 lines (152 loc) 5.13 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.acf = null; this.ach = null; this.acg = null; this.acf = new PathRenderer(1, new DefaultFlattener()); this.ach = new PathRenderer(0); } get_zs() { return true; } zx() { return true; } cs() { return new PolarLineSeriesBaseView(this); } q0(a) { super.q0(a); this.aci = a; } acj() { return 1; } get_acm() { return false; } get acm() { return this.get_acm(); } get_aco() { return false; } get aco() { return this.get_aco(); } abc(a, b) { super.abc(a, b); a.m.clear(); let c = b.by; let d = b.bx; let e = b.getEffectiveViewport(); let f = this.zi != null ? this.zi.count : 0; let g = this.zj != null ? this.zj.count : 0; let h = Math.min(f, g); let i = ((() => { let $ret = new PolarLinePlanner(); $ret.m = (j) => this.yv.a.getScaledAngle1(this.zi.item(j), this.yv.e, this.yv.d); $ret.q = h; $ret.n = (j) => this.yt.oe(this.zj.item(j), this.yv.g, this.yv.f, this.yv.i, this.yv.h); $ret.l = this.ic; $ret.f = this.zy; $ret.b = this.acj(); $ret.o = (j) => this.acp(a, j); $ret.p = (j) => this.acq(a, j); $ret.ad = d; $ret.ac = e; $ret.ae = c; $ret.d = this.aco; $ret.c = this.acm; return $ret; })()); let j = new List$1(Number_$type, 0); for (let k = 0; k < h; k++) { if (this.acn(k)) { j.add(k); } } if (this.aco && j.count > 0) { j.add(j._inner[0]); } i.x(a.m, j); } acp(a, b) { return a.w._inner[b].x; } acq(a, b) { return a.w._inner[b].y; } acl() { return !this.ack(); } ack() { let a = this.db.v4; return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 }); } acn(a) { return (this.zi.item(a) >= this.yv.a.l4 && this.zi.item(a) <= this.yv.a.l3 && this.zj.item(a) >= this.yv.b.l4 && this.zj.item(a) <= this.yv.b.l3) || (isNaN_(this.zi.item(a)) || isNaN_(this.zj.item(a))); } o4(a, b) { super.o4(a, b); this.acr(b); } abg(a, b) { super.abg(a, b); if (this.zy) { this.acg = this.acf; } else { this.acg = this.ach; } this.acg.b = this.acj(); this.acr(b); this.acs(a, b); } } PolarLineSeriesBase.$t = markType(PolarLineSeriesBase, 'PolarLineSeriesBase', PolarBase.$); return PolarLineSeriesBase; })(); /** * @hidden */ export let PolarLineSeriesBaseView = /*@__PURE__*/ (() => { class PolarLineSeriesBaseView extends PolarBaseView { constructor(a) { super(a); this.c8 = null; this.c8 = a; } af() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.e.v0 = a; this.e.jl = 3; this.e.jm = 1; this.e.jn = 4; this.e.hb = false; } } PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$); return PolarLineSeriesBaseView; })();