igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
165 lines (164 loc) • 6.15 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-angular-core";
import { PolarLinePlanner } from "./PolarLinePlanner";
import { List$1 } from "igniteui-angular-core";
import { isNaN_ } from "igniteui-angular-core";
import { Color } from "igniteui-angular-core";
/**
* @hidden
*/
var PolarLineSeriesBase = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarLineSeriesBase, _super);
function PolarLineSeriesBase() {
var _this = _super.call(this) || this;
_this.acf = null;
_this.ach = null;
_this.acg = null;
_this.acf = new PathRenderer(1, new DefaultFlattener());
_this.ach = new PathRenderer(0);
return _this;
}
PolarLineSeriesBase.prototype.get_zs = function () {
return true;
};
PolarLineSeriesBase.prototype.zx = function () {
return true;
};
PolarLineSeriesBase.prototype.cs = function () {
return new PolarLineSeriesBaseView(this);
};
PolarLineSeriesBase.prototype.q0 = function (a) {
_super.prototype.q0.call(this, a);
this.aci = a;
};
PolarLineSeriesBase.prototype.acj = function () {
return 1;
};
PolarLineSeriesBase.prototype.get_acm = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "acm", {
get: function () {
return this.get_acm();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.get_aco = function () {
return false;
};
Object.defineProperty(PolarLineSeriesBase.prototype, "aco", {
get: function () {
return this.get_aco();
},
enumerable: false,
configurable: true
});
PolarLineSeriesBase.prototype.abc = function (a, b) {
var _this = this;
_super.prototype.abc.call(this, a, b);
a.m.clear();
var c = b.by;
var d = b.bx;
var e = b.getEffectiveViewport();
var f = this.zi != null ? this.zi.count : 0;
var g = this.zj != null ? this.zj.count : 0;
var h = Math.min(f, g);
var i = ((function () {
var $ret = new PolarLinePlanner();
$ret.m = function (j) { return _this.yv.a.getScaledAngle1(_this.zi.item(j), _this.yv.e, _this.yv.d); };
$ret.q = h;
$ret.n = function (j) { return _this.yt.oe(_this.zj.item(j), _this.yv.g, _this.yv.f, _this.yv.i, _this.yv.h); };
$ret.l = _this.ic;
$ret.f = _this.zy;
$ret.b = _this.acj();
$ret.o = function (j) { return _this.acp(a, j); };
$ret.p = function (j) { return _this.acq(a, j); };
$ret.ad = d;
$ret.ac = e;
$ret.ae = c;
$ret.d = _this.aco;
$ret.c = _this.acm;
return $ret;
})());
var j = new List$1(Number_$type, 0);
for (var k = 0; k < h; k++) {
if (this.acn(k)) {
j.add(k);
}
}
if (this.aco && j.count > 0) {
j.add(j._inner[0]);
}
i.x(a.m, j);
};
PolarLineSeriesBase.prototype.acp = function (a, b) {
return a.w._inner[b].x;
};
PolarLineSeriesBase.prototype.acq = function (a, b) {
return a.w._inner[b].y;
};
PolarLineSeriesBase.prototype.acl = function () {
return !this.ack();
};
PolarLineSeriesBase.prototype.ack = function () {
var a = this.db.v4;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
};
PolarLineSeriesBase.prototype.acn = function (a) {
return (this.zi.item(a) >= this.yv.a.l4 && this.zi.item(a) <= this.yv.a.l3 && this.zj.item(a) >= this.yv.b.l4 && this.zj.item(a) <= this.yv.b.l3) || (isNaN_(this.zi.item(a)) || isNaN_(this.zj.item(a)));
};
PolarLineSeriesBase.prototype.o4 = function (a, b) {
_super.prototype.o4.call(this, a, b);
this.acr(b);
};
PolarLineSeriesBase.prototype.abg = function (a, b) {
_super.prototype.abg.call(this, a, b);
if (this.zy) {
this.acg = this.acf;
}
else {
this.acg = this.ach;
}
this.acg.b = this.acj();
this.acr(b);
this.acs(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.c8 = null;
_this.c8 = a;
return _this;
}
PolarLineSeriesBaseView.prototype.af = function () {
var a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.e.v0 = a;
this.e.jl = 3;
this.e.jm = 1;
this.e.jn = 4;
this.e.hb = false;
};
PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
return PolarLineSeriesBaseView;
}(PolarBaseView));
export { PolarLineSeriesBaseView };