igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
213 lines (212 loc) • 7.05 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-angular-core";
import { Path } from "igniteui-angular-core";
import { ScalerParams } from "./ScalerParams";
import { SplineSeriesBaseView } from "./SplineSeriesBaseView";
import { Defaults } from "./Defaults";
import { ISortingAxis_$type } from "./ISortingAxis";
import { Color } from "igniteui-angular-core";
/**
* @hidden
*/
export let SplineAreaSeries = /*@__PURE__*/ (() => {
class SplineAreaSeries extends SplineSeriesBase {
constructor() {
super();
this.ad2 = null;
this.ad2 = new CategoryLineRasterizer();
this.ab = SplineAreaSeries.$;
}
bk() {
return new SplineAreaSeries();
}
get_ex() {
return true;
}
get_f3() {
return true;
}
ct() {
return new SplineAreaSeriesView(this);
}
zo() {
return 1;
}
rg(a) {
super.rg(a);
this.ad3 = a;
}
preferredCategoryMode(a) {
return 0;
}
cz() {
if (this.c0 == 0) {
return 2;
}
return super.cz();
}
ph(a, b) {
super.ph(a, b);
let c = b;
c.dw();
}
g2(a, b) {
let c = this.wv(this.w1(a), true, false);
if (this.ac9(a, c, b)) {
return true;
}
if (this.g1(a, b)) {
return true;
}
if (this.x1(a, b)) {
return true;
}
return false;
}
aa7(a, b) {
super.aa7(a, b);
let c = this.zn.c9.d;
let d = typeCast(SplineAreaSeriesView.$, b);
let e = a.k;
let f = this.getEffectiveViewport1(b);
this.zm.a2(this, this.z6(), runOn(this, this.y6), this.aaf(b), this.aag(b));
let g = false;
let h = this.zm.b;
if (h != null) {
g = true;
}
if (g) {
let i = new ScalerParams(0, b.ca, b.b9, this.acz.dn, f);
this.aa3(e, -1, this.valueColumn.count, this.acz, i, b.t, -1);
}
let j = d.d7;
let k = d.d8;
let l = d.d9;
let m = d.ea;
this.zm.ad(j, true, false, true, true);
this.zm.ad(k, true, false, true, true);
this.zm.ad(l, false, true, false, false);
this.zm.ad(m, false, true, false, false);
l._opacity = this.zm.j * this.ig;
m._opacity = 0.5 * this.zm.j * this.ig;
if (b.dd(a)) {
d.dy(a.k.count, e, true, c, this.ik, (n, o, p, q, r) => this.acf(n, a.k.count, b), 1, a.k.count == 1 ? null : this.abg(e, e.count - 1, b.b9, b.ca, true));
b.dg(a);
}
let n = this.fetchYAxis();
}
get useHighMarkerFidelity() {
return this.aaa;
}
}
SplineAreaSeries.$t = markType(SplineAreaSeries, 'SplineAreaSeries', SplineSeriesBase.$);
return SplineAreaSeries;
})();
/**
* @hidden
*/
export let SplineAreaSeriesView = /*@__PURE__*/ (() => {
class SplineAreaSeriesView extends SplineSeriesBaseView {
constructor(a) {
super(a);
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;
}
a4() {
super.a4();
if (!this.t) {
this.dv.xu = Defaults.e;
}
}
get d7() {
return this.d5;
}
get d8() {
return this.d6;
}
get d9() {
return this.d3;
}
get ea() {
return this.d4;
}
dw() {
this.d3.an = null;
this.d4.an = null;
this.d5.an = null;
this.d6.an = null;
this.a2();
}
dx(a, b, c, d, e, f, g) {
this.dy(a, b, c, d, e, f, g, null);
}
dy(a, b, c, d, e, f, g, h) {
this.dv.ad2.a = typeCast(ISortingAxis_$type, this.db.fetchXAxis()) !== null ? true : false;
this.dv.ad2.j(this.d3, this.d5, this.d4, this.d6, a, b, c, d, e, f, g, h);
this.a2();
}
bq() {
super.bq();
this.dz.an = this.d3.an;
this.d1.an = this.d5.an;
this.d0.an = this.d4.an;
this.d2.an = this.d6.an;
let 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.il + 3;
this.d2._stroke = a;
this.d2.ad = this.f.il + 3;
}
bj(a, b) {
super.bj(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);
}
}
ax(a) {
super.ax(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"]);
}
an() {
let a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.wk = a;
this.f.jv = 5;
this.f.jw = 1;
this.f.jx = -3;
}
}
SplineAreaSeriesView.$t = markType(SplineAreaSeriesView, 'SplineAreaSeriesView', SplineSeriesBaseView.$);
return SplineAreaSeriesView;
})();