igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
166 lines (165 loc) • 5.36 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 { 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
*/
export let SplineSeries = /*@__PURE__*/ (() => {
class SplineSeries extends SplineSeriesBase {
bk() {
return new SplineSeries();
}
get_f1() {
return true;
}
ct() {
return new SplineSeriesView(this);
}
zt() {
return true;
}
q3(a) {
super.q3(a);
this.ado = a;
}
constructor() {
super();
this.adn = null;
this.adn = new CategoryLineRasterizer();
this.ab = SplineSeries.$;
}
preferredCategoryMode(a) {
return 0;
}
o7(a, b) {
super.o7(a, b);
let c = b;
c.dw();
}
aas(a, b) {
super.aas(a, b);
let c = b;
let d = c.c9.d;
let e = typeCast(SplineSeriesView.$, b);
let f = a.h;
let g = this.getEffectiveViewport1(b);
this.y7.a2(this, this.zr(), runOn(this, this.yr), this.z0(b), this.z1(b));
let h = false;
let i = this.y7.b;
if (i != null) {
h = true;
}
if (h) {
let 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);
}
let k = e.d2;
let l = e.d3;
let 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);
}
}
get useHighMarkerFidelity() {
return this.zv;
}
}
SplineSeries.$t = /*@__PURE__*/ markType(SplineSeries, 'SplineSeries', SplineSeriesBase.$);
return SplineSeries;
})();
/**
* @hidden
*/
export let SplineSeriesView = /*@__PURE__*/ (() => {
class SplineSeriesView extends SplineSeriesBaseView {
constructor(a) {
super(a);
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;
}
a4() {
super.a4();
if (!this.t) {
this.dv.xf = Defaults.e;
}
}
get d2() {
return this.d5;
}
get d3() {
return this.d6;
}
get d1() {
return this.d4;
}
dw() {
this.d4.an = null;
this.d5.an = null;
this.d6.an = null;
this.a2();
}
dx(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();
}
bq() {
super.bq();
this.dz.an = this.d5.an;
this.d0.an = this.d6.an;
this.dy.an = this.d4.an;
let 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;
}
bj(a, b) {
super.bj(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);
}
}
}
ax(a) {
super.ax(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 = /*@__PURE__*/ markType(SplineSeriesView, 'SplineSeriesView', SplineSeriesBaseView.$);
return SplineSeriesView;
})();