UNPKG

igniteui-react-charts

Version:

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

237 lines (236 loc) 8.14 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 { SplineSeriesBase } from "./SplineSeriesBase"; import { CategoryLineRasterizer } from "./CategoryLineRasterizer"; import { typeCast, runOn, markType } from "igniteui-react-core"; import { Path } from "igniteui-react-core"; import { ScalerParams } from "./ScalerParams"; import { SplineSeriesBaseView } from "./SplineSeriesBaseView"; import { Defaults } from "./Defaults"; import { ISortingAxis_$type } from "./ISortingAxis"; import { Color } from "igniteui-react-core"; /** * @hidden */ var SplineAreaSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(SplineAreaSeries, _super); function SplineAreaSeries() { var _this = _super.call(this) || this; _this.adt = null; _this.adt = new CategoryLineRasterizer(); _this.ab = SplineAreaSeries.$; return _this; } SplineAreaSeries.prototype.bk = function () { return new SplineAreaSeries(); }; SplineAreaSeries.prototype.get_ew = function () { return true; }; SplineAreaSeries.prototype.get_f1 = function () { return true; }; SplineAreaSeries.prototype.ct = function () { return new SplineAreaSeriesView(this); }; SplineAreaSeries.prototype.zf = function () { return 1; }; SplineAreaSeries.prototype.q8 = function (a) { _super.prototype.q8.call(this, a); this.adu = a; }; SplineAreaSeries.prototype.preferredCategoryMode = function (a) { return 0; }; SplineAreaSeries.prototype.cz = function () { if (this.c0 == 0) { return 2; } return _super.prototype.cz.call(this); }; SplineAreaSeries.prototype.pb = function (a, b) { _super.prototype.pb.call(this, a, b); var c = b; c.dw(); }; SplineAreaSeries.prototype.gx = function (a, b) { var c = this.wn(this.ws(a), true, false); if (this.ac0(a, c, b)) { return true; } if (this.gw(a, b)) { return true; } if (this.xs(a, b)) { return true; } return false; }; SplineAreaSeries.prototype.aay = function (a, b) { var _this = this; _super.prototype.aay.call(this, a, b); var c = this.ze.c9.d; var d = typeCast(SplineAreaSeriesView.$, b); var e = a.h; var f = this.getEffectiveViewport1(b); this.zd.a2(this, this.zx(), runOn(this, this.yx), this.z6(b), this.z7(b)); var g = false; var h = this.zd.b; if (h != null) { g = true; } if (g) { var i = new ScalerParams(0, b.ca, b.b9, this.acq.df, f); this.aau(e, -1, this.valueColumn.count, this.acq, i, b.t, -1); } var j = d.d7; var k = d.d8; var l = d.d9; var m = d.ea; this.zd.ad(j, true, false, true, true); this.zd.ad(k, true, false, true, true); this.zd.ad(l, false, true, false, false); this.zd.ad(m, false, true, false, false); l._opacity = this.zd.j * this.ia; m._opacity = 0.5 * this.zd.j * this.ia; if (b.dd(a)) { d.dy(a.h.count, e, true, c, this.ie, function (n, o, p, q, r) { return _this.ab6(n, a.h.count, b); }, 1, a.h.count == 1 ? null : this.aa7(e, e.count - 1, b.b9, b.ca, true)); b.dg(a); } var n = this.fetchYAxis(); }; Object.defineProperty(SplineAreaSeries.prototype, "useHighMarkerFidelity", { get: function () { return this.z1; }, enumerable: false, configurable: true }); SplineAreaSeries.$t = markType(SplineAreaSeries, 'SplineAreaSeries', SplineSeriesBase.$); return SplineAreaSeries; }(SplineSeriesBase)); export { SplineAreaSeries }; /** * @hidden */ var SplineAreaSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(SplineAreaSeriesView, _super); function SplineAreaSeriesView(a) { var _this = _super.call(this, a) || this; _this.dv = null; _this.d3 = new Path(); _this.d5 = new Path(); _this.d4 = new Path(); _this.d6 = new Path(); _this.dz = new Path(); _this.d1 = new Path(); _this.d0 = new Path(); _this.d2 = new Path(); _this.dv = a; return _this; } SplineAreaSeriesView.prototype.a4 = function () { _super.prototype.a4.call(this); if (!this.t) { this.dv.xl = Defaults.e; } }; Object.defineProperty(SplineAreaSeriesView.prototype, "d7", { get: function () { return this.d5; }, enumerable: false, configurable: true }); Object.defineProperty(SplineAreaSeriesView.prototype, "d8", { get: function () { return this.d6; }, enumerable: false, configurable: true }); Object.defineProperty(SplineAreaSeriesView.prototype, "d9", { get: function () { return this.d3; }, enumerable: false, configurable: true }); Object.defineProperty(SplineAreaSeriesView.prototype, "ea", { get: function () { return this.d4; }, enumerable: false, configurable: true }); SplineAreaSeriesView.prototype.dw = function () { this.d3.an = null; this.d4.an = null; this.d5.an = null; this.d6.an = null; this.a2(); }; SplineAreaSeriesView.prototype.dx = function (a, b, c, d, e, f, g) { this.dy(a, b, c, d, e, f, g, null); }; SplineAreaSeriesView.prototype.dy = function (a, b, c, d, e, f, g, h) { this.dv.adt.a = typeCast(ISortingAxis_$type, this.db.fetchXAxis()) !== null ? true : false; this.dv.adt.j(this.d3, this.d5, this.d4, this.d6, a, b, c, d, e, f, g, h); this.a2(); }; SplineAreaSeriesView.prototype.bq = function () { _super.prototype.bq.call(this); this.dz.an = this.d3.an; this.d1.an = this.d5.an; this.d0.an = this.d4.an; this.d2.an = this.d6.an; var a = this.b3(); this.dz._fill = a; this.dz._opacity = 1; this.d0._fill = a; this.d0._opacity = 1; this.d1._stroke = a; this.d1.ad = this.f.ig + 3; this.d2._stroke = a; this.d2.ad = this.f.ig + 3; }; SplineAreaSeriesView.prototype.bj = function (a, b) { _super.prototype.bj.call(this, a, b); if (b) { a.t(this.dz); a.t(this.d0); a.t(this.d1); a.t(this.d2); } else { a.t(this.d3); a.t(this.d4); a.t(this.d5); a.t(this.d6); } }; SplineAreaSeriesView.prototype.ax = function (a) { _super.prototype.ax.call(this, a); this.f.bc.exportPathData(a, this.d5, "lowerShape", ["Lower"]); this.f.bc.exportPathData(a, this.d6, "upperShape", ["Upper", "Main"]); this.f.bc.exportPathData(a, this.d4, "translucentShape", ["Translucent"]); this.f.bc.exportPathData(a, this.d3, "fillShape", ["Fill"]); }; SplineAreaSeriesView.prototype.an = function () { var a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.wc = a; this.f.jq = 5; this.f.jr = 1; this.f.js = -3; }; SplineAreaSeriesView.$t = markType(SplineAreaSeriesView, 'SplineAreaSeriesView', SplineSeriesBaseView.$); return SplineAreaSeriesView; }(SplineSeriesBaseView)); export { SplineAreaSeriesView };