UNPKG

igniteui-react-charts

Version:

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

95 lines (94 loc) 3.08 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, IList$1_$type, Number_$type, markType } from "igniteui-react-core"; import { ReadOnlyDoubleCollection } from "igniteui-react-core"; import { SafeEnumerable } from "./SafeEnumerable"; import { isInfinity, isNaN_ } from "igniteui-react-core"; /** * @hidden */ export let SafeReadOnlyDoubleCollection = /*@__PURE__*/ (() => { class SafeReadOnlyDoubleCollection extends Base { c(a) { if (isInfinity(a) || isNaN_(a)) { return this.b; } return a; } constructor(a, ..._rest) { super(); this.a = null; this.b = 0; a = (a == void 0) ? 0 : a; switch (a) { case 0: { let c = _rest[0]; this.a = new ReadOnlyDoubleCollection(1, c); } break; case 1: { let c = _rest[0]; let d = _rest[1]; this.a = new ReadOnlyDoubleCollection(1, c); this.b = d; } break; } } indexOf(a) { return this.a.indexOf(a); } insert(a, b) { this.a.insert(a, b); } removeAt(a) { this.a.removeAt(a); } item(a, b) { if (arguments.length === 2) { this.a.item(a, b); return b; } else { return this.c(this.a.item(a)); } } add(a) { this.a.add(a); } clear() { this.a.clear(); } contains(a) { return this.a.contains(a); } copyTo(a, b) { for (let c = b; c < a.length; c++) { a[c] = this.item(c); } } get count() { return this.a.count; } get isReadOnly() { return this.a.isReadOnly; } remove(a) { return this.a.remove(a); } getEnumerator() { return new SafeEnumerable(this.a).getEnumerator(); } getEnumeratorObject() { return this.getEnumerator(); } } SafeReadOnlyDoubleCollection.$t = /*@__PURE__*/ markType(SafeReadOnlyDoubleCollection, 'SafeReadOnlyDoubleCollection', Base.$, [/*@__PURE__*/ IList$1_$type.specialize(Number_$type)]); return SafeReadOnlyDoubleCollection; })();