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.ac6 = null;
_this.ac8 = null;
_this.ac7 = null;
_this.ac6 = new PathRenderer(1, new DefaultFlattener());
_this.ac8 = new PathRenderer(0);
return _this;
}
PolarLineSeriesBase.prototype.get_aaj = function () {
return true;
};
PolarLineSeriesBase.prototype.aao = function () {
return true;
};
PolarLineSeriesBase.prototype.ct = function () {
return new PolarLineSeriesBaseView(this);
};
PolarLineSeriesBase.prototype.rj = function (a) {
_super.prototype.rj.call(this, a);
this.ac9 = a;
};
PolarLineSeriesBase.prototype.ada = function () {
return 1;
};
PolarLineSeriesBase.prototype.get_add = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "add", {
get: function () {
return this.get_add();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.get_adf = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "adf", {
get: function () {
return this.get_adf();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.ab3 = function (a, b) {
var _this = this;
_super.prototype.ab3.call(this, a, b);
a.q.clear();
var c = b.ca;
var d = b.b9;
var e = b.getEffectiveViewport();
var f = this.z9 != null ? this.z9.count : 0;
var g = this.aaa != null ? this.aaa.count : 0;
var h = Math.min(f, g);
var i = ((function () {
var $ret = new PolarLinePlanner();
$ret.m = function (j) { return _this.zm.a.getScaledAngle1(_this.z9.item(j), _this.zm.e, _this.zm.d); };
$ret.q = h;
$ret.n = function (j) { return _this.zk.tp(_this.aaa.item(j), _this.zm.g, _this.zm.f, _this.zm.i, _this.zm.h); };
$ret.l = _this.im;
$ret.f = _this.aap;
$ret.b = _this.ada();
$ret.o = function (j) { return _this.adg(a, j); };
$ret.p = function (j) { return _this.adh(a, j); };
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = _this.adf;
$ret.c = _this.add;
return $ret;
})());
var j = new List$1(Number_$type, 0);
for (var k = 0; k < h; k++) {
if (this.ade(k)) {
j.add(k);
}
}
if (this.adf && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.q, j);
};
PolarLineSeriesBase.prototype.adg = function (a, b) {
return a.aa._inner[b].x;
};
PolarLineSeriesBase.prototype.adh = function (a, b) {
return a.aa._inner[b].y;
};
PolarLineSeriesBase.prototype.adc = function () {
return !this.adb();
};
PolarLineSeriesBase.prototype.adb = function () {
var a = this.dc.yv;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
};
PolarLineSeriesBase.prototype.ade = function (a) {
return (this.z9.item(a) >= this.zm.a.qy && this.z9.item(a) <= this.zm.a.qx && this.aaa.item(a) >= this.zm.b.qy && this.aaa.item(a) <= this.zm.b.qx) || (isNaN_(this.z9.item(a)) || isNaN_(this.aaa.item(a)));
};
PolarLineSeriesBase.prototype.pk = function (a, b) {
_super.prototype.pk.call(this, a, b);
this.adi(b);
};
PolarLineSeriesBase.prototype.ab7 = function (a, b) {
_super.prototype.ab7.call(this, a, b);
if (this.aap) {
this.ac7 = this.ac6;
}
else {
this.ac7 = this.ac8;
}
this.ac7.b = this.ada();
this.adi(b);
this.adj(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.wn = a;
this.f.jx = 3;
this.f.jy = 1;
this.f.jz = 4;
this.f.hk = false;
};
PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
return PolarLineSeriesBaseView;
}(PolarBaseView));
export { PolarLineSeriesBaseView };