UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

209 lines (208 loc) 7.63 kB
/* 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, Point_$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 { ViewportUtils } from "./ViewportUtils"; import { ChartSelection } from "./ChartSelection"; import { PropertyMetadata } from "igniteui-react-core"; import { AnchoredRadialSeriesView } from "./AnchoredRadialSeriesView"; import { Defaults } from "./Defaults"; /** * @hidden */ export let RadialAreaSeries = /*@__PURE__*/ (() => { class RadialAreaSeries extends AnchoredRadialSeries { bk() { return new RadialAreaSeries(); } get_ev() { return true; } ct() { return new RadialAreaSeriesView(this); } q1(a) { super.q1(a); this.adr = a; } constructor() { super(); this.ab = RadialAreaSeries.$; } preferredCategoryMode(a) { return 0; } o5(a, b) { super.o5(a, b); this.adr.da(); } abe(a, b) { super.abe(a, b); let c = b.b2; let d = b.b1; let e = b.getEffectiveViewport(); let f = b; if (b.p() && !c.isEmpty && !d.isEmpty && this.y1 != null && this.y7 != null) { let g = a.h; let h = g.count; let i = new List$1(Array_$type, 2, h); let j = 0; for (let k = 0; k < h; k++) { let l = new Array(4); i.add(l); l[0] = this.za.d(a.h._inner[k][0], a.h._inner[k][1], c, d, e); l[1] = this.za.e(a.h._inner[k][0], a.h._inner[k][1], c, d, e); l[2] = this.za.d(a.h._inner[k][0], a.h._inner[k][2], c, d, e); let m = a.h._inner[k][2]; l[3] = this.za.e(a.h._inner[k][0], m, c, d, e); if (m > j) { j = m; } } let n = ViewportUtils.e(0.5, c, d, e); let o = ViewportUtils.i(0.5, c, d, e); this.adq = { $type: Point_$type, x: n, y: o }; let p = this.getEffectiveViewport1(f); this.zi.a2(this, this.zz(), runOn(this, this.yp), this.z8(b), this.z9(b)); let q = false; let r = this.zi.b; if (r != null) { q = true; } if (q) { let s = new ScalerParams(0, b.b2, b.b1, this.y1.ch, p); this.ac7(g, -1, this.aca.count, this.y1, s, b.r); } let t = f.di; let u = f.dj; let v = f.dg; let w = f.dh; this.zi.ad(t, true, false, true, true); this.zi.ad(u, true, false, true, true); this.zi.ad(v, false, true, false, false); this.zi.ad(w, false, true, false, false); f.db(a.h.count, i, false, this.adr.c1.b, this.id, runOn(this, this.ac8), this.ads); v._opacity = this.zi.j * this.h9; w._opacity = 0.5 * this.zi.j * this.h9; } } 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); } ra(a, b, c, d) { super.ra(a, b, c, d); switch (b) { case RadialAreaSeries.$$p[0]: this.rs(false); this.ql(); break; } } get_acg() { return true; } } RadialAreaSeries.$t = /*@__PURE__*/ markType(RadialAreaSeries, 'RadialAreaSeries', AnchoredRadialSeries.$); RadialAreaSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, RadialAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:ads:adu', [UnknownValuePlotting_$type, /*@__PURE__*/ enumGetBox(UnknownValuePlotting_$type, 1)]]); return RadialAreaSeries; })(); /** * @hidden */ export let RadialAreaSeriesView = /*@__PURE__*/ (() => { class RadialAreaSeriesView extends AnchoredRadialSeriesView { constructor(a) { super(a); this.c9 = null; this.dg = new Path(); this.di = new Path(); this.dh = new Path(); this.dj = new Path(); this.dc = new Path(); this.de = new Path(); this.dd = new Path(); this.df = new Path(); this.c9 = a; } ax() { super.ax(); if (!this.r) { this.c9.xc = Defaults.e; } } da() { this.dg.an = null; this.di.an = null; this.dh.an = null; this.dj.an = null; this.dc.an = null; this.de.an = null; this.dd.an = null; this.df.an = null; this.av(); } db(a, b, c, d, e, f, g) { this.c5.ab5.i(this.dg, this.di, this.dh, this.dj, a, b, c, d, e, f, g); this.av(); } bh() { super.bh(); } bi() { super.bi(); let a = this.bv(); this.de.an = this.di.an; this.df.an = this.dj.an; this.dc.an = this.dg.an; this.dd.an = this.dh.an; this.de._stroke = a; this.de.ad = this.f.ie + 3; this.df._stroke = a; this.df.ad = this.f.ie + 3; this.dc._fill = a; this.dc._opacity = 1; this.dd._fill = a; this.dd._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); a.t(this.df); } else { a.t(this.dg); a.t(this.dh); a.t(this.di); a.t(this.dj); } } } aq(a) { super.aq(a); this.f.bc.exportPathData(a, this.di, "lowerShape", ["Lower"]); this.f.bc.exportPathData(a, this.dj, "upperShape", ["Upper", "Main"]); this.f.bc.exportPathData(a, this.dh, "translucentShape", ["Translucent"]); this.f.bc.exportPathData(a, this.dg, "fillShape", ["Fill"]); } } RadialAreaSeriesView.$t = /*@__PURE__*/ markType(RadialAreaSeriesView, 'RadialAreaSeriesView', AnchoredRadialSeriesView.$); return RadialAreaSeriesView; })();