UNPKG

igniteui-react-charts

Version:

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

165 lines (164 loc) 5.98 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 { PolarBase } from "./PolarBase"; import { PathRenderer } from "./PathRenderer"; import { DefaultFlattener } from "./DefaultFlattener"; import { PolarBaseView } from "./PolarBaseView"; import { Number_$type, Point_$type, markType } from "igniteui-react-core"; import { PolarLinePlanner } from "./PolarLinePlanner"; import { List$1 } from "igniteui-react-core"; import { isNaN_ } from "igniteui-react-core"; import { Color } from "igniteui-react-core"; /** * @hidden */ var PolarLineSeriesBase = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarLineSeriesBase, _super); function PolarLineSeriesBase() { var _this = _super.call(this) || this; _this.aci = null; _this.ack = null; _this.acj = null; _this.aci = new PathRenderer(1, new DefaultFlattener()); _this.ack = new PathRenderer(0); return _this; } PolarLineSeriesBase.prototype.get_zv = function () { return true; }; PolarLineSeriesBase.prototype.z0 = function () { return true; }; PolarLineSeriesBase.prototype.ct = function () { return new PolarLineSeriesBaseView(this); }; PolarLineSeriesBase.prototype.q1 = function (a) { _super.prototype.q1.call(this, a); this.acl = a; }; PolarLineSeriesBase.prototype.acm = function () { return 1; }; PolarLineSeriesBase.prototype.get_acp = function () { return false; }; Object.defineProperty(PolarLineSeriesBase.prototype, "acp", { get: function () { return this.get_acp(); }, enumerable: false, configurable: true }); PolarLineSeriesBase.prototype.get_acr = function () { return false; }; Object.defineProperty(PolarLineSeriesBase.prototype, "acr", { get: function () { return this.get_acr(); }, enumerable: false, configurable: true }); PolarLineSeriesBase.prototype.abf = function (a, b) { var _this = this; _super.prototype.abf.call(this, a, b); a.n.clear(); var c = b.b2; var d = b.b1; var e = b.getEffectiveViewport(); var f = this.zl != null ? this.zl.count : 0; var g = this.zm != null ? this.zm.count : 0; var h = Math.min(f, g); var i = ((function () { var $ret = new PolarLinePlanner(); $ret.m = function (j) { return _this.yy.a.getScaledAngle1(_this.zl.item(j), _this.yy.e, _this.yy.d); }; $ret.q = h; $ret.n = function (j) { return _this.yw.oe(_this.zm.item(j), _this.yy.g, _this.yy.f, _this.yy.i, _this.yy.h); }; $ret.l = _this.id; $ret.f = _this.z1; $ret.b = _this.acm(); $ret.o = function (j) { return _this.acs(a, j); }; $ret.p = function (j) { return _this.act(a, j); }; $ret.ad = d; $ret.ac = e; $ret.ae = c; $ret.d = _this.acr; $ret.c = _this.acp; return $ret; })()); var j = new List$1(Number_$type, 0); for (var k = 0; k < h; k++) { if (this.acq(k)) { j.add(k); } } if (this.acr && j.count > 0) { j.add(j._inner[0]); } i.x(a.n, j); }; PolarLineSeriesBase.prototype.acs = function (a, b) { return a.x._inner[b].x; }; PolarLineSeriesBase.prototype.act = function (a, b) { return a.x._inner[b].y; }; PolarLineSeriesBase.prototype.aco = function () { return !this.acn(); }; PolarLineSeriesBase.prototype.acn = function () { var a = this.dc.v5; return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 }); }; PolarLineSeriesBase.prototype.acq = function (a) { return (this.zl.item(a) >= this.yy.a.l4 && this.zl.item(a) <= this.yy.a.l3 && this.zm.item(a) >= this.yy.b.l4 && this.zm.item(a) <= this.yy.b.l3) || (isNaN_(this.zl.item(a)) || isNaN_(this.zm.item(a))); }; PolarLineSeriesBase.prototype.o5 = function (a, b) { _super.prototype.o5.call(this, a, b); this.acu(b); }; PolarLineSeriesBase.prototype.abj = function (a, b) { _super.prototype.abj.call(this, a, b); if (this.z1) { this.acj = this.aci; } else { this.acj = this.ack; } this.acj.b = this.acm(); this.acu(b); this.acv(a, b); }; PolarLineSeriesBase.$t = markType(PolarLineSeriesBase, 'PolarLineSeriesBase', PolarBase.$); return PolarLineSeriesBase; }(PolarBase)); export { PolarLineSeriesBase }; /** * @hidden */ var PolarLineSeriesBaseView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PolarLineSeriesBaseView, _super); function PolarLineSeriesBaseView(a) { var _this = _super.call(this, a) || this; _this.dc = null; _this.dc = a; return _this; } PolarLineSeriesBaseView.prototype.ai = function () { var 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; }; PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$); return PolarLineSeriesBaseView; }(PolarBaseView)); export { PolarLineSeriesBaseView };