UNPKG

igniteui-webcomponents-charts

Version:

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

297 lines (296 loc) 9.62 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 { 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 */ export let DataPieChart = /*@__PURE__*/ (() => { class DataPieChart extends DataPieBaseChart { vm() { super.vm(); if (this.dataChart == null) { return; } let 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; } vo(a, b) { super.vo(a, b); a.kf = this.alp; a.kg = this.alq; a.df = this.alj; a.dg = this.alk; } wh(a, b, c) { super.wh(a, b, c); switch (a) { case "TransitionInDuration": this.vb((d) => d.kf = this.alp); break; case "TransitionOutDuration": this.vb((d) => d.kg = this.alq); break; case "TransitionInEasingFunction": this.vb((d) => d.df = this.alj); break; case "TransitionOutEasingFunction": this.vb((d) => d.dg = this.alk); break; } } get alp() { return this.aln; } set alp(a) { let b = this.alp; if (a != b) { this.aln = a; this.wd("TransitionInDuration", b, this.alp); } } get alq() { return this.alo; } set alq(a) { let b = this.alq; if (a != b) { this.alo = a; this.wd("TransitionOutDuration", b, this.alq); } } get alj() { return this.alh; } set alj(a) { let b = this.alj; if (a != b) { this.alh = a; this.wd("TransitionInEasingFunction", b, this.alj); } } get alk() { return this.ali; } set alk(a) { let b = this.alk; if (a != b) { this.ali = a; this.wd("TransitionOutEasingFunction", b, this.alk); } } als() { let cvd_ = this.l5(); cvd_.scaleByViewport(); return (cvd_.serialize()); } constructor() { super(); 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(); } get_h2() { return ((() => { let $ret = new List$1(DataSeriesType_$type, 0); $ret.add(35); return $ret; })()); } get h2() { return this.get_h2(); } get_h1() { return ((() => { let $ret = new List$1(IDataSeriesAdapterRule_$type, 0); $ret.add(new SimplePieSeriesRule()); $ret.add(new SubCollectionsRule()); return $ret; })()); } get h1() { return this.get_h1(); } get_aim() { return false; } be(a) { if (this.ale == 0) { return a.suggestedSeries; } if (this.ale == 1) { return 35; } return 35; } dc(a, b) { let c = super.dc(a, b); return c; } vh(a, b) { super.vh(a, b); } vn(a, b) { super.vn(a, b); let c = typeCast(RadialBase.$, a); if (c == null) { return; } c.zw = this.alm; c.y8 = this.alc; c.c6 = this.alg; } ur(a, b) { super.ur(a, b); let c = typeCast(RadialPieSeries.$, a); if (c != null) { c.xf = this.c2(a, b); } } c1(a) { return 13; } wd(a, b, c) { super.wd(a, b, c); switch (a) { case "ChartType": this.u8(); break; case "IsTransitionInEnabled": this.u6((d) => { let e = typeCast(RadialBase.$, d); if (e == null) { return; } e.zw = c; }); break; case "TransitionInMode": this.u6((d) => { let e = typeCast(RadialBase.$, d); if (e == null) { return; } e.y8 = EnumUtil.getEnumValue(CategoryTransitionInMode_$type, c); }); break; case "TransitionInSpeedType": this.u6((d) => { let e = typeCast(RadialBase.$, d); if (e == null) { return; } e.c6 = EnumUtil.getEnumValue(TransitionInSpeedType_$type, c); }); break; } } get_cb() { return 4; } get cb() { return this.get_cb(); } get ale() { return this.ald; } set ale(a) { if (a != this.ald) { let b = this.ale; this.ald = a; this.wd("ChartType", enumGetBox(DataPieChartType_$type, b), enumGetBox(DataPieChartType_$type, this.ale)); } } get alm() { return this.all; } set alm(a) { let b = this.alm; if (a != b) { this.all = a; this.wd("IsTransitionInEnabled", b, this.alm); } } get alc() { return this.alb; } set alc(a) { let b = this.alc; if (a != b) { this.alb = a; this.wd("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.alc)); } } get alg() { return this.alf; } set alg(a) { let b = this.alg; if (a != b) { this.alf = a; this.wd("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.alg)); } } } DataPieChart.$t = /*@__PURE__*/ markType(DataPieChart, 'DataPieChart', DataPieBaseChart.$); return DataPieChart; })();