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.adn = null;
this.adn = new CategoryLineRasterizer();
this.ab = SplineAreaSeries.$;
}
bk() {
return new SplineAreaSeries();
}
get_ew() {
return true;
}
get_f1() {
return true;
}
ct() {
return new SplineAreaSeriesView(this);
}
y9() {
return 1;
}
q3(a) {
super.q3(a);
this.ado = a;
}
preferredCategoryMode(a) {
return 0;
}
cz() {
if (this.c0 == 0) {
return 2;
}
return super.cz();
}
o7(a, b) {
super.o7(a, b);
let c = b;
c.dw();
}
gx(a, b) {
let c = this.wh(this.wm(a), true, false);
if (this.acu(a, c, b)) {
return true;
}
if (this.gw(a, b)) {
return true;
}
if (this.xm(a, b)) {
return true;
}
return false;
}
aas(a, b) {
super.aas(a, b);
let c = this.y8.c9.d;
let d = typeCast(SplineAreaSeriesView.$, b);
let e = a.h;
let f = this.getEffectiveViewport1(b);
this.y7.a2(this, this.zr(), runOn(this, this.yr), this.z0(b), this.z1(b));
let g = false;
let h = this.y7.b;
if (h != null) {
g = true;
}
if (g) {
let i = new ScalerParams(0, b.ca, b.b9, this.ack.ch, f);
this.aao(e, -1, this.valueColumn.count, this.ack, i, b.t, -1);
}
let j = d.d7;
let k = d.d8;
let l = d.d9;
let m = d.ea;
this.y7.ad(j, true, false, true, true);
this.y7.ad(k, true, false, true, true);
this.y7.ad(l, false, true, false, false);
this.y7.ad(m, false, true, false, false);
l._opacity = this.y7.j * this.ia;
m._opacity = 0.5 * this.y7.j * this.ia;
if (b.dd(a)) {
d.dy(a.h.count, e, true, c, this.ie, (n, o, p, q, r) => this.ab0(n, a.h.count, b), 1, a.h.count == 1 ? null : this.aa1(e, e.count - 1, b.b9, b.ca, true));
b.dg(a);
}
let n = this.fetchYAxis();
}
get useHighMarkerFidelity() {
return this.zv;
}
}
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.xf = 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.adn.a = typeCast(ISortingAxis_$type, this.db.fetchXAxis()) !== null ? true : false;
this.dv.adn.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.ig + 3;
this.d2._stroke = a;
this.d2.ad = this.f.ig + 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.v6 = a;
this.f.jn = 5;
this.f.jo = 1;
this.f.jp = -3;
}
}
SplineAreaSeriesView.$t = markType(SplineAreaSeriesView, 'SplineAreaSeriesView', SplineSeriesBaseView.$);
return SplineAreaSeriesView;
})();