UNPKG

igniteui-react-charts

Version:

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

176 lines (175 loc) 6.07 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 { UnknownValuePlotting_$type } from "igniteui-react-core"; import { DependencyProperty } from "igniteui-react-core"; import { runOn, enumGetBox, markType, markDep, Point_$type } from "igniteui-react-core"; import { Path } from "igniteui-react-core"; import { List$1 } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView"; import { Defaults } from "./Defaults"; import { Color } from "igniteui-react-core"; /** * @hidden */ var PolarAreaSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarAreaSeries, _super); function PolarAreaSeries() { var _this = _super.call(this) || this; _this.ab = PolarAreaSeries.$; return _this; } PolarAreaSeries.prototype.bk = function () { return new PolarAreaSeries(); }; PolarAreaSeries.prototype.get_ev = function () { return true; }; PolarAreaSeries.prototype.ct = function () { return new PolarAreaSeriesView(this); }; PolarAreaSeries.prototype.z0 = function () { return false; }; PolarAreaSeries.prototype.q1 = function (a) { _super.prototype.q1.call(this, a); this.acw = a; }; PolarAreaSeries.prototype.acu = function (a) { var b = a; b.de(); }; PolarAreaSeries.prototype.acv = function (a, b) { if (a.n.count > 0) { var c = a.n._inner[0]; var d = a.n._inner[a.n.count - 1]; var e = c.x == d.x && c.y == d.y; if (!e) { a.n.add(a.n._inner[0]); } } var f = b; f.df(a.n, this.id); this.y7.az(this, this.zz(), runOn(this, this.yp)); var g = false; var h = this.y7.b; if (h != null) { g = true; } if (g) { this.abe(-1, this.zl.count, b.r); } var i = f.dl; var j = f.dk; this.y7.ad(i, true, false, true, true); this.y7.ad(j, false, true, false, false); j._opacity = this.y7.j * this.h9; }; PolarAreaSeries.prototype.get_acr = function () { return true; }; PolarAreaSeries.prototype.acm = function () { return this.acx; }; PolarAreaSeries.$t = markType(PolarAreaSeries, 'PolarAreaSeries', PolarLineSeriesBase.$); PolarAreaSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:acx:acz', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]); return PolarAreaSeries; }(PolarLineSeriesBase)); export { PolarAreaSeries }; /** * @hidden */ var PolarAreaSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarAreaSeriesView, _super); function PolarAreaSeriesView(a) { var _this = _super.call(this, a) || this; _this.dd = null; _this.dj = new Path(); _this.di = new Path(); _this.dh = new Path(); _this.dg = new Path(); _this.dd = a; return _this; } PolarAreaSeriesView.prototype.ax = function () { _super.prototype.ax.call(this); if (!this.r) { this.dd.xc = Defaults.e; } }; Object.defineProperty(PolarAreaSeriesView.prototype, "dk", { get: function () { return this.di; }, enumerable: false, configurable: true }); Object.defineProperty(PolarAreaSeriesView.prototype, "dl", { get: function () { return this.dj; }, enumerable: false, configurable: true }); PolarAreaSeriesView.prototype.de = function () { this.di.an = null; this.dj.an = null; this.dg.an = null; this.dh.an = null; this.av(); }; PolarAreaSeriesView.prototype.df = function (a, b) { var c = new List$1(Point_$type, 1, a); this.dd.acj.d(this.dj, c, b); this.dd.acj.d(this.di, c, b); this.av(); }; PolarAreaSeriesView.prototype.bh = function () { _super.prototype.bh.call(this); }; PolarAreaSeriesView.prototype.bi = function () { _super.prototype.bi.call(this); var a = this.bv(); this.dh.an = this.dj.an; this.dg.an = this.di.an; this.dh._stroke = a; this.dh.ad = this.f.ie + 3; this.dg._fill = a; this.dg._opacity = 1; }; PolarAreaSeriesView.prototype.bc = function (a, b) { _super.prototype.bc.call(this, a, b); if (a.d) { if (b) { a.t(this.dg); a.t(this.dh); } else { a.t(this.di); a.t(this.dj); } } }; PolarAreaSeriesView.prototype.aq = function (a) { _super.prototype.aq.call(this, a); this.f.bc.exportPathData(a, this.dj, "polarShape", ["Main"]); this.f.bc.exportPathData(a, this.di, "fillShape", ["Fill"]); }; PolarAreaSeriesView.prototype.ai = function () { var a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.v3 = a; this.f.jm = 5; this.f.jn = 5; this.f.jo = 5; }; PolarAreaSeriesView.$t = markType(PolarAreaSeriesView, 'PolarAreaSeriesView', PolarLineSeriesBaseView.$); return PolarAreaSeriesView; }(PolarLineSeriesBaseView)); export { PolarAreaSeriesView };