UNPKG

igniteui-react-charts

Version:

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

212 lines (211 loc) 8.11 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 { __extends } from "tslib"; 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 */ var RadialAreaSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(RadialAreaSeries, _super); function RadialAreaSeries() { var _this = _super.call(this) || this; _this.ab = RadialAreaSeries.$; return _this; } RadialAreaSeries.prototype.bk = function () { return new RadialAreaSeries(); }; RadialAreaSeries.prototype.get_ev = function () { return true; }; RadialAreaSeries.prototype.ct = function () { return new RadialAreaSeriesView(this); }; RadialAreaSeries.prototype.q1 = function (a) { _super.prototype.q1.call(this, a); this.adr = a; }; RadialAreaSeries.prototype.preferredCategoryMode = function (a) { return 0; }; RadialAreaSeries.prototype.o5 = function (a, b) { _super.prototype.o5.call(this, a, b); this.adr.da(); }; RadialAreaSeries.prototype.abe = function (a, b) { _super.prototype.abe.call(this, a, b); var c = b.b2; var d = b.b1; var e = b.getEffectiveViewport(); var f = b; if (b.p() && !c.isEmpty && !d.isEmpty && this.y1 != null && this.y7 != null) { var g = a.h; var h = g.count; var i = new List$1(Array_$type, 2, h); var j = 0; for (var k = 0; k < h; k++) { var 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); var 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; } } var n = ViewportUtils.e(0.5, c, d, e); var o = ViewportUtils.i(0.5, c, d, e); this.adq = { $type: Point_$type, x: n, y: o }; var p = this.getEffectiveViewport1(f); this.zi.a2(this, this.zz(), runOn(this, this.yp), this.z8(b), this.z9(b)); var q = false; var r = this.zi.b; if (r != null) { q = true; } if (q) { var s = new ScalerParams(0, b.b2, b.b1, this.y1.ch, p); this.ac7(g, -1, this.aca.count, this.y1, s, b.r); } var t = f.di; var u = f.dj; var v = f.dg; var 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; } }; RadialAreaSeries.prototype.ak = function (a, b) { var c = new List$1(ChartSelection.$, 0); this.p4(a, c, b); return c.toArray(); }; RadialAreaSeries.prototype.p4 = function (a, b, c) { this.ac4(a, b, c, this.y2); }; RadialAreaSeries.prototype.ra = function (a, b, c, d) { _super.prototype.ra.call(this, a, b, c, d); switch (b) { case RadialAreaSeries.$$p[0]: this.rs(false); this.ql(); break; } }; RadialAreaSeries.prototype.get_acg = function () { return true; }; RadialAreaSeries.$t = markType(RadialAreaSeries, 'RadialAreaSeries', AnchoredRadialSeries.$); RadialAreaSeries.$$p = markDep(DependencyProperty, PropertyMetadata, RadialAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:ads:adu', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]); return RadialAreaSeries; }(AnchoredRadialSeries)); export { RadialAreaSeries }; /** * @hidden */ var RadialAreaSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(RadialAreaSeriesView, _super); function RadialAreaSeriesView(a) { var _this = _super.call(this, a) || this; _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; return _this; } RadialAreaSeriesView.prototype.ax = function () { _super.prototype.ax.call(this); if (!this.r) { this.c9.xc = Defaults.e; } }; RadialAreaSeriesView.prototype.da = function () { 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(); }; RadialAreaSeriesView.prototype.db = function (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(); }; RadialAreaSeriesView.prototype.bh = function () { _super.prototype.bh.call(this); }; RadialAreaSeriesView.prototype.bi = function () { _super.prototype.bi.call(this); var 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; }; RadialAreaSeriesView.prototype.bc = function (a, b) { _super.prototype.bc.call(this, 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); } } }; RadialAreaSeriesView.prototype.aq = function (a) { _super.prototype.aq.call(this, 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 = markType(RadialAreaSeriesView, 'RadialAreaSeriesView', AnchoredRadialSeriesView.$); return RadialAreaSeriesView; }(AnchoredRadialSeriesView)); export { RadialAreaSeriesView };