igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
1,078 lines (1,077 loc) • 40 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 { RadialBucketCalculator } from "./RadialBucketCalculator";
import { markType, typeCast, Point_$type, runOn, delegateCombine, enumGetBox, fromEnum, markDep } from "igniteui-angular-core";
import { isNaN_, intDivide, isInfinity } from "igniteui-angular-core";
import { RadialBase } from "./RadialBase";
import { CategoryLineRasterizer } from "./CategoryLineRasterizer";
import { DependencyProperty } from "igniteui-angular-core";
import { TrendLineType_$type } from "igniteui-angular-core";
import { Brush } from "igniteui-angular-core";
import { PenLineCap_$type } from "igniteui-angular-core";
import { DoubleCollection } from "igniteui-angular-core";
import { RadialFrame } from "./RadialFrame";
import { ProportionalCategoryAngleAxis } from "./ProportionalCategoryAngleAxis";
import { ScalerParams } from "./ScalerParams";
import { Rect } from "igniteui-angular-core";
import { FastItemCoalescingColumn } from "./FastItemCoalescingColumn";
import { List$1 } from "igniteui-angular-core";
import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay";
import { DataLegendSeriesValueInfo } from "igniteui-angular-core";
import { DataLegendSeriesContext } from "igniteui-angular-core";
import { AxisRange } from "./AxisRange";
import { IFastItemsSource_$type } from "igniteui-angular-core";
import { NumericAxisBase } from "./NumericAxisBase";
import { RadialBaseView } from "./RadialBaseView";
import { ChartSelection } from "./ChartSelection";
import { CollisionRect } from "igniteui-angular-core";
import { CollisionAvoider } from "./CollisionAvoider";
import { Clipper } from "igniteui-angular-core";
import { TrendResolutionParams } from "./TrendResolutionParams";
import { RadialTrendLineManager } from "./RadialTrendLineManager";
import { CategoryMarkerManager } from "./CategoryMarkerManager";
import { PropertyMetadata } from "igniteui-angular-core";
import { stringIsNullOrEmpty } from "igniteui-angular-core";
/**
* @hidden
*/
export let AnchoredRadialBucketCalculator = /*@__PURE__*/ (() => {
class AnchoredRadialBucketCalculator extends RadialBucketCalculator {
constructor(a) {
super(a);
this.f = null;
this.f = a;
}
getBucket(a) {
let b = this.f.de.acr;
let c = Math.min(a * this.b, b.count - 1);
let d = Math.min(c + this.b - 1, b.count - 1);
let e = NaN;
let f = NaN;
for (let g = c; g <= d; ++g) {
let h = b.item(g);
if (!isNaN_(e)) {
if (!isNaN_(h)) {
e = Math.min(e, h);
f = Math.max(f, h);
}
}
else {
e = h;
f = h;
}
}
if (!isNaN_(e)) {
return [0.5 * (c + d), e, f, 0];
}
return [0.5 * (c + d), NaN, NaN, 0];
}
}
AnchoredRadialBucketCalculator.$t = markType(AnchoredRadialBucketCalculator, 'AnchoredRadialBucketCalculator', RadialBucketCalculator.$);
return AnchoredRadialBucketCalculator;
})();
/**
* @hidden
*/
export let AnchoredRadialSeries = /*@__PURE__*/ (() => {
class AnchoredRadialSeries extends RadialBase {
constructor() {
super();
this.acm = null;
this.acw = false;
this.acq = null;
this.ad7 = { $type: Point_$type, x: 0, y: 0 };
this.aco = null;
this.acn = null;
this.acs = false;
this.aco = new RadialFrame(3);
this.acm = new CategoryLineRasterizer();
}
ct() {
return new AnchoredRadialSeriesView(this);
}
pe() {
super.pe();
this.zj = null;
this.zp = null;
}
mp() {
return AnchoredRadialSeries.$$p[4];
}
kz(a, b) {
let c = this.no(b);
if (c == AnchoredRadialSeries.$$p[4]) {
return this.k0(a, b, this.adg);
}
if (c == AnchoredRadialSeries.$$p[0]) {
return this.k0(a, b, this.ac8);
}
return super.kz(a, b);
}
mo(a) {
let b = this.no(a);
if (b == AnchoredRadialSeries.$$p[4]) {
return this.adg;
}
if (b == AnchoredRadialSeries.$$p[0]) {
return this.ac8;
}
return super.mo(a);
}
jk(a) {
if (this.zj.ds && this.zj.s6(a)) {
return this.aas(this.acr.count - 1, this.acr.item(this.acr.count - 1));
}
return super.jk(a);
}
k2(a) {
if (this.zj != null && this.zj.ds) {
if (a == this.zj.othersIndex) {
return this.zj.tj(true);
}
}
return super.k2(a);
}
rg(a) {
super.rg(a);
this.acl = a;
}
kj(a, b) {
return this.kk(a, b, this.zj, null, this.acr);
}
kh(a, b) {
return this.ki(a, b, this.zj, null, this.acr);
}
iw(a, b, c, d, e) {
if (this.acr == null) {
return Number.POSITIVE_INFINITY;
}
return this.ix(a, b, this.zj, d, e, this.acr.count, null);
}
jd(a, b, c) {
let d = this.getEffectiveViewport1(this.cw);
let e = this.ac2(this.zj, this.cw.ca, this.cw.b9, d);
let f = new ScalerParams(0, this.cw.ca, this.cw.b9, this.zj.dn, d);
f.c = this.dc.y9;
let g = this.acr;
if (this.acw && typeCast(FastItemCoalescingColumn.$, g) !== null && this.zj.ds) {
g = new FastItemCoalescingColumn(this.zj, g.c, false);
}
return this.jf(g, a, this.zj, f, e, null, b, c);
}
wv(a, b, c) {
if (this.zp == null || this.zj == null || this.cw == null || this.cw.ca.isEmpty || this.cw.b9.isEmpty) {
return { $type: Point_$type, x: NaN, y: NaN };
}
let d = this.getEffectiveViewport1(this.cw);
let e = new ScalerParams(0, this.cw.ca, this.cw.b9, this.zp.dn, d);
e.c = this.getEffectiveViewport1(this.cw);
let f = this.jd(a, b, c);
f = this.zp.f5(f, e);
let g = this.zq.c(a, this.cw.ca, this.cw.b9, d);
if (!b && this.zj != null) {
let h = this.kj(a, c);
let i = this.kh(a, c);
let j = this.ac2(this.zj, this.cw.ca, this.cw.b9, d);
let k = new ScalerParams(0, this.cw.ca, this.cw.b9, this.zj.dn, d);
k.c = this.dc.y9;
let l = this.iw(a, h, this.zj, k, j);
let m = this.iw(a, i, this.zj, k, j);
if (this.zj.ds) {
if (m <= l) {
j = this.ac1(i, this.zj, this.cw.ca, this.cw.b9, d);
if (isNaN_(j)) {
j = 0;
}
g = this.zj.f5(i, k) + j;
}
else {
j = this.ac1(h, this.zj, this.cw.ca, this.cw.b9, d);
if (isNaN_(j)) {
j = 0;
}
g = this.zj.f5(h, k) + j;
}
}
else {
if (m <= l) {
g = this.zj.f5(i, k) + j;
}
else {
g = this.zj.f5(h, k) + j;
}
}
}
let n = this.zq.d(g, f, this.cw.ca, this.cw.b9, this.cw.getEffectiveViewport());
let o = this.zq.e(g, f, this.cw.ca, this.cw.b9, this.cw.getEffectiveViewport());
return { $type: Point_$type, x: n, y: o };
}
gh() {
return this.highlightedItemsSource != null || this.ac8 != null;
}
hz() {
let a = super.hz();
{
let b = ((() => {
let $ret = new SeriesLayerPropertyOverlay();
$ret.ad = "ValueMemberPath";
$ret.p = true;
$ret.y = "HighlightedValueMemberPath";
$ret.q = true;
return $ret;
})());
b.valueResolving = delegateCombine(b.valueResolving, runOn(this, this.adm));
a.add(b);
}
return a;
}
adm(a, b) {
if (this.ac8 != null) {
b.value = this.ac8;
return;
}
b.value = this.adg;
}
get acr() {
return this.acq;
}
set acr(a) {
if (this.acq != a) {
let b = this.acq;
this.acq = a;
this.raisePropertyChanged("ValueColumn", b, this.acq);
}
}
getDataLegendSeriesContextAt(a, b) {
let c = new DataLegendSeriesValueInfo();
c.a = 0;
this.acw = true;
c.l = this.jd({ $type: Point_$type, x: a, y: b }, false, false);
this.acw = false;
c.q = "Value";
c.r = this.adg != null ? this.adg : "Value";
c.s = this.adc != null ? this.adc : "V:";
c.t = this.ade != null ? this.ade : "";
let d = new DataLegendSeriesContext();
d.e = ((() => {
let $ret = new List$1(DataLegendSeriesValueInfo.$, 0);
$ret.add(c);
return $ret;
})());
d.h = this.mn();
return d;
}
get ad3() {
return this.c(AnchoredRadialSeries.adq);
}
set ad3(a) {
this.h(AnchoredRadialSeries.adq, a);
}
ay(a) {
if (a != null && a == this.zj && this.acr != null && this.acr.count > 0) {
return new AxisRange(0, this.acr.count - 1);
}
if (a != null && a == this.zp && this.acr != null && this.acr.count > 0) {
return new AxisRange(this.acr.minimum, this.acr.maximum);
}
return null;
}
aas(a, b) {
if (this.ac0) {
let c = this.acr.c;
if (a < 0) {
return super.aas(a, b);
}
if (a > c.count - 1) {
if (typeCast(ProportionalCategoryAngleAxis.$, this.zj) !== null) {
let d = this.acr;
return d.f;
}
return super.aas(a, b);
}
return c.item(a);
}
else {
return super.aas(a, b);
}
}
dl(a) {
let b = super.dl(a);
this.acs = false;
if (this.zj != null && this.zj.ds) {
this.acs = true;
b = new FastItemCoalescingColumn(this.zj, b, this.ac0);
}
return b;
}
adk(a, b) {
if (this.acs) {
let c = b;
let d = c.c;
a.deregisterColumn(d);
}
else {
a.deregisterColumn(b);
}
}
rp(a, b, c, d) {
super.rp(a, b, c, d);
if (this.acl.df.g$e(a, b, c, d)) {
this.r7(false);
this.qz();
}
let e = typeCast(NumericAxisBase.$, this.zp);
switch (b) {
case AnchoredRadialSeries.$$p[2]:
case AnchoredRadialSeries.$$p[3]:
this.qt();
break;
case AnchoredRadialSeries.$$p[1]:
case RadialBase.$$p[0]:
if (this.acr != null) {
this.adk(this.dp, this.acr);
this.acr = this.dl(this.adg);
}
break;
case "FastItemsSource":
if (typeCast(IFastItemsSource_$type, c) !== null) {
this.adk(c, this.acr);
this.acr = null;
}
if (typeCast(IFastItemsSource_$type, d) !== null) {
this.acr = this.dl(this.adg);
this.acl.da.e(this.ik);
}
if (e != null && !e.ec()) {
this.acl.da.e(this.ik);
this.r7(this.gm && c != null);
}
break;
case AnchoredRadialSeries.$$p[4]:
if (this.dp != null) {
this.adk(this.dp, this.acr);
this.acr = this.dl(this.adg);
}
break;
case "ValueColumn":
if (e != null && !e.ec()) {
this.acl.da.e(this.ik);
this.r7(this.gm && this.d9);
}
break;
case "TrendLineBrush":
this.rv(b);
break;
case "TrendLineType":
this.qz();
break;
}
}
pn(a, b, c, d) {
super.pn(a, b, c, d);
switch (a) {
case 4:
case 1:
case 0:
this.acl.da.e(this.ik);
break;
}
this.acl.df.g$i(a, b, c, d);
if (this.acl.aa.count > 0) {
for (let e of fromEnum(this.acl.aa)) {
e.g$i(a, b, c, d);
}
}
switch (a) {
case 4:
if (this.zp != null && !this.zp.ec()) {
this.r7(true);
}
break;
case 1:
if (this.zp != null && !this.zp.ec()) {
this.r7(true);
}
break;
case 0:
if (this.zp != null && !this.zp.ec()) {
this.r7(true);
}
break;
case 2:
if (this.adg != null && this.acl.da.b > 0 && this.zp != null && !this.zp.ec()) {
this.r7(true);
}
break;
case 3:
if (d == this.adg) {
if (this.zp != null && !this.zp.ec()) {
this.r7(true);
}
}
break;
}
}
hk(a, b, c) {
let d = super.hk(a, b, c);
let e = c;
if (this.dp == null || this.dp.count == 0 || this.zj == null || this.acr == null || this.zj.p7 == 0 || this.zp == null || isInfinity(this.zp.qt) || isInfinity(this.zp.qs) || e.da.b < 1) {
d = false;
}
return d;
}
getOffsetValue() {
return this.ac2(this.zj, this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw));
}
getCategoryWidth() {
return this.zj.getCategorySize(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw));
}
get_acx() {
return false;
}
get acx() {
return this.get_acx();
}
get_em() {
return true;
}
get_gb() {
return this.zp != null && this.zp.dn;
}
ac2(a, b, c, d) {
let e = 0;
let f = this.preferredCategoryMode(a);
if (f == 0 && a.categoryMode != 0) {
f = 1;
}
switch (f) {
case 0:
e = 0;
break;
case 1:
e = 0.5 * a.getCategorySize(b, c, d);
break;
case 2:
e = a.getGroupCenter(this.aar(), b, c, d);
break;
}
if (a.dn) {
e = -e;
}
return e;
}
ac1(a, b, c, d, e) {
let f = 0;
let g = this.preferredCategoryMode(b);
if (g == 0 && b.categoryMode != 0) {
g = 1;
}
switch (g) {
case 0:
f = 0;
break;
case 1:
f = 0.5 * b.rz(a, c, d, e);
break;
case 2:
f = b.ry(a, this.aar(), c, d, e);
break;
}
if (b.dn) {
f = -f;
}
return f;
}
adl(a, b, c, d) {
if (d == 0) {
this.qh(a, b, c);
return;
}
let e = this.cw.ca;
let f = this.cw.b9;
let g = this.getEffectiveViewport1(this.cw);
let h = this.dc.yz(this.xc, this.getEffectiveViewport(), e);
let i = this.zp.pt(f, e, g, h);
let j = this.zj != null && this.zj.ds;
let k = new CollisionRect(0, this.dc.yw(a));
for (let l = 0; l < this.dp.count; l++) {
let m = typeCast(RadialBaseView.$, this.cw);
let n = m.da.getBucket(l);
let o = this.ac2(this.zj, e, f, g);
if (j) {
o = this.ac1(l, this.zj, e, f, g);
if (isNaN_(o)) {
o = 0;
}
}
n[0] = this.zj.getScaledAngle(n[0]) + o;
let p = Math.min(this.zq.b.tj(n[2]), i.maxLength);
let q = this.zq.d(n[0], p, e, f, g);
let r = this.zq.e(n[0], p, e, f, g);
if (k.containsLocation(q, r)) {
if (c == 7 || c == 6) {
b.add(((() => {
let $ret = new ChartSelection();
$ret.series = this;
return $ret;
})()));
return;
}
else if (c == 2 || c == 1) {
b.add(((() => {
let $ret = new ChartSelection();
$ret.item = this.dp.item(l);
return $ret;
})()));
}
else {
b.add(((() => {
let $ret = new ChartSelection();
$ret.item = this.dp.item(l);
$ret.series = this;
return $ret;
})()));
}
}
}
}
get_acz() {
return false;
}
get acz() {
return this.get_acz();
}
get_act() {
return false;
}
get act() {
return this.get_act();
}
abs(a, b) {
let c = b.ca;
let d = b.b9;
let e = this.getEffectiveViewport1(b);
let f = this.zj;
let g = this.zp;
let h = g.qt;
let i = g.qs;
a.k.clear();
a.s.clear();
a.v.clear();
let j = this.x0();
let k = 0;
let l = b;
let m = f.ds;
let n = new CollisionAvoider();
let o = 0;
let p = 0;
let q = b.da.d;
o = this.ac2(f, c, d, e);
l.df.k = this.zp.td;
l.df.j = this.zp.tc;
l.df.l = (r, s) => this.ac3(r, s, c, d, e);
l.df.m = (r, s) => this.ac4(r, s, c, d, e);
let r = ((() => {
let $ret = new Clipper(0, d, false);
$ret.i = a.v;
return $ret;
})());
let s = ((() => {
let $ret = new TrendResolutionParams();
$ret.e = b.da.b;
$ret.f = b.da.c;
$ret.g = q;
$ret.a = o;
$ret.d = this.ik;
$ret.i = d;
$ret.h = e;
$ret.j = c;
return $ret;
})());
l.df.n(a.v, this.acp, this.acr, this.ac6, (t) => this.zj.getScaledAngle(t), (t) => this.zp.tj(t), s, r);
a.i.clear();
for (let t = 0; t < b.aa.count; t++) {
a.i.add(new List$1(Point_$type, 0));
let u = b.aa._inner[t];
u.k = this.zp.td;
u.j = this.zp.tc;
u.l = (v, w) => this.ac3(v, w, c, d, e);
u.m = (v, w) => this.ac4(v, w, c, d, e);
u.n(a.i._inner[t], u.g$b, this.acr, u.g$f, (v) => this.zj.getScaledAngle(v), (v) => this.zp.tj(v), s, r);
}
let v = true;
if (this.acy(b)) {
q--;
}
for (let w = b.da.c; w <= q; ++w) {
let x = w;
if (x * b.da.b >= this.zj.p7) {
x -= intDivide((this.zj.p7), b.da.b);
}
let y = b.da.getBucket(x);
p = 0;
if (m) {
p = this.aaj(x, c, d, e);
}
y[3] = p;
if (!isNaN_(y[0])) {
let z = false;
if (m) {
o = this.ac1(x, f, c, d, e);
if (isNaN_(o)) {
o = 0;
z = true;
}
}
y[0] = f.getScaledAngle(y[0]) + o;
if (y[1] < h || y[1] > i) {
if (this.acz) {
if (y[1] > i && this.act) {
}
else {
z = true;
}
}
else {
if (y[1] > i && this.act) {
}
else {
continue;
}
}
}
if (z) {
y[1] = NaN;
y[2] = NaN;
}
y[1] = g.tj(y[1]);
if (b.da.b > 1) {
if (y[2] < h || y[2] > i) {
continue;
}
y[2] = g.tj(y[2]);
}
else {
y[2] = y[1];
}
if ((isNaN_(y[1]) || isNaN_(y[2])) && v && this.acx && this.acv()) {
q++;
}
else {
v = false;
}
a.k.add(y);
if (j) {
let aa = Math.min(x * b.da.b, this.dp.count - 1);
let ab = false;
if (this.zj.ds) {
let ac = this.zj;
let ad = ac.hasOthersCategory && (x * b.da.b) == this.zj.p7 - 1;
ab = ad;
}
let ae = this.zq.d(y[0], y[1], c, d, e);
let af = this.zq.e(y[0], y[1], c, d, e);
let ag = new Rect(0, ae - 5, af - 5, 11, 11);
if (!isNaN_(ae) && !isNaN_(af) && !isInfinity(ae) && !isInfinity(af) && n.tryAdd(ag)) {
a.s.add({ $type: Point_$type, x: y[0], y: y[1] });
let ah = b.db.item(k);
ah.al = x;
ah.ak = aa;
ah.content.item = this.dp.item(aa);
if (ab) {
ah.ak = this.dp.count;
let ai = this.zj;
ah.content.item = this.zj.tj(true);
}
++k;
}
}
}
else {
if (v && this.acx && this.acv()) {
q++;
}
}
}
b.db.count = k;
return;
}
ac3(a, b, c, d, e) {
return this.zq.d(a, b, c, d, e);
}
ac4(a, b, c, d, e) {
return this.zq.e(a, b, c, d, e);
}
acy(a) {
let b = a;
return !this.acx && b.da.c == 0 && b.da.d == this.zj.p7;
}
ack(a, b, c) {
let d = null;
let e = c.ca;
let f = c.b9;
if (b > -1 && !e.isEmpty && !f.isEmpty) {
let g = a._inner[0][0] < f.left - 2000 ? f.left - 10 : NaN;
let h = f.bottom + 10;
let i = a._inner[b][0] > f.right + 2000 ? f.right + 10 : NaN;
let j = f.top - 10;
d = new Clipper(1, g, h, i, j, false);
}
return d;
}
adp(a, b, c, d, e) {
if (a.count > 0 && d.count > 0) {
if (!e || this.acu()) {
a.add(this.ad7);
a.add(a._inner[0]);
d.add(this.ad7);
d.add(d._inner[0]);
}
}
}
acv() {
return !this.acu();
}
acu() {
let a = this.cw.ca;
return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
}
ph(a, b) {
super.ph(a, b);
let c = b;
if (a) {
c.db.clear();
}
c.df.g$h();
}
abv(a, b) {
this.rc();
let c = b.ca;
let d = b.b9;
let e = this.getEffectiveViewport1(b);
let f = this.w3(b);
let g = b;
g.df.g$k(a.v);
for (let h = 0; h < b.aa.count; h++) {
let i = b.aa._inner[h];
i.g$k(a.i._inner[h]);
}
let j = new List$1(Point_$type, 0);
for (let k = 0; k < a.s.count; k++) {
let l = a.s._inner[k];
let m = this.zq.d(l.x, l.y, c, d, e);
let n = this.zq.e(l.x, l.y, c, d, e);
let o = { $type: Point_$type, x: m, y: n };
j.add(o);
}
CategoryMarkerManager.e(this, j, g.db, this.x2);
this.adj(b, a);
g.c4();
this.adi(d, c, e, f, g);
}
acj(a, b, c) {
if (b < a || a < 0 || a > this.acr.count || b < 0 || b > this.acr.count || c == null) {
return null;
}
let d = new Array((b - a) + 1);
let e = c.dv;
let f = null;
if (e) {
f = c.i$b;
}
for (let g = a; g <= b; g++) {
let h = g;
if (e) {
h = f._inner[h];
}
d[g - a] = this.dp.item(g);
}
return d;
}
adn(a, b, c, d, e, f) {
let g = this.by != 1;
let h = this.cq != 1;
let i = this.cp != 1;
let j = this.d3;
this.zy.a3(this.zy.d, d.dv, a, b, c, d, e, f, true);
this.zy.aa(this.ii);
let k = this.zy.ax;
let l = null;
let m = null;
let n = null;
let o = this.dp;
let p = null;
let q = null;
let r = null;
if (j && this.dc != null && !k.e) {
let s = this.v7(k.z);
let t = this.v8(k.z);
this.zy.ag = s;
this.zy.ah = t;
k.aa = s;
k.ab = t;
}
if (g && this.dc != null) {
l = this.dc.d7.getHighlightingInfo(this, o, k.z, k.y, true);
if (this.dc.d7.isCrossContextHighlight(this)) {
p = this.dc.d7.getHighlightingInfo(this, o, k.z, k.y, true);
}
k.c = l;
}
if (h && this.dc != null) {
m = this.dc.d8.getHighlightingInfo(this, o, k.z, k.y, true);
if (m == null && this.bo != null) {
m = this.dc.d8.getHighlightingInfo(this.bo, this.bo.dp, k.z, k.y, true);
}
if (this.dc.d8.isCrossContextHighlight(this)) {
q = this.dc.d8.getHighlightingInfo(this, o, k.z, k.y, true);
}
k.d = m;
}
if (i && this.dc != null) {
n = this.dc.d6.getHighlightingInfo(this, o, k.z, k.y, true);
if (this.dc.d6.isCrossContextHighlight(this)) {
r = this.dc.d6.getHighlightingInfo(this, o, k.z, k.y, true);
}
k.b = n;
}
k.h = f;
this.abt(k);
this.zy.y(this, l, m, n, f, g, h, i, k.v, this.dc.d7.totalHighWaterMark, k.x, this.dc.d8.totalHighWaterMark, k.t, this.dc.d6.totalHighWaterMark);
}
ado(a, b, c, d, e, f) {
let g = this.by != 1;
let h = this.cq != 1;
let i = this.cq != 1;
let j = this.d3;
this.zy.a3(this.zy.b, d.dv, a, b, c, d, e, f, false);
this.zy.ab(this.ii);
let k = this.zy.ay;
let l = null;
let m = null;
let n = null;
let o = this.dp;
if (j && this.dc != null && !k.e) {
let p = this.v6(k.z);
let q = this.v9(k.z);
this.zy.ag = p;
this.zy.ah = q;
k.aa = p;
k.ab = q;
}
if (g && this.dc != null) {
l = this.dc.d7.getHighlightingInfo(this, o, k.z, k.y, false);
k.c = l;
}
if (h && this.dc != null) {
m = this.dc.d8.getHighlightingInfo(this, o, k.z, k.y, false);
if (m == null && this.bo != null) {
m = this.dc.d8.getHighlightingInfo(this.bo, this.bo.dp, k.z, k.y, false);
}
k.d = m;
}
k.h = f;
this.abu(k);
this.zy.z(this, l, m, n, f, g, h, i, b < 0);
}
adj(a, b) {
a.ck = true;
this.zy.a1(this, this.aae(), runOn(this, this.y7), this.aap(a), this.aaq(a));
let c = this.zy.d;
let d = c != null;
let e = this.zj;
if (e == null) {
return;
}
let f = this.getEffectiveViewport1(a);
let g = new ScalerParams(0, a.ca, a.b9, e.dn, f);
let h = this.dp == null ? 0 : this.dp.count;
let i = a;
let j = b.k;
let k = i.da.c;
let l = i.da.d;
let m = i.da.b;
let n = k * m;
for (let o = 0; o < a.db.count; o++) {
let p = a.db.item(o);
let q = p.content;
if (d) {
let r = p.al;
this.adn(j, r, h, e, g, a.t);
}
this.zy.ac(p, q);
}
}
adi(a, b, c, d, e) {
e.dg(a, b, c, d);
}
sy() {
super.sy();
if (this.index < 0) {
return;
}
this.acl.dh();
}
k6(a, b) {
if (a == this.acl.df.g$n) {
return null;
}
return super.k6(a, b);
}
gj(a) {
let b = this.cw.ca;
b = b.copy();
let c = this.cw.b9;
let d = !b.isEmpty && !c.isEmpty && this.dp != null ? this.dp.indexOf(a) : -1;
if (this.zj == null || this.acr == null || this.zp == null) {
return false;
}
if (d < 0 || d > this.acr.count - 1) {
return false;
}
let e = this.zj.getScaledAngle(d);
let f = this.zp.tj(this.acr.item(d));
if (isNaN_(f)) {
f = (this.zp.tc + this.zp.td) / 2;
}
let g = 0.5 + (Math.cos(e) * f);
let h = 0.5 + (Math.sin(e) * f);
if (!isNaN_(g)) {
if (g < b.left + 0.1 * b.width) {
g = g + 0.4 * b.width;
b.x = g - 0.5 * b.width;
}
if (g > b.right - 0.1 * b.width) {
g = g - 0.4 * b.width;
b.x = g - 0.5 * b.width;
}
}
if (!isNaN_(h)) {
if (h < b.top + 0.1 * b.height) {
h = h + 0.4 * b.height;
b.y = h - 0.5 * b.height;
}
if (h > b.bottom - 0.1 * b.height) {
h = h - 0.4 * b.height;
b.y = h - 0.5 * b.height;
}
}
if (this.c4 != null) {
this.c4.au(this.dc, b, true);
}
return d >= 0;
}
r9(a, b) {
super.r9(a, b);
if (!this.g6) {
this.cw.be(b);
return;
}
this.cw.be(b);
let c = typeCast(AnchoredRadialSeriesView.$, this.cv);
c.da.e(this.ik);
if (this.d7(this.cv)) {
return;
}
this.sa();
this.g6 = false;
}
sa() {
super.sa();
let a = typeCast(AnchoredRadialSeriesView.$, this.cv);
if (!this.gy) {
this.aco = new RadialFrame(3);
this.abs(this.aco, a);
}
this.gy = false;
this.abv(this.aco, a);
}
r6(a, b, c, d, e) {
super.r6(a, b, c, d, e);
let f = this.ba.a$k.item(d);
let g = f;
g.da.e(this.ik);
f.bd(c);
if (this.d7(g)) {
return;
}
if (this.acn == null) {
this.acn = new RadialFrame(3);
}
this.acn.aa();
this.abs(this.acn, g);
this.abv(this.acn, g);
}
qc(a) {
super.qc(a);
this.bc.exportTrendlineData(this, a, this.acl.df.g$n);
}
bd() {
return new RadialTrendLineManager();
}
}
AnchoredRadialSeries.$t = markType(AnchoredRadialSeries, 'AnchoredRadialSeries', RadialBase.$);
AnchoredRadialSeries.adq = DependencyProperty.i("ActualTrendLineBrush", Brush.$, AnchoredRadialSeries.$, new PropertyMetadata(2, null, (a, b) => a.raisePropertyChanged("ActualTrendLineBrush", b.oldValue, b.newValue)));
AnchoredRadialSeries.$$p = markDep(DependencyProperty, PropertyMetadata, AnchoredRadialSeries, 'raisePropertyChanged', ['HighlightedValueMemberPath:ac8:adr', [2, null], 'UseCategoryNormalizedValues:ac0:adz', [0, false], 'ValueMemberAsLegendLabel:adc:ad0', [2, null], 'ValueMemberAsLegendUnit:ade:ad1', [2, null], 'ValueMemberPath:adg:ad2', [2, null], 'TrendLineType:acp:adx', [TrendLineType_$type, enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:ac5:adw', [1, 1.5], 'TrendLinePeriod:ac6:adv', [1, 7], 'TrendLineZIndex:ac7:ady', [1, 1], 'TrendLineBrush:ad4:ads', [Brush.$, null], 'TrendLineDashArray:ad5:adt', [DoubleCollection.$], 'TrendLineDashCap:ad6:adu', [PenLineCap_$type, enumGetBox(PenLineCap_$type, 0)]]);
return AnchoredRadialSeries;
})();
/**
* @hidden
*/
export let AnchoredRadialSeriesView = /*@__PURE__*/ (() => {
class AnchoredRadialSeriesView extends RadialBaseView {
constructor(a) {
super(a);
this.de = null;
this.df = null;
this.da = new AnchoredRadialBucketCalculator(this);
this.de = a;
this.df = new RadialTrendLineManager();
}
dg(a, b, c, d) {
}
dh() {
this.de.ad3 = null;
if (this.de.ad4 != null) {
this.de.ad3 = this.de.ad4;
}
else {
this.de.ad3 = this.de.vs;
}
}
bi(a, b) {
if (a.d) {
if (!b) {
}
if (this.de.acp != 0 && !b) {
let c = this.df.g$n;
c.ad = this.de.ac5;
c._stroke = this.de.ad3;
c.ai = this.de.ad5;
c.aj = this.de.ad6;
a.v(c);
}
}
super.bi(a, b);
}
getDefaultTooltipTemplate() {
let a = "<div class='ui-chart-default-tooltip-content'>";
if (this.de.zj.hw != null) {
a += "<span>${item." + this.de.zj.hw + "}</span><br/>";
}
a += "<span";
let b = this.f.ba.a$v(this.f);
if (!stringIsNullOrEmpty(b)) {
a += " style='color:" + b + "'";
}
a += ">" + this.de.title + ": </span><span class='ui-priority-primary'>" + "${item." + this.de.adg + "}</span></div>";
return a;
}
}
AnchoredRadialSeriesView.$t = markType(AnchoredRadialSeriesView, 'AnchoredRadialSeriesView', RadialBaseView.$);
return AnchoredRadialSeriesView;
})();