UNPKG

igniteui-angular-charts

Version:

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

155 lines (154 loc) 5.69 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 { __extends } from "tslib"; 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 { 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 */ var PolarSplineSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarSplineSeries, _super); function PolarSplineSeries() { var _this = _super.call(this) || this; _this.ab = PolarSplineSeries.$; return _this; } PolarSplineSeries.prototype.bj = function () { return new PolarSplineSeries(); }; PolarSplineSeries.prototype.get_fz = function () { return true; }; PolarSplineSeries.prototype.cs = function () { return new PolarSplineSeriesView(this); }; PolarSplineSeries.prototype.q0 = function (a) { _super.prototype.q0.call(this, a); this.act = a; }; PolarSplineSeries.prototype.q8 = function (a, b, c, d) { _super.prototype.q8.call(this, a, b, c, d); switch (b) { case PolarSplineSeries.$$p[0]: this.rq(false); break; } }; PolarSplineSeries.prototype.acr = function (a) { var b = a; b.da(); }; PolarSplineSeries.prototype.acs = function (a, b) { this.acr(b); var c = b; c.db(a.m, this.acu); this.y4.az(this, this.zw(), runOn(this, this.ym)); var d = false; var e = this.y4.b; if (e != null) { d = true; } if (d) { this.abb(-1, this.zi.count, b.q); } this.y4.ad(b.dd, true, false, true, false); }; PolarSplineSeries.$t = markType(PolarSplineSeries, 'PolarSplineSeries', PolarLineSeriesBase.$); PolarSplineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarSplineSeries, 'raisePropertyChanged', ['Stiffness:acu:acw', [1, 0.5]]); return PolarSplineSeries; }(PolarLineSeriesBase)); export { PolarSplineSeries }; /** * @hidden */ var PolarSplineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarSplineSeriesView, _super); function PolarSplineSeriesView(a) { var _this = _super.call(this, a) || this; _this.c9 = null; _this.dd = ((function () { var $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); _this.dc = ((function () { var $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); _this.c9 = a; return _this; } PolarSplineSeriesView.prototype.au = function () { _super.prototype.au.call(this); if (!this.q) { this.b4.w9 = Defaults.e; } var a = new PathGeometry(); a.c.add(((function () { var $ret = new PathFigure(); return $ret; })())); this.dd.an = a; }; PolarSplineSeriesView.prototype.da = function () { Extensions.e(this.dd.an); Extensions.e(this.dc.an); this.as(); }; PolarSplineSeriesView.prototype.db = function (a, b) { this.dd.an.c = Numeric.h(a.count, function (c) { return a._inner[c].x; }, function (c) { return a._inner[c].y; }, b); this.as(); }; PolarSplineSeriesView.prototype.bd = function () { _super.prototype.bd.call(this); }; PolarSplineSeriesView.prototype.be = function () { _super.prototype.be.call(this); var a = this.br(); this.dc.an = this.dd.an; this.dc._stroke = a; this.dc.ad = this.e.id + 3; }; PolarSplineSeriesView.prototype.a8 = function (a, b) { _super.prototype.a8.call(this, a, b); if (a.d) { if (b) { a.t(this.dc); } else { a.t(this.dd); } } }; PolarSplineSeriesView.prototype.an = function (a) { _super.prototype.an.call(this, a); this.e.bc.exportPathData(a, this.dd, "polarShape", ["Main"]); }; PolarSplineSeriesView.prototype.af = function () { var a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.e.v0 = a; this.e.jl = 3; this.e.jm = 1; this.e.jn = 4; this.e.hb = false; }; PolarSplineSeriesView.$t = markType(PolarSplineSeriesView, 'PolarSplineSeriesView', PolarLineSeriesBaseView.$); return PolarSplineSeriesView; }(PolarLineSeriesBaseView)); export { PolarSplineSeriesView };