UNPKG

igniteui-webcomponents-charts

Version:

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

344 lines (343 loc) 11.4 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-webcomponents-core"; import { List$1 } from "igniteui-webcomponents-core"; import { DataSeriesType_$type } from "igniteui-webcomponents-core"; import { IDataSeriesAdapterRule_$type } from "igniteui-webcomponents-core"; import { SimplePieSeriesRule } from "igniteui-webcomponents-core"; import { SubCollectionsRule } from "igniteui-webcomponents-core"; import { DataPieChartType_$type } from "./DataPieChartType"; import { CategoryTransitionInMode_$type } from "./CategoryTransitionInMode"; import { TransitionInSpeedType_$type } from "./TransitionInSpeedType"; import { BrushUtil } from "igniteui-webcomponents-core"; import { AxisDefaults } from "./AxisDefaults"; import { Defaults } from "./Defaults"; import { DeviceUtils } from "igniteui-webcomponents-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.aln = 1000; _this.alo = 1000; _this.alh = null; _this.ali = null; _this.ald = 0; _this.all = true; _this.alb = 0; _this.alf = 3; _this.u2(); return _this; } DataPieChart.prototype.vm = function () { _super.prototype.vm.call(this); if (this.dataChart == null) { return; } var a = this.dataChart.c9.j.e(); if (this.agx == null) { this.agx = a.k; } if (this.ag4 == null) { this.ag4 = a.k; } this.acw = 0; this.ag5 = BrushUtil.j(0, 0, 0, 0); this.ag8 = BrushUtil.j(0, 0, 0, 0); this.ag1 = BrushUtil.j(0, 0, 0, 0); this.agy = BrushUtil.j(0, 0, 0, 0); this.acb = 0; this.ag2 = BrushUtil.j(0, 0, 0, 0); this.acc = AxisDefaults.axis_TickStroke; this.ahj = 1; this.ahk = 1; this.crosshairsDisplayMode = 1; this.gq = true; this.jq = Defaults.crosshairLineThickness; this.yy = Defaults.crosshairLineBrush; this.yt = Defaults.crosshairXAxisAnnotationBackground; this.yu = Defaults.crosshairXAxisAnnotationTextColor; this.autoCalloutsVisible = true; this.ho = true; this.g6 = false; this.he = false; this.bz = 1; this.bv = 11; this.alm = true; this.yn = BrushUtil.j(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.vo = function (a, b) { _super.prototype.vo.call(this, a, b); a.kf = this.alp; a.kg = this.alq; a.df = this.alj; a.dg = this.alk; }; DataPieChart.prototype.wh = function (a, b, c) { var _this = this; _super.prototype.wh.call(this, a, b, c); switch (a) { case "TransitionInDuration": this.vb(function (d) { return d.kf = _this.alp; }); break; case "TransitionOutDuration": this.vb(function (d) { return d.kg = _this.alq; }); break; case "TransitionInEasingFunction": this.vb(function (d) { return d.df = _this.alj; }); break; case "TransitionOutEasingFunction": this.vb(function (d) { return d.dg = _this.alk; }); break; } }; Object.defineProperty(DataPieChart.prototype, "alp", { get: function () { return this.aln; }, set: function (a) { var b = this.alp; if (a != b) { this.aln = a; this.wd("TransitionInDuration", b, this.alp); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "alq", { get: function () { return this.alo; }, set: function (a) { var b = this.alq; if (a != b) { this.alo = a; this.wd("TransitionOutDuration", b, this.alq); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "alj", { get: function () { return this.alh; }, set: function (a) { var b = this.alj; if (a != b) { this.alh = a; this.wd("TransitionInEasingFunction", b, this.alj); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "alk", { get: function () { return this.ali; }, set: function (a) { var b = this.alk; if (a != b) { this.ali = a; this.wd("TransitionOutEasingFunction", b, this.alk); } }, enumerable: false, configurable: true }); DataPieChart.prototype.als = function () { var cvd_ = this.l5(); 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_aim = function () { return false; }; DataPieChart.prototype.be = function (a) { if (this.ale == 0) { return a.suggestedSeries; } if (this.ale == 1) { return 35; } return 35; }; DataPieChart.prototype.dc = function (a, b) { var c = _super.prototype.dc.call(this, a, b); return c; }; DataPieChart.prototype.vh = function (a, b) { _super.prototype.vh.call(this, a, b); }; DataPieChart.prototype.vn = function (a, b) { _super.prototype.vn.call(this, a, b); var c = typeCast(RadialBase.$, a); if (c == null) { return; } c.zw = this.alm; c.y8 = this.alc; c.c6 = this.alg; }; DataPieChart.prototype.ur = function (a, b) { _super.prototype.ur.call(this, a, b); var c = typeCast(RadialPieSeries.$, a); if (c != null) { c.xf = this.c2(a, b); } }; DataPieChart.prototype.c1 = function (a) { return 13; }; DataPieChart.prototype.wd = function (a, b, c) { _super.prototype.wd.call(this, a, b, c); switch (a) { case "ChartType": this.u8(); break; case "IsTransitionInEnabled": this.u6(function (d) { var e = typeCast(RadialBase.$, d); if (e == null) { return; } e.zw = c; }); break; case "TransitionInMode": this.u6(function (d) { var e = typeCast(RadialBase.$, d); if (e == null) { return; } e.y8 = EnumUtil.getEnumValue(CategoryTransitionInMode_$type, c); }); break; case "TransitionInSpeedType": this.u6(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, "ale", { get: function () { return this.ald; }, set: function (a) { if (a != this.ald) { var b = this.ale; this.ald = a; this.wd("ChartType", enumGetBox(DataPieChartType_$type, b), enumGetBox(DataPieChartType_$type, this.ale)); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "alm", { get: function () { return this.all; }, set: function (a) { var b = this.alm; if (a != b) { this.all = a; this.wd("IsTransitionInEnabled", b, this.alm); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "alc", { get: function () { return this.alb; }, set: function (a) { var b = this.alc; if (a != b) { this.alb = a; this.wd("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.alc)); } }, enumerable: false, configurable: true }); Object.defineProperty(DataPieChart.prototype, "alg", { get: function () { return this.alf; }, set: function (a) { var b = this.alg; if (a != b) { this.alf = a; this.wd("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.alg)); } }, enumerable: false, configurable: true }); DataPieChart.$t = markType(DataPieChart, 'DataPieChart', DataPieBaseChart.$); return DataPieChart; }(DataPieBaseChart)); export { DataPieChart };