UNPKG

igniteui-angular-charts

Version:

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

160 lines (159 loc) 4.59 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 { PathFigure } from "igniteui-angular-core"; import { Extensions } from "igniteui-angular-core"; import { Numeric } from "igniteui-angular-core"; import { Color } from "igniteui-angular-core"; /** * @hidden */ export class PolarSplineSeries extends PolarLineSeriesBase { static { this.$t = markType(PolarSplineSeries, 'PolarSplineSeries', PolarLineSeriesBase.$); } bk() { return new PolarSplineSeries(); } get_f4() { return true; } ct() { return new PolarSplineSeriesView(this); } rj(a) { super.rj(a); this.ad6 = a; } constructor() { super(); this.ab = PolarSplineSeries.$; } g4(a, b) { if (this.x5(a, b)) { return true; } if (this.dp.count <= this.abk) { let c = this.cw; let d = c.dr; if (CoreGeometryUtil.j(a, d, this.i3(b))) { return true; } } return false; } rs(a, b, c, d) { super.rs(a, b, c, d); switch (b) { case PolarSplineSeries.$$p[0]: this.sa(false); break; } } ad4(a) { let b = a; b.dn(); } ad5(a, b) { this.ad4(b); let c = b; c.dp(a.q, this.ad7); this.aah.az(this, this.aa9(), runOn(this, this.zz)); let d = false; let e = this.aah.b; if (e != null) { d = true; } if (d) { this.aco(-1, this.aav.count, b.t); } this.aah.ad(b.dr, true, false, true, false); } static { this.$$p = markDep(DependencyProperty, PropertyMetadata, PolarSplineSeries, 'raisePropertyChanged', ['Stiffness:ad7:ad9', [1, 0.5]]); } } /** * @hidden */ export class PolarSplineSeriesView extends PolarLineSeriesBaseView { static { this.$t = markType(PolarSplineSeriesView, 'PolarSplineSeriesView', 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.xy = 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.io + 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.wn = a; this.f.jx = 3; this.f.jy = 1; this.f.jz = 4; this.f.hk = false; } }