igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
147 lines (146 loc) • 4.32 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-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 class PolarLineSeriesBase extends PolarBase {
static { this.$t = markType(PolarLineSeriesBase, 'PolarLineSeriesBase', PolarBase.$); }
get_aa5() {
return true;
}
aba() {
return true;
}
ct() {
return new PolarLineSeriesBaseView(this);
}
rj(a) {
super.rj(a);
this.adv = a;
}
constructor() {
super();
this.ads = null;
this.adu = null;
this.adt = null;
this.ads = new PathRenderer(1, new DefaultFlattener());
this.adu = new PathRenderer(0);
}
adw() {
return 1;
}
get_adz() {
return false;
}
get adz() {
return this.get_adz();
}
get_ad1() {
return false;
}
get ad1() {
return this.get_ad1();
}
acp(a, b) {
super.acp(a, b);
a.q.clear();
let c = b.ca;
let d = b.b9;
let e = b.getEffectiveViewport();
let f = this.aav != null ? this.aav.count : 0;
let g = this.aaw != null ? this.aaw.count : 0;
let h = Math.min(f, g);
let i = ((() => {
let $ret = new PolarLinePlanner();
$ret.m = (j) => this.z8.a.getScaledAngle1(this.aav.item(j), this.z8.e, this.z8.d);
$ret.q = h;
$ret.n = (j) => this.z6.t0(this.aaw.item(j), this.z8.g, this.z8.f, this.z8.i, this.z8.h);
$ret.l = this.im;
$ret.f = this.abb;
$ret.b = this.adw();
$ret.o = (j) => this.ad2(a, j);
$ret.p = (j) => this.ad3(a, j);
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = this.ad1;
$ret.c = this.adz;
return $ret;
})());
let j = new List$1(Number_$type, 0);
for (let k = 0; k < h; k++) {
if (this.ad0(k)) {
j.add(k);
}
}
if (this.ad1 && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.q, j);
}
ad2(a, b) {
return a.aa._inner[b].x;
}
ad3(a, b) {
return a.aa._inner[b].y;
}
ady() {
return !this.adx();
}
adx() {
let a = this.dc.yv;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
}
ad0(a) {
return (this.aav.item(a) >= this.z8.a.ra && this.aav.item(a) <= this.z8.a.q9 && this.aaw.item(a) >= this.z8.b.ra && this.aaw.item(a) <= this.z8.b.q9) || (isNaN_(this.aav.item(a)) || isNaN_(this.aaw.item(a)));
}
pk(a, b) {
super.pk(a, b);
this.ad4(b);
}
act(a, b) {
super.act(a, b);
if (this.abb) {
this.adt = this.ads;
}
else {
this.adt = this.adu;
}
this.adt.b = this.adw();
this.ad4(b);
this.ad5(a, b);
}
}
/**
* @hidden
*/
export class PolarLineSeriesBaseView extends PolarBaseView {
static { this.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', 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.wn = a;
this.f.jx = 3;
this.f.jy = 1;
this.f.jz = 4;
this.f.hk = false;
}
}