UNPKG

igniteui-react-charts

Version:

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

152 lines (151 loc) 4.89 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 { 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_f0() { return true; } ct() { return new PolarSplineSeriesView(this); } q1(a) { super.q1(a); this.acw = a; } constructor() { super(); this.ab = PolarSplineSeries.$; } ra(a, b, c, d) { super.ra(a, b, c, d); switch (b) { case PolarSplineSeries.$$p[0]: this.rs(false); break; } } acu(a) { let b = a; b.de(); } acv(a, b) { this.acu(b); 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); } this.y7.ad(b.dh, true, false, true, false); } } PolarSplineSeries.$t = /*@__PURE__*/ markType(PolarSplineSeries, 'PolarSplineSeries', PolarLineSeriesBase.$); PolarSplineSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarSplineSeries, 'raisePropertyChanged', ['Stiffness:acx:acz', [1, 0.5]]); return PolarSplineSeries; })(); /** * @hidden */ export let PolarSplineSeriesView = /*@__PURE__*/ (() => { class PolarSplineSeriesView extends PolarLineSeriesBaseView { constructor(a) { super(a); this.dd = null; 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.b8.xc = Defaults.e; } let a = new PathGeometry(); a.c.add(((() => { let $ret = new PathFigure(); return $ret; })())); this.dh.an = a; } de() { Extensions.e(this.dh.an); Extensions.e(this.dg.an); this.av(); } df(a, b) { this.dh.an.c = Numeric.h(a.count, (c) => a._inner[c].x, (c) => a._inner[c].y, b); this.av(); } bh() { super.bh(); } bi() { super.bi(); let a = this.bv(); this.dg.an = this.dh.an; this.dg._stroke = a; this.dg.ad = this.f.ie + 3; } bc(a, b) { super.bc(a, b); if (a.d) { if (b) { a.t(this.dg); } else { a.t(this.dh); } } } aq(a) { super.aq(a); this.f.bc.exportPathData(a, this.dh, "polarShape", ["Main"]); } ai() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.v3 = a; this.f.jm = 3; this.f.jn = 1; this.f.jo = 4; this.f.hc = false; } } PolarSplineSeriesView.$t = /*@__PURE__*/ markType(PolarSplineSeriesView, 'PolarSplineSeriesView', PolarLineSeriesBaseView.$); return PolarSplineSeriesView; })();