UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

344 lines (343 loc) 11.2 kB
/* 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 } from "tslib"; import { DataPieBaseChart } from "./DataPieBaseChart"; import { typeCast, EnumUtil, enumGetBox, markType } from "igniteui-react-core"; import { List$1 } from "igniteui-react-core"; import { DataSeriesType_$type } from "igniteui-react-core"; import { IDataSeriesAdapterRule_$type } from "igniteui-react-core"; import { SimplePieSeriesRule } from "igniteui-react-core"; import { SubCollectionsRule } from "igniteui-react-core"; import { DataPieChartType_$type } from "./DataPieChartType"; import { CategoryTransitionInMode_$type } from "./CategoryTransitionInMode"; import { TransitionInSpeedType_$type } from "./TransitionInSpeedType"; import { BrushUtil } from "igniteui-react-core"; import { AxisDefaults } from "./AxisDefaults"; import { Defaults } from "./Defaults"; import { DeviceUtils } from "igniteui-react-core"; import { RadialBase } from "./RadialBase"; import { RadialPieSeries } from "./RadialPieSeries"; /** * @hidden */ var DataPieChart = /** @class */ /*@__PURE__*/ (function (_super) { __extends(DataPieChart, _super); function DataPieChart() { var _this = _super.call(this) || this; _this.ak9 = 1000; _this.ala = 1000; _this.ak3 = null; _this.ak4 = null; _this.akz = 0; _this.ak7 = true; _this.akx = 0; _this.ak1 = 3; _this.ut(); return _this; } DataPieChart.prototype.vd = function () { _super.prototype.vd.call(this); if (this.dataChart == null) { return; } var a = this.dataChart.c9.j.e(); if (this.agn == null) { this.agn = a.k; } if (this.agu == null) { this.agu = a.k; } this.acm = 0; this.agv = BrushUtil.h(0, 0, 0, 0); this.agy = BrushUtil.h(0, 0, 0, 0); this.agr = BrushUtil.h(0, 0, 0, 0); this.ago = BrushUtil.h(0, 0, 0, 0); this.ab1 = 0; this.ags = BrushUtil.h(0, 0, 0, 0); this.ab2 = AxisDefaults.e; this.ag9 = 1; this.aha = 1; this.crosshairsDisplayMode = 1; this.gq = true; this.jq = Defaults.j; this.yo = Defaults.ae; this.yj = Defaults.af; this.yk = Defaults.ag; this.autoCalloutsVisible = true; this.ho = true; this.g6 = false; this.he = false; this.bz = 1; this.bv = 11; this.ak8 = true; this.yd = BrushUtil.h(255, 255, 255, 255); this.jp = DeviceUtils.g(2); this.go = true; this.gm = true; this.gj = true; this.dl = 4; this.dj = 4; }; DataPieChart.prototype.vf = function (a, b) { _super.prototype.vf.call(this, a, b); a.ke = this.alb; a.kf = this.alc; a.df = this.ak5; a.dg = this.ak6; }; DataPieChart.prototype.v7 = function (a, b, c) { var _this = this; _super.prototype.v7.call(this, a, b, c); switch (a) { case "TransitionInDuration": this.u2(function (d) { return d.ke = _this.alb; }); break; case "TransitionOutDuration": this.u2(function (d) { return d.kf = _this.alc; }); break; case "TransitionInEasingFunction": this.u2(function (d) { return d.df = _this.ak5; }); break; case "TransitionOutEasingFunction": this.u2(function (d) { return d.dg = _this.ak6; }); break; } }; Object.defineProperty(DataPieChart.prototype, "alb", { get: function () { return this.ak9; }, set: function (a) { var b = this.alb; if (a != b) { this.ak9 = a; this.v3("TransitionInDuration", b, this.alb); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "alc", { get: function () { return this.ala; }, set: function (a) { var b = this.alc; if (a != b) { this.ala = a; this.v3("TransitionOutDuration", b, this.alc); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "ak5", { get: function () { return this.ak3; }, set: function (a) { var b = this.ak5; if (a != b) { this.ak3 = a; this.v3("TransitionInEasingFunction", b, this.ak5); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "ak6", { get: function () { return this.ak4; }, set: function (a) { var b = this.ak6; if (a != b) { this.ak4 = a; this.v3("TransitionOutEasingFunction", b, this.ak6); } }, enumerable: false, configurable: true }); DataPieChart.prototype.ale = function () { var cvd_ = this.lz(); cvd_.scaleByViewport(); return (cvd_.serialize()); }; DataPieChart.prototype.get_h2 = function () { return ((function () { var $ret = new List$1(DataSeriesType_$type, 0); $ret.add(35); return $ret; })()); }; Object.defineProperty(DataPieChart.prototype, "h2", { get: function () { return this.get_h2(); }, enumerable: false, configurable: true }); DataPieChart.prototype.get_h1 = function () { return ((function () { var $ret = new List$1(IDataSeriesAdapterRule_$type, 0); $ret.add(new SimplePieSeriesRule()); $ret.add(new SubCollectionsRule()); return $ret; })()); }; Object.defineProperty(DataPieChart.prototype, "h1", { get: function () { return this.get_h1(); }, enumerable: false, configurable: true }); DataPieChart.prototype.get_ah9 = function () { return false; }; DataPieChart.prototype.be = function (a) { if (this.ak0 == 0) { return a.suggestedSeries; } if (this.ak0 == 1) { return 35; } return 35; }; DataPieChart.prototype.dc = function (a, b) { var c = _super.prototype.dc.call(this, a, b); return c; }; DataPieChart.prototype.u8 = function (a, b) { _super.prototype.u8.call(this, a, b); }; DataPieChart.prototype.ve = function (a, b) { _super.prototype.ve.call(this, a, b); var c = typeCast(RadialBase.$, a); if (c == null) { return; } c.zv = this.ak8; c.y5 = this.aky; c.c6 = this.ak2; }; DataPieChart.prototype.ui = function (a, b) { _super.prototype.ui.call(this, a, b); var c = typeCast(RadialPieSeries.$, a); if (c != null) { c.xc = this.c2(a, b); } }; DataPieChart.prototype.c1 = function (a) { return 13; }; DataPieChart.prototype.v3 = function (a, b, c) { _super.prototype.v3.call(this, a, b, c); switch (a) { case "ChartType": this.uz(); break; case "IsTransitionInEnabled": this.ux(function (d) { var e = typeCast(RadialBase.$, d); if (e == null) { return; } e.zv = c; }); break; case "TransitionInMode": this.ux(function (d) { var e = typeCast(RadialBase.$, d); if (e == null) { return; } e.y5 = EnumUtil.getEnumValue(CategoryTransitionInMode_$type, c); }); break; case "TransitionInSpeedType": this.ux(function (d) { var e = typeCast(RadialBase.$, d); if (e == null) { return; } e.c6 = EnumUtil.getEnumValue(TransitionInSpeedType_$type, c); }); break; } }; DataPieChart.prototype.get_cb = function () { return 4; }; Object.defineProperty(DataPieChart.prototype, "cb", { get: function () { return this.get_cb(); }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "ak0", { get: function () { return this.akz; }, set: function (a) { if (a != this.akz) { var b = this.ak0; this.akz = a; this.v3("ChartType", enumGetBox(DataPieChartType_$type, b), enumGetBox(DataPieChartType_$type, this.ak0)); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "ak8", { get: function () { return this.ak7; }, set: function (a) { var b = this.ak8; if (a != b) { this.ak7 = a; this.v3("IsTransitionInEnabled", b, this.ak8); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "aky", { get: function () { return this.akx; }, set: function (a) { var b = this.aky; if (a != b) { this.akx = a; this.v3("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.aky)); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "ak2", { get: function () { return this.ak1; }, set: function (a) { var b = this.ak2; if (a != b) { this.ak1 = a; this.v3("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.ak2)); } }, enumerable: false, configurable: true }); DataPieChart.$t = markType(DataPieChart, 'DataPieChart', DataPieBaseChart.$); return DataPieChart; }(DataPieBaseChart)); export { DataPieChart };