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(); } z9() { return false; } get_ew() { return true; } get_f1() { return true; } ct() { return new PolarSplineAreaSeriesView(this); } q8(a) { super.q8(a); this.ac5 = a; } constructor() { super(); this.ab = PolarSplineAreaSeries.$; } ac3(a) { let b = a; b.dn(); } ac4(a, b) { this.ac3(b); if (a.n.count < 1) { return; } let c = b; c.dp(a.n, this.ac6); this.zg.az(this, this.z8(), runOn(this, this.yy)); let d = false; let e = this.zg.b; if (e != null) { d = true; } if (d) { this.abn(-1, this.zu.count, b.t); } let f = c.dv; let g = c.du; this.zg.ad(f, true, false, true, true); this.zg.ad(g, false, true, false, false); g._opacity = this.zg.j * this.ia; } get_ac0() { return true; } rh(a, b, c, d) { super.rh(a, b, c, d); switch (b) { case PolarSplineAreaSeries.$$p[0]: this.rz(false); break; } } } PolarSplineAreaSeries.$t = /*@__PURE__*/ markType(PolarSplineAreaSeries, 'PolarSplineAreaSeries', PolarLineSeriesBase.$); PolarSplineAreaSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarSplineAreaSeries, 'raisePropertyChanged', ['Stiffness:ac6:ac8', [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.xl = 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.ig + 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.wc = a; this.f.jq = 5; this.f.jr = 5; this.f.js = 5; } } PolarSplineAreaSeriesView.$t = /*@__PURE__*/ markType(PolarSplineAreaSeriesView, 'PolarSplineAreaSeriesView', PolarLineSeriesBaseView.$); return PolarSplineAreaSeriesView; })();