igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,527 lines (1,526 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, __read, __spreadArray, __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.apply(this, __spreadArray([], __read(arguments), false)) || this;
_this.abn = null;
_this.abo = null;
_this.ab2 = 0;
_this.ab4 = 5;
_this.ab3 = 0;
_this.ab1 = 5;
_this.acl = 5;
_this.acn = 0;
_this.acm = 5;
_this.ack = 0;
_this.aho = null;
_this.ahv = null;
_this.ahm = null;
_this.ahn = null;
_this.acf = 0;
_this.acy = 0;
_this.ace = NaN;
_this.acx = NaN;
_this.ach = NaN;
_this.ac0 = NaN;
_this.acg = NaN;
_this.acz = NaN;
_this.acd = NaN;
_this.acw = NaN;
_this.ahu = null;
_this.ah1 = null;
_this.aec = null;
_this.aeg = null;
_this.aee = null;
_this.aei = null;
_this.ad7 = null;
_this.ad8 = null;
_this.ahp = null;
_this.ahw = null;
_this.ab5 = DeviceUtils.g(1);
_this.aco = DeviceUtils.g(1);
_this.ab8 = DeviceUtils.g(1);
_this.acr = DeviceUtils.g(1);
_this.ahr = null;
_this.ahy = null;
_this.ahs = null;
_this.ahz = null;
_this.ab9 = DeviceUtils.g(1);
_this.acs = DeviceUtils.g(1);
_this.aca = DeviceUtils.g(8);
_this.act = 0;
_this.aht = null;
_this.ah0 = null;
_this.acb = DeviceUtils.g(1);
_this.acu = DeviceUtils.g(1);
_this.aed = null;
_this.aeh = null;
_this.ahq = null;
_this.ahx = null;
_this.ab0 = 0;
_this.acj = 0;
_this.abz = NaN;
_this.ab6 = NaN;
_this.ab7 = NaN;
_this.aci = NaN;
_this.acp = NaN;
_this.acq = NaN;
_this.acc = 0;
_this.acv = -90;
_this.abv = false;
_this.abw = false;
_this.ahh = 1;
_this.aik = 1;
_this.ahg = 1;
_this.ahi = 2;
_this.aii = 0;
_this.aij = 1;
_this.aio = 0;
_this.aip = 0;
_this.abt = 4;
_this.abj = 4;
_this.aeb = null;
_this.abf = null;
_this.aef = null;
_this.abg = null;
return _this;
}
RadialBaseChart.prototype.provideContainer = function (a) {
if (a != null) {
var b = this.abl();
var c = this.abm();
if (b != null) {
b.provideRenderer(a);
}
if (c != null) {
c.provideRenderer(a);
}
}
_super.prototype.provideContainer.call(this, a);
};
RadialBaseChart.prototype.v9 = function () {
_super.prototype.v9.call(this);
var a = this.abl();
var b = this.abm();
if (a != null && a.a4 != null) {
this.ah4 = a.a4.textColor;
}
if (b != null && b.a4 != null) {
this.aib = b.a4.textColor;
}
this.ah9 = AxisDefaults.axis_TickBrush;
this.aig = AxisDefaults.axis_TickBrush;
this.ah5 = AxisDefaults.axis_MajorBrush;
this.aic = AxisDefaults.axis_MajorBrush;
this.ah8 = AxisDefaults.axis_LineBrush;
this.aif = AxisDefaults.axis_LineBrush;
};
RadialBaseChart.prototype.w5 = function (a, b, c) {
var _this = this;
_super.prototype.w5.call(this, a, b, c);
switch (a) {
case "AngleAxisLabelLeftMargin":
this.ag8(function (d) { return d.leftMargin = _this.ac4; });
break;
case "AngleAxisLabelTopMargin":
this.ag8(function (d) { return d.topMargin = _this.ac6; });
break;
case "AngleAxisLabelRightMargin":
this.ag8(function (d) { return d.rightMargin = _this.ac5; });
break;
case "AngleAxisLabelBottomMargin":
this.ag8(function (d) { return d.bottomMargin = _this.ac3; });
break;
case "ValueAxisLabelLeftMargin":
this.ahd(function (d) { return d.leftMargin = _this.adr; });
break;
case "ValueAxisLabelTopMargin":
this.ahd(function (d) { return d.topMargin = _this.adt; });
break;
case "ValueAxisLabelRightMargin":
this.ahd(function (d) { return d.rightMargin = _this.ads; });
break;
case "ValueAxisLabelBottomMargin":
this.ahd(function (d) { return d.bottomMargin = _this.adq; });
break;
case "ActualItemsSource":
case "ShouldDisplayMockData":
case "ShouldUseSkeletonStyleForMockData":
this.ah2 = this.aad(this.ah4);
this.ah3 = this.aad(this.aib);
break;
case "AngleAxisLabelTextColor":
this.ah2 = this.aad(this.ah4);
break;
case "ValueAxisLabelTextColor":
this.ah3 = this.aad(this.aib);
break;
case "ActualAngleAxisLabelTextColor":
this.ag8(function (d) { return d.textColor = _this.ah2; });
break;
case "ActualValueAxisLabelTextColor":
this.ahd(function (d) { return d.textColor = _this.ah3; });
break;
case "AngleAxisTitleMargin":
this.aha(function (d) { return d.margin = _this.adh; });
break;
case "ValueAxisTitleMargin":
this.ahf(function (d) { return d.margin = _this.ad4; });
break;
case "AngleAxisTitleLeftMargin":
this.aha(function (d) { return d.leftMargin = _this.adg; });
break;
case "ValueAxisTitleLeftMargin":
this.ahf(function (d) { return d.leftMargin = _this.ad3; });
break;
case "AngleAxisTitleTopMargin":
this.aha(function (d) { return d.topMargin = _this.adj; });
break;
case "ValueAxisTitleTopMargin":
this.ahf(function (d) { return d.topMargin = _this.ad6; });
break;
case "AngleAxisTitleRightMargin":
this.aha(function (d) { return d.rightMargin = _this.adi; });
break;
case "ValueAxisTitleRightMargin":
this.ahf(function (d) { return d.rightMargin = _this.ad5; });
break;
case "AngleAxisTitleBottomMargin":
this.aha(function (d) { return d.bottomMargin = _this.adf; });
break;
case "ValueAxisTitleBottomMargin":
this.ahf(function (d) { return d.bottomMargin = _this.ad2; });
break;
case "AngleAxisTitleTextColor":
this.aha(function (d) { return d.textColor = _this.aia; });
break;
case "ValueAxisTitleTextColor":
this.ahf(function (d) { return d.textColor = _this.aih; });
break;
case "AngleAxisFormatLabel":
this.ag6(function (d) { return d.az = _this.abp; });
break;
case "ValueAxisFormatLabel":
this.ahb(function (d) { return d.az = _this.abq; });
break;
}
};
Object.defineProperty(RadialBaseChart.prototype, "abp", {
get: function () {
return this.abn;
},
set: function (a) {
var b = this.abp;
if (a != b) {
this.abn = a;
this.w1("AngleAxisFormatLabel", b, this.abp);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "abq", {
get: function () {
return this.abo;
},
set: function (a) {
var b = this.abq;
if (a != b) {
this.abo = a;
this.w1("ValueAxisFormatLabel", b, this.abq);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac4", {
get: function () {
return this.ab2;
},
set: function (a) {
var b = this.ac4;
if (a != b) {
this.ab2 = a;
this.w1("AngleAxisLabelLeftMargin", b, this.ac4);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac6", {
get: function () {
return this.ab4;
},
set: function (a) {
var b = this.ac6;
if (a != b) {
this.ab4 = a;
this.w1("AngleAxisLabelTopMargin", b, this.ac6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac5", {
get: function () {
return this.ab3;
},
set: function (a) {
var b = this.ac5;
if (a != b) {
this.ab3 = a;
this.w1("AngleAxisLabelRightMargin", b, this.ac5);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac3", {
get: function () {
return this.ab1;
},
set: function (a) {
var b = this.ac3;
if (a != b) {
this.ab1 = a;
this.w1("AngleAxisLabelBottomMargin", b, this.ac3);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adr", {
get: function () {
return this.acl;
},
set: function (a) {
var b = this.adr;
if (a != b) {
this.acl = a;
this.w1("ValueAxisLabelLeftMargin", b, this.adr);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adt", {
get: function () {
return this.acn;
},
set: function (a) {
var b = this.adt;
if (a != b) {
this.acn = a;
this.w1("ValueAxisLabelTopMargin", b, this.adt);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ads", {
get: function () {
return this.acm;
},
set: function (a) {
var b = this.ads;
if (a != b) {
this.acm = a;
this.w1("ValueAxisLabelRightMargin", b, this.ads);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adq", {
get: function () {
return this.ack;
},
set: function (a) {
var b = this.adq;
if (a != b) {
this.ack = a;
this.w1("ValueAxisLabelBottomMargin", b, this.adq);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ah4", {
get: function () {
return this.aho;
},
set: function (a) {
var b = this.ah4;
if (a != b) {
this.aho = a;
this.w1("AngleAxisLabelTextColor", b, this.ah4);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aib", {
get: function () {
return this.ahv;
},
set: function (a) {
var b = this.aib;
if (a != b) {
this.ahv = a;
this.w1("ValueAxisLabelTextColor", b, this.aib);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ah2", {
get: function () {
return this.ahm;
},
set: function (a) {
var b = this.ahm;
if (a != b) {
this.ahm = a;
this.w1("ActualAngleAxisLabelTextColor", b, this.ah2);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ah3", {
get: function () {
return this.ahn;
},
set: function (a) {
var b = this.ahn;
if (a != b) {
this.ahn = a;
this.w1("ActualValueAxisLabelTextColor", b, this.ah3);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adh", {
get: function () {
return this.acf;
},
set: function (a) {
var b = this.adh;
if (a != b) {
this.acf = a;
this.w1("AngleAxisTitleMargin", b, this.adh);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ad4", {
get: function () {
return this.acy;
},
set: function (a) {
var b = this.ad4;
if (a != b) {
this.acy = a;
this.w1("ValueAxisTitleMargin", b, this.ad4);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adg", {
get: function () {
return this.ace;
},
set: function (a) {
var b = this.adg;
if (a != b) {
this.ace = a;
this.w1("AngleAxisTitleLeftMargin", b, this.adg);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ad3", {
get: function () {
return this.acx;
},
set: function (a) {
var b = this.ad3;
if (a != b) {
this.acx = a;
this.w1("ValueAxisTitleLeftMargin", b, this.ad3);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adj", {
get: function () {
return this.ach;
},
set: function (a) {
var b = this.adj;
if (a != b) {
this.ach = a;
this.w1("AngleAxisTitleTopMargin", b, this.adj);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ad6", {
get: function () {
return this.ac0;
},
set: function (a) {
var b = this.ad6;
if (a != b) {
this.ac0 = a;
this.w1("ValueAxisTitleTopMargin", b, this.ad6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adi", {
get: function () {
return this.acg;
},
set: function (a) {
var b = this.adi;
if (a != b) {
this.acg = a;
this.w1("AngleAxisTitleRightMargin", b, this.adi);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ad5", {
get: function () {
return this.acz;
},
set: function (a) {
var b = this.ad5;
if (a != b) {
this.acz = a;
this.w1("ValueAxisTitleRightMargin", b, this.ad5);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adf", {
get: function () {
return this.acd;
},
set: function (a) {
var b = this.adf;
if (a != b) {
this.acd = a;
this.w1("AngleAxisTitleBottomMargin", b, this.adf);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ad2", {
get: function () {
return this.acw;
},
set: function (a) {
var b = this.ad2;
if (a != b) {
this.acw = a;
this.w1("ValueAxisTitleBottomMargin", b, this.ad2);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aia", {
get: function () {
return this.ahu;
},
set: function (a) {
var b = this.aia;
if (a != b) {
this.ahu = a;
this.w1("AngleAxisTitleTextColor", b, this.aia);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aih", {
get: function () {
return this.ah1;
},
set: function (a) {
var b = this.aih;
if (a != b) {
this.ah1 = a;
this.w1("ValueAxisTitleTextColor", b, this.aih);
}
},
enumerable: false,
configurable: true
});
RadialBaseChart.prototype.w6 = function (a, b, c) {
var _this = this;
_super.prototype.w6.call(this, a, b, c);
switch (a) {
case "AngleAxisLabelTextStyle":
this.ag8(function (d) { return d.textStyle = _this.aez; });
break;
case "ValueAxisLabelTextStyle":
this.ahd(function (d) { return d.textStyle = _this.af7; });
break;
case "AngleAxisTitleTextStyle":
this.aha(function (d) { return d.textStyle = _this.afp; });
break;
case "ValueAxisTitleTextStyle":
this.ahf(function (d) { return d.textStyle = _this.agx; });
break;
}
};
Object.defineProperty(RadialBaseChart.prototype, "aez", {
get: function () {
return this.aec;
},
set: function (a) {
var b = this.aez;
if (a != b) {
this.aec = a;
this.w1("AngleAxisLabelTextStyle", b, this.aez);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "af7", {
get: function () {
return this.aeg;
},
set: function (a) {
var b = this.af7;
if (a != b) {
this.aeg = a;
this.w1("ValueAxisLabelTextStyle", b, this.af7);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "afp", {
get: function () {
return this.aee;
},
set: function (a) {
var b = this.afp;
if (a != b) {
this.aee = a;
this.w1("AngleAxisTitleTextStyle", b, this.afp);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "agx", {
get: function () {
return this.aei;
},
set: function (a) {
var b = this.agx;
if (a != b) {
this.aei = a;
this.w1("ValueAxisTitleTextStyle", b, this.agx);
}
},
enumerable: false,
configurable: true
});
RadialBaseChart.prototype.ag3 = function (a) {
var _this = this;
this.ag0(a, function (b) { return b.leftMargin = _this.ac4; });
this.ag0(a, function (b) { return b.topMargin = _this.ac6; });
this.ag0(a, function (b) { return b.rightMargin = _this.ac5; });
this.ag0(a, function (b) { return b.bottomMargin = _this.ac3; });
this.ag0(a, function (b) { return b.textColor = _this.ah2; });
this.ag1(a, function (b) { return b.textColor = _this.aia; });
this.ag1(a, function (b) { return b.leftMargin = _this.adg; });
this.ag1(a, function (b) { return b.topMargin = _this.adj; });
this.ag1(a, function (b) { return b.rightMargin = _this.adi; });
this.ag1(a, function (b) { return b.bottomMargin = _this.adf; });
this.ag0(a, function (b) { return b.textStyle = _this.aez; });
this.ag1(a, function (b) { return b.textStyle = _this.afp; });
};
RadialBaseChart.prototype.ag5 = function (a) {
var _this = this;
this.ag0(a, function (b) { return b.leftMargin = _this.adr; });
this.ag0(a, function (b) { return b.topMargin = _this.adt; });
this.ag0(a, function (b) { return b.rightMargin = _this.ads; });
this.ag0(a, function (b) { return b.bottomMargin = _this.adq; });
this.ag0(a, function (b) { return b.textColor = _this.ah3; });
this.ag1(a, function (b) { return b.textColor = _this.aih; });
this.ag1(a, function (b) { return b.leftMargin = _this.ad3; });
this.ag1(a, function (b) { return b.topMargin = _this.ad6; });
this.ag1(a, function (b) { return b.rightMargin = _this.ad5; });
this.ag1(a, function (b) { return b.bottomMargin = _this.ad2; });
this.ag0(a, function (b) { return b.textStyle = _this.af7; });
this.ag1(a, function (b) { return b.textStyle = _this.agx; });
};
RadialBaseChart.prototype.x0 = function (a) {
var b = this.bf(a);
var c = this.de(a, b);
if (c == null) {
return;
}
c.itemsSource = this.ij(a);
if (a.highlightedData != null) {
c.highlightedItemsSource = this.ik(a);
}
c.name = this.rg(a);
c.title = this.rh(a, b);
this.dataChart.series.add(c);
};
RadialBaseChart.prototype.ag6 = function (a) {
this.ag7(a, null);
};
RadialBaseChart.prototype.ag7 = function (a, b) {
a(this.abl());
};
RadialBaseChart.prototype.ahc = function (a, b) {
a(this.abm());
};
RadialBaseChart.prototype.ahb = function (a) {
this.ahc(a, true);
};
RadialBaseChart.prototype.vs = function (a, b) {
this.ag6(a);
this.ahc(a, b);
};
RadialBaseChart.prototype.aha = function (a) {
this.ag1(this.abl(), a);
};
RadialBaseChart.prototype.ahf = function (a) {
this.ag1(this.abm(), a);
};
RadialBaseChart.prototype.ahd = function (a) {
this.ag0(this.abm(), a);
};
RadialBaseChart.prototype.ag8 = function (a) {
this.ag0(this.abl(), a);
};
RadialBaseChart.prototype.adk = function (a) {
var b = this.abl();
return b.f6(a, new ScalerParams(1, this.aam, this.aal, b.dn));
};
RadialBaseChart.prototype.adm = function (a) {
var b = this.abl();
return b.f9(a, new ScalerParams(1, this.aam, this.aal, b.dn));
};
RadialBaseChart.prototype.adl = function (a) {
var b = this.abm();
return b.f6(a, new ScalerParams(1, this.aam, this.aal, b.dn));
};
RadialBaseChart.prototype.adn = function (a) {
var b = this.abm();
return b.f9(a, new ScalerParams(1, this.aam, this.aal, b.dn));
};
RadialBaseChart.prototype.xx = function (a) {
_super.prototype.xx.call(this, a);
if (a == null) {
return;
}
if (a.axes != null) {
var b = this.abl();
var c = this.abm();
if (a.axes.contains(b)) {
a.axes.remove(b);
}
if (a.axes.contains(c)) {
a.axes.remove(c);
}
}
};
RadialBaseChart.afs = 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.v4 = function (a, b) {
_super.prototype.v4.call(this, a, b);
if (a == this.dataChart) {
this.dataChart.axes.add(this.abl());
this.dataChart.axes.add(this.abm());
}
};
RadialBaseChart.prototype.ag2 = function (a) {
var _this = this;
if (a != null && this.mi != null && a.ha == null) {
a.provideRenderer(this.mi);
}
a.ol = this.ah5;
a.ge = this.ac7;
a.om = this.ah6;
a.gh = this.ada;
a.op = this.ah8;
a.g5 = this.adb;
a.oo = this.ah7;
a.g6 = this.adc;
a.oq = this.ah9;
a.g7 = this.add;
a.eg = true;
a.d6 = this.shouldAvoidAxisAnnotationCollisions;
a.d8 = this.shouldAvoidAxisAnnotationCollisions;
var b = a == this.abl();
if (b) {
a.j3 = this.afg;
}
a.hx = this.ad9;
a.jb = this.aeq;
a.ah = this.abh;
this.ag0(a, function (c) { return c.angle = _this.ac2; });
this.ag0(a, function (c) {
if (c.extent != _this.ac1) {
c.extent = _this.ac1;
}
});
this.ag0(a, function (c) {
if (c.maximumExtent != _this.ac8) {
c.maximumExtent = _this.ac8;
}
});
this.ag0(a, function (c) {
if (c.maximumExtentPercentage != _this.ac9) {
c.maximumExtentPercentage = _this.ac9;
}
});
this.ag0(a, function (c) { return c.horizontalAlignment = _this.ahj; });
this.ag0(a, function (c) { return c.verticalAlignment = _this.ail; });
this.ag0(a, function (c) { return c.visibility = _this.aiq; });
this.ag0(a, function (c) { return c.location = _this.abr(_this.abk); });
this.ag1(a, function (c) { return c.horizontalAlignment = _this.ahk; });
this.ag1(a, function (c) { return c.angle = _this.ade; });
this.ag3(a);
};
RadialBaseChart.prototype.ag4 = function (a) {
var _this = this;
if (a == null) {
return;
}
if (this.mi != null && a.ha == null) {
a.provideRenderer(this.mi);
}
a.d6 = this.shouldAvoidAxisAnnotationCollisions;
a.d8 = this.shouldAvoidAxisAnnotationCollisions;
this.ag0(a, function (b) { return b.angle = _this.adp; });
this.ag0(a, function (b) {
if (b.extent != _this.ado) {
b.extent = _this.ado;
}
});
this.ag0(a, function (b) {
if (b.maximumExtent != _this.adv) {
b.maximumExtent = _this.adv;
}
});
this.ag0(a, function (b) {
if (b.maximumExtentPercentage != _this.adw) {
b.maximumExtentPercentage = _this.adw;
}
});
this.ag0(a, function (b) { return b.horizontalAlignment = _this.ahl; });
this.ag0(a, function (b) { return b.verticalAlignment = _this.aim; });
this.ag0(a, function (b) { return b.visibility = _this.air; });
this.ag0(a, function (b) { return b.location = _this.abs(_this.abu); });
this.ag1(a, function (b) { return b.verticalAlignment = _this.ain; });
this.ag1(a, function (b) { return b.angle = _this.ad1; });
a.ol = this.aic;
a.ge = this.adu;
a.om = this.aid;
a.gh = this.adx;
a.op = this.aif;
a.g5 = this.ady;
a.oo = this.aie;
a.g6 = this.adz;
a.oq = this.aig;
a.g7 = this.ad0;
var b = a == this.abm();
if (b) {
a.j3 = this.ago;
}
a.jb = this.afy;
a.ah = this.abi;
this.ag5(a);
};
RadialBaseChart.prototype.v1 = function () {
_super.prototype.v1.call(this);
this.ag2(this.abl());
this.ag4(this.abm());
};
RadialBaseChart.prototype.ag0 = function (a, b) {
if (a == null) {
return;
}
if (a.a4 == null) {
a.a4 = new AxisLabelSettings();
a.a4.angle = a.fs();
a.a4.bottomMargin = a.ft();
a.a4.leftMargin = a.fu();
a.a4.rightMargin = a.fv();
a.a4.topMargin = a.fw();
a.a4.horizontalAlignment = a.n9();
a.a4.location = a.a6();
a.a4.verticalAlignment = a.pe();
}
b(a.a4);
};
RadialBaseChart.prototype.ag1 = function (a, b) {
if (a == null) {
return;
}
if (a.b4 == null) {
a.b4 = new TitleSettings();
a.b4.bottomMargin = a.fy();
a.b4.leftMargin = a.fz();
a.b4.rightMargin = a.f0();
a.b4.topMargin = a.f1();
a.b4.location = a.a7();
a.b4.angle = a.fx();
a.b4.horizontalAlignment = a.oa();
a.b4.verticalAlignment = a.pf();
}
b(a.b4);
};
RadialBaseChart.prototype.w1 = function (a, b, c) {
var _this = this;
_super.prototype.w1.call(this, a, b, c);
switch (a) {
case "AngleAxisLabelAngle":
this.ag8(function (d) { return d.angle = _this.ac2; });
break;
case "ValueAxisLabelAngle":
this.ahd(function (d) { return d.angle = _this.adp; });
break;
case "AngleAxisLabelHorizontalAlignment":
this.ag8(function (d) { return d.horizontalAlignment = _this.ahj; });
break;
case "ValueAxisLabelHorizontalAlignment":
this.ahd(function (d) { return d.horizontalAlignment = _this.ahl; });
break;
case "AngleAxisLabelVerticalAlignment":
this.ag8(function (d) { return d.verticalAlignment = _this.ail; });
break;
case "ValueAxisLabelVerticalAlignment":
this.ahd(function (d) { return d.verticalAlignment = _this.aim; });
break;
case "AngleAxisLabelVisibility":
this.ag8(function (d) { return d.visibility = _this.aiq; });
break;
case "ValueAxisLabelVisibility":
this.ahd(function (d) { return d.visibility = _this.air; });
break;
case "AngleAxisLabel":
this.ag6(function (d) { return d.hx = _this.ad9; });
break;
case "ValueAxisLabel":
this.ahb(function (d) { return d.hx = _this.aea; });
break;
case "AngleAxisLabelFormat":
this.ag6(function (d) { return d.jb = _this.aeq; });
break;
case "AngleAxisLabelFormatSpecifiers":
this.ag6(function (d) { return d.ah = _this.abh; });
break;
case "ValueAxisLabelFormat":
this.ahb(function (d) { return d.jb = _this.afy; });
break;
case "ValueAxisLabelFormatSpecifiers":
this.ahb(function (d) { return d.ah = _this.abi; });
break;
case "AngleAxisTitleAngle":
this.aha(function (d) { return d.angle = _this.ade; });
break;
case "ValueAxisTitleAngle":
this.ahf(function (d) { return d.angle = _this.ad1; });
break;
case "AngleAxisTitleAlignment":
this.aha(function (d) { return d.horizontalAlignment = _this.ahk; });
break;
case "ValueAxisTitleAlignment":
this.ahf(function (d) { return d.verticalAlignment = _this.ain; });
break;
case "AngleAxisTitle":
this.ag6(function (d) { return d.j3 = _this.afg; });
break;
case "ValueAxisTitle":
this.ahc(function (d) { return d.j3 = _this.ago; }, false);
break;
case "AngleAxisMajorStroke":
this.ag7(function (d) { return d.ol = _this.ah5; }, a);
break;
case "ValueAxisMajorStroke":
this.ahb(function (d) { return d.ol = _this.aic; });
break;
case "AngleAxisMajorStrokeThickness":
this.ag7(function (d) { return d.ge = _this.ac7; }, a);
break;
case "ValueAxisMajorStrokeThickness":
this.ahb(function (d) { return d.ge = _this.adu; });
break;
case "AngleAxisMinorStroke":
this.ag6(function (d) { return d.om = _this.ah6; });
break;
case "ValueAxisMinorStroke":
this.ahb(function (d) { return d.om = _this.aid; });
break;
case "AngleAxisMinorStrokeThickness":
this.ag6(function (d) { return d.gh = _this.ada; });
break;
case "ValueAxisMinorStrokeThickness":
this.ahb(function (d) { return d.gh = _this.adx; });
break;
case "AngleAxisTickLength":
this.ag6(function (d) { return d.g6 = _this.adc; });
break;
case "ValueAxisTickLength":
this.ahb(function (d) { return d.g6 = _this.adz; });
break;
case "AngleAxisTickStroke":
this.ag6(function (d) { return d.oq = _this.ah9; });
break;
case "ValueAxisTickStroke":
this.ahb(function (d) { return d.oq = _this.aig; });
break;
case "AngleAxisTickStrokeThickness":
this.ag6(function (d) { return d.g7 = _this.add; });
break;
case "ValueAxisTickStrokeThickness":
this.ahb(function (d) { return d.g7 = _this.ad0; });
break;
case "AngleAxisStroke":
this.ag6(function (d) { return d.op = _this.ah8; });
break;
case "ValueAxisStroke":
this.ahb(function (d) { return d.op = _this.aif; });
break;
case "AngleAxisStrokeThickness":
this.ag6(function (d) { return d.g5 = _this.adb; });
break;
case "ValueAxisStrokeThickness":
this.ahb(function (d) { return d.g5 = _this.ady; });
break;
case "AngleAxisExtent":
this.ag8(function (d) { return d.extent = _this.ac1; });
break;
case "AngleAxisMaximumExtent":
this.ag8(function (d) { return d.maximumExtent = _this.ac8; });
break;
case "AngleAxisMaximumExtentPercentage":
this.ag8(function (d) { return d.maximumExtentPercentage = _this.ac9; });
break;
case "ValueAxisExtent":
this.ahd(function (d) { return d.extent = _this.ado; });
break;
case "ValueAxisMaximumExtent":
this.ahd(function (d) { return d.maximumExtent = _this.ac8; });
break;
case "ValueAxisMaximumExtentPercentage":
this.ahd(function (d) { return d.maximumExtentPercentage = _this.ac9; });
break;
case "AngleAxisStrip":
this.ag6(function (d) { return d.oo = _this.ah7; });
break;
case "ValueAxisStrip":
this.ahb(function (d) { return d.oo = _this.aie; });
break;
case "AngleAxisInverted":
this.ag6(function (d) { return d.dn = _this.abx; });
break;
case "ValueAxisInverted":
this.ahb(function (d) { return d.dn = _this.aby; });
break;
case "ValueAxisLabelLocation":
this.ahe();
break;
case "AngleAxisLabelLocation":
this.ag9();
break;
}
};
RadialBaseChart.prototype.ahe = function () {
var a = this.abs(this.abu);
if (a == 2 || a == 7) {
this.ahl = 2;
}
else {
this.ahl = 0;
}
this.ahd(function (b) { return b.location = a; });
};
RadialBaseChart.prototype.ag9 = function () {
var a = this.abr(this.abk);
if (a == 1 || a == 5) {
this.ail = 0;
}
else {
this.ail = 2;
}
this.ag8(function (b) { return b.location = a; });
};
RadialBaseChart.prototype.abs = 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.cd == 1) {
return 3;
}
else {
return 2;
}
}
};
RadialBaseChart.prototype.abr = 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, "ad9", {
get: function () {
return this.ad7;
},
set: function (a) {
var b = this.ad9;
if (a != b) {
this.ad7 = a;
this.w1("AngleAxisLabel", b, this.ad9);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aea", {
get: function () {
return this.ad8;
},
set: function (a) {
var b = this.aea;
if (a != b) {
this.ad8 = a;
this.w1("ValueAxisLabel", b, this.aea);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ah5", {
get: function () {
return this.ahp;
},
set: function (a) {
var b = this.ah5;
if (a != b) {
this.ahp = a;
this.w1("AngleAxisMajorStroke", b, this.ah5);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aic", {
get: function () {
return this.ahw;
},
set: function (a) {
var b = this.aic;
if (a != b) {
this.ahw = a;
this.w1("ValueAxisMajorStroke", b, this.aic);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac7", {
get: function () {
return this.ab5;
},
set: function (a) {
var b = this.ac7;
if (a != b) {
this.ab5 = a;
this.w1("AngleAxisMajorStrokeThickness", b, this.ac7);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adu", {
get: function () {
return this.aco;
},
set: function (a) {
var b = this.adu;
if (a != b) {
this.aco = a;
this.w1("ValueAxisMajorStrokeThickness", b, this.adu);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ada", {
get: function () {
return this.ab8;
},
set: function (a) {
var b = this.ada;
if (a != b) {
this.ab8 = a;
this.w1("AngleAxisMinorStrokeThickness", b, this.ada);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adx", {
get: function () {
return this.acr;
},
set: function (a) {
var b = this.adx;
if (a != b) {
this.acr = a;
this.w1("ValueAxisMinorStrokeThickness", b, this.adx);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ah7", {
get: function () {
return this.ahr;
},
set: function (a) {
var b = this.ah7;
if (a != b) {
this.ahr = a;
this.w1("AngleAxisStrip", b, this.ah7);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aie", {
get: function () {
return this.ahy;
},
set: function (a) {
var b = this.aie;
if (a != b) {
this.ahy = a;
this.w1("ValueAxisStrip", b, this.aie);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ah8", {
get: function () {
return this.ahs;
},
set: function (a) {
var b = this.ah8;
if (a != b) {
this.ahs = a;
this.w1("AngleAxisStroke", b, this.ah8);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aif", {
get: function () {
return this.ahz;
},
set: function (a) {
var b = this.aif;
if (a != b) {
this.ahz = a;
this.w1("ValueAxisStroke", b, this.aif);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adb", {
get: function () {
return this.ab9;
},
set: function (a) {
var b = this.adb;
if (a != b) {
this.ab9 = a;
this.w1("AngleAxisStrokeThickness", b, this.adb);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ady", {
get: function () {
return this.acs;
},
set: function (a) {
var b = this.ady;
if (a != b) {
this.acs = a;
this.w1("ValueAxisStrokeThickness", b, this.ady);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adc", {
get: function () {
return this.aca;
},
set: function (a) {
var b = this.adc;
if (a != b) {
this.aca = a;
this.w1("AngleAxisTickLength", b, this.adc);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adz", {
get: function () {
return this.act;
},
set: function (a) {
var b = this.adz;
if (a != b) {
this.act = a;
this.w1("ValueAxisTickLength", b, this.adz);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ah9", {
get: function () {
return this.aht;
},
set: function (a) {
var b = this.ah9;
if (a != b) {
this.aht = a;
this.w1("AngleAxisTickStroke", b, this.ah9);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aig", {
get: function () {
return this.ah0;
},
set: function (a) {
var b = this.aig;
if (a != b) {
this.ah0 = a;
this.w1("ValueAxisTickStroke", b, this.aig);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "add", {
get: function () {
return this.acb;
},
set: function (a) {
var b = this.add;
if (a != b) {
this.acb = a;
this.w1("AngleAxisTickStrokeThickness", b, this.add);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ad0", {
get: function () {
return this.acu;
},
set: function (a) {
var b = this.ad0;
if (a != b) {
this.acu = a;
this.w1("ValueAxisTickStrokeThickness", b, this.ad0);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "afg", {
get: function () {
return this.aed;
},
set: function (a) {
var b = this.afg;
if (a != b) {
this.aed = a;
this.w1("AngleAxisTitle", b, this.afg);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ago", {
get: function () {
return this.aeh;
},
set: function (a) {
var b = this.ago;
if (a != b) {
this.aeh = a;
this.w1("ValueAxisTitle", b, this.ago);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ah6", {
get: function () {
return this.ahq;
},
set: function (a) {
var b = this.ah6;
if (a != b) {
this.ahq = a;
this.w1("AngleAxisMinorStroke", b, this.ah6);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "aid", {
get: function () {
return this.ahx;
},
set: function (a) {
var b = this.aid;
if (a != b) {
this.ahx = a;
this.w1("ValueAxisMinorStroke", b, this.aid);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac2", {
get: function () {
return this.ab0;
},
set: function (a) {
var b = this.ac2;
if (a != b) {
this.ab0 = a;
this.w1("AngleAxisLabelAngle", b, this.ac2);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "adp", {
get: function () {
return this.acj;
},
set: function (a) {
var b = this.adp;
if (a != b) {
this.acj = a;
this.w1("ValueAxisLabelAngle", b, this.adp);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialBaseChart.prototype, "ac1", {
get: function () {
return this.abz;
},
set: function (a) {