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.acr = null;
_this.act = null;
_this.acs = null;
_this.acr = new PathRenderer(1, new DefaultFlattener());
_this.act = new PathRenderer(0);
return _this;
}
PolarLineSeriesBase.prototype.get_z4 = function () {
return true;
};
PolarLineSeriesBase.prototype.z9 = function () {
return true;
};
PolarLineSeriesBase.prototype.ct = function () {
return new PolarLineSeriesBaseView(this);
};
PolarLineSeriesBase.prototype.q8 = function (a) {
_super.prototype.q8.call(this, a);
this.acu = a;
};
PolarLineSeriesBase.prototype.acv = function () {
return 1;
};
PolarLineSeriesBase.prototype.get_acy = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "acy", {
get: function () {
return this.get_acy();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.get_ac0 = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "ac0", {
get: function () {
return this.get_ac0();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.abo = function (a, b) {
var _this = this;
_super.prototype.abo.call(this, a, b);
a.n.clear();
var c = b.ca;
var d = b.b9;
var e = b.getEffectiveViewport();
var f = this.zu != null ? this.zu.count : 0;
var g = this.zv != null ? this.zv.count : 0;
var h = Math.min(f, g);
var i = ((function () {
var $ret = new PolarLinePlanner();
$ret.m = function (j) { return _this.y7.a.getScaledAngle1(_this.zu.item(j), _this.y7.e, _this.y7.d); };
$ret.q = h;
$ret.n = function (j) { return _this.y5.si(_this.zv.item(j), _this.y7.g, _this.y7.f, _this.y7.i, _this.y7.h); };
$ret.l = _this.ie;
$ret.f = _this.aaa;
$ret.b = _this.acv();
$ret.o = function (j) { return _this.ac1(a, j); };
$ret.p = function (j) { return _this.ac2(a, j); };
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = _this.ac0;
$ret.c = _this.acy;
return $ret;
})());
var j = new List$1(Number_$type, 0);
for (var k = 0; k < h; k++) {
if (this.acz(k)) {
j.add(k);
}
}
if (this.ac0 && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.n, j);
};
PolarLineSeriesBase.prototype.ac1 = function (a, b) {
return a.x._inner[b].x;
};
PolarLineSeriesBase.prototype.ac2 = function (a, b) {
return a.x._inner[b].y;
};
PolarLineSeriesBase.prototype.acx = function () {
return !this.acw();
};
PolarLineSeriesBase.prototype.acw = function () {
var a = this.dc.xn;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
};
PolarLineSeriesBase.prototype.acz = function (a) {
return (this.zu.item(a) >= this.y7.a.pr && this.zu.item(a) <= this.y7.a.pq && this.zv.item(a) >= this.y7.b.pr && this.zv.item(a) <= this.y7.b.pq) || (isNaN_(this.zu.item(a)) || isNaN_(this.zv.item(a)));
};
PolarLineSeriesBase.prototype.pb = function (a, b) {
_super.prototype.pb.call(this, a, b);
this.ac3(b);
};
PolarLineSeriesBase.prototype.abs = function (a, b) {
_super.prototype.abs.call(this, a, b);
if (this.aaa) {
this.acs = this.acr;
}
else {
this.acs = this.act;
}
this.acs.b = this.acv();
this.ac3(b);
this.ac4(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.wc = a;
this.f.jq = 3;
this.f.jr = 1;
this.f.js = 4;
this.f.hd = false;
};
PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
return PolarLineSeriesBaseView;
}(PolarBaseView));
export { PolarLineSeriesBaseView };