UNPKG

igniteui-angular-charts

Version:

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

196 lines (195 loc) 7.36 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 { Extensions } from "igniteui-angular-core"; import { Numeric } from "igniteui-angular-core"; import { Color } from "igniteui-angular-core"; /** * @hidden */ var PolarSplineAreaSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarSplineAreaSeries, _super); function PolarSplineAreaSeries() { var _this = _super.call(this) || this; _this.ab = PolarSplineAreaSeries.$; return _this; } PolarSplineAreaSeries.prototype.bj = function () { return new PolarSplineAreaSeries(); }; PolarSplineAreaSeries.prototype.zx = function () { return false; }; PolarSplineAreaSeries.prototype.get_eu = function () { return true; }; PolarSplineAreaSeries.prototype.get_fz = function () { return true; }; PolarSplineAreaSeries.prototype.cs = function () { return new PolarSplineAreaSeriesView(this); }; PolarSplineAreaSeries.prototype.q0 = function (a) { _super.prototype.q0.call(this, a); this.act = a; }; PolarSplineAreaSeries.prototype.acr = function (a) { var b = a; b.da(); }; PolarSplineAreaSeries.prototype.acs = function (a, b) { this.acr(b); if (a.m.count < 1) { return; } 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); } var f = c.dh; var g = c.dg; this.y4.ad(f, true, false, true, true); this.y4.ad(g, false, true, false, false); g._opacity = this.y4.j * this.h8; }; PolarSplineAreaSeries.prototype.get_aco = function () { return true; }; PolarSplineAreaSeries.prototype.q8 = function (a, b, c, d) { _super.prototype.q8.call(this, a, b, c, d); switch (b) { case PolarSplineAreaSeries.$$p[0]: this.rq(false); break; } }; PolarSplineAreaSeries.$t = markType(PolarSplineAreaSeries, 'PolarSplineAreaSeries', PolarLineSeriesBase.$); PolarSplineAreaSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarSplineAreaSeries, 'raisePropertyChanged', ['Stiffness:acu:acw', [1, 0.5]]); return PolarSplineAreaSeries; }(PolarLineSeriesBase)); export { PolarSplineAreaSeries }; /** * @hidden */ var PolarSplineAreaSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarSplineAreaSeriesView, _super); function PolarSplineAreaSeriesView(a) { var _this = _super.call(this, a) || this; _this.c9 = null; _this.df = ((function () { var $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); _this.de = ((function () { var $ret = new Path(); $ret.an = new PathGeometry(); return $ret; })()); _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; } PolarSplineAreaSeriesView.prototype.au = function () { _super.prototype.au.call(this); if (!this.q) { this.c9.w9 = Defaults.e; } }; Object.defineProperty(PolarSplineAreaSeriesView.prototype, "dg", { get: function () { return this.de; }, enumerable: false, configurable: true }); Object.defineProperty(PolarSplineAreaSeriesView.prototype, "dh", { get: function () { return this.df; }, enumerable: false, configurable: true }); PolarSplineAreaSeriesView.prototype.da = function () { Extensions.e(this.de.an); Extensions.e(this.df.an); Extensions.e(this.dc.an); Extensions.e(this.dd.an); this.as(); }; PolarSplineAreaSeriesView.prototype.db = function (a, b) { this.df.an.c = Numeric.h(a.count + 1, function (c) { return c < a.count ? a._inner[c].x : a._inner[c - a.count].x; }, function (c) { return c < a.count ? a._inner[c].y : a._inner[c - a.count].y; }, b); this.de.an.c = Numeric.h(a.count + 1, function (c) { return c < a.count ? a._inner[c].x : a._inner[c - a.count].x; }, function (c) { return c < a.count ? a._inner[c].y : a._inner[c - a.count].y; }, b); this.as(); }; PolarSplineAreaSeriesView.prototype.bd = function () { _super.prototype.bd.call(this); }; PolarSplineAreaSeriesView.prototype.be = function () { _super.prototype.be.call(this); var a = this.br(); this.dc.an = this.de.an; this.dd.an = this.df.an; this.dc._fill = a; this.dc._opacity = 1; this.dd._stroke = a; this.dd.ad = this.e.id + 3; }; PolarSplineAreaSeriesView.prototype.a8 = function (a, b) { _super.prototype.a8.call(this, a, b); if (a.d) { if (b) { a.t(this.dc); a.t(this.dd); } else { a.t(this.de); a.t(this.df); } } }; PolarSplineAreaSeriesView.prototype.an = function (a) { _super.prototype.an.call(this, a); this.e.bc.exportPathData(a, this.df, "polarShape", ["Main"]); this.e.bc.exportPathData(a, this.de, "fillShape", ["Fill"]); }; PolarSplineAreaSeriesView.prototype.af = function () { var a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.e.v0 = a; this.e.jl = 5; this.e.jm = 5; this.e.jn = 5; }; PolarSplineAreaSeriesView.$t = markType(PolarSplineAreaSeriesView, 'PolarSplineAreaSeriesView', PolarLineSeriesBaseView.$); return PolarSplineAreaSeriesView; }(PolarLineSeriesBaseView)); export { PolarSplineAreaSeriesView };