UNPKG

igniteui-angular-charts

Version:

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

211 lines (210 loc) 7.02 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 { PolarLineSeriesBase } from "./PolarLineSeriesBase"; import { DependencyProperty } from "igniteui-angular-core"; import { runOn, markType, markDep } from "igniteui-angular-core"; import { Path } from "igniteui-angular-core"; import { CoreGeometryUtil } from "igniteui-angular-core"; import { PropertyMetadata } from "igniteui-angular-core"; import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView"; import { PathGeometry } from "igniteui-angular-core"; import { Defaults } from "./Defaults"; import { Extensions } from "igniteui-angular-core"; import { Numeric } from "igniteui-angular-core"; import { Color } from "igniteui-angular-core"; /** * @hidden */ export let PolarSplineAreaSeries = /*@__PURE__*/ (() => { class PolarSplineAreaSeries extends PolarLineSeriesBase { constructor() { super(); this.ab = PolarSplineAreaSeries.$; } bk() { return new PolarSplineAreaSeries(); } aai() { return false; } get_ex() { return true; } get_f3() { return true; } ct() { return new PolarSplineAreaSeriesView(this); } rg(a) { super.rg(a); this.ade = a; } adc(a) { let b = a; b.dn(); } g2(a, b) { if (this.x1(a, b)) { return true; } if (this.dp.count <= this.aas) { if (this.adg(a, b)) { return true; } if (this.adf(a, b)) { return true; } } return false; } adg(a, b) { let c = this.cw; let d = c.dv; let e = this.i1(b) + this.il / 2; return CoreGeometryUtil.j(a, d, e); } adf(a, b) { let c = this.cw; let d = c.dv; return CoreGeometryUtil.g(a, d); } add(a, b) { this.adc(b); if (a.q.count < 1) { return; } let c = b; c.dp(a.q, this.adh); this.zp.az(this, this.aah(), runOn(this, this.y7)); let d = false; let e = this.zp.b; if (e != null) { d = true; } if (d) { this.abw(-1, this.z3.count, b.t); } let f = c.dv; let g = c.du; this.zp.ad(f, true, false, true, true); this.zp.ad(g, false, true, false, false); g._opacity = this.zp.j * this.ig; } get_ac9() { return true; } rp(a, b, c, d) { super.rp(a, b, c, d); switch (b) { case PolarSplineAreaSeries.$$p[0]: this.r7(false); break; } } } PolarSplineAreaSeries.$t = markType(PolarSplineAreaSeries, 'PolarSplineAreaSeries', PolarLineSeriesBase.$); PolarSplineAreaSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarSplineAreaSeries, 'raisePropertyChanged', ['Stiffness:adh:adj', [1, 0.5]]); return PolarSplineAreaSeries; })(); /** * @hidden */ export let PolarSplineAreaSeriesView = /*@__PURE__*/ (() => { class PolarSplineAreaSeriesView extends PolarLineSeriesBaseView { constructor(a) { super(a); this.dm = null; this.dt = ((() => { let $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); this.ds = ((() => { let $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); this.dr = ((() => { let $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); this.dq = ((() => { let $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); this.dm = a; } a4() { super.a4(); if (!this.t) { this.dm.xu = Defaults.e; } } get du() { return this.ds; } get dv() { return this.dt; } dn() { Extensions.e(this.ds.an); Extensions.e(this.dt.an); Extensions.e(this.dq.an); Extensions.e(this.dr.an); this.a2(); } dp(a, b) { this.dt.an.c = Numeric.h(a.count + 1, (c) => c < a.count ? a._inner[c].x : a._inner[c - a.count].x, (c) => c < a.count ? a._inner[c].y : a._inner[c - a.count].y, b); this.ds.an.c = Numeric.h(a.count + 1, (c) => c < a.count ? a._inner[c].x : a._inner[c - a.count].x, (c) => c < a.count ? a._inner[c].y : a._inner[c - a.count].y, b); this.a2(); } bp() { super.bp(); } bq() { super.bq(); let a = this.b3(); this.dq.an = this.ds.an; this.dr.an = this.dt.an; this.dq._fill = a; this.dq._opacity = 1; this.dr._stroke = a; this.dr.ad = this.f.il + 3; } bj(a, b) { super.bj(a, b); if (a.d) { if (b) { a.t(this.dq); a.t(this.dr); } else { a.t(this.ds); a.t(this.dt); } } } ax(a) { super.ax(a); this.f.bc.exportPathData(a, this.dt, "polarShape", ["Main"]); this.f.bc.exportPathData(a, this.ds, "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 = 5; this.f.jx = 5; } } PolarSplineAreaSeriesView.$t = markType(PolarSplineAreaSeriesView, 'PolarSplineAreaSeriesView', PolarLineSeriesBaseView.$); return PolarSplineAreaSeriesView; })();