UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

185 lines (184 loc) 6.09 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-react-core"; import { runOn, markType, markDep } from "igniteui-react-core"; import { Path } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView"; import { PathGeometry } from "igniteui-react-core"; import { Defaults } from "./Defaults"; import { Extensions } from "igniteui-react-core"; import { Numeric } from "igniteui-react-core"; import { Color } from "igniteui-react-core"; /** * @hidden */ export let PolarSplineAreaSeries = /*@__PURE__*/ (() => { class PolarSplineAreaSeries extends PolarLineSeriesBase { bk() { return new PolarSplineAreaSeries(); } z0() { return false; } get_ev() { return true; } get_f0() { return true; } ct() { return new PolarSplineAreaSeriesView(this); } q1(a) { super.q1(a); this.acw = a; } constructor() { super(); this.ab = PolarSplineAreaSeries.$; } acu(a) { let b = a; b.de(); } acv(a, b) { this.acu(b); if (a.n.count < 1) { return; } let c = b; c.df(a.n, this.acx); this.y7.az(this, this.zz(), runOn(this, this.yp)); let d = false; let e = this.y7.b; if (e != null) { d = true; } if (d) { this.abe(-1, this.zl.count, b.r); } let f = c.dl; let g = c.dk; this.y7.ad(f, true, false, true, true); this.y7.ad(g, false, true, false, false); g._opacity = this.y7.j * this.h9; } get_acr() { return true; } ra(a, b, c, d) { super.ra(a, b, c, d); switch (b) { case PolarSplineAreaSeries.$$p[0]: this.rs(false); break; } } } PolarSplineAreaSeries.$t = /*@__PURE__*/ markType(PolarSplineAreaSeries, 'PolarSplineAreaSeries', PolarLineSeriesBase.$); PolarSplineAreaSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarSplineAreaSeries, 'raisePropertyChanged', ['Stiffness:acx:acz', [1, 0.5]]); return PolarSplineAreaSeries; })(); /** * @hidden */ export let PolarSplineAreaSeriesView = /*@__PURE__*/ (() => { class PolarSplineAreaSeriesView extends PolarLineSeriesBaseView { constructor(a) { super(a); this.dd = null; this.dj = ((() => { let $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); this.di = ((() => { let $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); this.dh = ((() => { let $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); this.dg = ((() => { let $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); this.dd = a; } ax() { super.ax(); if (!this.r) { this.dd.xc = Defaults.e; } } get dk() { return this.di; } get dl() { return this.dj; } de() { Extensions.e(this.di.an); Extensions.e(this.dj.an); Extensions.e(this.dg.an); Extensions.e(this.dh.an); this.av(); } df(a, b) { this.dj.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.di.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.av(); } bh() { super.bh(); } bi() { super.bi(); let a = this.bv(); this.dg.an = this.di.an; this.dh.an = this.dj.an; this.dg._fill = a; this.dg._opacity = 1; this.dh._stroke = a; this.dh.ad = this.f.ie + 3; } bc(a, b) { super.bc(a, b); if (a.d) { if (b) { a.t(this.dg); a.t(this.dh); } else { a.t(this.di); a.t(this.dj); } } } aq(a) { super.aq(a); this.f.bc.exportPathData(a, this.dj, "polarShape", ["Main"]); this.f.bc.exportPathData(a, this.di, "fillShape", ["Fill"]); } ai() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.v3 = a; this.f.jm = 5; this.f.jn = 5; this.f.jo = 5; } } PolarSplineAreaSeriesView.$t = /*@__PURE__*/ markType(PolarSplineAreaSeriesView, 'PolarSplineAreaSeriesView', PolarLineSeriesBaseView.$); return PolarSplineAreaSeriesView; })();