UNPKG

igniteui-react-charts

Version:

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

231 lines (230 loc) 8.22 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, 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 */ var RadialLineSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(RadialLineSeries, _super); function RadialLineSeries() { var _this = _super.call(this) || this; _this.ab = RadialLineSeries.$; return _this; } RadialLineSeries.prototype.bk = function () { return new RadialLineSeries(); }; RadialLineSeries.prototype.get_fl = function () { return true; }; RadialLineSeries.prototype.ct = function () { return new RadialLineSeriesView(this); }; RadialLineSeries.prototype.q3 = function (a) { _super.prototype.q3.call(this, a); this.ads = a; }; RadialLineSeries.prototype.ac = function () { _super.prototype.ac.call(this); }; RadialLineSeries.prototype.preferredCategoryMode = function (a) { return 0; }; RadialLineSeries.prototype.z1 = function () { return true; }; RadialLineSeries.prototype.o7 = function (a, b) { _super.prototype.o7.call(this, a, b); var c = b; c.dj(); }; RadialLineSeries.prototype.abf = function (a, b) { _super.prototype.abf.call(this, a, b); var c = b.ca; var d = b.b9; var e = b.getEffectiveViewport(); var f = a.h; var g = f.count; var h = new List$1(Array_$type, 2, g); var i = 0; for (var j = 0; j < g; j++) { var k = new Array(4); h.add(k); k[0] = this.zb.d(a.h._inner[j][0], a.h._inner[j][1], c, d, e); k[1] = this.zb.e(a.h._inner[j][0], a.h._inner[j][1], c, d, e); k[2] = this.zb.d(a.h._inner[j][0], a.h._inner[j][2], c, d, e); var l = a.h._inner[j][2]; k[3] = this.zb.e(a.h._inner[j][0], l, c, d, e); if (l > i) { i = l; } } var m = this.getEffectiveViewport1(b); this.zj.a2(this, this.z0(), runOn(this, this.ys), this.z9(b), this.aaa(b)); var n = false; var o = this.zj.b; if (o != null) { n = true; } if (n) { var p = new ScalerParams(0, b.ca, b.b9, this.y4.ch, m); this.ac8(f, -1, this.acb.count, this.y4, p, b.t); } var q = b; var r = q.dt; var s = q.du; var t = q.ds; this.zj.ad(r, true, false, true, false); this.zj.ad(s, true, false, true, false); this.zj.ad(t, false, true, false, false); t._opacity = 0.75 * this.zj.j; q.dk(g, h, false, this.adt, this.ab4(h, g - 1, b), q.da.b, this.ie); }; RadialLineSeries.prototype.rc = function (a, b, c, d) { _super.prototype.rc.call(this, a, b, c, d); switch (b) { case RadialLineSeries.$$p[0]: this.ru(false); this.qn(); break; } }; RadialLineSeries.prototype.get_ach = function () { return true; }; RadialLineSeries.prototype.ak = function (a, b) { var c = new List$1(ChartSelection.$, 0); this.p6(a, c, b); return c.toArray(); }; RadialLineSeries.prototype.p6 = function (a, b, c) { this.ac5(a, b, c, this.y5); }; RadialLineSeries.$t = markType(RadialLineSeries, 'RadialLineSeries', AnchoredRadialSeries.$); RadialLineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, RadialLineSeries, 'raisePropertyChanged', ['UnknownValuePlotting:adt:adv', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]); return RadialLineSeries; }(AnchoredRadialSeries)); export { RadialLineSeries }; /** * @hidden */ var RadialLineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(RadialLineSeriesView, _super); function RadialLineSeriesView(a) { var _this = _super.call(this, a) || this; _this.di = null; _this.dq = new Path(); _this.dp = new Path(); _this.dr = new Path(); _this.dm = new Path(); _this.dl = new Path(); _this.dn = new Path(); _this.di = a; return _this; } RadialLineSeriesView.prototype.a4 = function () { _super.prototype.a4.call(this); if (!this.t) { this.ch.xf = Defaults.e; } }; Object.defineProperty(RadialLineSeriesView.prototype, "dt", { get: function () { return this.dq; }, enumerable: false, configurable: true }); Object.defineProperty(RadialLineSeriesView.prototype, "du", { get: function () { return this.dr; }, enumerable: false, configurable: true }); Object.defineProperty(RadialLineSeriesView.prototype, "ds", { get: function () { return this.dp; }, enumerable: false, configurable: true }); RadialLineSeriesView.prototype.dj = function () { this.dq.an = null; this.dp.an = null; this.dr.an = null; this.dm.an = null; this.dl.an = null; this.dn.an = null; this.a2(); }; RadialLineSeriesView.prototype.dk = function (a, b, c, d, e, f, g) { this.de.ab6.m(this.dq, this.dp, this.dr, a, b, c, d, e, f, g); this.a2(); }; RadialLineSeriesView.prototype.bp = function () { _super.prototype.bp.call(this); }; RadialLineSeriesView.prototype.bq = function () { _super.prototype.bq.call(this); var a = this.b3(); this.dl.an = this.dp.an; this.dm.an = this.dq.an; this.dn.an = this.dr.an; this.dm._stroke = a; this.dm.ad = this.f.ig + 3; this.dn._stroke = a; this.dn.ad = this.f.ig + 3; this.dl._fill = a; this.dl._opacity = 1; }; RadialLineSeriesView.prototype.bj = function (a, b) { _super.prototype.bj.call(this, a, b); if (a.d) { if (b) { a.t(this.dl); a.t(this.dm); a.t(this.dn); } else { a.t(this.dp); a.t(this.dq); a.t(this.dr); } } }; RadialLineSeriesView.prototype.ax = function (a) { _super.prototype.ax.call(this, a); this.f.bc.exportPathData(a, this.dq, "lowerShape", ["Lower", "Main"]); this.f.bc.exportPathData(a, this.dr, "upperShape", ["Upper"]); this.f.bc.exportPathData(a, this.dp, "translucentShape", ["Translucent"]); }; RadialLineSeriesView.prototype.an = function () { var a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.v6 = a; this.f.jn = 3; this.f.jo = 1; this.f.jp = 4; this.f.hd = false; }; RadialLineSeriesView.$t = markType(RadialLineSeriesView, 'RadialLineSeriesView', AnchoredRadialSeriesView.$); return RadialLineSeriesView; }(AnchoredRadialSeriesView)); export { RadialLineSeriesView };