igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
165 lines (164 loc) • 5.99 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.ac2 = null;
_this.ac4 = null;
_this.ac3 = null;
_this.ac2 = new PathRenderer(1, new DefaultFlattener());
_this.ac4 = new PathRenderer(0);
return _this;
}
PolarLineSeriesBase.prototype.get_aaf = function () {
return true;
};
PolarLineSeriesBase.prototype.aak = function () {
return true;
};
PolarLineSeriesBase.prototype.ct = function () {
return new PolarLineSeriesBaseView(this);
};
PolarLineSeriesBase.prototype.ri = function (a) {
_super.prototype.ri.call(this, a);
this.ac5 = a;
};
PolarLineSeriesBase.prototype.ac6 = function () {
return 1;
};
PolarLineSeriesBase.prototype.get_ac9 = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "ac9", {
get: function () {
return this.get_ac9();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.get_adb = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "adb", {
get: function () {
return this.get_adb();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.abz = function (a, b) {
var _this = this;
_super.prototype.abz.call(this, a, b);
a.q.clear();
var c = b.ca;
var d = b.b9;
var e = b.getEffectiveViewport();
var f = this.z5 != null ? this.z5.count : 0;
var g = this.z6 != null ? this.z6.count : 0;
var h = Math.min(f, g);
var i = ((function () {
var $ret = new PolarLinePlanner();
$ret.m = function (j) { return _this.zi.a.getScaledAngle1(_this.z5.item(j), _this.zi.e, _this.zi.d); };
$ret.q = h;
$ret.n = function (j) { return _this.zg.tp(_this.z6.item(j), _this.zi.g, _this.zi.f, _this.zi.i, _this.zi.h); };
$ret.l = _this.il;
$ret.f = _this.aal;
$ret.b = _this.ac6();
$ret.o = function (j) { return _this.adc(a, j); };
$ret.p = function (j) { return _this.add(a, j); };
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = _this.adb;
$ret.c = _this.ac9;
return $ret;
})());
var j = new List$1(Number_$type, 0);
for (var k = 0; k < h; k++) {
if (this.ada(k)) {
j.add(k);
}
}
if (this.adb && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.q, j);
};
PolarLineSeriesBase.prototype.adc = function (a, b) {
return a.aa._inner[b].x;
};
PolarLineSeriesBase.prototype.add = function (a, b) {
return a.aa._inner[b].y;
};
PolarLineSeriesBase.prototype.ac8 = function () {
return !this.ac7();
};
PolarLineSeriesBase.prototype.ac7 = function () {
var a = this.dc.ys;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
};
PolarLineSeriesBase.prototype.ada = function (a) {
return (this.z5.item(a) >= this.zi.a.qy && this.z5.item(a) <= this.zi.a.qx && this.z6.item(a) >= this.zi.b.qy && this.z6.item(a) <= this.zi.b.qx) || (isNaN_(this.z5.item(a)) || isNaN_(this.z6.item(a)));
};
PolarLineSeriesBase.prototype.pj = function (a, b) {
_super.prototype.pj.call(this, a, b);
this.ade(b);
};
PolarLineSeriesBase.prototype.ab3 = function (a, b) {
_super.prototype.ab3.call(this, a, b);
if (this.aal) {
this.ac3 = this.ac2;
}
else {
this.ac3 = this.ac4;
}
this.ac3.b = this.ac6();
this.ade(b);
this.adf(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.wm = a;
this.f.jw = 3;
this.f.jx = 1;
this.f.jy = 4;
this.f.hj = false;
};
PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
return PolarLineSeriesBaseView;
}(PolarBaseView));
export { PolarLineSeriesBaseView };