igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,204 lines (1,203 loc) • 39.7 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, __values } from "tslib";
import { Base, markType, enumGetBox, EnumUtil, Array_$type, runOn, delegateCombine, typeCast, fromEnum, markDep } from "igniteui-react-core";
import { IBucketizer_$type } from "./IBucketizer";
import { NotImplementedException } from "igniteui-react-core";
import { CategoryAngleAxis } from "./CategoryAngleAxis";
import { NumericRadiusAxis } from "./NumericRadiusAxis";
import { truncate, intDivide, isNaN_ } from "igniteui-react-core";
import { MarkerSeries } from "./MarkerSeries";
import { IHasCategoryModePreference_$type } from "./IHasCategoryModePreference";
import { DependencyProperty } from "igniteui-react-core";
import { RadialLabelMode_$type } from "igniteui-react-core";
import { CategoryCollisionMode_$type } from "./CategoryCollisionMode";
import { CategoryTransitionInMode_$type } from "./CategoryTransitionInMode";
import { HighlightingInfo } from "igniteui-react-core";
import { BindingFormatter } from "igniteui-react-core";
import { CategoryTransitionSourceFramePreparer } from "./CategoryTransitionSourceFramePreparer";
import { RadialFrame } from "./RadialFrame";
import { RadialSeriesRenderManager } from "./RadialSeriesRenderManager";
import { List$1 } from "igniteui-react-core";
import { SeriesPointOfInterest } from "./SeriesPointOfInterest";
import { ScalerParams } from "./ScalerParams";
import { Marker } from "./Marker";
import { MarkerSeriesView } from "./MarkerSeriesView";
import { ProportionalRadialLabelContext } from "./ProportionalRadialLabelContext";
import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay";
import { DoubleCollection } from "igniteui-react-core";
import { RadialAxes } from "./RadialAxes";
import { Visibility_$type } from "igniteui-react-core";
import { ChartSelection } from "./ChartSelection";
import { PropertyMetadata } from "igniteui-react-core";
import { round10N } from "igniteui-react-core";
import { Pool$1 } from "igniteui-react-core";
/**
* @hidden
*/
var RadialBucketCalculator = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(RadialBucketCalculator, _super);
function RadialBucketCalculator(a) {
var _this = _super.call(this) || this;
_this.a = null;
_this.c = 0;
_this.d = 0;
_this.b = 0;
_this.a = a;
return _this;
}
RadialBucketCalculator.prototype.getBucket = function (a) {
throw new NotImplementedException(0);
};
RadialBucketCalculator.prototype.getBucketWithoutUnknowns = function (a) {
return this.getBucket(a);
};
RadialBucketCalculator.prototype.getErrorBucket = function (a, b) {
return NaN;
};
RadialBucketCalculator.prototype.getBucketInfo = function (a, b, c, d) {
a = this.c;
b = this.d;
c = this.b;
d = this.a.c9.ie;
return {
p0: a,
p1: b,
p2: c,
p3: d
};
};
RadialBucketCalculator.prototype.e = function (a) {
var b = this.a.ca;
var c = this.a.b9;
var d = this.a.getEffectiveViewport();
var e = this.a.c9.za;
if (b.isEmpty || c.isEmpty || e == null || this.a.c9.dp == null || this.a.c9.dp.count == 0) {
this.b = 0;
return;
}
var f = Math.floor(e.qv(c, d, b));
var g = Math.ceil(e.qu(c, d, b));
if (e.df) {
g = Math.ceil(e.qv(c, d, b));
f = Math.floor(e.qu(c, d, b));
}
if (g < f) {
g = e.o5 + g;
}
var h = this.a.c9.zg;
var i = h != null ? h.sb : 0.75;
var j = Math.min(c.width, c.height) * 0.5 * (i) * 2 * Math.PI;
var k = Math.floor((g - f + 1) * a / j);
this.b = truncate(Math.max(1, k));
this.c = truncate(Math.max(0, Math.floor(f / this.b) - 1));
this.d = truncate(Math.ceil(g / this.b));
if (e.dj) {
this.b = 1;
this.c = truncate(Math.max(0, Math.floor(f / this.b) - 1));
this.d = truncate(Math.ceil(g / this.b));
}
};
RadialBucketCalculator.prototype.cacheValues = function () {
};
RadialBucketCalculator.prototype.unCacheValues = function () {
};
RadialBucketCalculator.$t = markType(RadialBucketCalculator, 'RadialBucketCalculator', Base.$, [IBucketizer_$type]);
return RadialBucketCalculator;
}(Base));
export { RadialBucketCalculator };
/**
* @hidden
*/
var RadialBase = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(RadialBase, _super);
function RadialBase() {
var _this = _super.call(this) || this;
_this.zp = null;
_this.zw = false;
_this.zv = false;
_this.zt = null;
_this.zu = null;
_this.assigningRadialStyle = null;
_this.assigningRadialMarkerStyle = null;
_this.y3 = null;
_this.y7 = null;
_this.y4 = null;
_this.y6 = null;
_this.y5 = null;
_this.zl = new RadialFrame(4);
_this.zm = new RadialFrame(4);
_this.zj = new RadialFrame(4);
_this.zh = null;
_this.zf = null;
_this.zf = new CategoryTransitionSourceFramePreparer();
_this.zp = new RadialSeriesRenderManager();
return _this;
}
RadialBase.prototype.q8 = function (a) {
_super.prototype.q8.call(this, a);
this.zi = a;
};
RadialBase.prototype.abh = function () {
if (this.dd.g) {
this.dd.t();
}
};
Object.defineProperty(RadialBase.prototype, "categoryAxis", {
get: function () {
return this.za;
},
enumerable: false,
configurable: true
});
RadialBase.prototype.a0 = function () {
return this.za;
};
RadialBase.prototype.yy = function (a, b) {
return null;
};
RadialBase.prototype.py = function (a) {
if (this.za.dj && this.za.rs(a)) {
if (this.fj) {
this.ba.a$x(this, a, this.za.o6 - 1);
}
return;
}
_super.prototype.py.call(this, a);
};
RadialBase.prototype.eg = function (a) {
if (this.za != null && this.za.dj && this.za.hasOthersCategory) {
if (this.za.rs(a)) {
return true;
}
}
return _super.prototype.eg.call(this, a);
};
RadialBase.prototype.pw = function (a) {
if (this.za.dj && this.za.rs(a)) {
if (this.fj) {
this.ba.a$an(this, a, this.dp.count - 1);
}
return;
}
_super.prototype.pw.call(this, a);
};
RadialBase.prototype.ed = function (a, b, c, d, e) {
var _this = this;
if (!this.hasMarkers) {
return false;
}
var f = this.za;
var g = new ScalerParams(1, this.dc.xn, this.w3, f.df);
g.c = this.getEffectiveViewport1(this.cw);
var h = this.zg;
var i = new ScalerParams(1, this.dc.xn, this.w3, h.df);
i.c = this.getEffectiveViewport1(this.cw);
var j = this.aae;
a.clear();
this.xh.cw(function (k) {
if (k._visibility == 0) {
var l = new SeriesPointOfInterest();
var m = k.n;
var n = k.o;
if (!e && (m < _this.w3.left || m > _this.w3.right || n < _this.w3.top || n > _this.w3.bottom)) {
return;
}
var o = null;
if (k.content != null) {
o = k.content.item;
}
var p = void 0;
var q = void 0;
var r = _this.zh.h(m, n, _this.cw.ca, _this.cw.b9, _this.cw.getEffectiveViewport(), p, q);
p = r.p5;
q = r.p6;
l.d = p;
l.e = q;
var s = l.e;
var t = k.ak;
l.f = _this.abe(s, o, t, d, j, c, b, false);
l.b = k.content;
l.g = _this.vr;
l.c = k.ak;
if (_this.ha) {
l.g = _this.vy(k.ak);
}
l.a = _this.ar(k.ak, k.al);
a.add(l);
}
});
return true;
};
RadialBase.prototype.kw = function (a, b) {
var c = null;
if (this.dp != null) {
if (a >= 0 && a < this.dp.count) {
c = this.dp.item(a);
}
if (this.za != null && this.za.dj && a == this.za.othersIndex) {
c = this.za.r5(false);
}
}
var d = NaN;
if (c != null) {
d = this.jf(c);
}
var e = this.abe(d, c, a, this.aad >= 0 ? this.aad : 5, this.aae, false, false, b);
if (e != null) {
return e;
}
return _super.prototype.kw.call(this, a, b);
};
RadialBase.prototype.abe = function (a, b, c, d, e, f, g, h) {
var i = null;
var j = this.za.dj && this.za.rs(b);
var k = this.zn;
if (h) {
k = this.zo;
}
if (k == 0) {
if (h) {
k = 5;
}
else {
k = 6;
}
}
if ((h && ((this.y4 != null) || (j && this.y5 != null))) || (!h && ((this.y7 != null) || (j && this.y6 != null)))) {
var l_1 = this.aaa(a, b, c, d, f);
var m_1 = this.aab(a, b, c, e, f);
var n_1 = this.aav(c);
var o = ((function () {
var $ret = new ProportionalRadialLabelContext();
$ret.value = l_1;
$ret.percent = m_1;
$ret.label = n_1;
$ret.item = b;
return $ret;
})());
var p = null;
if (j) {
if (h) {
p = this.y5;
}
else {
p = this.y6;
}
if (p == null) {
if (h) {
p = this.y4;
}
else {
p = this.y7;
}
}
}
else {
if (h) {
p = this.y4;
}
else {
p = this.y7;
}
}
i = p.i(o);
}
else if (k != 1) {
switch (k) {
case 2:
i = this.aaw(a, b, c, d, f);
break;
case 3:
i = this.aax(a, b, c, e, f);
break;
case 4:
{
var q = this.aaw(a, b, c, d, f);
var r = this.aax(a, b, c, e, f);
i = q + this.aam + r;
}
break;
case 5:
i = this.aav(c);
break;
case 6:
{
var s = this.aaw(a, b, c, d, f);
var t = this.aav(c);
i = t + this.aam + s;
}
break;
case 7:
{
var u = this.aax(a, b, c, e, f);
var v = this.aav(c);
i = v + this.aam + u;
}
break;
case 8:
{
var w = this.aaw(a, b, c, d, f);
var x = this.aax(a, b, c, e, f);
var y = this.aav(c);
i = y + this.aam + w + this.aam + x;
}
break;
}
}
else {
if (g) {
i = this.aaw(a, b, c, d, f);
}
else {
i = this.aav(c);
}
}
return i;
};
RadialBase.prototype.aav = function (a) {
var b = this.za;
var c = this.au(true);
if (this.za != null && this.za.dj && this.za.hasOthersCategory && a == this.za.othersIndex) {
if (this.y3 != null) {
c = this.y3;
}
}
if (c != null) {
var d = _super.prototype.kw.call(this, a, false);
if (d != null) {
return c.i(d);
}
else {
return null;
}
}
else {
return b.ih(a);
}
};
RadialBase.prototype.aaw = function (a, b, c, d, e) {
var f = a;
f = this.aai(c, f);
if (e) {
return this.aak(f, d);
}
else {
a = this.jf(b);
if (!isNaN_(a)) {
return this.aak(a, d);
}
else {
return this.aak(f, d);
}
}
};
RadialBase.prototype.aaa = function (a, b, c, d, e) {
var f = a;
f = this.aai(c, f);
if (e) {
return f;
}
else {
a = this.jf(b);
if (!isNaN_(a)) {
return a;
}
else {
return f;
}
}
};
RadialBase.prototype.aax = function (a, b, c, d, e) {
if (this.za == null || !this.za.dj) {
return this.aaw(a, b, c, d, e);
}
var f = this.za.rz(c);
if (e) {
return this.aak(f, d) + "%";
}
else {
a = this.za.rz(c);
if (!isNaN_(a)) {
return this.aak(a, d) + "%";
}
else {
return this.aak(f, d) + "%";
}
}
};
RadialBase.prototype.aab = function (a, b, c, d, e) {
if (this.za == null || !this.za.dj) {
return this.aaa(a, b, c, d, e);
}
var f = this.za.rz(c);
if (e) {
return f;
}
else {
a = this.za.rz(c);
if (!isNaN_(a)) {
return a;
}
else {
return f;
}
}
};
RadialBase.prototype.aai = function (a, b) {
return b;
};
RadialBase.prototype.aak = function (a, b) {
var c;
if (b >= 0) {
c = round10N(a, b);
}
else {
c = a;
}
var d = this.au(false);
if (d != null) {
var e = d;
return e.i(c);
}
else {
return c.toString();
}
};
RadialBase.prototype.get_fu = function () {
return true;
};
RadialBase.prototype.get_ff = function () {
return true;
};
RadialBase.prototype.zq = function (a, b, c) {
var d = new HighlightingInfo();
d.i = this;
d.g = 0;
d.f = this.dp.count - 1;
d.c = true;
if (c != null && c.g == d.g && c.f == d.f) {
return c;
}
return d;
};
RadialBase.prototype.z7 = function () {
return false;
};
RadialBase.prototype.hu = function () {
var a = _super.prototype.hu.call(this);
if (this.z7()) {
var b = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.r = true;
$ret.ad = "DashArray";
$ret.p = true;
$ret.x = ((function () {
var $ret = new DoubleCollection();
$ret.add(5);
$ret.add(5);
return $ret;
})());
$ret.q = true;
return $ret;
})());
a.add(b);
}
if (!this.z7()) {
var c = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.r = true;
$ret.ad = "Brush";
$ret.p = true;
$ret.y = "ActualBrush";
$ret.q = true;
return $ret;
})());
c.valueResolving = delegateCombine(c.valueResolving, runOn(this, this.r9));
a.add(c);
}
if (!this.z7()) {
var d = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.r = true;
$ret.ad = "Outline";
$ret.p = true;
$ret.y = "ActualOutline";
$ret.q = true;
return $ret;
})());
d.valueResolving = delegateCombine(d.valueResolving, runOn(this, this.r9));
a.add(d);
}
var e = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.p = true;
$ret.ad = "IsTransitionInEnabled";
$ret.x = true;
$ret.q = true;
return $ret;
})());
a.add(e);
var f = ((function () {
var $ret = new SeriesLayerPropertyOverlay();
$ret.p = true;
$ret.ad = "TransitionInMode";
$ret.x = enumGetBox(CategoryTransitionInMode_$type, 20);
$ret.q = true;
return $ret;
})());
a.add(f);
return a;
};
RadialBase.prototype.kz = function () {
if (this.d4()) {
return this.bo.zm;
}
else {
return this.bo.zj;
}
};
RadialBase.prototype.zr = function (a, b, c) {
if (this.dp == null) {
return null;
}
var d = this.zi.da.c;
var e = this.zi.da.d;
var f = this.zi.da.b;
var g = this.zk();
var h = this.dp.count;
var i = this.za;
var j = -1;
var k = -1;
var l = this.j7(b);
if (isNaN_(b.x) || isNaN_(b.y)) {
if (a != null && this.dp != null) {
if (this.za.dj && this.za.rs(a)) {
l = this.za.othersIndex;
}
else {
l = this.dp.indexOf(a);
}
}
}
j = truncate(Math.floor((intDivide(l, f)))) * f;
k = j + (f - 1);
if (c != null && c.g == j && c.f == k) {
return c;
}
var m = new HighlightingInfo();
m.i = this;
m.g = j;
m.f = k;
return m;
};
RadialBase.prototype.zs = function (a, b, c) {
if (this.dp == null) {
return null;
}
var d = this.zi.da.c;
var e = this.zi.da.d;
var f = this.zi.da.b;
var g = this.zk();
var h = this.dp.count;
var i = this.za;
var j = -1;
var k = -1;
var l = this.j7(b);
if (isNaN_(b.x) || isNaN_(b.y)) {
if (a != null && this.dp != null) {
if (this.za.dj && this.za.rs(a)) {
l = this.za.othersIndex;
}
else {
l = this.dp.indexOf(a);
}
}
}
j = truncate(Math.floor((intDivide(l, f)))) * f;
k = j + (f - 1);
if (c != null && c.g == j && c.f == k) {
return c;
}
var m = new HighlightingInfo();
m.d = true;
m.i = this;
m.g = j;
m.f = k;
return m;
};
RadialBase.prototype.dh = function (a, b, c) {
if (this.ef && this.f0(this.by) && !c) {
var d = this.zr(a, b, this.zt);
this.zt = d;
return d;
}
else {
var e = this.zq(a, b, this.zt);
this.zt = e;
return e;
}
};
RadialBase.prototype.di = function (a, b, c) {
if (this.f0(this.by) && !c) {
var d = this.zs(a, b, this.zu);
this.zu = d;
return d;
}
else {
var e = this.zq(a, b, this.zu);
e.d = true;
this.zu = e;
return e;
}
};
RadialBase.prototype.z6 = function () {
return (this.assigningRadialStyle != null && this.zw) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1);
};
RadialBase.prototype.z5 = function () {
return (this.assigningRadialMarkerStyle != null && this.zv) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1);
};
RadialBase.prototype.abk = function (a) {
if (this.assigningRadialStyle != null && this.zw) {
this.assigningRadialStyle(this, a);
}
};
RadialBase.prototype.abj = function (a) {
if (this.assigningRadialMarkerStyle != null && this.zv) {
this.assigningRadialMarkerStyle(this, a);
}
};
RadialBase.prototype.aaf = function (a) {
return a.da.b;
};
RadialBase.prototype.aag = function (a) {
return a.da.c;
};
RadialBase.prototype.ai = function () {
return [this.za, this.zg];
};
RadialBase.prototype.s0 = function (a, b) {
this.zi.da.e(this.ie);
this.rz(false);
};
RadialBase.prototype.sz = function (a, b) {
if (this.g2 && this.ju < 0.05 && (this.dc == null || !this.dc.f4())) {
this.g3 = true;
this.g6 = false;
this.gl = false;
}
this.zi.da.e(this.ie);
this.rz(false);
};
RadialBase.prototype.rh = function (a, b, c, d) {
_super.prototype.rh.call(this, a, b, c, d);
switch (b) {
case RadialBase.$$p[6]:
this.rz(false);
break;
case RadialBase.$$p[14]:
this.pk();
this.rz(false);
break;
case "SeriesViewer":
if (c != null && d == null) {
if (this.za != null) {
this.za.cq(this);
}
if (this.zg != null) {
this.zg.cq(this);
}
}
if (c == null && d != null) {
if (this.za != null) {
this.za.du(this);
}
if (this.zg != null) {
this.zg.du(this);
}
}
this.zi.da.e(this.ie);
this.rz(false);
break;
case RadialBase.$$p[0]:
if (this.za != null && this.zg != null) {
this.zh = new RadialAxes(this.zg, this.za);
}
if (c != null) {
c.cq(this);
}
if (d != null) {
d.du(this);
}
this.zi.da.e(this.ie);
this.rz(false);
break;
case RadialBase.$$p[22]:
if (this.za != null && this.zg != null) {
this.zh = new RadialAxes(this.zg, this.za);
}
if (c != null) {
c.cq(this);
}
if (d != null) {
d.du(this);
}
this.zi.da.e(this.ie);
if (this.zg == null || !this.zg.d2()) {
this.rz(false);
}
break;
case RadialBase.$$p[3]:
case RadialBase.$$p[4]:
if (this.aao != null) {
this.y3 = new BindingFormatter();
this.y3.j = this.aao;
this.y3.d = this.yx;
}
else {
this.y3 = null;
}
break;
case RadialBase.$$p[19]:
case RadialBase.$$p[20]:
if (this.abb != null) {
this.y7 = new BindingFormatter();
this.y7.j = this.abb;
this.y7.d = this.y2;
}
else {
this.y7 = null;
}
break;
case RadialBase.$$p[12]:
case RadialBase.$$p[13]:
if (this.aa1 != null) {
this.y4 = new BindingFormatter();
this.y4.j = this.aa1;
this.y4.d = this.yz;
}
else {
this.y4 = null;
}
break;
case RadialBase.$$p[17]:
case RadialBase.$$p[18]:
if (this.abb != null) {
this.y6 = new BindingFormatter();
this.y6.j = this.aa8;
this.y6.d = this.y1;
}
else {
this.y6 = null;
}
break;
case RadialBase.$$p[15]:
case RadialBase.$$p[16]:
if (this.aa1 != null) {
this.y5 = new BindingFormatter();
this.y5.j = this.aa5;
this.y5.d = this.y0;
}
else {
this.y5 = null;
}
break;
case "SyncLink":
if (this.c4 != null && this.dc != null) {
this.zi.da.e(this.ie);
this.rz(false);
}
break;
case "TransitionProgress":
this.zm.c(this.ju, this.zl, this.zj);
if (this.d7(this.cw)) {
return;
}
if (this.ju == 1) {
this.zj.y();
this.abl(this.zj, this.zi);
if (this.g2) {
this.g2 = false;
this.pc();
this.dd.r = truncate(this.jc());
this.dd.b = this.de;
}
if (this.g5) {
this.g5 = false;
this.pc();
this.dd.r = truncate(this.jc());
this.dd.b = this.de;
this.q7();
}
this.qv();
}
else {
this.abl(this.zm, this.zi);
}
if (this.dc != null) {
this.dc.r0(this);
}
break;
case RadialBase.$$p[8]:
this.rz(false);
this.qs();
break;
case "VisibilityProxy":
if (EnumUtil.getEnumValue(Visibility_$type, c) != 0 && EnumUtil.getEnumValue(Visibility_$type, d) == 0) {
this.zi.da.e(this.ie);
}
break;
case RadialBase.$$p[10]:
this.zw = this.z4();
this.rz(false);
break;
case RadialBase.$$p[9]:
this.zv = this.z3();
this.rz(false);
break;
}
};
RadialBase.prototype.z4 = function () {
return this.z1;
};
RadialBase.prototype.z3 = function () {
return this.z0;
};
RadialBase.prototype.zy = function (a) {
if (typeCast(NumericRadiusAxis.$, a) !== null) {
return true;
}
return false;
};
RadialBase.prototype.zx = function (a) {
if (typeCast(CategoryAngleAxis.$, a) !== null) {
return true;
}
return false;
};
RadialBase.prototype.kr = function (a) {
var b = this.j7(a);
var c = false;
if (this.za != null && this.za.dj) {
var d = this.za;
var e = d.hasOthersCategory && b == this.za.o5 - 1;
c = e;
}
if (c) {
return this.za.r5(true);
}
return b >= 0 && this.dp != null && b < this.dp.count ? this.dp.item(b) : null;
};
RadialBase.prototype.z8 = function (a) {
var b = this.cw.ca;
var c = this.cw.b9;
var d = this.cw.getEffectiveViewport();
if (this.za != null && !b.isEmpty && !c.isEmpty && this.zh != null) {
var e = this.zh.c(a, b, c, d);
if (e < 0) {
e += Math.PI * 2;
}
if (e > Math.PI * 2) {
e -= Math.PI * 2;
}
return e;
}
return NaN;
};
RadialBase.prototype.it = function (a) {
var b = this.cw.ca;
var c = this.cw.b9;
var d = this.getEffectiveViewport1(this.cw);
var e = -1;
if (this.za != null && !b.isEmpty && !c.isEmpty && this.zh != null) {
var f = this.zh.c(a, b, c, d);
if (f < 0) {
f += Math.PI * 2;
}
if (f > Math.PI * 2) {
f -= Math.PI * 2;
}
var g = this.za.getUnscaledAngle(f);
if (this.za.categoryMode != 0) {
g -= 0.5;
}
e = g;
}
return e;
};
RadialBase.prototype.z9 = function (a, b, c, d) {
return this.za.qt(a, b, c, d);
};
RadialBase.prototype.j7 = function (a) {
var b = truncate(Math.round(this.it(a)));
var c = false;
if (this.za != null && this.za.dj) {
var d = this.za;
var e = d.hasOthersCategory && b == this.za.o5 - 1;
c = e;
}
if (c) {
var f = this.za;
return this.za.o5 - 1;
}
if (this.dp != null && b == this.dp.count) {
b = 0;
}
return b;
};
RadialBase.prototype.ge = function (a) {
return false;
};
RadialBase.prototype.zk = function () {
var a = this.zj;
if (this.d4()) {
if (this.dd.g) {
this.dd.t();
}
a = this.zm;
}
return a;
};
RadialBase.prototype.qh = function () {
_super.prototype.qh.call(this);
if (this.za != null) {
this.za.k3(false);
}
if (this.zg != null) {
this.zg.k3(false);
}
};
RadialBase.prototype.hf = function (a, b, c) {
var d = true;
var e = c;
if (!_super.prototype.hf.call(this, a, b, c) || !c.r() || b.isEmpty || a.isEmpty || this.za == null || this.za.itemsSource == null || this.zg == null || this.zh == null || this.dp == null || this.za.b0 == null || this.zg.b0 == null || this.zg.pr == this.zg.pq) {
e.da.b = 0;
d = false;
}
return d;
};
RadialBase.prototype.zd = function () {
return 1;
};
RadialBase.prototype.aac = function () {
return Math.max(0, 0.5 * this.zg.sa);
};
RadialBase.prototype.go = function () {
return this.z2;
};
RadialBase.prototype.gp = function () {
return true;
};
RadialBase.prototype.r0 = function (a) {
_super.prototype.r0.call(this, a);
this.zi.da.e(this.ie);
if (this.d7(this.cw)) {
this.zj.ab();
this.zm.ab();
this.zl.ab();
return;
}
if (this.gs) {
if (this.d4()) {
if (this.dd.g) {
this.dd.t();
}
this.abl(this.zm, this.zi);
}
else {
this.abl(this.zj, this.zi);
}
return;
}
if (this.gg(a)) {
var b = this.zl;
if (this.d4()) {
if (this.dd.g) {
this.dd.t();
}
this.zl = this.zm;
this.zm = b;
}
else {
this.zl = this.zj;
this.zj = b;
}
var c = false;
this.abi(this.zj, this.zi);
if (this.g4) {
this.dd.w();
this.dd.r = truncate(this.jd());
this.dd.b = this.df != null ? this.df : this.de;
if (this.g5) {
var d = this.zm;
this.zm = this.zl;
this.zl = d;
c = true;
}
this.zf.x(this, this.zl, this.zj, this.isVertical, this.za, this.zg, this.ze, this.zd(), this.c6, this.c5(), runOn(this, this.aac), this.zi.b9);
if (this.g5) {
var e = this.zm;
this.zm = this.zl;
this.zl = e;
}
this.g5 = false;
}
if (this.g7) {
this.dd.w();
this.dd.r = truncate(this.je());
this.dd.b = this.dg != null ? this.dg : this.de;
if (this.g2) {
var f = this.zm;
this.zm = this.zl;
this.zl = f;
c = true;
}
this.zf.x(this, this.zl, this.zj, this.isVertical, this.za, this.zg, this.ze, this.zd(), this.c6, this.c5(), runOn(this, this.aac), this.zi.b9);
var g = this.zj;
this.zj = this.zl;
this.zl = g;
if (this.g2) {
var h = this.zm;
this.zm = this.zl;
this.zl = h;
}
this.g2 = false;
}
this.eb = false;
if (!c) {
this.o7();
}
this.sg();
if (this.g4) {
this.g3 = false;
this.g2 = true;
}
if (this.g7) {
this.g6 = false;
this.g5 = true;
}
}
else {
this.abi(this.zj, this.zi);
this.abl(this.zj, this.zi);
}
};
RadialBase.prototype.aah = function () {
var e_1, _a;
if (this.bo != null) {
var a = this.bo;
return a.aah();
}
var b = 0;
try {
for (var _b = __values(fromEnum(this.dc.series)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
if (c == this || this.bo == c) {
return b;
}
var d = typeCast(RadialBase.$, c);
if (d != null && d.za == this.za && d.preferredCategoryMode(d.za) == 2) {
b++;
}
}
}
catch (e_1_1) {
e_1 = { error: e_1_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_1)
throw e_1.error;
}
}
return -1;
};
RadialBase.prototype.ak = function (a, b) {
var c = new List$1(ChartSelection.$, 0);
this.qa(a, c, b);
return c.toArray();
};
RadialBase.prototype.qa = function (a, b, c) {
var _this = this;
var d = this.cw.ca;
var e = this.cw.b9;
var f = this.cw.getEffectiveViewport();
var g, h;
var i = this.zh.f(this.dc.xs(a), d, e, f, g, h);
g = i.p4;
h = i.p5;
if (g == -1 || h == -1) {
return;
}
var j = h - g + 1;
if (g > h) {
j = this.za.o6 - g + h + 1;
}
if (j > 0 && (c == 7 || c == 6)) {
b.add(((function () {
var $ret = new ChartSelection();
$ret.series = _this;
return $ret;
})()));
return;
}
var _loop_1 = function (k) {
var l = (k + g) % (this_1.za.o6);
if (c == 2 || c == 1) {
b.add(((function () {
var $ret = new ChartSelection();
$ret.item = _this.za.oh.item(l);
return $ret;
})()));
}
else {
b.add(((function () {
var $ret = new ChartSelection();
$ret.item = _this.za.oh.item(l);
$ret.series = _this;
return $ret;
})()));
}
};
var this_1 = this;
for (var k = 0; k < j; k++) {
_loop_1(k);
}
};
RadialBase.$t = markType(RadialBase, 'RadialBase', MarkerSeries.$, [IHasCategoryModePreference_$type]);
RadialBase.$$p = markDep(DependencyProperty, PropertyMetadata, RadialBase, 'raisePropertyChanged', ['AngleAxis:za:abm', [CategoryAngleAxis.$, null], 'AutoCalloutLabelPrecision:aad:abn', [1, -1], 'AutoCalloutLabelValueSeparator:aam:abo', [2, " - "], 'AutoCalloutOthersLabelFormat:aao:abp', [2, null], 'AutoCalloutOthersLabelFormatSpecifiers:yx:abq', [Array_$type, null], 'AutoCalloutPercentagePrecision:aae:abr', [1, 2], 'AutoCalloutRadialLabelMode:zn:abs', [RadialLabelMode_$type, enumGetBox(RadialLabelMode_$type, 0)], 'CategoryCollisionMode:zb:abt', [CategoryCollisionMode_$type, enumGetBox(CategoryCollisionMode_$type, 1)], 'ClipSeriesToBounds:zz:abu', [0, false], 'IsCustomRadialMarkerStyleAllowed:z0:abv', [0, false], 'IsCustomRadialStyleAllowed:z1:abw', [0, false], 'IsTransitionInEnabled:z2:abx', [0, false], 'LegendProportionalRadialLabelFormat:aa1:aby', [2, null], 'LegendProportionalRadialLabelFormatSpecifiers:yz:abz', [Array_$type, null], 'LegendRadialLabelMode:zo:ab0', [RadialLabelMode_$type, enumGetBox(RadialLabelMode_$type, 0)], 'OthersLegendProportionalRadialLabelFormat:aa5:ab1', [2, null], 'OthersLegendProportionalRadialLabelFormatSpecifiers:y0:ab2', [Array_$type, null], 'OthersProportionalRadialLabelFormat:aa8:ab3', [2, null], 'OthersProportionalRadialLabelFormatSpecifiers:y1:ab4', [Array_$type, null], 'ProportionalRadialLabelFormat:abb:ab5', [2, null], 'ProportionalRadialLabelFormatSpecifiers:y2:ab6', [Array_$type, null], 'TransitionInMode:ze:ab7', [CategoryTransitionInMode_$type, enumGetBox(CategoryTransitionInMode_$type, 0)], 'ValueAxis:zg:ab8', [NumericRadiusAxis.$, null]]);
return RadialBase;
}(MarkerSeries));
export { RadialBase };
/**
* @hidden
*/
var RadialBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(RadialBaseView, _super);
function RadialBaseView(a) {
var _this = _super.call(this, a) || this;
_this.da = null;
_this.c9 = null;
_this.db = null;
_this.dc = 0;
_this.dd = null;
_this.c9 = a;
_this.db = new Pool$1(Marker.$);
_this.c0(_this.db);
return _this;
}
RadialBaseView.prototype.cw = function (a) {
this.db.c(a);
};
RadialBaseView.$t = markType(RadialBaseView, 'RadialBaseView', MarkerSeriesView.$);
return RadialBaseView;
}(MarkerSeriesView));
export { RadialBaseView };