igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
165 lines (164 loc) • 5.98 kB
JavaScript
/*
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.acl = null;
_this.acn = null;
_this.acm = null;
_this.acl = new PathRenderer(1, new DefaultFlattener());
_this.acn = new PathRenderer(0);
return _this;
}
PolarLineSeriesBase.prototype.get_zy = function () {
return true;
};
PolarLineSeriesBase.prototype.z3 = function () {
return true;
};
PolarLineSeriesBase.prototype.ct = function () {
return new PolarLineSeriesBaseView(this);
};
PolarLineSeriesBase.prototype.q3 = function (a) {
_super.prototype.q3.call(this, a);
this.aco = a;
};
PolarLineSeriesBase.prototype.acp = function () {
return 1;
};
PolarLineSeriesBase.prototype.get_acs = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "acs", {
get: function () {
return this.get_acs();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.get_acu = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "acu", {
get: function () {
return this.get_acu();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.abi = function (a, b) {
var _this = this;
_super.prototype.abi.call(this, a, b);
a.n.clear();
var c = b.ca;
var d = b.b9;
var e = b.getEffectiveViewport();
var f = this.zo != null ? this.zo.count : 0;
var g = this.zp != null ? this.zp.count : 0;
var h = Math.min(f, g);
var i = ((function () {
var $ret = new PolarLinePlanner();
$ret.m = function (j) { return _this.y1.a.getScaledAngle1(_this.zo.item(j), _this.y1.e, _this.y1.d); };
$ret.q = h;
$ret.n = function (j) { return _this.yz.oe(_this.zp.item(j), _this.y1.g, _this.y1.f, _this.y1.i, _this.y1.h); };
$ret.l = _this.ie;
$ret.f = _this.z4;
$ret.b = _this.acp();
$ret.o = function (j) { return _this.acv(a, j); };
$ret.p = function (j) { return _this.acw(a, j); };
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = _this.acu;
$ret.c = _this.acs;
return $ret;
})());
var j = new List$1(Number_$type, 0);
for (var k = 0; k < h; k++) {
if (this.act(k)) {
j.add(k);
}
}
if (this.acu && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.n, j);
};
PolarLineSeriesBase.prototype.acv = function (a, b) {
return a.x._inner[b].x;
};
PolarLineSeriesBase.prototype.acw = function (a, b) {
return a.x._inner[b].y;
};
PolarLineSeriesBase.prototype.acr = function () {
return !this.acq();
};
PolarLineSeriesBase.prototype.acq = function () {
var a = this.dc.wt;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
};
PolarLineSeriesBase.prototype.act = function (a) {
return (this.zo.item(a) >= this.y1.a.l4 && this.zo.item(a) <= this.y1.a.l3 && this.zp.item(a) >= this.y1.b.l4 && this.zp.item(a) <= this.y1.b.l3) || (isNaN_(this.zo.item(a)) || isNaN_(this.zp.item(a)));
};
PolarLineSeriesBase.prototype.o7 = function (a, b) {
_super.prototype.o7.call(this, a, b);
this.acx(b);
};
PolarLineSeriesBase.prototype.abm = function (a, b) {
_super.prototype.abm.call(this, a, b);
if (this.z4) {
this.acm = this.acl;
}
else {
this.acm = this.acn;
}
this.acm.b = this.acp();
this.acx(b);
this.acy(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.dl = null;
_this.dl = a;
return _this;
}
PolarLineSeriesBaseView.prototype.an = function () {
var a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.v6 = a;
this.f.jn = 3;
this.f.jo = 1;
this.f.jp = 4;
this.f.hd = false;
};
PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
return PolarLineSeriesBaseView;
}(PolarBaseView));
export { PolarLineSeriesBaseView };