igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
153 lines (152 loc) • 5 kB
JavaScript
/*
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_z4() {
return true;
}
z9() {
return true;
}
ct() {
return new PolarLineSeriesBaseView(this);
}
q8(a) {
super.q8(a);
this.acu = a;
}
constructor() {
super();
this.acr = null;
this.act = null;
this.acs = null;
this.acr = new PathRenderer(1, new DefaultFlattener());
this.act = new PathRenderer(0);
}
acv() {
return 1;
}
get_acy() {
return false;
}
get acy() {
return this.get_acy();
}
get_ac0() {
return false;
}
get ac0() {
return this.get_ac0();
}
abo(a, b) {
super.abo(a, b);
a.n.clear();
let c = b.ca;
let d = b.b9;
let e = b.getEffectiveViewport();
let f = this.zu != null ? this.zu.count : 0;
let g = this.zv != null ? this.zv.count : 0;
let h = Math.min(f, g);
let i = ((() => {
let $ret = new PolarLinePlanner();
$ret.m = (j) => this.y7.a.getScaledAngle1(this.zu.item(j), this.y7.e, this.y7.d);
$ret.q = h;
$ret.n = (j) => this.y5.si(this.zv.item(j), this.y7.g, this.y7.f, this.y7.i, this.y7.h);
$ret.l = this.ie;
$ret.f = this.aaa;
$ret.b = this.acv();
$ret.o = (j) => this.ac1(a, j);
$ret.p = (j) => this.ac2(a, j);
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = this.ac0;
$ret.c = this.acy;
return $ret;
})());
let j = new List$1(Number_$type, 0);
for (let k = 0; k < h; k++) {
if (this.acz(k)) {
j.add(k);
}
}
if (this.ac0 && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.n, j);
}
ac1(a, b) {
return a.x._inner[b].x;
}
ac2(a, b) {
return a.x._inner[b].y;
}
acx() {
return !this.acw();
}
acw() {
let a = this.dc.xn;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
}
acz(a) {
return (this.zu.item(a) >= this.y7.a.pr && this.zu.item(a) <= this.y7.a.pq && this.zv.item(a) >= this.y7.b.pr && this.zv.item(a) <= this.y7.b.pq) || (isNaN_(this.zu.item(a)) || isNaN_(this.zv.item(a)));
}
pb(a, b) {
super.pb(a, b);
this.ac3(b);
}
abs(a, b) {
super.abs(a, b);
if (this.aaa) {
this.acs = this.acr;
}
else {
this.acs = this.act;
}
this.acs.b = this.acv();
this.ac3(b);
this.ac4(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.wc = a;
this.f.jq = 3;
this.f.jr = 1;
this.f.js = 4;
this.f.hd = false;
}
}
PolarLineSeriesBaseView.$t = /*@__PURE__*/ markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
return PolarLineSeriesBaseView;
})();