UNPKG

igniteui-react-charts

Version:

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

185 lines (184 loc) 6.31 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"; /** * @hidden */ var SplineSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(SplineSeries, _super); function SplineSeries() { var _this = _super.call(this) || this; _this.adn = null; _this.adn = new CategoryLineRasterizer(); _this.ab = SplineSeries.$; return _this; } SplineSeries.prototype.bk = function () { return new SplineSeries(); }; SplineSeries.prototype.get_f1 = function () { return true; }; SplineSeries.prototype.ct = function () { return new SplineSeriesView(this); }; SplineSeries.prototype.zt = function () { return true; }; SplineSeries.prototype.q3 = function (a) { _super.prototype.q3.call(this, a); this.ado = a; }; SplineSeries.prototype.preferredCategoryMode = function (a) { return 0; }; SplineSeries.prototype.o7 = function (a, b) { _super.prototype.o7.call(this, a, b); var c = b; c.dw(); }; SplineSeries.prototype.aas = function (a, b) { _super.prototype.aas.call(this, a, b); var c = b; var d = c.c9.d; var e = typeCast(SplineSeriesView.$, b); var f = a.h; var g = this.getEffectiveViewport1(b); this.y7.a2(this, this.zr(), runOn(this, this.yr), this.z0(b), this.z1(b)); var h = false; var i = this.y7.b; if (i != null) { h = true; } if (h) { var j = new ScalerParams(0, b.ca, b.b9, this.ack.ch, g); this.aao(f, -1, this.valueColumn.count, this.ack, j, b.t, -1); } var k = e.d2; var l = e.d3; var m = e.d1; this.y7.ad(k, true, false, true, false); this.y7.ad(l, true, false, true, false); this.y7.ad(m, false, true, false, false); m._opacity = 0.75 * this.y7.j; if (b.dd(a)) { e.dx(f.count, f, true, 1, this.aa0(f, f.count - 1, b.b9, b.ca), d, this.ie); b.dg(a); } }; Object.defineProperty(SplineSeries.prototype, "useHighMarkerFidelity", { get: function () { return this.zv; }, enumerable: false, configurable: true }); SplineSeries.$t = markType(SplineSeries, 'SplineSeries', SplineSeriesBase.$); return SplineSeries; }(SplineSeriesBase)); export { SplineSeries }; /** * @hidden */ var SplineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(SplineSeriesView, _super); function SplineSeriesView(a) { var _this = _super.call(this, a) || this; _this.dv = null; _this.d5 = new Path(); _this.d4 = new Path(); _this.d6 = new Path(); _this.d0 = new Path(); _this.dz = new Path(); _this.dy = new Path(); _this.dv = a; return _this; } SplineSeriesView.prototype.a4 = function () { _super.prototype.a4.call(this); if (!this.t) { this.dv.xf = Defaults.e; } }; Object.defineProperty(SplineSeriesView.prototype, "d2", { get: function () { return this.d5; }, enumerable: false, configurable: true }); Object.defineProperty(SplineSeriesView.prototype, "d3", { get: function () { return this.d6; }, enumerable: false, configurable: true }); Object.defineProperty(SplineSeriesView.prototype, "d1", { get: function () { return this.d4; }, enumerable: false, configurable: true }); SplineSeriesView.prototype.dw = function () { this.d4.an = null; this.d5.an = null; this.d6.an = null; this.a2(); }; SplineSeriesView.prototype.dx = function (a, b, c, d, e, f, g) { this.dv.adn.a = typeCast(ISortingAxis_$type, this.db.fetchXAxis()) !== null ? true : false; this.dv.adn.m(this.d5, this.d4, this.d6, a, b, c, d, e, f, g); this.a2(); }; SplineSeriesView.prototype.bq = function () { _super.prototype.bq.call(this); this.dz.an = this.d5.an; this.d0.an = this.d6.an; this.dy.an = this.d4.an; var a = this.b3(); this.dz._stroke = a; this.dz.ad = this.f.ig + 3; this.d0._stroke = a; this.d0.ad = this.f.ig + 3; this.dy._fill = a; this.dy._opacity = 1; }; SplineSeriesView.prototype.bj = function (a, b) { _super.prototype.bj.call(this, a, b); if (a.d) { if (b) { a.t(this.dy); a.t(this.dz); a.t(this.d0); } else { a.t(this.d4); a.t(this.d5); a.t(this.d6); } } }; SplineSeriesView.prototype.ax = function (a) { _super.prototype.ax.call(this, a); this.f.bc.exportPathData(a, this.d5, "lowerShape", ["Lower", "Main"]); this.f.bc.exportPathData(a, this.d6, "upperShape", ["Upper"]); this.f.bc.exportPathData(a, this.d4, "translucentShape", ["Translucent"]); }; SplineSeriesView.$t = markType(SplineSeriesView, 'SplineSeriesView', SplineSeriesBaseView.$); return SplineSeriesView; }(SplineSeriesBaseView)); export { SplineSeriesView };