igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
153 lines (152 loc) • 5.01 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_aae() {
return true;
}
aaj() {
return true;
}
ct() {
return new PolarLineSeriesBaseView(this);
}
rh(a) {
super.rh(a);
this.ac4 = a;
}
constructor() {
super();
this.ac1 = null;
this.ac3 = null;
this.ac2 = null;
this.ac1 = new PathRenderer(1, new DefaultFlattener());
this.ac3 = new PathRenderer(0);
}
ac5() {
return 1;
}
get_ac8() {
return false;
}
get ac8() {
return this.get_ac8();
}
get_ada() {
return false;
}
get ada() {
return this.get_ada();
}
aby(a, b) {
super.aby(a, b);
a.q.clear();
let c = b.ca;
let d = b.b9;
let e = b.getEffectiveViewport();
let f = this.z4 != null ? this.z4.count : 0;
let g = this.z5 != null ? this.z5.count : 0;
let h = Math.min(f, g);
let i = ((() => {
let $ret = new PolarLinePlanner();
$ret.m = (j) => this.zh.a.getScaledAngle1(this.z4.item(j), this.zh.e, this.zh.d);
$ret.q = h;
$ret.n = (j) => this.zf.tn(this.z5.item(j), this.zh.g, this.zh.f, this.zh.i, this.zh.h);
$ret.l = this.ik;
$ret.f = this.aak;
$ret.b = this.ac5();
$ret.o = (j) => this.adb(a, j);
$ret.p = (j) => this.adc(a, j);
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = this.ada;
$ret.c = this.ac8;
return $ret;
})());
let j = new List$1(Number_$type, 0);
for (let k = 0; k < h; k++) {
if (this.ac9(k)) {
j.add(k);
}
}
if (this.ada && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.q, j);
}
adb(a, b) {
return a.aa._inner[b].x;
}
adc(a, b) {
return a.aa._inner[b].y;
}
ac7() {
return !this.ac6();
}
ac6() {
let a = this.dc.yr;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
}
ac9(a) {
return (this.z4.item(a) >= this.zh.a.qw && this.z4.item(a) <= this.zh.a.qv && this.z5.item(a) >= this.zh.b.qw && this.z5.item(a) <= this.zh.b.qv) || (isNaN_(this.z4.item(a)) || isNaN_(this.z5.item(a)));
}
pi(a, b) {
super.pi(a, b);
this.add(b);
}
ab2(a, b) {
super.ab2(a, b);
if (this.aak) {
this.ac2 = this.ac1;
}
else {
this.ac2 = this.ac3;
}
this.ac2.b = this.ac5();
this.add(b);
this.ade(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.wl = a;
this.f.jv = 3;
this.f.jw = 1;
this.f.jx = 4;
this.f.hi = false;
}
}
PolarLineSeriesBaseView.$t = /*@__PURE__*/ markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
return PolarLineSeriesBaseView;
})();