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.ac1 = null;
_this.ac3 = null;
_this.ac2 = null;
_this.ac1 = new PathRenderer(1, new DefaultFlattener());
_this.ac3 = new PathRenderer(0);
return _this;
}
PolarLineSeriesBase.prototype.get_aae = function () {
return true;
};
PolarLineSeriesBase.prototype.aaj = function () {
return true;
};
PolarLineSeriesBase.prototype.ct = function () {
return new PolarLineSeriesBaseView(this);
};
PolarLineSeriesBase.prototype.rh = function (a) {
_super.prototype.rh.call(this, a);
this.ac4 = a;
};
PolarLineSeriesBase.prototype.ac5 = function () {
return 1;
};
PolarLineSeriesBase.prototype.get_ac8 = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "ac8", {
get: function () {
return this.get_ac8();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.get_ada = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "ada", {
get: function () {
return this.get_ada();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.aby = function (a, b) {
var _this = this;
_super.prototype.aby.call(this, a, b);
a.q.clear();
var c = b.ca;
var d = b.b9;
var e = b.getEffectiveViewport();
var f = this.z4 != null ? this.z4.count : 0;
var g = this.z5 != null ? this.z5.count : 0;
var h = Math.min(f, g);
var i = ((function () {
var $ret = new PolarLinePlanner();
$ret.m = function (j) { return _this.zh.a.getScaledAngle1(_this.z4.item(j), _this.zh.e, _this.zh.d); };
$ret.q = h;
$ret.n = function (j) { return _this.zf.tn(_this.z5.item(j), _this.zh.g, _this.zh.f, _this.zh.i, _this.zh.h); };
$ret.l = _this.ik;
$ret.f = _this.aak;
$ret.b = _this.ac5();
$ret.o = function (j) { return _this.adb(a, j); };
$ret.p = function (j) { return _this.adc(a, j); };
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = _this.ada;
$ret.c = _this.ac8;
return $ret;
})());
var j = new List$1(Number_$type, 0);
for (var k = 0; k < h; k++) {
if (this.ac9(k)) {
j.add(k);
}
}
if (this.ada && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.q, j);
};
PolarLineSeriesBase.prototype.adb = function (a, b) {
return a.aa._inner[b].x;
};
PolarLineSeriesBase.prototype.adc = function (a, b) {
return a.aa._inner[b].y;
};
PolarLineSeriesBase.prototype.ac7 = function () {
return !this.ac6();
};
PolarLineSeriesBase.prototype.ac6 = function () {
var a = this.dc.yr;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
};
PolarLineSeriesBase.prototype.ac9 = function (a) {
return (this.z4.item(a) >= this.zh.a.qw && this.z4.item(a) <= this.zh.a.qv && this.z5.item(a) >= this.zh.b.qw && this.z5.item(a) <= this.zh.b.qv) || (isNaN_(this.z4.item(a)) || isNaN_(this.z5.item(a)));
};
PolarLineSeriesBase.prototype.pi = function (a, b) {
_super.prototype.pi.call(this, a, b);
this.add(b);
};
PolarLineSeriesBase.prototype.ab2 = function (a, b) {
_super.prototype.ab2.call(this, a, b);
if (this.aak) {
this.ac2 = this.ac1;
}
else {
this.ac2 = this.ac3;
}
this.ac2.b = this.ac5();
this.add(b);
this.ade(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.wl = a;
this.f.jv = 3;
this.f.jw = 1;
this.f.jx = 4;
this.f.hi = false;
};
PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
return PolarLineSeriesBaseView;
}(PolarBaseView));
export { PolarLineSeriesBaseView };