UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

207 lines (206 loc) 5.94 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 { 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 class SplineAreaSeries extends SplineSeriesBase { static { this.$t = markType(SplineAreaSeries, 'SplineAreaSeries', SplineSeriesBase.$); } bk() { return new SplineAreaSeries(); } get_ex() { return true; } get_f4() { return true; } ct() { return new SplineAreaSeriesView(this); } aag() { return 1; } rj(a) { super.rj(a); this.aev = a; } constructor() { super(); this.aeu = null; this.aeu = new CategoryLineRasterizer(); this.ab = SplineAreaSeries.$; } preferredCategoryMode(a) { return 0; } cz() { if (this.c0 == 0) { return 2; } return super.cz(); } pk(a, b) { super.pk(a, b); let c = b; c.dw(); } g4(a, b) { let c = this.wy(this.w4(a), true, false); if (this.ad1(a, c, b)) { return true; } if (this.g3(a, b)) { return true; } if (this.x5(a, b)) { return true; } return false; } abz(a, b) { super.abz(a, b); let c = this.aaf.c9.d; let d = typeCast(SplineAreaSeriesView.$, b); let e = a.k; let f = this.getEffectiveViewport1(b); this.aae.a2(this, this.aay(), runOn(this, this.zy), this.aa7(b), this.aa8(b)); let g = false; let h = this.aae.b; if (h != null) { g = true; } if (g) { let i = new ScalerParams(0, b.ca, b.b9, this.adr.dr, f); this.abv(e, -1, this.valueColumn.count, this.adr, i, b.t, -1); } let j = d.d7; let k = d.d8; let l = d.d9; let m = d.ea; this.aae.ad(j, true, false, true, true); this.aae.ad(k, true, false, true, true); this.aae.ad(l, false, true, false, false); this.aae.ad(m, false, true, false, false); l._opacity = this.aae.j * this.ii; m._opacity = 0.5 * this.aae.j * this.ii; if (b.dd(a)) { d.dx(a.k.count, e, true, c, this.im, (n, o, p, q, r) => this.ac7(n, a.k.count, b), 1, a.k.count == 1 ? null : this.ab7(e, e.count - 1, b.b9, b.ca, true)); b.dg(a); } let n = this.fetchYAxis(); } get useHighMarkerFidelity() { return this.aa2; } } /** * @hidden */ export class SplineAreaSeriesView extends SplineSeriesBaseView { static { this.$t = markType(SplineAreaSeriesView, 'SplineAreaSeriesView', 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.xy = 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(); } dy(a, b, c, d, e, f, g) { this.dx(a, b, c, d, e, f, g, null); } dx(a, b, c, d, e, f, g, h) { this.dv.aeu.a = typeCast(ISortingAxis_$type, this.db.fetchXAxis()) !== null ? true : false; this.dv.aeu.i(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.io + 3; this.d2._stroke = a; this.d2.ad = this.f.io + 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.wn = a; this.f.jx = 5; this.f.jy = 1; this.f.jz = -3; } }