igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,529 lines (1,528 loc) • 60.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 { DomainChart } from "./DomainChart";
import { fromEnum, enumGetBox, markType } from "igniteui-react-core";
import { HorizontalAlignment_$type } from "igniteui-react-core";
import { VerticalAlignment_$type } from "igniteui-react-core";
import { Visibility_$type } from "igniteui-react-core";
import { ValueAxisLabelLocation_$type } from "./ValueAxisLabelLocation";
import { AngleAxisLabelLocation_$type } from "./AngleAxisLabelLocation";
import { AxisLabelSettings } from "./AxisLabelSettings";
import { AxisDefaults } from "./AxisDefaults";
import { TitleSettings } from "./TitleSettings";
import { ScalerParams } from "./ScalerParams";
import { DeviceUtils } from "igniteui-react-core";
/**
* @hidden
*/
var RadialBaseChart = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(RadialBaseChart, _super);
function RadialBaseChart() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.aa3 = null;
_this.aa4 = null;
_this.abi = 0;
_this.abk = 5;
_this.abj = 0;
_this.abh = 5;
_this.ab1 = 5;
_this.ab3 = 0;
_this.ab2 = 5;
_this.ab0 = 0;
_this.ag4 = null;
_this.ahb = null;
_this.ag2 = null;
_this.ag3 = null;
_this.abv = 0;
_this.ace = 0;
_this.abu = NaN;
_this.acd = NaN;
_this.abx = NaN;
_this.acg = NaN;
_this.abw = NaN;
_this.acf = NaN;
_this.abt = NaN;
_this.acc = NaN;
_this.aha = null;
_this.ahh = null;
_this.ads = null;
_this.adw = null;
_this.adu = null;
_this.ady = null;
_this.adn = null;
_this.ado = null;
_this.ag5 = null;
_this.ahc = null;
_this.abl = DeviceUtils.g(1);
_this.ab4 = DeviceUtils.g(1);
_this.abo = DeviceUtils.g(1);
_this.ab7 = DeviceUtils.g(1);
_this.ag7 = null;
_this.ahe = null;
_this.ag8 = null;
_this.ahf = null;
_this.abp = DeviceUtils.g(1);
_this.ab8 = DeviceUtils.g(1);
_this.abq = DeviceUtils.g(8);
_this.ab9 = 0;
_this.ag9 = null;
_this.ahg = null;
_this.abr = DeviceUtils.g(1);
_this.aca = DeviceUtils.g(1);
_this.adt = null;
_this.adx = null;
_this.ag6 = null;
_this.ahd = null;
_this.abg = 0;
_this.abz = 0;
_this.abf = NaN;
_this.abm = NaN;
_this.abn = NaN;
_this.aby = NaN;
_this.ab5 = NaN;
_this.ab6 = NaN;
_this.abs = 0;
_this.acb = -90;
_this.abb = false;
_this.abc = false;
_this.agx = 1;
_this.ah0 = 1;
_this.agw = 1;
_this.agy = 2;
_this.ahy = 0;
_this.ahz = 1;
_this.ah4 = 0;
_this.ah5 = 0;
_this.aa9 = 4;
_this.aaz = 4;
_this.adr = null;
_this.aav = null;
_this.adv = null;
_this.aaw = null;
return _this;
}
RadialBaseChart.prototype.provideContainer = function (a) {
if (a != null) {
var b = this.aa1();
var c = this.aa2();
if (b != null) {
b.provideRenderer(a);
}
if (c != null) {
c.provideRenderer(a);
}
}
_super.prototype.provideContainer.call(this, a);
};
RadialBaseChart.prototype.vw = function () {
_super.prototype.vw.call(this);
var a = this.aa1();
var b = this.aa2();
if (a != null && a.a3 != null) {
this.ahk = a.a3.textColor;
}
if (b != null && b.a3 != null) {
this.ahr = b.a3.textColor;
}
this.ahp = AxisDefaults.axis_TickBrush;
this.ahw = AxisDefaults.axis_TickBrush;
this.ahl = AxisDefaults.axis_MajorBrush;
this.ahs = AxisDefaults.axis_MajorBrush;
this.aho = AxisDefaults.axis_LineBrush;
this.ahv = AxisDefaults.axis_LineBrush;
};
RadialBaseChart.prototype.wr = function (a, b, c) {
var _this = this;
_super.prototype.wr.call(this, a, b, c);
switch (a) {
case "AngleAxisLabelLeftMargin":
this.ago(function (d) { return d.leftMargin = _this.ack; });
break;
case "AngleAxisLabelTopMargin":
this.ago(function (d) { return d.topMargin = _this.acm; });
break;
case "AngleAxisLabelRightMargin":
this.ago(function (d) { return d.rightMargin = _this.acl; });
break;
case "AngleAxisLabelBottomMargin":
this.ago(function (d) { return d.bottomMargin = _this.acj; });
break;
case "ValueAxisLabelLeftMargin":
this.agt(function (d) { return d.leftMargin = _this.ac7; });
break;
case "ValueAxisLabelTopMargin":
this.agt(function (d) { return d.topMargin = _this.ac9; });
break;
case "ValueAxisLabelRightMargin":
this.agt(function (d) { return d.rightMargin = _this.ac8; });
break;
case "ValueAxisLabelBottomMargin":
this.agt(function (d) { return d.bottomMargin = _this.ac6; });
break;
case "ActualItemsSource":
case "ShouldDisplayMockData":
case "ShouldUseSkeletonStyleForMockData":
this.ahi = this.zt(this.ahk);
this.ahj = this.zt(this.ahr);
break;
case "AngleAxisLabelTextColor":
this.ahi = this.zt(this.ahk);
break;
case "ValueAxisLabelTextColor":
this.ahj = this.zt(this.ahr);
break;
case "ActualAngleAxisLabelTextColor":
this.ago(function (d) { return d.textColor = _this.ahi; });
break;
case "ActualValueAxisLabelTextColor":
this.agt(function (d) { return d.textColor = _this.ahj; });
break;
case "AngleAxisTitleMargin":
this.agq(function (d) { return d.margin = _this.acx; });
break;
case "ValueAxisTitleMargin":
this.agv(function (d) { return d.margin = _this.adk; });
break;
case "AngleAxisTitleLeftMargin":
this.agq(function (d) { return d.leftMargin = _this.acw; });
break;
case "ValueAxisTitleLeftMargin":
this.agv(function (d) { return d.leftMargin = _this.adj; });
break;
case "AngleAxisTitleTopMargin":
this.agq(function (d) { return d.topMargin = _this.acz; });
break;
case "ValueAxisTitleTopMargin":
this.agv(function (d) { return d.topMargin = _this.adm; });
break;
case "AngleAxisTitleRightMargin":
this.agq(function (d) { return d.rightMargin = _this.acy; });
break;
case "ValueAxisTitleRightMargin":
this.agv(function (d) { return d.rightMargin = _this.adl; });
break;
case "AngleAxisTitleBottomMargin":
this.agq(function (d) { return d.bottomMargin = _this.acv; });
break;
case "ValueAxisTitleBottomMargin":
this.agv(function (d) { return d.bottomMargin = _this.adi; });
break;
case "AngleAxisTitleTextColor":
this.agq(function (d) { return d.textColor = _this.ahq; });
break;
case "ValueAxisTitleTextColor":
this.agv(function (d) { return d.textColor = _this.ahx; });
break;
case "AngleAxisFormatLabel":
this.agm(function (d) { return d.ay = _this.aa5; });
break;
case "ValueAxisFormatLabel":
this.agr(function (d) { return d.ay = _this.aa6; });
break;
}
};
Object.defineProperty(RadialBaseChart.prototype, "aa5", {
get: function () {
return this.aa3;
},
set: function (a) {
var b = this.aa5;
if (a != b) {
this.aa3 = a;
this.wn("AngleAxisFormatLabel", b, this.aa5);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aa6", {
get: function () {
return this.aa4;
},
set: function (a) {
var b = this.aa6;
if (a != b) {
this.aa4 = a;
this.wn("ValueAxisFormatLabel", b, this.aa6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ack", {
get: function () {
return this.abi;
},
set: function (a) {
var b = this.ack;
if (a != b) {
this.abi = a;
this.wn("AngleAxisLabelLeftMargin", b, this.ack);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acm", {
get: function () {
return this.abk;
},
set: function (a) {
var b = this.acm;
if (a != b) {
this.abk = a;
this.wn("AngleAxisLabelTopMargin", b, this.acm);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acl", {
get: function () {
return this.abj;
},
set: function (a) {
var b = this.acl;
if (a != b) {
this.abj = a;
this.wn("AngleAxisLabelRightMargin", b, this.acl);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acj", {
get: function () {
return this.abh;
},
set: function (a) {
var b = this.acj;
if (a != b) {
this.abh = a;
this.wn("AngleAxisLabelBottomMargin", b, this.acj);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac7", {
get: function () {
return this.ab1;
},
set: function (a) {
var b = this.ac7;
if (a != b) {
this.ab1 = a;
this.wn("ValueAxisLabelLeftMargin", b, this.ac7);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac9", {
get: function () {
return this.ab3;
},
set: function (a) {
var b = this.ac9;
if (a != b) {
this.ab3 = a;
this.wn("ValueAxisLabelTopMargin", b, this.ac9);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac8", {
get: function () {
return this.ab2;
},
set: function (a) {
var b = this.ac8;
if (a != b) {
this.ab2 = a;
this.wn("ValueAxisLabelRightMargin", b, this.ac8);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac6", {
get: function () {
return this.ab0;
},
set: function (a) {
var b = this.ac6;
if (a != b) {
this.ab0 = a;
this.wn("ValueAxisLabelBottomMargin", b, this.ac6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahk", {
get: function () {
return this.ag4;
},
set: function (a) {
var b = this.ahk;
if (a != b) {
this.ag4 = a;
this.wn("AngleAxisLabelTextColor", b, this.ahk);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahr", {
get: function () {
return this.ahb;
},
set: function (a) {
var b = this.ahr;
if (a != b) {
this.ahb = a;
this.wn("ValueAxisLabelTextColor", b, this.ahr);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahi", {
get: function () {
return this.ag2;
},
set: function (a) {
var b = this.ag2;
if (a != b) {
this.ag2 = a;
this.wn("ActualAngleAxisLabelTextColor", b, this.ahi);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahj", {
get: function () {
return this.ag3;
},
set: function (a) {
var b = this.ag3;
if (a != b) {
this.ag3 = a;
this.wn("ActualValueAxisLabelTextColor", b, this.ahj);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acx", {
get: function () {
return this.abv;
},
set: function (a) {
var b = this.acx;
if (a != b) {
this.abv = a;
this.wn("AngleAxisTitleMargin", b, this.acx);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adk", {
get: function () {
return this.ace;
},
set: function (a) {
var b = this.adk;
if (a != b) {
this.ace = a;
this.wn("ValueAxisTitleMargin", b, this.adk);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acw", {
get: function () {
return this.abu;
},
set: function (a) {
var b = this.acw;
if (a != b) {
this.abu = a;
this.wn("AngleAxisTitleLeftMargin", b, this.acw);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adj", {
get: function () {
return this.acd;
},
set: function (a) {
var b = this.adj;
if (a != b) {
this.acd = a;
this.wn("ValueAxisTitleLeftMargin", b, this.adj);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acz", {
get: function () {
return this.abx;
},
set: function (a) {
var b = this.acz;
if (a != b) {
this.abx = a;
this.wn("AngleAxisTitleTopMargin", b, this.acz);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adm", {
get: function () {
return this.acg;
},
set: function (a) {
var b = this.adm;
if (a != b) {
this.acg = a;
this.wn("ValueAxisTitleTopMargin", b, this.adm);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acy", {
get: function () {
return this.abw;
},
set: function (a) {
var b = this.acy;
if (a != b) {
this.abw = a;
this.wn("AngleAxisTitleRightMargin", b, this.acy);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adl", {
get: function () {
return this.acf;
},
set: function (a) {
var b = this.adl;
if (a != b) {
this.acf = a;
this.wn("ValueAxisTitleRightMargin", b, this.adl);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acv", {
get: function () {
return this.abt;
},
set: function (a) {
var b = this.acv;
if (a != b) {
this.abt = a;
this.wn("AngleAxisTitleBottomMargin", b, this.acv);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adi", {
get: function () {
return this.acc;
},
set: function (a) {
var b = this.adi;
if (a != b) {
this.acc = a;
this.wn("ValueAxisTitleBottomMargin", b, this.adi);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahq", {
get: function () {
return this.aha;
},
set: function (a) {
var b = this.ahq;
if (a != b) {
this.aha = a;
this.wn("AngleAxisTitleTextColor", b, this.ahq);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahx", {
get: function () {
return this.ahh;
},
set: function (a) {
var b = this.ahx;
if (a != b) {
this.ahh = a;
this.wn("ValueAxisTitleTextColor", b, this.ahx);
}
},
enumerable: false,
configurable: true
});
RadialBaseChart.prototype.ws = function (a, b, c) {
var _this = this;
_super.prototype.ws.call(this, a, b, c);
switch (a) {
case "AngleAxisLabelTextStyle":
this.ago(function (d) { return d.textStyle = _this.aef; });
break;
case "ValueAxisLabelTextStyle":
this.agt(function (d) { return d.textStyle = _this.afn; });
break;
case "AngleAxisTitleTextStyle":
this.agq(function (d) { return d.textStyle = _this.ae5; });
break;
case "ValueAxisTitleTextStyle":
this.agv(function (d) { return d.textStyle = _this.agd; });
break;
}
};
Object.defineProperty(RadialBaseChart.prototype, "aef", {
get: function () {
return this.ads;
},
set: function (a) {
var b = this.aef;
if (a != b) {
this.ads = a;
this.wn("AngleAxisLabelTextStyle", b, this.aef);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "afn", {
get: function () {
return this.adw;
},
set: function (a) {
var b = this.afn;
if (a != b) {
this.adw = a;
this.wn("ValueAxisLabelTextStyle", b, this.afn);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ae5", {
get: function () {
return this.adu;
},
set: function (a) {
var b = this.ae5;
if (a != b) {
this.adu = a;
this.wn("AngleAxisTitleTextStyle", b, this.ae5);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "agd", {
get: function () {
return this.ady;
},
set: function (a) {
var b = this.agd;
if (a != b) {
this.ady = a;
this.wn("ValueAxisTitleTextStyle", b, this.agd);
}
},
enumerable: false,
configurable: true
});
RadialBaseChart.prototype.agj = function (a) {
var _this = this;
this.agg(a, function (b) { return b.leftMargin = _this.ack; });
this.agg(a, function (b) { return b.topMargin = _this.acm; });
this.agg(a, function (b) { return b.rightMargin = _this.acl; });
this.agg(a, function (b) { return b.bottomMargin = _this.acj; });
this.agg(a, function (b) { return b.textColor = _this.ahi; });
this.agh(a, function (b) { return b.textColor = _this.ahq; });
this.agh(a, function (b) { return b.leftMargin = _this.acw; });
this.agh(a, function (b) { return b.topMargin = _this.acz; });
this.agh(a, function (b) { return b.rightMargin = _this.acy; });
this.agh(a, function (b) { return b.bottomMargin = _this.acv; });
this.agg(a, function (b) { return b.textStyle = _this.aef; });
this.agh(a, function (b) { return b.textStyle = _this.ae5; });
};
RadialBaseChart.prototype.agl = function (a) {
var _this = this;
this.agg(a, function (b) { return b.leftMargin = _this.ac7; });
this.agg(a, function (b) { return b.topMargin = _this.ac9; });
this.agg(a, function (b) { return b.rightMargin = _this.ac8; });
this.agg(a, function (b) { return b.bottomMargin = _this.ac6; });
this.agg(a, function (b) { return b.textColor = _this.ahj; });
this.agh(a, function (b) { return b.textColor = _this.ahx; });
this.agh(a, function (b) { return b.leftMargin = _this.adj; });
this.agh(a, function (b) { return b.topMargin = _this.adm; });
this.agh(a, function (b) { return b.rightMargin = _this.adl; });
this.agh(a, function (b) { return b.bottomMargin = _this.adi; });
this.agg(a, function (b) { return b.textStyle = _this.afn; });
this.agh(a, function (b) { return b.textStyle = _this.agd; });
};
RadialBaseChart.prototype.xk = function (a) {
var b = this.bf(a);
var c = this.dd(a, b);
if (c == null) {
return;
}
c.itemsSource = this.ib(a);
if (a.highlightedData != null) {
c.highlightedItemsSource = this.ic(a);
}
c.name = this.q9(a);
c.title = this.ra(a, b);
this.dataChart.series.add(c);
};
RadialBaseChart.prototype.agm = function (a) {
this.agn(a, null);
};
RadialBaseChart.prototype.agn = function (a, b) {
a(this.aa1());
};
RadialBaseChart.prototype.ags = function (a, b) {
a(this.aa2());
};
RadialBaseChart.prototype.agr = function (a) {
this.ags(a, true);
};
RadialBaseChart.prototype.vf = function (a, b) {
this.agm(a);
this.ags(a, b);
};
RadialBaseChart.prototype.agq = function (a) {
this.agh(this.aa1(), a);
};
RadialBaseChart.prototype.agv = function (a) {
this.agh(this.aa2(), a);
};
RadialBaseChart.prototype.agt = function (a) {
this.agg(this.aa2(), a);
};
RadialBaseChart.prototype.ago = function (a) {
this.agg(this.aa1(), a);
};
RadialBaseChart.prototype.ac0 = function (a) {
var b = this.aa1();
return b.ft(a, new ScalerParams(1, this.z2, this.z1, b.df));
};
RadialBaseChart.prototype.ac2 = function (a) {
var b = this.aa1();
return b.fw(a, new ScalerParams(1, this.z2, this.z1, b.df));
};
RadialBaseChart.prototype.ac1 = function (a) {
var b = this.aa2();
return b.ft(a, new ScalerParams(1, this.z2, this.z1, b.df));
};
RadialBaseChart.prototype.ac3 = function (a) {
var b = this.aa2();
return b.fw(a, new ScalerParams(1, this.z2, this.z1, b.df));
};
RadialBaseChart.prototype.xh = function (a) {
_super.prototype.xh.call(this, a);
if (a == null) {
return;
}
if (a.axes != null) {
var b = this.aa1();
var c = this.aa2();
if (a.axes.contains(b)) {
a.axes.remove(b);
}
if (a.axes.contains(c)) {
a.axes.remove(c);
}
}
};
RadialBaseChart.ae8 = function (a, b) {
var e_1, _a;
try {
for (var _b = __values(fromEnum(b)), _c = _b.next(); !_c.done; _c = _b.next()) {
var c = _c.value;
var d = c.findMatchingHint(16);
if (d != null) {
var e = d.path;
return e;
}
}
}
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 null;
};
RadialBaseChart.prototype.vr = function (a, b) {
_super.prototype.vr.call(this, a, b);
if (a == this.dataChart) {
this.dataChart.axes.add(this.aa1());
this.dataChart.axes.add(this.aa2());
}
};
RadialBaseChart.prototype.agi = function (a) {
var _this = this;
if (a != null && this.mb != null && a.gx == null) {
a.provideRenderer(this.mb);
}
a.ni = this.ahl;
a.f1 = this.acn;
a.nj = this.ahm;
a.f4 = this.acq;
a.nm = this.aho;
a.gs = this.acr;
a.nl = this.ahn;
a.gt = this.acs;
a.nn = this.ahp;
a.gu = this.act;
a.d5 = true;
a.dv = this.shouldAvoidAxisAnnotationCollisions;
a.dx = this.shouldAvoidAxisAnnotationCollisions;
var b = a == this.aa1();
if (b) {
a.jb = this.aew;
}
a.hg = this.adp;
a.ik = this.ad6;
a.ah = this.aax;
this.agg(a, function (c) { return c.angle = _this.aci; });
this.agg(a, function (c) {
if (c.extent != _this.ach) {
c.extent = _this.ach;
}
});
this.agg(a, function (c) {
if (c.maximumExtent != _this.aco) {
c.maximumExtent = _this.aco;
}
});
this.agg(a, function (c) {
if (c.maximumExtentPercentage != _this.acp) {
c.maximumExtentPercentage = _this.acp;
}
});
this.agg(a, function (c) { return c.horizontalAlignment = _this.agz; });
this.agg(a, function (c) { return c.verticalAlignment = _this.ah1; });
this.agg(a, function (c) { return c.visibility = _this.ah6; });
this.agg(a, function (c) { return c.location = _this.aa7(_this.aa0); });
this.agh(a, function (c) { return c.horizontalAlignment = _this.ag0; });
this.agh(a, function (c) { return c.angle = _this.acu; });
this.agj(a);
};
RadialBaseChart.prototype.agk = function (a) {
var _this = this;
if (a == null) {
return;
}
if (this.mb != null && a.gx == null) {
a.provideRenderer(this.mb);
}
a.dv = this.shouldAvoidAxisAnnotationCollisions;
a.dx = this.shouldAvoidAxisAnnotationCollisions;
this.agg(a, function (b) { return b.angle = _this.ac5; });
this.agg(a, function (b) {
if (b.extent != _this.ac4) {
b.extent = _this.ac4;
}
});
this.agg(a, function (b) {
if (b.maximumExtent != _this.adb) {
b.maximumExtent = _this.adb;
}
});
this.agg(a, function (b) {
if (b.maximumExtentPercentage != _this.adc) {
b.maximumExtentPercentage = _this.adc;
}
});
this.agg(a, function (b) { return b.horizontalAlignment = _this.ag1; });
this.agg(a, function (b) { return b.verticalAlignment = _this.ah2; });
this.agg(a, function (b) { return b.visibility = _this.ah7; });
this.agg(a, function (b) { return b.location = _this.aa8(_this.aba); });
this.agh(a, function (b) { return b.verticalAlignment = _this.ah3; });
this.agh(a, function (b) { return b.angle = _this.adh; });
a.ni = this.ahs;
a.f1 = this.ada;
a.nj = this.aht;
a.f4 = this.add;
a.nm = this.ahv;
a.gs = this.ade;
a.nl = this.ahu;
a.gt = this.adf;
a.nn = this.ahw;
a.gu = this.adg;
var b = a == this.aa2();
if (b) {
a.jb = this.af4;
}
a.ik = this.afe;
a.ah = this.aay;
this.agl(a);
};
RadialBaseChart.prototype.vo = function () {
_super.prototype.vo.call(this);
this.agi(this.aa1());
this.agk(this.aa2());
};
RadialBaseChart.prototype.agg = function (a, b) {
if (a == null) {
return;
}
if (a.a3 == null) {
a.a3 = new AxisLabelSettings();
a.a3.angle = a.ff();
a.a3.bottomMargin = a.fg();
a.a3.leftMargin = a.fh();
a.a3.rightMargin = a.fi();
a.a3.topMargin = a.fj();
a.a3.horizontalAlignment = a.m7();
a.a3.location = a.a5();
a.a3.verticalAlignment = a.n9();
}
b(a.a3);
};
RadialBaseChart.prototype.agh = function (a, b) {
if (a == null) {
return;
}
if (a.bx == null) {
a.bx = new TitleSettings();
a.bx.bottomMargin = a.fl();
a.bx.leftMargin = a.fm();
a.bx.rightMargin = a.fn();
a.bx.topMargin = a.fo();
a.bx.location = a.a6();
a.bx.angle = a.fk();
a.bx.horizontalAlignment = a.m8();
a.bx.verticalAlignment = a.oa();
}
b(a.bx);
};
RadialBaseChart.prototype.wn = function (a, b, c) {
var _this = this;
_super.prototype.wn.call(this, a, b, c);
switch (a) {
case "AngleAxisLabelAngle":
this.ago(function (d) { return d.angle = _this.aci; });
break;
case "ValueAxisLabelAngle":
this.agt(function (d) { return d.angle = _this.ac5; });
break;
case "AngleAxisLabelHorizontalAlignment":
this.ago(function (d) { return d.horizontalAlignment = _this.agz; });
break;
case "ValueAxisLabelHorizontalAlignment":
this.agt(function (d) { return d.horizontalAlignment = _this.ag1; });
break;
case "AngleAxisLabelVerticalAlignment":
this.ago(function (d) { return d.verticalAlignment = _this.ah1; });
break;
case "ValueAxisLabelVerticalAlignment":
this.agt(function (d) { return d.verticalAlignment = _this.ah2; });
break;
case "AngleAxisLabelVisibility":
this.ago(function (d) { return d.visibility = _this.ah6; });
break;
case "ValueAxisLabelVisibility":
this.agt(function (d) { return d.visibility = _this.ah7; });
break;
case "AngleAxisLabel":
this.agm(function (d) { return d.hg = _this.adp; });
break;
case "ValueAxisLabel":
this.agr(function (d) { return d.hg = _this.adq; });
break;
case "AngleAxisLabelFormat":
this.agm(function (d) { return d.ik = _this.ad6; });
break;
case "AngleAxisLabelFormatSpecifiers":
this.agm(function (d) { return d.ah = _this.aax; });
break;
case "ValueAxisLabelFormat":
this.agr(function (d) { return d.ik = _this.afe; });
break;
case "ValueAxisLabelFormatSpecifiers":
this.agr(function (d) { return d.ah = _this.aay; });
break;
case "AngleAxisTitleAngle":
this.agq(function (d) { return d.angle = _this.acu; });
break;
case "ValueAxisTitleAngle":
this.agv(function (d) { return d.angle = _this.adh; });
break;
case "AngleAxisTitleAlignment":
this.agq(function (d) { return d.horizontalAlignment = _this.ag0; });
break;
case "ValueAxisTitleAlignment":
this.agv(function (d) { return d.verticalAlignment = _this.ah3; });
break;
case "AngleAxisTitle":
this.agm(function (d) { return d.jb = _this.aew; });
break;
case "ValueAxisTitle":
this.ags(function (d) { return d.jb = _this.af4; }, false);
break;
case "AngleAxisMajorStroke":
this.agn(function (d) { return d.ni = _this.ahl; }, a);
break;
case "ValueAxisMajorStroke":
this.agr(function (d) { return d.ni = _this.ahs; });
break;
case "AngleAxisMajorStrokeThickness":
this.agn(function (d) { return d.f1 = _this.acn; }, a);
break;
case "ValueAxisMajorStrokeThickness":
this.agr(function (d) { return d.f1 = _this.ada; });
break;
case "AngleAxisMinorStroke":
this.agm(function (d) { return d.nj = _this.ahm; });
break;
case "ValueAxisMinorStroke":
this.agr(function (d) { return d.nj = _this.aht; });
break;
case "AngleAxisMinorStrokeThickness":
this.agm(function (d) { return d.f4 = _this.acq; });
break;
case "ValueAxisMinorStrokeThickness":
this.agr(function (d) { return d.f4 = _this.add; });
break;
case "AngleAxisTickLength":
this.agm(function (d) { return d.gt = _this.acs; });
break;
case "ValueAxisTickLength":
this.agr(function (d) { return d.gt = _this.adf; });
break;
case "AngleAxisTickStroke":
this.agm(function (d) { return d.nn = _this.ahp; });
break;
case "ValueAxisTickStroke":
this.agr(function (d) { return d.nn = _this.ahw; });
break;
case "AngleAxisTickStrokeThickness":
this.agm(function (d) { return d.gu = _this.act; });
break;
case "ValueAxisTickStrokeThickness":
this.agr(function (d) { return d.gu = _this.adg; });
break;
case "AngleAxisStroke":
this.agm(function (d) { return d.nm = _this.aho; });
break;
case "ValueAxisStroke":
this.agr(function (d) { return d.nm = _this.ahv; });
break;
case "AngleAxisStrokeThickness":
this.agm(function (d) { return d.gs = _this.acr; });
break;
case "ValueAxisStrokeThickness":
this.agr(function (d) { return d.gs = _this.ade; });
break;
case "AngleAxisExtent":
this.ago(function (d) { return d.extent = _this.ach; });
break;
case "AngleAxisMaximumExtent":
this.ago(function (d) { return d.maximumExtent = _this.aco; });
break;
case "AngleAxisMaximumExtentPercentage":
this.ago(function (d) { return d.maximumExtentPercentage = _this.acp; });
break;
case "ValueAxisExtent":
this.agt(function (d) { return d.extent = _this.ac4; });
break;
case "ValueAxisMaximumExtent":
this.agt(function (d) { return d.maximumExtent = _this.aco; });
break;
case "ValueAxisMaximumExtentPercentage":
this.agt(function (d) { return d.maximumExtentPercentage = _this.acp; });
break;
case "AngleAxisStrip":
this.agm(function (d) { return d.nl = _this.ahn; });
break;
case "ValueAxisStrip":
this.agr(function (d) { return d.nl = _this.ahu; });
break;
case "AngleAxisInverted":
this.agm(function (d) { return d.df = _this.abd; });
break;
case "ValueAxisInverted":
this.agr(function (d) { return d.df = _this.abe; });
break;
case "ValueAxisLabelLocation":
this.agu();
break;
case "AngleAxisLabelLocation":
this.agp();
break;
}
};
RadialBaseChart.prototype.agu = function () {
var a = this.aa8(this.aba);
if (a == 2 || a == 7) {
this.ag1 = 2;
}
else {
this.ag1 = 0;
}
this.agt(function (b) { return b.location = a; });
};
RadialBaseChart.prototype.agp = function () {
var a = this.aa7(this.aa0);
if (a == 1 || a == 5) {
this.ah1 = 0;
}
else {
this.ah1 = 2;
}
this.ago(function (b) { return b.location = a; });
};
RadialBaseChart.prototype.aa8 = function (a) {
if (a == 0) {
return 2;
}
else if (a == 1) {
return 3;
}
else if (a == 3) {
return 7;
}
else if (a == 2) {
return 6;
}
else {
if (this.cc == 1) {
return 3;
}
else {
return 2;
}
}
};
RadialBaseChart.prototype.aa7 = function (a) {
if (a == 1) {
return 1;
}
else if (a == 0) {
return 0;
}
else if (a == 3) {
return 5;
}
else if (a == 2) {
return 4;
}
else {
return 1;
}
};
Object.defineProperty(RadialBaseChart.prototype, "adp", {
get: function () {
return this.adn;
},
set: function (a) {
var b = this.adp;
if (a != b) {
this.adn = a;
this.wn("AngleAxisLabel", b, this.adp);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adq", {
get: function () {
return this.ado;
},
set: function (a) {
var b = this.adq;
if (a != b) {
this.ado = a;
this.wn("ValueAxisLabel", b, this.adq);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahl", {
get: function () {
return this.ag5;
},
set: function (a) {
var b = this.ahl;
if (a != b) {
this.ag5 = a;
this.wn("AngleAxisMajorStroke", b, this.ahl);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahs", {
get: function () {
return this.ahc;
},
set: function (a) {
var b = this.ahs;
if (a != b) {
this.ahc = a;
this.wn("ValueAxisMajorStroke", b, this.ahs);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acn", {
get: function () {
return this.abl;
},
set: function (a) {
var b = this.acn;
if (a != b) {
this.abl = a;
this.wn("AngleAxisMajorStrokeThickness", b, this.acn);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ada", {
get: function () {
return this.ab4;
},
set: function (a) {
var b = this.ada;
if (a != b) {
this.ab4 = a;
this.wn("ValueAxisMajorStrokeThickness", b, this.ada);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acq", {
get: function () {
return this.abo;
},
set: function (a) {
var b = this.acq;
if (a != b) {
this.abo = a;
this.wn("AngleAxisMinorStrokeThickness", b, this.acq);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "add", {
get: function () {
return this.ab7;
},
set: function (a) {
var b = this.add;
if (a != b) {
this.ab7 = a;
this.wn("ValueAxisMinorStrokeThickness", b, this.add);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahn", {
get: function () {
return this.ag7;
},
set: function (a) {
var b = this.ahn;
if (a != b) {
this.ag7 = a;
this.wn("AngleAxisStrip", b, this.ahn);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahu", {
get: function () {
return this.ahe;
},
set: function (a) {
var b = this.ahu;
if (a != b) {
this.ahe = a;
this.wn("ValueAxisStrip", b, this.ahu);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aho", {
get: function () {
return this.ag8;
},
set: function (a) {
var b = this.aho;
if (a != b) {
this.ag8 = a;
this.wn("AngleAxisStroke", b, this.aho);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahv", {
get: function () {
return this.ahf;
},
set: function (a) {
var b = this.ahv;
if (a != b) {
this.ahf = a;
this.wn("ValueAxisStroke", b, this.ahv);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acr", {
get: function () {
return this.abp;
},
set: function (a) {
var b = this.acr;
if (a != b) {
this.abp = a;
this.wn("AngleAxisStrokeThickness", b, this.acr);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ade", {
get: function () {
return this.ab8;
},
set: function (a) {
var b = this.ade;
if (a != b) {
this.ab8 = a;
this.wn("ValueAxisStrokeThickness", b, this.ade);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "acs", {
get: function () {
return this.abq;
},
set: function (a) {
var b = this.acs;
if (a != b) {
this.abq = a;
this.wn("AngleAxisTickLength", b, this.acs);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adf", {
get: function () {
return this.ab9;
},
set: function (a) {
var b = this.adf;
if (a != b) {
this.ab9 = a;
this.wn("ValueAxisTickLength", b, this.adf);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahp", {
get: function () {
return this.ag9;
},
set: function (a) {
var b = this.ahp;
if (a != b) {
this.ag9 = a;
this.wn("AngleAxisTickStroke", b, this.ahp);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahw", {
get: function () {
return this.ahg;
},
set: function (a) {
var b = this.ahw;
if (a != b) {
this.ahg = a;
this.wn("ValueAxisTickStroke", b, this.ahw);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "act", {
get: function () {
return this.abr;
},
set: function (a) {
var b = this.act;
if (a != b) {
this.abr = a;
this.wn("AngleAxisTickStrokeThickness", b, this.act);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adg", {
get: function () {
return this.aca;
},
set: function (a) {
var b = this.adg;
if (a != b) {
this.aca = a;
this.wn("ValueAxisTickStrokeThickness", b, this.adg);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aew", {
get: function () {
return this.adt;
},
set: function (a) {
var b = this.aew;
if (a != b) {
this.adt = a;
this.wn("AngleAxisTitle", b, this.aew);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "af4", {
get: function () {
return this.adx;
},
set: function (a) {
var b = this.af4;
if (a != b) {
this.adx = a;
this.wn("ValueAxisTitle", b, this.af4);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ahm", {
get: function () {
return this.ag6;
},
set: function (a) {
var b = this.ahm;
if (a != b) {
this.ag6 = a;
this.wn("AngleAxisMinorStroke", b, this.ahm);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aht", {
get: function () {
return this.ahd;
},
set: function (a) {
var b = this.aht;
if (a != b) {
this.ahd = a;
this.wn("ValueAxisMinorStroke", b, this.aht);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aci", {
get: function () {
return this.abg;
},
set: function (a) {
var b = this.aci;
if (a != b) {
this.abg = a;
this.wn("AngleAxisLabelAngle", b, this.aci);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac5", {
get: function () {
return this.abz;
},
set: function (a) {
var b = this.ac5;
if (a != b) {
this.abz = a;
this.wn("ValueAxisLabelAngle", b, this.ac5);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ach", {
get: function () {
return this.abf;
},
set: function (a) {
var b = this.ach;
if (a != b) {