igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
185 lines (184 loc) • 6.31 kB
JavaScript
/*
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.adh = null;
_this.adh = new CategoryLineRasterizer();
_this.ab = SplineSeries.$;
return _this;
}
SplineSeries.prototype.bk = function () {
return new SplineSeries();
};
SplineSeries.prototype.get_f0 = function () {
return true;
};
SplineSeries.prototype.ct = function () {
return new SplineSeriesView(this);
};
SplineSeries.prototype.zq = function () {
return true;
};
SplineSeries.prototype.q1 = function (a) {
_super.prototype.q1.call(this, a);
this.adi = a;
};
SplineSeries.prototype.preferredCategoryMode = function (a) {
return 0;
};
SplineSeries.prototype.o5 = function (a, b) {
_super.prototype.o5.call(this, a, b);
var c = b;
c.dm();
};
SplineSeries.prototype.aam = function (a, b) {
_super.prototype.aam.call(this, a, b);
var c = b;
var d = c.c0.d;
var e = typeCast(SplineSeriesView.$, b);
var f = a.h;
var g = this.getEffectiveViewport1(b);
this.y4.a2(this, this.zo(), runOn(this, this.yo), this.zx(b), this.zy(b));
var h = false;
var i = this.y4.b;
if (i != null) {
h = true;
}
if (h) {
var j = new ScalerParams(0, b.b2, b.b1, this.ace.ch, g);
this.aai(f, -1, this.valueColumn.count, this.ace, j, b.r, -1);
}
var k = e.dt;
var l = e.du;
var m = e.ds;
this.y4.ad(k, true, false, true, false);
this.y4.ad(l, true, false, true, false);
this.y4.ad(m, false, true, false, false);
m._opacity = 0.75 * this.y4.j;
if (b.c4(a)) {
e.dn(f.count, f, true, 1, this.aau(f, f.count - 1, b.b1, b.b2), d, this.id);
b.c7(a);
}
};
Object.defineProperty(SplineSeries.prototype, "useHighMarkerFidelity", {
get: function () {
return this.zs;
},
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.dl = null;
_this.dw = new Path();
_this.dv = new Path();
_this.dx = new Path();
_this.dr = new Path();
_this.dq = new Path();
_this.dp = new Path();
_this.dl = a;
return _this;
}
SplineSeriesView.prototype.ax = function () {
_super.prototype.ax.call(this);
if (!this.r) {
this.dl.xc = Defaults.e;
}
};
Object.defineProperty(SplineSeriesView.prototype, "dt", {
get: function () {
return this.dw;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SplineSeriesView.prototype, "du", {
get: function () {
return this.dx;
},
enumerable: false,
configurable: true
});
Object.defineProperty(SplineSeriesView.prototype, "ds", {
get: function () {
return this.dv;
},
enumerable: false,
configurable: true
});
SplineSeriesView.prototype.dm = function () {
this.dv.an = null;
this.dw.an = null;
this.dx.an = null;
this.av();
};
SplineSeriesView.prototype.dn = function (a, b, c, d, e, f, g) {
this.dl.adh.a = typeCast(ISortingAxis_$type, this.c2.fetchXAxis()) !== null ? true : false;
this.dl.adh.m(this.dw, this.dv, this.dx, a, b, c, d, e, f, g);
this.av();
};
SplineSeriesView.prototype.bi = function () {
_super.prototype.bi.call(this);
this.dq.an = this.dw.an;
this.dr.an = this.dx.an;
this.dp.an = this.dv.an;
var a = this.bv();
this.dq._stroke = a;
this.dq.ad = this.f.ie + 3;
this.dr._stroke = a;
this.dr.ad = this.f.ie + 3;
this.dp._fill = a;
this.dp._opacity = 1;
};
SplineSeriesView.prototype.bc = function (a, b) {
_super.prototype.bc.call(this, a, b);
if (a.d) {
if (b) {
a.t(this.dp);
a.t(this.dq);
a.t(this.dr);
}
else {
a.t(this.dv);
a.t(this.dw);
a.t(this.dx);
}
}
};
SplineSeriesView.prototype.aq = function (a) {
_super.prototype.aq.call(this, a);
this.f.bc.exportPathData(a, this.dw, "lowerShape", ["Lower", "Main"]);
this.f.bc.exportPathData(a, this.dx, "upperShape", ["Upper"]);
this.f.bc.exportPathData(a, this.dv, "translucentShape", ["Translucent"]);
};
SplineSeriesView.$t = markType(SplineSeriesView, 'SplineSeriesView', SplineSeriesBaseView.$);
return SplineSeriesView;
}(SplineSeriesBaseView));
export { SplineSeriesView };