igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
216 lines (215 loc) • 7.18 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-react-core";
import { DependencyProperty } from "igniteui-react-core";
import { Array_$type, runOn, enumGetBox, markType, markDep } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { ScalerParams } from "./ScalerParams";
import { ChartSelection } from "./ChartSelection";
import { PropertyMetadata } from "igniteui-react-core";
import { AnchoredRadialSeriesView } from "./AnchoredRadialSeriesView";
import { Defaults } from "./Defaults";
import { Color } from "igniteui-react-core";
/**
* @hidden
*/
export let RadialLineSeries = /*@__PURE__*/ (() => {
class RadialLineSeries extends AnchoredRadialSeries {
bk() {
return new RadialLineSeries();
}
get_fk() {
return true;
}
ct() {
return new RadialLineSeriesView(this);
}
q1(a) {
super.q1(a);
this.adr = a;
}
constructor() {
super();
this.ab = RadialLineSeries.$;
}
ac() {
super.ac();
}
preferredCategoryMode(a) {
return 0;
}
z0() {
return true;
}
o5(a, b) {
super.o5(a, b);
let c = b;
c.da();
}
abe(a, b) {
super.abe(a, b);
let c = b.b2;
let d = b.b1;
let e = b.getEffectiveViewport();
let f = a.h;
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.za.d(a.h._inner[j][0], a.h._inner[j][1], c, d, e);
k[1] = this.za.e(a.h._inner[j][0], a.h._inner[j][1], c, d, e);
k[2] = this.za.d(a.h._inner[j][0], a.h._inner[j][2], c, d, e);
let l = a.h._inner[j][2];
k[3] = this.za.e(a.h._inner[j][0], l, c, d, e);
if (l > i) {
i = l;
}
}
let m = this.getEffectiveViewport1(b);
this.zi.a2(this, this.zz(), runOn(this, this.yp), this.z8(b), this.z9(b));
let n = false;
let o = this.zi.b;
if (o != null) {
n = true;
}
if (n) {
let p = new ScalerParams(0, b.b2, b.b1, this.y1.ch, m);
this.ac7(f, -1, this.aca.count, this.y1, p, b.r);
}
let q = b;
let r = q.dj;
let s = q.dk;
let t = q.di;
this.zi.ad(r, true, false, true, false);
this.zi.ad(s, true, false, true, false);
this.zi.ad(t, false, true, false, false);
t._opacity = 0.75 * this.zi.j;
q.db(g, h, false, this.ads, this.ab3(h, g - 1, b), q.c1.b, this.id);
}
ra(a, b, c, d) {
super.ra(a, b, c, d);
switch (b) {
case RadialLineSeries.$$p[0]:
this.rs(false);
this.ql();
break;
}
}
get_acg() {
return true;
}
ak(a, b) {
let c = new List$1(ChartSelection.$, 0);
this.p4(a, c, b);
return c.toArray();
}
p4(a, b, c) {
this.ac4(a, b, c, this.y2);
}
}
RadialLineSeries.$t = /*@__PURE__*/ markType(RadialLineSeries, 'RadialLineSeries', AnchoredRadialSeries.$);
RadialLineSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, RadialLineSeries, 'raisePropertyChanged', ['UnknownValuePlotting:ads:adu', [UnknownValuePlotting_$type, /*@__PURE__*/ enumGetBox(UnknownValuePlotting_$type, 1)]]);
return RadialLineSeries;
})();
/**
* @hidden
*/
export let RadialLineSeriesView = /*@__PURE__*/ (() => {
class RadialLineSeriesView extends AnchoredRadialSeriesView {
constructor(a) {
super(a);
this.c9 = null;
this.dg = new Path();
this.df = new Path();
this.dh = new Path();
this.dd = new Path();
this.dc = new Path();
this.de = new Path();
this.c9 = a;
}
ax() {
super.ax();
if (!this.r) {
this.b8.xc = Defaults.e;
}
}
get dj() {
return this.dg;
}
get dk() {
return this.dh;
}
get di() {
return this.df;
}
da() {
this.dg.an = null;
this.df.an = null;
this.dh.an = null;
this.dd.an = null;
this.dc.an = null;
this.de.an = null;
this.av();
}
db(a, b, c, d, e, f, g) {
this.c5.ab5.m(this.dg, this.df, this.dh, a, b, c, d, e, f, g);
this.av();
}
bh() {
super.bh();
}
bi() {
super.bi();
let a = this.bv();
this.dc.an = this.df.an;
this.dd.an = this.dg.an;
this.de.an = this.dh.an;
this.dd._stroke = a;
this.dd.ad = this.f.ie + 3;
this.de._stroke = a;
this.de.ad = this.f.ie + 3;
this.dc._fill = a;
this.dc._opacity = 1;
}
bc(a, b) {
super.bc(a, b);
if (a.d) {
if (b) {
a.t(this.dc);
a.t(this.dd);
a.t(this.de);
}
else {
a.t(this.df);
a.t(this.dg);
a.t(this.dh);
}
}
}
aq(a) {
super.aq(a);
this.f.bc.exportPathData(a, this.dg, "lowerShape", ["Lower", "Main"]);
this.f.bc.exportPathData(a, this.dh, "upperShape", ["Upper"]);
this.f.bc.exportPathData(a, this.df, "translucentShape", ["Translucent"]);
}
ai() {
let a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.v3 = a;
this.f.jm = 3;
this.f.jn = 1;
this.f.jo = 4;
this.f.hc = false;
}
}
RadialLineSeriesView.$t = /*@__PURE__*/ markType(RadialLineSeriesView, 'RadialLineSeriesView', AnchoredRadialSeriesView.$);
return RadialLineSeriesView;
})();