@math.gl/types
Advanced tools
Comparing version 4.1.0-alpha.3 to 4.1.0-alpha.9
/** | ||
* TypeScript type covering all typed arrays | ||
* Type covering all non-big typed arrays | ||
*/ | ||
export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; | ||
/** | ||
* Type covering constructors for all non-big typed arrays | ||
*/ | ||
export type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor; | ||
/** | ||
* TypeScript type covering all typed arrays and classic arrays consisting of numbers | ||
* Type covering all big typed arrays | ||
*/ | ||
export type NumericArray = TypedArray | number[]; | ||
export type BigTypedArray = BigInt64Array | BigUint64Array; | ||
/** | ||
* TypeScript type for classic arrays consisting of numbers | ||
* Type covering constructors for all big typed arrays | ||
*/ | ||
export type BigTypedArrayConstructor = BigInt64ArrayConstructor | BigUint64ArrayConstructor; | ||
/** | ||
* Type for classic arrays consisting of numbers | ||
* @note Included for completeness / orthogonality, prefer `number[]` in actual use | ||
@@ -63,1 +70,24 @@ */ | ||
]; | ||
/** | ||
* Type covering classic arrays consisting of numbers as well as typed arrays | ||
*/ | ||
export type NumericArray = TypedArray | number[]; | ||
/** Array with exactly 1 number, or a typed array */ | ||
export type NumericArray1 = NumberArray1 | TypedArray; | ||
/** Array with exactly 2 numbers, or a typed array */ | ||
export type NumericArray2 = NumberArray2 | TypedArray; | ||
/** Array with exactly 3 numbers, or a typed array */ | ||
export type NumericArray3 = NumberArray3 | TypedArray; | ||
/** Array with exactly 4 numbers, or a typed array */ | ||
export type NumericArray4 = NumberArray4 | TypedArray; | ||
/** Array with exactly 6 numbers, or a typed array */ | ||
export type NumericArray6 = NumberArray6 | TypedArray; | ||
/** Array with exactly 8 numbers, or a typed array */ | ||
export type NumericArray8 = NumberArray8 | TypedArray; | ||
/** Array with exactly 9 numbers, or a typed array */ | ||
export type NumericArray9 = NumberArray9 | TypedArray; | ||
/** Array with exactly 12 numbers, or a typed array */ | ||
export type NumericArray12 = NumberArray12 | TypedArray; | ||
/** Array with exactly 16 numbers, or a typed array */ | ||
export type NumericArray16 = NumberArray16 | TypedArray; | ||
//# sourceMappingURL=array-types.d.ts.map |
@@ -5,1 +5,2 @@ // math.gl | ||
export {}; | ||
//# sourceMappingURL=array-types.js.map |
@@ -16,3 +16,3 @@ declare function BigIntUnavailable(): void; | ||
declare const BigIntCtor: typeof BigIntUnavailable | BigIntConstructor; | ||
declare const BigInt64ArrayCtor: typeof BigInt64ArrayUnavailable | BigInt64ArrayConstructor; | ||
declare const BigInt64ArrayCtor: BigInt64ArrayConstructor | typeof BigInt64ArrayUnavailable; | ||
declare const BigUint64ArrayCtor: BigUint64ArrayConstructor[] | (typeof BigInt64ArrayUnavailable)[]; | ||
@@ -22,1 +22,2 @@ export { BigIntCtor as BigInt }; | ||
export { BigUint64ArrayCtor as BigUint64Array }; | ||
//# sourceMappingURL=bigint.d.ts.map |
@@ -48,1 +48,2 @@ // math.gl | ||
export { BigUint64ArrayCtor as BigUint64Array }; | ||
//# sourceMappingURL=bigint.js.map |
@@ -11,1 +11,2 @@ /** 2 dimensional bounds [[minX, minY], [maxX, maxY]] */ | ||
export declare function getBounds2D(bounds: Bounds): Bounds2D; | ||
//# sourceMappingURL=bounds-types.d.ts.map |
@@ -17,1 +17,2 @@ // math.gl | ||
} | ||
//# sourceMappingURL=bounds-types.js.map |
@@ -1,3 +0,4 @@ | ||
export type { TypedArray, TypedArrayConstructor, NumericArray, NumberArray, NumberArray1, NumberArray2, NumberArray3, NumberArray4, NumberArray6, NumberArray8, NumberArray9, NumberArray12, NumberArray16 } from "./array-types.js"; | ||
export type { TypedArray, TypedArrayConstructor, BigTypedArray, BigTypedArrayConstructor, NumberArray, NumberArray1, NumberArray2, NumberArray3, NumberArray4, NumberArray6, NumberArray8, NumberArray9, NumberArray12, NumberArray16, NumericArray, NumericArray1, NumericArray2, NumericArray3, NumericArray4, NumericArray6, NumericArray8, NumericArray9, NumericArray12, NumericArray16 } from "./array-types.js"; | ||
export { isTypedArray, isNumberArray, isNumericArray } from "./is-array.js"; | ||
export type { Bounds, Bounds2D, Bounds3D } from "./bounds-types.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,1 +5,2 @@ // math.gl | ||
export { isTypedArray, isNumberArray, isNumericArray } from "./is-array.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -20,1 +20,2 @@ import { TypedArray, NumericArray, NumberArray } from "./array-types.js"; | ||
export declare function isNumericArray(value: unknown): value is NumericArray; | ||
//# sourceMappingURL=is-array.d.ts.map |
@@ -31,1 +31,2 @@ // math.gl | ||
} | ||
//# sourceMappingURL=is-array.js.map |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "4.1.0-alpha.3", | ||
"version": "4.1.0-alpha.9", | ||
"keywords": [ | ||
@@ -20,3 +20,3 @@ "typescript", | ||
"type": "git", | ||
"url": "https://github.com/uber-web/math.gl.git" | ||
"url": "https://github.com/visgl/math.gl.git" | ||
}, | ||
@@ -40,3 +40,3 @@ "types": "dist/index.d.ts", | ||
], | ||
"gitHead": "566d5ec1819367a7d7e98b413eed6f951913c35b" | ||
"gitHead": "fa5b6ee40cb05456fa32f85989abfa62e087f45e" | ||
} |
@@ -6,3 +6,3 @@ // math.gl | ||
/** | ||
* TypeScript type covering all typed arrays | ||
* Type covering all non-big typed arrays | ||
*/ | ||
@@ -20,6 +20,5 @@ export type TypedArray = | ||
// TODO | ||
// | BigInt64Array | ||
// | BigUint64Array; | ||
/** | ||
* Type covering constructors for all non-big typed arrays | ||
*/ | ||
export type TypedArrayConstructor = | ||
@@ -37,8 +36,13 @@ | Int8ArrayConstructor | ||
/** | ||
* TypeScript type covering all typed arrays and classic arrays consisting of numbers | ||
* Type covering all big typed arrays | ||
*/ | ||
export type NumericArray = TypedArray | number[]; | ||
export type BigTypedArray = BigInt64Array | BigUint64Array; | ||
/** | ||
* TypeScript type for classic arrays consisting of numbers | ||
* Type covering constructors for all big typed arrays | ||
*/ | ||
export type BigTypedArrayConstructor = BigInt64ArrayConstructor | BigUint64ArrayConstructor; | ||
/** | ||
* Type for classic arrays consisting of numbers | ||
* @note Included for completeness / orthogonality, prefer `number[]` in actual use | ||
@@ -104,1 +108,33 @@ */ | ||
]; | ||
/** | ||
* Type covering classic arrays consisting of numbers as well as typed arrays | ||
*/ | ||
export type NumericArray = TypedArray | number[]; | ||
/** Array with exactly 1 number, or a typed array */ | ||
export type NumericArray1 = NumberArray1 | TypedArray; | ||
/** Array with exactly 2 numbers, or a typed array */ | ||
export type NumericArray2 = NumberArray2 | TypedArray; | ||
/** Array with exactly 3 numbers, or a typed array */ | ||
export type NumericArray3 = NumberArray3 | TypedArray; | ||
/** Array with exactly 4 numbers, or a typed array */ | ||
export type NumericArray4 = NumberArray4 | TypedArray; | ||
/** Array with exactly 6 numbers, or a typed array */ | ||
export type NumericArray6 = NumberArray6 | TypedArray; | ||
/** Array with exactly 8 numbers, or a typed array */ | ||
export type NumericArray8 = NumberArray8 | TypedArray; | ||
/** Array with exactly 9 numbers, or a typed array */ | ||
export type NumericArray9 = NumberArray9 | TypedArray; | ||
/** Array with exactly 12 numbers, or a typed array */ | ||
export type NumericArray12 = NumberArray12 | TypedArray; | ||
/** Array with exactly 16 numbers, or a typed array */ | ||
export type NumericArray16 = NumberArray16 | TypedArray; |
@@ -26,5 +26,5 @@ // math.gl | ||
: [ | ||
[bounds[0][0], bounds[0][1]], | ||
[bounds[1][0], bounds[1][1]] | ||
]; | ||
[bounds[0][0], bounds[0][1]], | ||
[bounds[1][0], bounds[1][1]] | ||
]; | ||
} |
@@ -6,5 +6,8 @@ // math.gl | ||
export type { | ||
// typed arrays | ||
TypedArray, | ||
TypedArrayConstructor, | ||
NumericArray, | ||
BigTypedArray, | ||
BigTypedArrayConstructor, | ||
// numeric arrays (sized number arrays) | ||
NumberArray, | ||
@@ -19,3 +22,14 @@ NumberArray1, | ||
NumberArray12, | ||
NumberArray16 | ||
NumberArray16, | ||
// numeric arrays (sized number arrays or typed arrays) | ||
NumericArray, | ||
NumericArray1, | ||
NumericArray2, | ||
NumericArray3, | ||
NumericArray4, | ||
NumericArray6, | ||
NumericArray8, | ||
NumericArray9, | ||
NumericArray12, | ||
NumericArray16 | ||
} from './array-types'; | ||
@@ -22,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33985
30
532