igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
216 lines (215 loc) • 7.36 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 { AnchoredRadialSeries } from "./AnchoredRadialSeries";
import { UnknownValuePlotting_$type } from "igniteui-angular-core";
import { DependencyProperty } from "igniteui-angular-core";
import { Array_$type, runOn, enumGetBox, markType, markDep } from "igniteui-angular-core";
import { List$1 } from "igniteui-angular-core";
import { Path } from "igniteui-angular-core";
import { ScalerParams } from "./ScalerParams";
import { ChartSelection } from "./ChartSelection";
import { PropertyMetadata } from "igniteui-angular-core";
import { AnchoredRadialSeriesView } from "./AnchoredRadialSeriesView";
import { Defaults } from "./Defaults";
import { Color } from "igniteui-angular-core";
/**
* @hidden
*/
export let RadialLineSeries = /*@__PURE__*/ (() => {
class RadialLineSeries extends AnchoredRadialSeries {
constructor() {
super();
this.ab = RadialLineSeries.$;
}
bj() {
return new RadialLineSeries();
}
get_fj() {
return true;
}
cs() {
return new RadialLineSeriesView(this);
}
q0(a) {
super.q0(a);
this.ado = a;
}
ac() {
super.ac();
}
preferredCategoryMode(a) {
return 0;
}
zx() {
return true;
}
o4(a, b) {
super.o4(a, b);
let c = b;
c.c6();
}
abb(a, b) {
super.abb(a, b);
let c = b.by;
let d = b.bx;
let e = b.getEffectiveViewport();
let f = a.f;
let g = f.count;
let h = new List$1(Array_$type, 2, g);
let i = 0;
for (let j = 0; j < g; j++) {
let k = new Array(4);
h.add(k);
k[0] = this.y7.d(a.f._inner[j][0], a.f._inner[j][1], c, d, e);
k[1] = this.y7.e(a.f._inner[j][0], a.f._inner[j][1], c, d, e);
k[2] = this.y7.d(a.f._inner[j][0], a.f._inner[j][2], c, d, e);
let l = a.f._inner[j][2];
k[3] = this.y7.e(a.f._inner[j][0], l, c, d, e);
if (l > i) {
i = l;
}
}
let m = this.getEffectiveViewport1(b);
this.zf.a2(this, this.zw(), runOn(this, this.ym), this.z5(b), this.z6(b));
let n = false;
let o = this.zf.b;
if (o != null) {
n = true;
}
if (n) {
let p = new ScalerParams(0, b.by, b.bx, this.yy.ch, m);
this.ac4(f, -1, this.ab7.count, this.yy, p, b.q);
}
let q = b;
let r = q.df;
let s = q.dg;
let t = q.de;
this.zf.ad(r, true, false, true, false);
this.zf.ad(s, true, false, true, false);
this.zf.ad(t, false, true, false, false);
t._opacity = 0.75 * this.zf.j;
q.c7(g, h, false, this.adp, this.ab0(h, g - 1, b), q.cx.b, this.ic);
}
q8(a, b, c, d) {
super.q8(a, b, c, d);
switch (b) {
case RadialLineSeries.$$p[0]:
this.rq(false);
this.qk();
break;
}
}
get_acd() {
return true;
}
ak(a, b) {
let c = new List$1(ChartSelection.$, 0);
this.p3(a, c, b);
return c.toArray();
}
p3(a, b, c) {
this.ac1(a, b, c, this.yz);
}
}
RadialLineSeries.$t = markType(RadialLineSeries, 'RadialLineSeries', AnchoredRadialSeries.$);
RadialLineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, RadialLineSeries, 'raisePropertyChanged', ['UnknownValuePlotting:adp:adr', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]);
return RadialLineSeries;
})();
/**
* @hidden
*/
export let RadialLineSeriesView = /*@__PURE__*/ (() => {
class RadialLineSeriesView extends AnchoredRadialSeriesView {
constructor(a) {
super(a);
this.c5 = null;
this.dc = new Path();
this.db = new Path();
this.dd = new Path();
this.c9 = new Path();
this.c8 = new Path();
this.da = new Path();
this.c5 = a;
}
au() {
super.au();
if (!this.q) {
this.b4.w9 = Defaults.e;
}
}
get df() {
return this.dc;
}
get dg() {
return this.dd;
}
get de() {
return this.db;
}
c6() {
this.dc.an = null;
this.db.an = null;
this.dd.an = null;
this.c9.an = null;
this.c8.an = null;
this.da.an = null;
this.as();
}
c7(a, b, c, d, e, f, g) {
this.c1.ab2.m(this.dc, this.db, this.dd, a, b, c, d, e, f, g);
this.as();
}
bd() {
super.bd();
}
be() {
super.be();
let a = this.br();
this.c8.an = this.db.an;
this.c9.an = this.dc.an;
this.da.an = this.dd.an;
this.c9._stroke = a;
this.c9.ad = this.e.id + 3;
this.da._stroke = a;
this.da.ad = this.e.id + 3;
this.c8._fill = a;
this.c8._opacity = 1;
}
a8(a, b) {
super.a8(a, b);
if (a.d) {
if (b) {
a.t(this.c8);
a.t(this.c9);
a.t(this.da);
}
else {
a.t(this.db);
a.t(this.dc);
a.t(this.dd);
}
}
}
an(a) {
super.an(a);
this.e.bc.exportPathData(a, this.dc, "lowerShape", ["Lower", "Main"]);
this.e.bc.exportPathData(a, this.dd, "upperShape", ["Upper"]);
this.e.bc.exportPathData(a, this.db, "translucentShape", ["Translucent"]);
}
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;
}
}
RadialLineSeriesView.$t = markType(RadialLineSeriesView, 'RadialLineSeriesView', AnchoredRadialSeriesView.$);
return RadialLineSeriesView;
})();