UNPKG

igniteui-react-charts

Version:

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

222 lines (221 loc) 7.92 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 { PolarLineSeriesBase } from "./PolarLineSeriesBase"; import { DependencyProperty } from "igniteui-react-core"; import { runOn, markType, markDep } from "igniteui-react-core"; import { Path } from "igniteui-react-core"; import { CoreGeometryUtil } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView"; import { PathGeometry } from "igniteui-react-core"; import { Defaults } from "./Defaults"; import { Extensions } from "igniteui-react-core"; import { Numeric } from "igniteui-react-core"; import { Color } from "igniteui-react-core"; /** * @hidden */ var PolarSplineAreaSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarSplineAreaSeries, _super); function PolarSplineAreaSeries() { var _this = _super.call(this) || this; _this.ab = PolarSplineAreaSeries.$; return _this; } PolarSplineAreaSeries.prototype.bk = function () { return new PolarSplineAreaSeries(); }; PolarSplineAreaSeries.prototype.aaj = function () { return false; }; PolarSplineAreaSeries.prototype.get_ex = function () { return true; }; PolarSplineAreaSeries.prototype.get_f3 = function () { return true; }; PolarSplineAreaSeries.prototype.ct = function () { return new PolarSplineAreaSeriesView(this); }; PolarSplineAreaSeries.prototype.rh = function (a) { _super.prototype.rh.call(this, a); this.adf = a; }; PolarSplineAreaSeries.prototype.add = function (a) { var b = a; b.dn(); }; PolarSplineAreaSeries.prototype.g2 = function (a, b) { if (this.x2(a, b)) { return true; } if (this.dp.count <= this.aat) { if (this.adh(a, b)) { return true; } if (this.adg(a, b)) { return true; } } return false; }; PolarSplineAreaSeries.prototype.adh = function (a, b) { var c = this.cw; var d = c.dv; var e = this.i1(b) + this.il / 2; return CoreGeometryUtil.j(a, d, e); }; PolarSplineAreaSeries.prototype.adg = function (a, b) { var c = this.cw; var d = c.dv; return CoreGeometryUtil.g(a, d); }; PolarSplineAreaSeries.prototype.ade = function (a, b) { this.add(b); if (a.q.count < 1) { return; } var c = b; c.dp(a.q, this.adi); this.zq.az(this, this.aai(), runOn(this, this.y8)); var d = false; var e = this.zq.b; if (e != null) { d = true; } if (d) { this.abx(-1, this.z4.count, b.t); } var f = c.dv; var g = c.du; this.zq.ad(f, true, false, true, true); this.zq.ad(g, false, true, false, false); g._opacity = this.zq.j * this.ig; }; PolarSplineAreaSeries.prototype.get_ada = function () { return true; }; PolarSplineAreaSeries.prototype.rq = function (a, b, c, d) { _super.prototype.rq.call(this, a, b, c, d); switch (b) { case PolarSplineAreaSeries.$$p[0]: this.r8(false); break; } }; PolarSplineAreaSeries.$t = markType(PolarSplineAreaSeries, 'PolarSplineAreaSeries', PolarLineSeriesBase.$); PolarSplineAreaSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarSplineAreaSeries, 'raisePropertyChanged', ['Stiffness:adi:adk', [1, 0.5]]); return PolarSplineAreaSeries; }(PolarLineSeriesBase)); export { PolarSplineAreaSeries }; /** * @hidden */ var PolarSplineAreaSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarSplineAreaSeriesView, _super); function PolarSplineAreaSeriesView(a) { var _this = _super.call(this, a) || this; _this.dm = null; _this.dt = ((function () { var $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); _this.ds = ((function () { var $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); _this.dr = ((function () { var $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); _this.dq = ((function () { var $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); _this.dm = a; return _this; } PolarSplineAreaSeriesView.prototype.a4 = function () { _super.prototype.a4.call(this); if (!this.t) { this.dm.xv = Defaults.e; } }; Object.defineProperty(PolarSplineAreaSeriesView.prototype, "du", { get: function () { return this.ds; }, enumerable: false, configurable: true }); Object.defineProperty(PolarSplineAreaSeriesView.prototype, "dv", { get: function () { return this.dt; }, enumerable: false, configurable: true }); PolarSplineAreaSeriesView.prototype.dn = function () { Extensions.e(this.ds.an); Extensions.e(this.dt.an); Extensions.e(this.dq.an); Extensions.e(this.dr.an); this.a2(); }; PolarSplineAreaSeriesView.prototype.dp = function (a, b) { this.dt.an.c = Numeric.h(a.count + 1, function (c) { return c < a.count ? a._inner[c].x : a._inner[c - a.count].x; }, function (c) { return c < a.count ? a._inner[c].y : a._inner[c - a.count].y; }, b); this.ds.an.c = Numeric.h(a.count + 1, function (c) { return c < a.count ? a._inner[c].x : a._inner[c - a.count].x; }, function (c) { return c < a.count ? a._inner[c].y : a._inner[c - a.count].y; }, b); this.a2(); }; PolarSplineAreaSeriesView.prototype.bp = function () { _super.prototype.bp.call(this); }; PolarSplineAreaSeriesView.prototype.bq = function () { _super.prototype.bq.call(this); var a = this.b3(); this.dq.an = this.ds.an; this.dr.an = this.dt.an; this.dq._fill = a; this.dq._opacity = 1; this.dr._stroke = a; this.dr.ad = this.f.il + 3; }; PolarSplineAreaSeriesView.prototype.bj = function (a, b) { _super.prototype.bj.call(this, a, b); if (a.d) { if (b) { a.t(this.dq); a.t(this.dr); } else { a.t(this.ds); a.t(this.dt); } } }; PolarSplineAreaSeriesView.prototype.ax = function (a) { _super.prototype.ax.call(this, a); this.f.bc.exportPathData(a, this.dt, "polarShape", ["Main"]); this.f.bc.exportPathData(a, this.ds, "fillShape", ["Fill"]); }; PolarSplineAreaSeriesView.prototype.an = function () { var a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.wl = a; this.f.jv = 5; this.f.jw = 5; this.f.jx = 5; }; PolarSplineAreaSeriesView.$t = markType(PolarSplineAreaSeriesView, 'PolarSplineAreaSeriesView', PolarLineSeriesBaseView.$); return PolarSplineAreaSeriesView; }(PolarLineSeriesBaseView)); export { PolarSplineAreaSeriesView };