UNPKG

igniteui-react-charts

Version:

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

166 lines (165 loc) 5.31 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 { CoreGeometryUtil } 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 { PathFigure } from "igniteui-react-core"; import { Extensions } from "igniteui-react-core"; import { Numeric } from "igniteui-react-core"; import { Color } from "igniteui-react-core"; /** * @hidden */ export let PolarSplineSeries = /*@__PURE__*/ (() => { class PolarSplineSeries extends PolarLineSeriesBase { bk() { return new PolarSplineSeries(); } get_f3() { return true; } ct() { return new PolarSplineSeriesView(this); } rh(a) { super.rh(a); this.adf = a; } constructor() { super(); this.ab = PolarSplineSeries.$; } g2(a, b) { if (this.x2(a, b)) { return true; } if (this.dp.count <= this.aat) { let c = this.cw; let d = c.dr; if (CoreGeometryUtil.j(a, d, this.i1(b))) { return true; } } return false; } rq(a, b, c, d) { super.rq(a, b, c, d); switch (b) { case PolarSplineSeries.$$p[0]: this.r8(false); break; } } add(a) { let b = a; b.dn(); } ade(a, b) { this.add(b); let c = b; c.dp(a.q, this.adg); this.zq.az(this, this.aai(), runOn(this, this.y8)); let d = false; let e = this.zq.b; if (e != null) { d = true; } if (d) { this.abx(-1, this.z4.count, b.t); } this.zq.ad(b.dr, true, false, true, false); } } PolarSplineSeries.$t = /*@__PURE__*/ markType(PolarSplineSeries, 'PolarSplineSeries', PolarLineSeriesBase.$); PolarSplineSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarSplineSeries, 'raisePropertyChanged', ['Stiffness:adg:adi', [1, 0.5]]); return PolarSplineSeries; })(); /** * @hidden */ export let PolarSplineSeriesView = /*@__PURE__*/ (() => { class PolarSplineSeriesView extends PolarLineSeriesBaseView { constructor(a) { super(a); this.dm = null; 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.ch.xv = Defaults.e; } let a = new PathGeometry(); a.c.add(((() => { let $ret = new PathFigure(); return $ret; })())); this.dr.an = a; } dn() { Extensions.e(this.dr.an); Extensions.e(this.dq.an); this.a2(); } dp(a, b) { this.dr.an.c = Numeric.h(a.count, (c) => a._inner[c].x, (c) => a._inner[c].y, b); this.a2(); } bp() { super.bp(); } bq() { super.bq(); let a = this.b3(); this.dq.an = this.dr.an; this.dq._stroke = a; this.dq.ad = this.f.il + 3; } bj(a, b) { super.bj(a, b); if (a.d) { if (b) { a.t(this.dq); } else { a.t(this.dr); } } } ax(a) { super.ax(a); this.f.bc.exportPathData(a, this.dr, "polarShape", ["Main"]); } an() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.wl = a; this.f.jv = 3; this.f.jw = 1; this.f.jx = 4; this.f.hi = false; } } PolarSplineSeriesView.$t = /*@__PURE__*/ markType(PolarSplineSeriesView, 'PolarSplineSeriesView', PolarLineSeriesBaseView.$); return PolarSplineSeriesView; })();