UNPKG

igniteui-react-charts

Version:

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

124 lines (123 loc) 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 { Base, runOn, delegateRemove, delegateCombine, markType } from "igniteui-react-core"; import { MinSummaryCalculator } from "igniteui-react-core"; import { MaxSummaryCalculator } from "igniteui-react-core"; import { SumSummaryCalculator } from "igniteui-react-core"; import { AverageSummaryCalculator } from "igniteui-react-core"; import { CountSummaryCalculator } from "igniteui-react-core"; /** * @hidden */ export let ChartSummaryDescription = /*@__PURE__*/ (() => { class ChartSummaryDescription extends Base { constructor(a, ..._rest) { super(); this.j = false; this.a = 0; this.m = null; this.b = 0; this.n = null; this.e = null; this.l = null; this.provideCalculator = null; this.g = null; a = (a == void 0) ? 0 : a; switch (a) { case 0: break; case 1: { let c = _rest[0]; this.p = c; this.c = 4; } break; case 2: { let c = _rest[0]; let d = _rest[1]; this.p = c; this.c = d; } break; } } get p() { return this.m; } set p(a) { this.m = a; } get c() { return this.b; } set c(a) { this.b = a; switch (this.b) { case 0: this.f = new MinSummaryCalculator(); break; case 1: this.f = new MaxSummaryCalculator(); break; case 2: this.f = new SumSummaryCalculator(); break; case 3: this.f = new AverageSummaryCalculator(); break; case 4: this.f = new CountSummaryCalculator(); break; } } get f() { return this.e; } set f(a) { this.e = a; } get o() { return this.l; } set o(a) { this.l = a; } equals(a) { let b = a; if (b == null) { return super.equals(a); } return b.p == this.p && b.c == this.c; } getHashCode() { return Base.getHashCodeStatic(this.p) * 17 + this.c; } get h() { return this.g; } set h(a) { let b = this.g; if (b != null) { b.provideCalculator = delegateRemove(b.provideCalculator, runOn(this, this.q)); } this.g = a; if (this.g != null) { let c = this.g; c.provideCalculator = delegateCombine(c.provideCalculator, runOn(this, this.q)); } } q(a, b) { if (this.provideCalculator != null) { this.provideCalculator(this, b); this.f = b.a; } } } ChartSummaryDescription.$t = /*@__PURE__*/ markType(ChartSummaryDescription, 'ChartSummaryDescription'); return ChartSummaryDescription; })();