@loaders.gl/schema 4.5.3 → 5.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +14 -3
- package/dist/categories/category-gis.d.ts +1 -0
- package/dist/categories/category-gis.d.ts.map +1 -1
- package/dist/categories/category-image.d.ts +1 -1
- package/dist/categories/category-mesh.d.ts +54 -3
- package/dist/categories/category-mesh.d.ts.map +1 -1
- package/dist/categories/category-mesh.js +10 -1
- package/dist/categories/category-mesh.js.map +1 -1
- package/dist/deprecated/mesh-utils.d.ts +5 -18
- package/dist/deprecated/mesh-utils.d.ts.map +1 -1
- package/dist/deprecated/mesh-utils.js +13 -25
- package/dist/deprecated/mesh-utils.js.map +1 -1
- package/dist/dist.dev.js +1789 -352
- package/dist/dist.min.js +4 -3
- package/dist/float16.d.ts +19 -0
- package/dist/float16.d.ts.map +1 -0
- package/dist/float16.js +90 -0
- package/dist/float16.js.map +1 -0
- package/dist/geometry/arrow-binary-features.d.ts +45 -0
- package/dist/geometry/arrow-binary-features.d.ts.map +1 -0
- package/dist/geometry/arrow-binary-features.js +5 -0
- package/dist/geometry/arrow-binary-features.js.map +1 -0
- package/dist/geometry/geoarrow.d.ts +69 -0
- package/dist/geometry/geoarrow.d.ts.map +1 -0
- package/dist/geometry/geoarrow.js +5 -0
- package/dist/geometry/geoarrow.js.map +1 -0
- package/dist/index.cjs +180 -17
- package/dist/index.cjs.map +2 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/metadata.d.ts +40 -0
- package/dist/metadata.d.ts.map +1 -0
- package/dist/metadata.js +86 -0
- package/dist/metadata.js.map +1 -0
- package/dist/types/schema.d.ts +4 -1
- package/dist/types/schema.d.ts.map +1 -1
- package/dist/types/types.d.ts +3 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/types.js +1 -0
- package/dist/types/types.js.map +1 -1
- package/package.json +3 -2
- package/src/categories/category-gis.ts +8 -0
- package/src/categories/category-image.ts +1 -1
- package/src/categories/category-mesh.ts +86 -3
- package/src/deprecated/mesh-utils.ts +15 -35
- package/src/float16.ts +111 -0
- package/src/geometry/arrow-binary-features.ts +54 -0
- package/src/geometry/geoarrow.ts +116 -0
- package/src/index.ts +57 -9
- package/src/metadata.ts +115 -0
- package/src/types/schema.ts +3 -0
- package/src/types/types.ts +7 -0
package/src/types/schema.ts
CHANGED
|
@@ -24,7 +24,9 @@ export type DataType =
|
|
|
24
24
|
| 'float32'
|
|
25
25
|
| 'float64'
|
|
26
26
|
| 'binary'
|
|
27
|
+
| 'binary-view'
|
|
27
28
|
| 'utf8'
|
|
29
|
+
| 'utf8-view'
|
|
28
30
|
| 'date-day'
|
|
29
31
|
| 'date-millisecond'
|
|
30
32
|
| 'time-second'
|
|
@@ -40,6 +42,7 @@ export type DataType =
|
|
|
40
42
|
// Composite types
|
|
41
43
|
| {type: 'decimal'; bitWidth: number; precision: number; scale: number}
|
|
42
44
|
| {type: 'list'; children: Field[]} // one child only
|
|
45
|
+
| {type: 'large-list'; children: Field[]} // one child only, with 64-bit offsets
|
|
43
46
|
| {type: 'struct'; children: Field[]}
|
|
44
47
|
| {
|
|
45
48
|
type: 'sparse-union';
|
package/src/types/types.ts
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
+
// Float16Array is declared in a separate TypeScript library. Preserve this reference so
|
|
6
|
+
// published declarations remain self-contained without changing the target or emitting runtime code.
|
|
7
|
+
// eslint-disable-next-line spaced-comment
|
|
8
|
+
/// <reference lib="es2025.float16" preserve="true" />
|
|
9
|
+
|
|
5
10
|
/** Any typed array */
|
|
6
11
|
export type TypedArray =
|
|
7
12
|
| Int8Array
|
|
@@ -11,6 +16,7 @@ export type TypedArray =
|
|
|
11
16
|
| Int32Array
|
|
12
17
|
| Uint32Array
|
|
13
18
|
| Uint8ClampedArray
|
|
19
|
+
| Float16Array
|
|
14
20
|
| Float32Array
|
|
15
21
|
| Float64Array;
|
|
16
22
|
|
|
@@ -23,6 +29,7 @@ export type TypedArrayConstructor =
|
|
|
23
29
|
| Uint16ArrayConstructor
|
|
24
30
|
| Int32ArrayConstructor
|
|
25
31
|
| Uint32ArrayConstructor
|
|
32
|
+
| Float16ArrayConstructor
|
|
26
33
|
| Float32ArrayConstructor
|
|
27
34
|
| Float64ArrayConstructor;
|
|
28
35
|
|