UNPKG

igniteui-react-charts

Version:

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

297 lines (296 loc) 9.56 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-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 */ export let DataPieChart = /*@__PURE__*/ (() => { class DataPieChart extends DataPieBaseChart { vs() { super.vs(); if (this.dataChart == null) { return; } let a = this.dataChart.dc.j.e(); if (this.ahf == null) { this.ahf = a.k; } if (this.ahm == null) { this.ahm = a.k; } this.ada = 0; this.ahn = BrushUtil.j(0, 0, 0, 0); this.ahq = BrushUtil.j(0, 0, 0, 0); this.ahj = BrushUtil.j(0, 0, 0, 0); this.ahg = BrushUtil.j(0, 0, 0, 0); this.acn = 0; this.ahk = BrushUtil.j(0, 0, 0, 0); this.aco = AxisDefaults.axis_TickStroke; this.ah1 = 1; this.ah2 = 1; this.crosshairsDisplayMode = 1; this.gu = true; this.ju = Defaults.crosshairLineThickness; this.y4 = Defaults.crosshairLineBrush; this.yz = Defaults.crosshairXAxisAnnotationBackground; this.y0 = Defaults.crosshairXAxisAnnotationTextColor; this.autoCalloutsVisible = true; this.hs = true; this.ha = false; this.hi = false; this.bz = 1; this.bv = 11; this.al4 = true; this.yt = BrushUtil.j(255, 255, 255, 255); this.jt = DeviceUtils.g(2); this.gq = true; this.go = true; this.gl = true; this.dl = 4; this.dj = 4; } vu(a, b) { super.vu(a, b); a.kf = this.al7; a.kg = this.al8; a.df = this.al1; a.dg = this.al2; } wn(a, b, c) { super.wn(a, b, c); switch (a) { case "TransitionInDuration": this.vh((d) => d.kf = this.al7); break; case "TransitionOutDuration": this.vh((d) => d.kg = this.al8); break; case "TransitionInEasingFunction": this.vh((d) => d.df = this.al1); break; case "TransitionOutEasingFunction": this.vh((d) => d.dg = this.al2); break; } } get al7() { return this.al5; } set al7(a) { let b = this.al7; if (a != b) { this.al5 = a; this.wj("TransitionInDuration", b, this.al7); } } get al8() { return this.al6; } set al8(a) { let b = this.al8; if (a != b) { this.al6 = a; this.wj("TransitionOutDuration", b, this.al8); } } get al1() { return this.alz; } set al1(a) { let b = this.al1; if (a != b) { this.alz = a; this.wj("TransitionInEasingFunction", b, this.al1); } } get al2() { return this.al0; } set al2(a) { let b = this.al2; if (a != b) { this.al0 = a; this.wj("TransitionOutEasingFunction", b, this.al2); } } ama() { let cvd_ = this.l9(); cvd_.scaleByViewport(); return (cvd_.serialize()); } constructor() { super(); this.al5 = 1000; this.al6 = 1000; this.alz = null; this.al0 = null; this.alv = 0; this.al3 = true; this.alt = 0; this.alx = 3; this.u8(); } get_h6() { return ((() => { let $ret = new List$1(DataSeriesType_$type, 0); $ret.add(35); return $ret; })()); } get h6() { return this.get_h6(); } get_h5() { return ((() => { let $ret = new List$1(IDataSeriesAdapterRule_$type, 0); $ret.add(new SimplePieSeriesRule()); $ret.add(new SubCollectionsRule()); return $ret; })()); } get h5() { return this.get_h5(); } get_ai4() { return false; } be(a) { if (this.alw == 0) { return a.suggestedSeries; } if (this.alw == 1) { return 35; } return 35; } dc(a, b) { let c = super.dc(a, b); return c; } vn(a, b) { super.vn(a, b); } vt(a, b) { super.vt(a, b); let c = typeCast(RadialBase.$, a); if (c == null) { return; } c.zw = this.al4; c.y8 = this.alu; c.c6 = this.aly; } ux(a, b) { super.ux(a, b); let c = typeCast(RadialPieSeries.$, a); if (c != null) { c.xf = this.c2(a, b); } } c1(a) { return 13; } wj(a, b, c) { super.wj(a, b, c); switch (a) { case "ChartType": this.ve(); break; case "IsTransitionInEnabled": this.vc((d) => { let e = typeCast(RadialBase.$, d); if (e == null) { return; } e.zw = c; }); break; case "TransitionInMode": this.vc((d) => { let e = typeCast(RadialBase.$, d); if (e == null) { return; } e.y8 = EnumUtil.getEnumValue(CategoryTransitionInMode_$type, c); }); break; case "TransitionInSpeedType": this.vc((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 alw() { return this.alv; } set alw(a) { if (a != this.alv) { let b = this.alw; this.alv = a; this.wj("ChartType", enumGetBox(DataPieChartType_$type, b), enumGetBox(DataPieChartType_$type, this.alw)); } } get al4() { return this.al3; } set al4(a) { let b = this.al4; if (a != b) { this.al3 = a; this.wj("IsTransitionInEnabled", b, this.al4); } } get alu() { return this.alt; } set alu(a) { let b = this.alu; if (a != b) { this.alt = a; this.wj("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.alu)); } } get aly() { return this.alx; } set aly(a) { let b = this.aly; if (a != b) { this.alx = a; this.wj("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.aly)); } } } DataPieChart.$t = /*@__PURE__*/ markType(DataPieChart, 'DataPieChart', DataPieBaseChart.$); return DataPieChart; })();