UNPKG

igniteui-angular-charts

Version:

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

160 lines (159 loc) 4.64 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"; /** * @hidden */ export class SplineSeries extends SplineSeriesBase { static { this.$t = markType(SplineSeries, 'SplineSeries', SplineSeriesBase.$); } bk() { return new SplineSeries(); } get_f4() { return true; } ct() { return new SplineSeriesView(this); } aa0() { return true; } rj(a) { super.rj(a); this.aev = a; } constructor() { super(); this.aeu = null; this.aeu = new CategoryLineRasterizer(); this.ab = SplineSeries.$; } preferredCategoryMode(a) { return 0; } pk(a, b) { super.pk(a, b); let c = b; c.dw(); } abz(a, b) { super.abz(a, b); let c = b; let d = c.c9.d; let e = typeCast(SplineSeriesView.$, b); let f = a.k; let g = this.getEffectiveViewport1(b); this.aae.a2(this, this.aay(), runOn(this, this.zy), this.aa7(b), this.aa8(b)); let h = false; let i = this.aae.b; if (i != null) { h = true; } if (h) { let j = new ScalerParams(0, b.ca, b.b9, this.adr.dr, g); this.abv(f, -1, this.valueColumn.count, this.adr, j, b.t, -1); } let k = e.d2; let l = e.d3; let m = e.d1; this.aae.ad(k, true, false, true, false); this.aae.ad(l, true, false, true, false); this.aae.ad(m, false, true, false, false); m._opacity = 0.75 * this.aae.j; if (b.dd(a)) { e.dx(f.count, f, true, 1, this.ab8(f, f.count - 1, b.b9, b.ca), d, this.im); b.dg(a); } } get useHighMarkerFidelity() { return this.aa2; } } /** * @hidden */ export class SplineSeriesView extends SplineSeriesBaseView { static { this.$t = markType(SplineSeriesView, 'SplineSeriesView', 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.xy = 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.aeu.a = typeCast(ISortingAxis_$type, this.db.fetchXAxis()) !== null ? true : false; this.dv.aeu.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.io + 3; this.d0._stroke = a; this.d0.ad = this.f.io + 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"]); } }