igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,180 lines (1,179 loc) • 40.4 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 { 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 { OthersCategoryContext } from "./OthersCategoryContext";
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
*/
export let RadialBucketCalculator = /*@__PURE__*/ (() => {
class RadialBucketCalculator extends Base {
constructor(a) {
super();
this.a = null;
this.c = 0;
this.d = 0;
this.b = 0;
this.a = a;
}
getBucket(a) {
throw new NotImplementedException(0);
}
getBucketWithoutUnknowns(a) {
return this.getBucket(a);
}
getErrorBucket(a, b) {
return NaN;
}
getBucketInfo(a, b, c, d) {
a = this.c;
b = this.d;
c = this.b;
d = this.a.c0.id;
return {
p0: a,
p1: b,
p2: c,
p3: d
};
}
e(a) {
let b = this.a.b2;
let c = this.a.b1;
let d = this.a.getEffectiveViewport();
let e = this.a.c0.y1;
if (b.isEmpty || c.isEmpty || e == null || this.a.c0.dp == null || this.a.c0.dp.count == 0) {
this.b = 0;
return;
}
let f = Math.floor(e.m9(c, d, b));
let g = Math.ceil(e.m8(c, d, b));
if (e.ch) {
g = Math.ceil(e.m9(c, d, b));
f = Math.floor(e.m8(c, d, b));
}
if (g < f) {
g = e.lj + g;
}
let h = this.a.c0.y7;
let i = h != null ? h.n7 : 0.75;
let j = Math.min(c.width, c.height) * 0.5 * (i) * 2 * Math.PI;
let 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.cl) {
this.b = 1;
this.c = truncate(Math.max(0, Math.floor(f / this.b) - 1));
this.d = truncate(Math.ceil(g / this.b));
}
}
cacheValues() {
}
unCacheValues() {
}
}
RadialBucketCalculator.$t = /*@__PURE__*/ markType(RadialBucketCalculator, 'RadialBucketCalculator', Base.$, [IBucketizer_$type]);
return RadialBucketCalculator;
})();
/**
* @hidden
*/
export let RadialBase = /*@__PURE__*/ (() => {
class RadialBase extends MarkerSeries {
q1(a) {
super.q1(a);
this.zb = a;
}
constructor() {
super();
this.zi = null;
this.zp = false;
this.zo = false;
this.zm = null;
this.zn = null;
this.assigningRadialStyle = null;
this.assigningRadialMarkerStyle = null;
this.yu = null;
this.yy = null;
this.yv = null;
this.yx = null;
this.yw = null;
this.y8 = new OthersCategoryContext();
this.ze = new RadialFrame(4);
this.zf = new RadialFrame(4);
this.zc = new RadialFrame(4);
this.za = null;
this.y6 = null;
this.y6 = new CategoryTransitionSourceFramePreparer();
this.zi = new RadialSeriesRenderManager();
}
aba() {
if (this.dd.g) {
this.dd.t();
}
}
get categoryAxis() {
return this.y1;
}
a0() {
return this.y1;
}
yp(a, b) {
return null;
}
ps(a) {
if (a == this.y9) {
if (this.fi) {
this.ba.a$x(this, a, this.y1.lk - 1);
}
return;
}
super.ps(a);
}
ef(a) {
if (a == this.y9 && this.y1 != null && this.y1.cl && this.y1.hasOthersCategory) {
return true;
}
return super.ef(a);
}
pq(a) {
if (a == this.y9) {
if (this.fi) {
this.ba.a$an(this, a, this.dp.count - 1);
}
return;
}
super.pq(a);
}
ec(a, b, c, d, e) {
if (!this.hasMarkers) {
return false;
}
let f = this.y1;
let g = new ScalerParams(1, this.dc.v5, this.wu, f.ch);
g.c = this.getEffectiveViewport1(this.cw);
let h = this.y7;
let i = new ScalerParams(1, this.dc.v5, this.wu, h.ch);
i.c = this.getEffectiveViewport1(this.cw);
let j = this.z7;
a.clear();
this.w8.cn((k) => {
if (k._visibility == 0) {
let l = new SeriesPointOfInterest();
let m = k.n;
let n = k.o;
if (m < this.wu.left || m > this.wu.right || n < this.wu.top || n > this.wu.bottom) {
return;
}
let o = null;
if (k.content != null) {
o = k.content.item;
}
let p;
let q;
let r = this.za.h(m, n, this.cw.b2, this.cw.b1, this.cw.getEffectiveViewport(), p, q);
p = r.p5;
q = r.p6;
l.d = p;
l.e = q;
let s = l.e;
let t = k.ak;
l.f = this.aa7(s, o, t, d, j, c, b, false);
l.b = k.content;
l.g = this.vi;
l.c = k.ak;
if (this.g9) {
l.g = this.vp(k.ak);
}
l.a = this.ar(k.ak, k.al);
a.add(l);
}
});
return true;
}
ks(a, b) {
let c = null;
if (this.dp != null) {
if (a >= 0 && a < this.dp.count) {
c = this.dp.item(a);
}
if (this.y1 != null && this.y1.cl && a == this.y1.othersIndex) {
c = this.y9;
}
}
let d = NaN;
if (c != null) {
d = this.jc(c);
}
let e = this.aa7(d, c, a, this.z6 >= 0 ? this.z6 : 5, this.z7, false, false, b);
if (e != null) {
return e;
}
return super.ks(a, b);
}
aa7(a, b, c, d, e, f, g, h) {
let i = null;
let j = (b == this.y9);
let k = this.zg;
if (h) {
k = this.zh;
}
if (k == 0) {
if (h) {
k = 5;
}
else {
k = 6;
}
}
if ((h && ((this.yv != null) || (j && this.yw != null))) || (!h && ((this.yy != null) || (j && this.yx != null)))) {
let l = this.z3(a, b, c, d, f);
let m = this.z4(a, b, c, e, f);
let n = this.aao(c);
let o = ((() => {
let $ret = new ProportionalRadialLabelContext();
$ret.value = l;
$ret.percent = m;
$ret.label = n;
$ret.item = b;
return $ret;
})());
let p = null;
if (j) {
if (h) {
p = this.yw;
}
else {
p = this.yx;
}
if (p == null) {
if (h) {
p = this.yv;
}
else {
p = this.yy;
}
}
}
else {
if (h) {
p = this.yv;
}
else {
p = this.yy;
}
}
i = p.i(o);
}
else if (k != 1) {
switch (k) {
case 2:
i = this.aap(a, b, c, d, f);
break;
case 3:
i = this.aaq(a, b, c, e, f);
break;
case 4:
{
let q = this.aap(a, b, c, d, f);
let r = this.aaq(a, b, c, e, f);
i = q + this.aaf + r;
}
break;
case 5:
i = this.aao(c);
break;
case 6:
{
let s = this.aap(a, b, c, d, f);
let t = this.aao(c);
i = t + this.aaf + s;
}
break;
case 7:
{
let u = this.aaq(a, b, c, e, f);
let v = this.aao(c);
i = v + this.aaf + u;
}
break;
case 8:
{
let w = this.aap(a, b, c, d, f);
let x = this.aaq(a, b, c, e, f);
let y = this.aao(c);
i = y + this.aaf + w + this.aaf + x;
}
break;
}
}
else {
if (g) {
i = this.aap(a, b, c, d, f);
}
else {
i = this.aao(c);
}
}
return i;
}
aao(a) {
let b = this.y1;
let c = this.au(true);
if (this.y1 != null && this.y1.cl && this.y1.hasOthersCategory && a == this.y1.othersIndex) {
if (this.yu != null) {
c = this.yu;
}
}
if (c != null) {
let d = super.ks(a, false);
if (d != null) {
return c.i(d);
}
else {
return null;
}
}
else {
return b.gf(a);
}
}
aap(a, b, c, d, e) {
let f = a;
f = this.aab(c, f);
if (e) {
return this.aad(f, d);
}
else {
a = this.jc(b);
if (!isNaN_(a)) {
return this.aad(a, d);
}
else {
return this.aad(f, d);
}
}
}
z3(a, b, c, d, e) {
let f = a;
f = this.aab(c, f);
if (e) {
return f;
}
else {
a = this.jc(b);
if (!isNaN_(a)) {
return a;
}
else {
return f;
}
}
}
aaq(a, b, c, d, e) {
if (this.y1 == null || !this.y1.cl) {
return this.aap(a, b, c, d, e);
}
let f = this.y1.oa(c);
if (e) {
return this.aad(f, d) + "%";
}
else {
a = this.y1.oa(c);
if (!isNaN_(a)) {
return this.aad(a, d) + "%";
}
else {
return this.aad(f, d) + "%";
}
}
}
z4(a, b, c, d, e) {
if (this.y1 == null || !this.y1.cl) {
return this.z3(a, b, c, d, e);
}
let f = this.y1.oa(c);
if (e) {
return f;
}
else {
a = this.y1.oa(c);
if (!isNaN_(a)) {
return a;
}
else {
return f;
}
}
}
aab(a, b) {
return b;
}
aad(a, b) {
let c;
if (b >= 0) {
c = round10N(a, b);
}
else {
c = a;
}
let d = this.au(false);
if (d != null) {
let e = d;
return e.i(c);
}
else {
return c.toString();
}
}
get_ft() {
return true;
}
get_fe() {
return true;
}
zj(a, b, c) {
let 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;
}
z0() {
return false;
}
ht() {
let a = super.ht();
if (this.z0()) {
let b = ((() => {
let $ret = new SeriesLayerPropertyOverlay();
$ret.r = true;
$ret.ad = "DashArray";
$ret.p = true;
$ret.x = ((() => {
let $ret = new DoubleCollection();
$ret.add(5);
$ret.add(5);
return $ret;
})());
$ret.q = true;
return $ret;
})());
a.add(b);
}
if (!this.z0()) {
let c = ((() => {
let $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.r2));
a.add(c);
}
if (!this.z0()) {
let d = ((() => {
let $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.r2));
a.add(d);
}
let e = ((() => {
let $ret = new SeriesLayerPropertyOverlay();
$ret.p = true;
$ret.ad = "IsTransitionInEnabled";
$ret.x = true;
$ret.q = true;
return $ret;
})());
a.add(e);
let f = ((() => {
let $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;
}
kv() {
if (this.d4()) {
return this.bo.zf;
}
else {
return this.bo.zc;
}
}
zk(a, b, c) {
if (this.dp == null) {
return null;
}
let d = this.zb.c1.c;
let e = this.zb.c1.d;
let f = this.zb.c1.b;
let g = this.zd();
let h = this.dp.count;
let i = this.y1;
let j = -1;
let k = -1;
let l = this.j3(b);
if (isNaN_(b.x) || isNaN_(b.y)) {
if (a != null && this.dp != null) {
if (a == this.y9) {
l = this.y1.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;
}
let m = new HighlightingInfo();
m.i = this;
m.g = j;
m.f = k;
return m;
}
zl(a, b, c) {
if (this.dp == null) {
return null;
}
let d = this.zb.c1.c;
let e = this.zb.c1.d;
let f = this.zb.c1.b;
let g = this.zd();
let h = this.dp.count;
let i = this.y1;
let j = -1;
let k = -1;
let l = this.j3(b);
if (isNaN_(b.x) || isNaN_(b.y)) {
if (a != null && this.dp != null) {
if (a == this.y9) {
l = this.y1.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;
}
let m = new HighlightingInfo();
m.d = true;
m.i = this;
m.g = j;
m.f = k;
return m;
}
dh(a, b, c) {
if (this.ee && this.fz(this.by) && !c) {
let d = this.zk(a, b, this.zm);
this.zm = d;
return d;
}
else {
let e = this.zj(a, b, this.zm);
this.zm = e;
return e;
}
}
di(a, b, c) {
if (this.fz(this.by) && !c) {
let d = this.zl(a, b, this.zn);
this.zn = d;
return d;
}
else {
let e = this.zj(a, b, this.zn);
e.d = true;
this.zn = e;
return e;
}
}
zz() {
return (this.assigningRadialStyle != null && this.zp) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1);
}
zy() {
return (this.assigningRadialMarkerStyle != null && this.zo) || this.d3 || (this.by != 1) || (this.cq != 1) || (this.cp != 1);
}
abd(a) {
if (this.assigningRadialStyle != null && this.zp) {
this.assigningRadialStyle(this, a);
}
}
abc(a) {
if (this.assigningRadialMarkerStyle != null && this.zo) {
this.assigningRadialMarkerStyle(this, a);
}
}
z8(a) {
return a.c1.b;
}
z9(a) {
return a.c1.c;
}
ai() {
return [this.y1, this.y7];
}
st(a, b) {
this.zb.c1.e(this.id);
this.rs(false);
}
ss(a, b) {
if (this.g1 && this.jq < 0.05 && (this.dc == null || !this.dc.fm())) {
this.g2 = true;
this.g5 = false;
this.gk = false;
}
this.zb.c1.e(this.id);
this.rs(false);
}
ra(a, b, c, d) {
super.ra(a, b, c, d);
switch (b) {
case RadialBase.$$p[6]:
this.rs(false);
break;
case RadialBase.$$p[14]:
this.pe();
this.rs(false);
break;
case "SeriesViewer":
if (c != null && d == null) {
if (this.y1 != null) {
this.y1.b0(this);
}
if (this.y7 != null) {
this.y7.b0(this);
}
}
if (c == null && d != null) {
if (this.y1 != null) {
this.y1.ct(this);
}
if (this.y7 != null) {
this.y7.ct(this);
}
}
this.zb.c1.e(this.id);
this.rs(false);
break;
case RadialBase.$$p[0]:
if (this.y1 != null && this.y7 != null) {
this.za = new RadialAxes(this.y7, this.y1);
}
if (c != null) {
c.b0(this);
}
if (d != null) {
d.ct(this);
}
this.zb.c1.e(this.id);
this.rs(false);
break;
case RadialBase.$$p[22]:
if (this.y1 != null && this.y7 != null) {
this.za = new RadialAxes(this.y7, this.y1);
}
if (c != null) {
c.b0(this);
}
if (d != null) {
d.ct(this);
}
this.zb.c1.e(this.id);
if (this.y7 == null || !this.y7.c1()) {
this.rs(false);
}
break;
case RadialBase.$$p[3]:
case RadialBase.$$p[4]:
if (this.aah != null) {
this.yu = new BindingFormatter();
this.yu.j = this.aah;
this.yu.d = this.yo;
}
else {
this.yu = null;
}
break;
case RadialBase.$$p[19]:
case RadialBase.$$p[20]:
if (this.aa4 != null) {
this.yy = new BindingFormatter();
this.yy.j = this.aa4;
this.yy.d = this.yt;
}
else {
this.yy = null;
}
break;
case RadialBase.$$p[12]:
case RadialBase.$$p[13]:
if (this.aau != null) {
this.yv = new BindingFormatter();
this.yv.j = this.aau;
this.yv.d = this.yq;
}
else {
this.yv = null;
}
break;
case RadialBase.$$p[17]:
case RadialBase.$$p[18]:
if (this.aa4 != null) {
this.yx = new BindingFormatter();
this.yx.j = this.aa1;
this.yx.d = this.ys;
}
else {
this.yx = null;
}
break;
case RadialBase.$$p[15]:
case RadialBase.$$p[16]:
if (this.aau != null) {
this.yw = new BindingFormatter();
this.yw.j = this.aay;
this.yw.d = this.yr;
}
else {
this.yw = null;
}
break;
case "SyncLink":
if (this.c4 != null && this.dc != null) {
this.zb.c1.e(this.id);
this.rs(false);
}
break;
case "TransitionProgress":
this.zf.c(this.jq, this.ze, this.zc);
if (this.d6(this.cw)) {
return;
}
if (this.jq == 1) {
this.zc.y();
this.abe(this.zc, this.zb);
if (this.g1) {
this.g1 = false;
this.o6();
this.dd.r = truncate(this.i9());
this.dd.b = this.de;
}
if (this.g4) {
this.g4 = false;
this.o6();
this.dd.r = truncate(this.i9());
this.dd.b = this.de;
this.q0();
}
this.qo();
}
else {
this.abe(this.zf, this.zb);
}
if (this.dc != null) {
this.dc.qp(this);
}
break;
case RadialBase.$$p[8]:
this.rs(false);
this.ql();
break;
case "VisibilityProxy":
if (EnumUtil.getEnumValue(Visibility_$type, c) != 0 && EnumUtil.getEnumValue(Visibility_$type, d) == 0) {
this.zb.c1.e(this.id);
}
break;
case RadialBase.$$p[10]:
this.zp = this.zx();
this.rs(false);
break;
case RadialBase.$$p[9]:
this.zo = this.zw();
this.rs(false);
break;
}
}
zx() {
return this.zu;
}
zw() {
return this.zt;
}
zr(a) {
if (typeCast(NumericRadiusAxis.$, a) !== null) {
return true;
}
return false;
}
zq(a) {
if (typeCast(CategoryAngleAxis.$, a) !== null) {
return true;
}
return false;
}
get_y9() {
return this.y8;
}
get y9() {
return this.get_y9();
}
kn(a) {
let b = this.j3(a);
let c = false;
if (this.y1 != null && this.y1.cl) {
let d = this.y1;
let e = d.hasOthersCategory && b == this.y1.lj - 1;
c = e;
}
if (c) {
let f = this.y1;
return this.y9;
}
return b >= 0 && this.dp != null && b < this.dp.count ? this.dp.item(b) : null;
}
z1(a) {
let b = this.cw.b2;
let c = this.cw.b1;
let d = this.cw.getEffectiveViewport();
if (this.y1 != null && !b.isEmpty && !c.isEmpty && this.za != null) {
let e = this.za.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;
}
ir(a) {
let b = this.cw.b2;
let c = this.cw.b1;
let d = this.getEffectiveViewport1(this.cw);
let e = -1;
if (this.y1 != null && !b.isEmpty && !c.isEmpty && this.za != null) {
let f = this.za.c(a, b, c, d);
if (f < 0) {
f += Math.PI * 2;
}
if (f > Math.PI * 2) {
f -= Math.PI * 2;
}
let g = this.y1.getUnscaledAngle(f);
if (this.y1.categoryMode != 0) {
g -= 0.5;
}
e = g;
}
return e;
}
z2(a, b, c, d) {
return this.y1.m7(a, b, c, d);
}
j3(a) {
let b = truncate(Math.round(this.ir(a)));
let c = false;
if (this.y1 != null && this.y1.cl) {
let d = this.y1;
let e = d.hasOthersCategory && b == this.y1.lj - 1;
c = e;
}
if (c) {
let f = this.y1;
return this.y1.lj - 1;
}
if (this.dp != null && b == this.dp.count) {
b = 0;
}
return b;
}
gd(a) {
return false;
}
zd() {
let a = this.zc;
if (this.d4()) {
if (this.dd.g) {
this.dd.t();
}
a = this.zf;
}
return a;
}
qb() {
super.qb();
if (this.y1 != null) {
this.y1.ib(false);
}
if (this.y7 != null) {
this.y7.ib(false);
}
}
he(a, b, c) {
let d = true;
let e = c;
if (!super.he(a, b, c) || !c.p() || b.isEmpty || a.isEmpty || this.y1 == null || this.y1.itemsSource == null || this.y7 == null || this.za == null || this.dp == null || this.y1.bi == null || this.y7.bi == null || this.y7.l4 == this.y7.l3) {
e.c1.b = 0;
d = false;
}
return d;
}
y4() {
return 1;
}
z5() {
return Math.max(0, 0.5 * this.y7.n6);
}
gn() {
return this.zv;
}
go() {
return true;
}
rt(a) {
super.rt(a);
this.zb.c1.e(this.id);
if (this.d6(this.cw)) {
this.zc.ab();
this.zf.ab();
this.ze.ab();
return;
}
if (this.gr) {
if (this.d4()) {
if (this.dd.g) {
this.dd.t();
}
this.abe(this.zf, this.zb);
}
else {
this.abe(this.zc, this.zb);
}
return;
}
if (this.gf(a)) {
let b = this.ze;
if (this.d4()) {
if (this.dd.g) {
this.dd.t();
}
this.ze = this.zf;
this.zf = b;
}
else {
this.ze = this.zc;
this.zc = b;
}
let c = false;
this.abb(this.zc, this.zb);
if (this.g3) {
this.dd.w();
this.dd.r = truncate(this.ja());
this.dd.b = this.df != null ? this.df : this.de;
if (this.g4) {
let d = this.zf;
this.zf = this.ze;
this.ze = d;
c = true;
}
this.y6.x(this, this.ze, this.zc, this.isVertical, this.y1, this.y7, this.y5, this.y4(), this.c6, this.c5(), runOn(this, this.z5), this.zb.b1);
if (this.g4) {
let e = this.zf;
this.zf = this.ze;
this.ze = e;
}
this.g4 = false;
}
if (this.g6) {
this.dd.w();
this.dd.r = truncate(this.jb());
this.dd.b = this.dg != null ? this.dg : this.de;
if (this.g1) {
let f = this.zf;
this.zf = this.ze;
this.ze = f;
c = true;
}
this.y6.x(this, this.ze, this.zc, this.isVertical, this.y1, this.y7, this.y5, this.y4(), this.c6, this.c5(), runOn(this, this.z5), this.zb.b1);
let g = this.zc;
this.zc = this.ze;
this.ze = g;
if (this.g1) {
let h = this.zf;
this.zf = this.ze;
this.ze = h;
}
this.g1 = false;
}
this.ea = false;
if (!c) {
this.o1();
}
this.r9();
if (this.g3) {
this.g2 = false;
this.g1 = true;
}
if (this.g6) {
this.g5 = false;
this.g4 = true;
}
}
else {
this.abb(this.zc, this.zb);
this.abe(this.zc, this.zb);
}
}
aaa() {
if (this.bo != null) {
let a = this.bo;
return a.aaa();
}
let b = 0;
for (let c of fromEnum(this.dc.series)) {
if (c == this || this.bo == c) {
return b;
}
let d = typeCast(RadialBase.$, c);
if (d != null && d.y1 == this.y1 && d.preferredCategoryMode(d.y1) == 2) {
b++;
}
}
return -1;
}
ak(a, b) {
let c = new List$1(ChartSelection.$, 0);
this.p4(a, c, b);
return c.toArray();
}
p4(a, b, c) {
let d = this.cw.b2;
let e = this.cw.b1;
let f = this.cw.getEffectiveViewport();
let g, h;
let i = this.za.f(this.dc.wa(a), d, e, f, g, h);
g = i.p4;
h = i.p5;
if (g == -1 || h == -1) {
return;
}
let j = h - g + 1;
if (g > h) {
j = this.y1.lk - g + h + 1;
}
if (j > 0 && (c == 7 || c == 6)) {
b.add(((() => {
let $ret = new ChartSelection();
$ret.series = this;
return $ret;
})()));
return;
}
for (let k = 0; k < j; k++) {
let l = (k + g) % (this.y1.lk);
if (c == 2 || c == 1) {
b.add(((() => {
let $ret = new ChartSelection();
$ret.item = this.y1.kv.item(l);
return $ret;
})()));
}
else {
b.add(((() => {
let $ret = new ChartSelection();
$ret.item = this.y1.kv.item(l);
$ret.series = this;
return $ret;
})()));
}
}
}
}
RadialBase.$t = /*@__PURE__*/ markType(RadialBase, 'RadialBase', MarkerSeries.$, [IHasCategoryModePreference_$type]);
RadialBase.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, RadialBase, 'raisePropertyChanged', ['AngleAxis:y1:abf', [CategoryAngleAxis.$, null], 'AutoCalloutLabelPrecision:z6:abg', [1, -1], 'AutoCalloutLabelValueSeparator:aaf:abh', [2, " - "], 'AutoCalloutOthersLabelFormat:aah:abi', [2, null], 'AutoCalloutOthersLabelFormatSpecifiers:yo:abj', [Array_$type, null], 'AutoCalloutPercentagePrecision:z7:abk', [1, 2], 'AutoCalloutRadialLabelMode:zg:abl', [RadialLabelMode_$type, /*@__PURE__*/ enumGetBox(RadialLabelMode_$type, 0)], 'CategoryCollisionMode:y2:abm', [CategoryCollisionMode_$type, /*@__PURE__*/ enumGetBox(CategoryCollisionMode_$type, 1)], 'ClipSeriesToBounds:zs:abn', [0, false], 'IsCustomRadialMarkerStyleAllowed:zt:abo', [0, false], 'IsCustomRadialStyleAllowed:zu:abp', [0, false], 'IsTransitionInEnabled:zv:abq', [0, false], 'LegendProportionalRadialLabelFormat:aau:abr', [2, null], 'LegendProportionalRadialLabelFormatSpecifiers:yq:abs', [Array_$type, null], 'LegendRadialLabelMode:zh:abt', [RadialLabelMode_$type, /*@__PURE__*/ enumGetBox(RadialLabelMode_$type, 0)], 'OthersLegendProportionalRadialLabelFormat:aay:abu', [2, null], 'OthersLegendProportionalRadialLabelFormatSpecifiers:yr:abv', [Array_$type, null], 'OthersProportionalRadialLabelFormat:aa1:abw', [2, null], 'OthersProportionalRadialLabelFormatSpecifiers:ys:abx', [Array_$type, null], 'ProportionalRadialLabelFormat:aa4:aby', [2, null], 'ProportionalRadialLabelFormatSpecifiers:yt:abz', [Array_$type, null], 'TransitionInMode:y5:ab0', [CategoryTransitionInMode_$type, /*@__PURE__*/ enumGetBox(CategoryTransitionInMode_$type, 0)], 'ValueAxis:y7:ab1', [NumericRadiusAxis.$, null]]);
return RadialBase;
})();
/**
* @hidden
*/
export let RadialBaseView = /*@__PURE__*/ (() => {
class RadialBaseView extends MarkerSeriesView {
constructor(a) {
super(a);
this.c1 = null;
this.c0 = null;
this.c2 = null;
this.c3 = 0;
this.c4 = null;
this.c0 = a;
this.c2 = new Pool$1(Marker.$);
this.cr(this.c2);
}
cn(a) {
this.c2.c(a);
}
}
RadialBaseView.$t = /*@__PURE__*/ markType(RadialBaseView, 'RadialBaseView', MarkerSeriesView.$);
return RadialBaseView;
})();