@loaders.gl/schema 4.0.0-alpha.4 → 4.0.0-alpha.6
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/dist/bundle.d.ts +2 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/bundle.js +2 -2
- package/dist/dist.min.js +13589 -0
- package/dist/es5/bundle.js +6 -0
- package/dist/es5/bundle.js.map +1 -0
- package/dist/es5/index.js +406 -0
- package/dist/es5/index.js.map +1 -0
- package/dist/es5/lib/mesh/convert-mesh.js +34 -0
- package/dist/es5/lib/mesh/convert-mesh.js.map +1 -0
- package/dist/es5/lib/mesh/deduce-mesh-schema.js +56 -0
- package/dist/es5/lib/mesh/deduce-mesh-schema.js.map +1 -0
- package/dist/es5/lib/mesh/mesh-to-arrow-table.js +2 -0
- package/dist/es5/lib/mesh/mesh-to-arrow-table.js.map +1 -0
- package/dist/es5/lib/mesh/mesh-utils.js +40 -0
- package/dist/es5/lib/mesh/mesh-utils.js.map +1 -0
- package/dist/es5/lib/table/arrow/arrow-type-utils.js +30 -0
- package/dist/es5/lib/table/arrow/arrow-type-utils.js.map +1 -0
- package/dist/es5/lib/table/arrow/convert-schema-arrow.js +179 -0
- package/dist/es5/lib/table/arrow/convert-schema-arrow.js.map +1 -0
- package/dist/es5/lib/table/arrow/convert-table-to-arrow.js +2 -0
- package/dist/es5/lib/table/arrow/convert-table-to-arrow.js.map +1 -0
- package/dist/es5/lib/table/arrow-api/arrow-like-field.js +49 -0
- package/dist/es5/lib/table/arrow-api/arrow-like-field.js.map +1 -0
- package/dist/es5/lib/table/arrow-api/arrow-like-schema.js +118 -0
- package/dist/es5/lib/table/arrow-api/arrow-like-schema.js.map +1 -0
- package/dist/es5/lib/table/arrow-api/arrow-like-table.js +80 -0
- package/dist/es5/lib/table/arrow-api/arrow-like-table.js.map +1 -0
- package/dist/es5/lib/table/arrow-api/arrow-like-type.js +740 -0
- package/dist/es5/lib/table/arrow-api/arrow-like-type.js.map +1 -0
- package/dist/es5/lib/table/arrow-api/enum.js +55 -0
- package/dist/es5/lib/table/arrow-api/enum.js.map +1 -0
- package/dist/es5/lib/table/arrow-api/get-type-info.js +27 -0
- package/dist/es5/lib/table/arrow-api/get-type-info.js.map +1 -0
- package/dist/es5/lib/table/arrow-api/index.js +44 -0
- package/dist/es5/lib/table/arrow-api/index.js.map +1 -0
- package/dist/es5/lib/table/batches/base-table-batch-aggregator.js +78 -0
- package/dist/es5/lib/table/batches/base-table-batch-aggregator.js.map +1 -0
- package/dist/es5/lib/table/batches/columnar-table-batch-aggregator.js +106 -0
- package/dist/es5/lib/table/batches/columnar-table-batch-aggregator.js.map +1 -0
- package/dist/es5/lib/table/batches/row-table-batch-aggregator.js +96 -0
- package/dist/es5/lib/table/batches/row-table-batch-aggregator.js.map +1 -0
- package/dist/es5/lib/table/batches/table-batch-aggregator.js +2 -0
- package/dist/es5/lib/table/batches/table-batch-aggregator.js.map +1 -0
- package/dist/es5/lib/table/batches/table-batch-builder.js +173 -0
- package/dist/es5/lib/table/batches/table-batch-builder.js.map +1 -0
- package/dist/es5/lib/table/simple-table/convert-table.js +82 -0
- package/dist/es5/lib/table/simple-table/convert-table.js.map +1 -0
- package/dist/es5/lib/table/simple-table/data-type.js +94 -0
- package/dist/es5/lib/table/simple-table/data-type.js.map +1 -0
- package/dist/es5/lib/table/simple-table/make-table.js +60 -0
- package/dist/es5/lib/table/simple-table/make-table.js.map +1 -0
- package/dist/es5/lib/table/simple-table/row-utils.js +34 -0
- package/dist/es5/lib/table/simple-table/row-utils.js.map +1 -0
- package/dist/es5/lib/table/simple-table/table-accessors.js +343 -0
- package/dist/es5/lib/table/simple-table/table-accessors.js.map +1 -0
- package/dist/es5/lib/table/simple-table/table-column.js +12 -0
- package/dist/es5/lib/table/simple-table/table-column.js.map +1 -0
- package/dist/es5/lib/table/simple-table/table-schema.js +85 -0
- package/dist/es5/lib/table/simple-table/table-schema.js.map +1 -0
- package/dist/es5/lib/utils/assert.js +12 -0
- package/dist/es5/lib/utils/assert.js.map +1 -0
- package/dist/es5/lib/utils/async-queue.js +169 -0
- package/dist/es5/lib/utils/async-queue.js.map +1 -0
- package/dist/es5/types/category-gis.js +2 -0
- package/dist/es5/types/category-gis.js.map +1 -0
- package/dist/es5/types/category-image.js +2 -0
- package/dist/es5/types/category-image.js.map +1 -0
- package/dist/es5/types/category-mesh.js +2 -0
- package/dist/es5/types/category-mesh.js.map +1 -0
- package/dist/es5/types/category-table.js +2 -0
- package/dist/es5/types/category-table.js.map +1 -0
- package/dist/es5/types/category-texture.js +2 -0
- package/dist/es5/types/category-texture.js.map +1 -0
- package/dist/es5/types/schema.js +2 -0
- package/dist/es5/types/schema.js.map +1 -0
- package/dist/es5/types/types.js +2 -0
- package/dist/es5/types/types.js.map +1 -0
- package/dist/esm/bundle.js +4 -0
- package/dist/esm/bundle.js.map +1 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/{category → esm/lib}/mesh/convert-mesh.js +0 -11
- package/dist/esm/lib/mesh/convert-mesh.js.map +1 -0
- package/dist/esm/lib/mesh/deduce-mesh-schema.js +48 -0
- package/dist/esm/lib/mesh/deduce-mesh-schema.js.map +1 -0
- package/dist/esm/lib/mesh/mesh-to-arrow-table.js +2 -0
- package/dist/esm/lib/mesh/mesh-to-arrow-table.js.map +1 -0
- package/dist/{category → esm/lib}/mesh/mesh-utils.js +0 -5
- package/dist/esm/lib/mesh/mesh-utils.js.map +1 -0
- package/dist/{lib/arrow/arrow-like-type-utils.js → esm/lib/table/arrow/arrow-type-utils.js} +3 -11
- package/dist/esm/lib/table/arrow/arrow-type-utils.js.map +1 -0
- package/dist/esm/lib/table/arrow/convert-schema-arrow.js +158 -0
- package/dist/esm/lib/table/arrow/convert-schema-arrow.js.map +1 -0
- package/dist/esm/lib/table/arrow/convert-table-to-arrow.js +2 -0
- package/dist/esm/lib/table/arrow/convert-table-to-arrow.js.map +1 -0
- package/dist/{lib/schema/impl/field.js → esm/lib/table/arrow-api/arrow-like-field.js} +6 -13
- package/dist/esm/lib/table/arrow-api/arrow-like-field.js.map +1 -0
- package/dist/{lib/schema/impl/schema.js → esm/lib/table/arrow-api/arrow-like-schema.js} +22 -47
- package/dist/esm/lib/table/arrow-api/arrow-like-schema.js.map +1 -0
- package/dist/esm/lib/table/arrow-api/arrow-like-table.js +51 -0
- package/dist/esm/lib/table/arrow-api/arrow-like-table.js.map +1 -0
- package/dist/{lib/schema/impl/type.js → esm/lib/table/arrow-api/arrow-like-type.js} +11 -116
- package/dist/esm/lib/table/arrow-api/arrow-like-type.js.map +1 -0
- package/dist/{lib/schema/impl → esm/lib/table/arrow-api}/enum.js +3 -4
- package/dist/esm/lib/table/arrow-api/enum.js.map +1 -0
- package/dist/{lib/arrow → esm/lib/table/arrow-api}/get-type-info.js +1 -4
- package/dist/esm/lib/table/arrow-api/get-type-info.js.map +1 -0
- package/dist/esm/lib/table/arrow-api/index.js +5 -0
- package/dist/esm/lib/table/arrow-api/index.js.map +1 -0
- package/dist/{lib → esm/lib/table}/batches/base-table-batch-aggregator.js +1 -18
- package/dist/esm/lib/table/batches/base-table-batch-aggregator.js.map +1 -0
- package/dist/{lib → esm/lib/table}/batches/columnar-table-batch-aggregator.js +1 -24
- package/dist/esm/lib/table/batches/columnar-table-batch-aggregator.js.map +1 -0
- package/dist/{lib → esm/lib/table}/batches/row-table-batch-aggregator.js +2 -22
- package/dist/esm/lib/table/batches/row-table-batch-aggregator.js.map +1 -0
- package/dist/esm/lib/table/batches/table-batch-aggregator.js.map +1 -0
- package/dist/{lib → esm/lib/table}/batches/table-batch-builder.js +6 -49
- package/dist/esm/lib/table/batches/table-batch-builder.js.map +1 -0
- package/dist/esm/lib/table/simple-table/convert-table.js +59 -0
- package/dist/esm/lib/table/simple-table/convert-table.js.map +1 -0
- package/dist/esm/lib/table/simple-table/data-type.js +85 -0
- package/dist/esm/lib/table/simple-table/data-type.js.map +1 -0
- package/dist/esm/lib/table/simple-table/make-table.js +50 -0
- package/dist/esm/lib/table/simple-table/make-table.js.map +1 -0
- package/dist/{lib/utils → esm/lib/table/simple-table}/row-utils.js +0 -8
- package/dist/esm/lib/table/simple-table/row-utils.js.map +1 -0
- package/dist/esm/lib/table/simple-table/table-accessors.js +262 -0
- package/dist/esm/lib/table/simple-table/table-accessors.js.map +1 -0
- package/dist/esm/lib/table/simple-table/table-column.js +6 -0
- package/dist/esm/lib/table/simple-table/table-column.js.map +1 -0
- package/dist/esm/lib/table/simple-table/table-schema.js +70 -0
- package/dist/esm/lib/table/simple-table/table-schema.js.map +1 -0
- package/dist/esm/lib/utils/assert.js +6 -0
- package/dist/esm/lib/utils/assert.js.map +1 -0
- package/dist/esm/lib/utils/async-queue.js +94 -0
- package/dist/esm/lib/utils/async-queue.js.map +1 -0
- package/dist/esm/types/category-gis.js +2 -0
- package/dist/esm/types/category-gis.js.map +1 -0
- package/dist/esm/types/category-image.js +2 -0
- package/dist/esm/types/category-image.js.map +1 -0
- package/dist/esm/types/category-mesh.js +2 -0
- package/dist/esm/types/category-mesh.js.map +1 -0
- package/dist/esm/types/category-table.js +2 -0
- package/dist/esm/types/category-table.js.map +1 -0
- package/dist/esm/types/category-texture.js +2 -0
- package/dist/esm/types/category-texture.js.map +1 -0
- package/dist/esm/types/schema.js +2 -0
- package/dist/esm/types/schema.js.map +1 -0
- package/dist/esm/types/types.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +92 -13
- package/dist/lib/mesh/convert-mesh.d.ts +15 -0
- package/dist/lib/mesh/convert-mesh.d.ts.map +1 -0
- package/dist/lib/mesh/convert-mesh.js +40 -0
- package/dist/lib/mesh/deduce-mesh-schema.d.ts +24 -0
- package/dist/lib/mesh/deduce-mesh-schema.d.ts.map +1 -0
- package/dist/lib/mesh/deduce-mesh-schema.js +66 -0
- package/dist/lib/mesh/mesh-to-arrow-table.d.ts +1 -0
- package/dist/lib/mesh/mesh-to-arrow-table.d.ts.map +1 -0
- package/dist/lib/mesh/mesh-to-arrow-table.js +44 -0
- package/dist/lib/mesh/mesh-utils.d.ts +23 -0
- package/dist/lib/mesh/mesh-utils.d.ts.map +1 -0
- package/dist/lib/mesh/mesh-utils.js +51 -0
- package/dist/lib/table/arrow/arrow-type-utils.d.ts +4 -0
- package/dist/lib/table/arrow/arrow-type-utils.d.ts.map +1 -0
- package/dist/lib/table/arrow/arrow-type-utils.js +53 -0
- package/dist/lib/table/arrow/convert-schema-arrow.d.ts +13 -0
- package/dist/lib/table/arrow/convert-schema-arrow.d.ts.map +1 -0
- package/dist/lib/table/arrow/convert-schema-arrow.js +187 -0
- package/dist/lib/table/arrow/convert-table-to-arrow.d.ts +42 -0
- package/dist/lib/table/arrow/convert-table-to-arrow.d.ts.map +1 -0
- package/dist/lib/table/arrow/convert-table-to-arrow.js +57 -0
- package/dist/lib/table/arrow-api/arrow-like-field.d.ts +19 -0
- package/dist/lib/table/arrow-api/arrow-like-field.d.ts.map +1 -0
- package/dist/lib/table/arrow-api/arrow-like-field.js +34 -0
- package/dist/lib/table/arrow-api/arrow-like-schema.d.ts +12 -0
- package/dist/lib/table/arrow-api/arrow-like-schema.d.ts.map +1 -0
- package/dist/lib/table/arrow-api/arrow-like-schema.js +81 -0
- package/dist/lib/table/arrow-api/arrow-like-table.d.ts +28 -0
- package/dist/lib/table/arrow-api/arrow-like-table.d.ts.map +1 -0
- package/dist/lib/table/arrow-api/arrow-like-table.js +53 -0
- package/dist/lib/table/arrow-api/arrow-like-type.d.ts +177 -0
- package/dist/lib/table/arrow-api/arrow-like-type.d.ts.map +1 -0
- package/dist/lib/table/arrow-api/arrow-like-type.js +463 -0
- package/dist/lib/table/arrow-api/enum.d.ts +92 -0
- package/dist/lib/table/arrow-api/enum.d.ts.map +1 -0
- package/dist/lib/table/arrow-api/enum.js +97 -0
- package/dist/lib/table/arrow-api/get-type-info.d.ts +13 -0
- package/dist/lib/table/arrow-api/get-type-info.d.ts.map +1 -0
- package/dist/lib/table/arrow-api/get-type-info.js +29 -0
- package/dist/lib/table/arrow-api/index.d.ts +5 -0
- package/dist/lib/table/arrow-api/index.d.ts.map +1 -0
- package/dist/lib/table/arrow-api/index.js +25 -0
- package/dist/lib/table/batches/base-table-batch-aggregator.d.ts +19 -0
- package/dist/lib/table/batches/base-table-batch-aggregator.d.ts.map +1 -0
- package/dist/lib/table/batches/base-table-batch-aggregator.js +60 -0
- package/dist/lib/table/batches/columnar-table-batch-aggregator.d.ts +23 -0
- package/dist/lib/table/batches/columnar-table-batch-aggregator.d.ts.map +1 -0
- package/dist/lib/table/batches/columnar-table-batch-aggregator.js +92 -0
- package/dist/lib/table/batches/row-table-batch-aggregator.d.ts +22 -0
- package/dist/lib/table/batches/row-table-batch-aggregator.d.ts.map +1 -0
- package/dist/lib/table/batches/row-table-batch-aggregator.js +81 -0
- package/dist/lib/table/batches/table-batch-aggregator.d.ts +25 -0
- package/dist/lib/table/batches/table-batch-aggregator.d.ts.map +1 -0
- package/dist/lib/table/batches/table-batch-aggregator.js +3 -0
- package/dist/lib/table/batches/table-batch-builder.d.ts +53 -0
- package/dist/lib/table/batches/table-batch-builder.d.ts.map +1 -0
- package/dist/lib/table/batches/table-batch-builder.js +152 -0
- package/dist/lib/table/simple-table/convert-table.d.ts +8 -0
- package/dist/lib/table/simple-table/convert-table.d.ts.map +1 -0
- package/dist/lib/table/simple-table/convert-table.js +65 -0
- package/dist/lib/table/simple-table/data-type.d.ts +17 -0
- package/dist/lib/table/simple-table/data-type.d.ts.map +1 -0
- package/dist/lib/table/simple-table/data-type.js +93 -0
- package/dist/lib/table/simple-table/make-table.d.ts +65 -0
- package/dist/lib/table/simple-table/make-table.d.ts.map +1 -0
- package/dist/lib/table/simple-table/make-table.js +95 -0
- package/dist/lib/table/simple-table/row-utils.d.ts +9 -0
- package/dist/lib/table/simple-table/row-utils.d.ts.map +1 -0
- package/dist/lib/table/simple-table/row-utils.js +33 -0
- package/dist/lib/table/simple-table/table-accessors.d.ts +67 -0
- package/dist/lib/table/simple-table/table-accessors.d.ts.map +1 -0
- package/dist/lib/table/simple-table/table-accessors.js +319 -0
- package/dist/lib/table/simple-table/table-column.d.ts +7 -0
- package/dist/lib/table/simple-table/table-column.d.ts.map +1 -0
- package/dist/lib/table/simple-table/table-column.js +41 -0
- package/dist/lib/table/simple-table/table-schema.d.ts +15 -0
- package/dist/lib/table/simple-table/table-schema.d.ts.map +1 -0
- package/dist/lib/table/simple-table/table-schema.js +85 -0
- package/dist/lib/utils/assert.d.ts +2 -0
- package/dist/lib/utils/assert.d.ts.map +1 -0
- package/dist/lib/utils/assert.js +11 -5
- package/dist/lib/utils/async-queue.d.ts +18 -0
- package/dist/lib/utils/async-queue.d.ts.map +1 -0
- package/dist/lib/utils/async-queue.js +82 -109
- package/dist/types/category-gis.d.ts +99 -0
- package/dist/types/category-gis.d.ts.map +1 -0
- package/dist/types/category-gis.js +2 -0
- package/dist/types/category-image.d.ts +18 -0
- package/dist/types/category-image.d.ts.map +1 -0
- package/dist/types/category-image.js +2 -0
- package/dist/types/category-mesh.d.ts +48 -0
- package/dist/types/category-mesh.d.ts.map +1 -0
- package/dist/types/category-mesh.js +3 -0
- package/dist/types/category-table.d.ts +86 -0
- package/dist/types/category-table.d.ts.map +1 -0
- package/dist/types/category-table.js +3 -0
- package/dist/types/category-texture.d.ts +18 -0
- package/dist/types/category-texture.d.ts.map +1 -0
- package/dist/types/category-texture.js +3 -0
- package/dist/types/schema.d.ts +77 -0
- package/dist/types/schema.d.ts.map +1 -0
- package/dist/types/schema.js +3 -0
- package/dist/types/types.d.ts +15 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/types.js +2 -0
- package/package.json +7 -8
- package/src/index.ts +82 -29
- package/src/{category → lib}/mesh/convert-mesh.ts +10 -8
- package/src/{category → lib}/mesh/deduce-mesh-schema.ts +20 -19
- package/src/{category → lib}/mesh/mesh-to-arrow-table.ts +5 -3
- package/src/{category → lib}/mesh/mesh-utils.ts +2 -2
- package/src/lib/{arrow → table/arrow}/arrow-type-utils.ts +16 -12
- package/src/lib/table/arrow/convert-schema-arrow.ts +232 -0
- package/src/lib/table/arrow/convert-table-to-arrow.ts +59 -0
- package/src/lib/{schema/impl/field.ts → table/arrow-api/arrow-like-field.ts} +6 -4
- package/src/lib/table/arrow-api/arrow-like-schema.ts +99 -0
- package/src/lib/table/arrow-api/arrow-like-table.ts +83 -0
- package/src/lib/{schema/impl/type.ts → table/arrow-api/arrow-like-type.ts} +2 -1
- package/src/lib/{arrow → table/arrow-api}/get-type-info.ts +4 -3
- package/src/lib/table/arrow-api/index.ts +6 -0
- package/src/lib/{batches → table/batches}/base-table-batch-aggregator.ts +5 -3
- package/src/lib/{batches → table/batches}/columnar-table-batch-aggregator.ts +5 -3
- package/src/lib/{batches → table/batches}/row-table-batch-aggregator.ts +6 -4
- package/src/lib/{batches → table/batches}/table-batch-aggregator.ts +4 -2
- package/src/lib/{batches → table/batches}/table-batch-builder.ts +8 -6
- package/src/lib/table/simple-table/convert-table.ts +72 -0
- package/src/lib/table/simple-table/data-type.ts +102 -0
- package/src/lib/table/simple-table/make-table.ts +108 -0
- package/src/lib/table/simple-table/table-accessors.ts +360 -0
- package/src/lib/table/simple-table/table-column.ts +47 -0
- package/src/lib/table/simple-table/table-schema.ts +97 -0
- package/src/types/category-gis.ts +136 -0
- package/src/types/category-image.ts +19 -0
- package/src/{category/mesh/mesh-types.ts → types/category-mesh.ts} +6 -4
- package/src/types/category-table.ts +104 -0
- package/src/types/category-texture.ts +30 -0
- package/src/types/schema.ts +97 -0
- package/src/types/types.ts +43 -0
- package/dist/bundle.js.map +0 -1
- package/dist/category/common.js +0 -2
- package/dist/category/common.js.map +0 -1
- package/dist/category/gis.js +0 -2
- package/dist/category/gis.js.map +0 -1
- package/dist/category/mesh/convert-mesh.js.map +0 -1
- package/dist/category/mesh/deduce-mesh-schema.js +0 -42
- package/dist/category/mesh/deduce-mesh-schema.js.map +0 -1
- package/dist/category/mesh/mesh-to-arrow-table.js +0 -31
- package/dist/category/mesh/mesh-to-arrow-table.js.map +0 -1
- package/dist/category/mesh/mesh-types.js +0 -2
- package/dist/category/mesh/mesh-types.js.map +0 -1
- package/dist/category/mesh/mesh-utils.js.map +0 -1
- package/dist/category/table/deduce-table-schema.js +0 -51
- package/dist/category/table/deduce-table-schema.js.map +0 -1
- package/dist/category/table/table-types.js +0 -2
- package/dist/category/table/table-types.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/arrow/arrow-like-type-utils.js.map +0 -1
- package/dist/lib/arrow/arrow-type-utils.js +0 -62
- package/dist/lib/arrow/arrow-type-utils.js.map +0 -1
- package/dist/lib/arrow/get-type-info.js.map +0 -1
- package/dist/lib/batches/base-table-batch-aggregator.js.map +0 -1
- package/dist/lib/batches/columnar-table-batch-aggregator.js.map +0 -1
- package/dist/lib/batches/row-table-batch-aggregator.js.map +0 -1
- package/dist/lib/batches/table-batch-aggregator.js.map +0 -1
- package/dist/lib/batches/table-batch-builder.js.map +0 -1
- package/dist/lib/schema/impl/enum.js.map +0 -1
- package/dist/lib/schema/impl/field.js.map +0 -1
- package/dist/lib/schema/impl/schema.js.map +0 -1
- package/dist/lib/schema/impl/type.js.map +0 -1
- package/dist/lib/schema/index.js +0 -5
- package/dist/lib/schema/index.js.map +0 -1
- package/dist/lib/schema-utils/deduce-column-type.js +0 -23
- package/dist/lib/schema-utils/deduce-column-type.js.map +0 -1
- package/dist/lib/utils/assert.js.map +0 -1
- package/dist/lib/utils/async-queue.js.map +0 -1
- package/dist/lib/utils/row-utils.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/src/category/common.ts +0 -30
- package/src/category/gis.ts +0 -61
- package/src/category/table/deduce-table-schema.ts +0 -123
- package/src/category/table/table-types.ts +0 -81
- package/src/lib/arrow/arrow-like-type-utils.ts +0 -25
- package/src/lib/schema/impl/schema.ts +0 -99
- package/src/lib/schema/index.ts +0 -82
- package/src/lib/schema-utils/deduce-column-type.ts +0 -92
- package/src/types.ts +0 -19
- /package/dist/{lib → esm/lib/table}/batches/table-batch-aggregator.js +0 -0
- /package/dist/{types.js → esm/types/types.js} +0 -0
- /package/src/lib/{schema/impl → table/arrow-api}/enum.ts +0 -0
- /package/src/lib/{utils → table/simple-table}/row-utils.ts +0 -0
|
@@ -1,119 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// From https://github.com/rauschma/async-iter-demo/tree/master/src under MIT license
|
|
3
|
+
// http://2ality.com/2016/10/asynchronous-iteration.html
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.takeAsync = void 0;
|
|
5
6
|
class ArrayQueue extends Array {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
enqueue(value) {
|
|
8
|
+
// Add at the end
|
|
9
|
+
return this.push(value);
|
|
10
|
+
}
|
|
11
|
+
dequeue() {
|
|
12
|
+
// Remove first element
|
|
13
|
+
return this.shift();
|
|
14
|
+
}
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
_defineProperty(this, "_closed", void 0);
|
|
24
|
-
|
|
25
|
-
this._values = new ArrayQueue();
|
|
26
|
-
this._settlers = new ArrayQueue();
|
|
27
|
-
this._closed = false;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
close() {
|
|
31
|
-
while (this._settlers.length > 0) {
|
|
32
|
-
this._settlers.dequeue().resolve({
|
|
33
|
-
done: true
|
|
34
|
-
});
|
|
16
|
+
class AsyncQueue {
|
|
17
|
+
constructor() {
|
|
18
|
+
// enqueues > dequeues
|
|
19
|
+
this._values = new ArrayQueue();
|
|
20
|
+
// dequeues > enqueues
|
|
21
|
+
this._settlers = new ArrayQueue();
|
|
22
|
+
this._closed = false;
|
|
35
23
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return this;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
enqueue(value) {
|
|
45
|
-
if (this._closed) {
|
|
46
|
-
throw new Error('Closed');
|
|
24
|
+
close() {
|
|
25
|
+
while (this._settlers.length > 0) {
|
|
26
|
+
this._settlers.dequeue().resolve({ done: true });
|
|
27
|
+
}
|
|
28
|
+
this._closed = true;
|
|
47
29
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (this._values.length > 0) {
|
|
51
|
-
throw new Error('Illegal internal state');
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const settler = this._settlers.dequeue();
|
|
55
|
-
|
|
56
|
-
if (value instanceof Error) {
|
|
57
|
-
settler.reject(value);
|
|
58
|
-
} else {
|
|
59
|
-
settler.resolve({
|
|
60
|
-
value
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
} else {
|
|
64
|
-
this._values.enqueue(value);
|
|
30
|
+
[Symbol.asyncIterator]() {
|
|
31
|
+
return this;
|
|
65
32
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
33
|
+
enqueue(value) {
|
|
34
|
+
if (this._closed) {
|
|
35
|
+
throw new Error('Closed');
|
|
36
|
+
}
|
|
37
|
+
if (this._settlers.length > 0) {
|
|
38
|
+
if (this._values.length > 0) {
|
|
39
|
+
throw new Error('Illegal internal state');
|
|
40
|
+
}
|
|
41
|
+
const settler = this._settlers.dequeue();
|
|
42
|
+
if (value instanceof Error) {
|
|
43
|
+
settler.reject(value);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
settler.resolve({ value });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this._values.enqueue(value);
|
|
51
|
+
}
|
|
79
52
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
53
|
+
/**
|
|
54
|
+
* @returns a Promise for an IteratorResult
|
|
55
|
+
*/
|
|
56
|
+
next() {
|
|
57
|
+
if (this._values.length > 0) {
|
|
58
|
+
const value = this._values.dequeue();
|
|
59
|
+
if (value instanceof Error) {
|
|
60
|
+
return Promise.reject(value);
|
|
61
|
+
}
|
|
62
|
+
return Promise.resolve({ value });
|
|
63
|
+
}
|
|
64
|
+
if (this._closed) {
|
|
65
|
+
if (this._settlers.length > 0) {
|
|
66
|
+
throw new Error('Illegal internal state');
|
|
67
|
+
}
|
|
68
|
+
return Promise.resolve({ done: true });
|
|
69
|
+
}
|
|
70
|
+
// Wait for new values to be enqueued
|
|
71
|
+
return new Promise((resolve, reject) => {
|
|
72
|
+
this._settlers.enqueue({ resolve, reject });
|
|
73
|
+
});
|
|
89
74
|
}
|
|
90
|
-
|
|
91
|
-
return new Promise((resolve, reject) => {
|
|
92
|
-
this._settlers.enqueue({
|
|
93
|
-
resolve,
|
|
94
|
-
reject
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
|
|
99
75
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
76
|
+
exports.default = AsyncQueue;
|
|
77
|
+
/**
|
|
78
|
+
* @returns a Promise for an Array with the elements in `asyncIterable`
|
|
79
|
+
*/
|
|
80
|
+
async function takeAsync(asyncIterable, count = Infinity) {
|
|
81
|
+
const result = [];
|
|
82
|
+
const iterator = asyncIterable[Symbol.asyncIterator]();
|
|
83
|
+
while (result.length < count) {
|
|
84
|
+
const { value, done } = await iterator.next();
|
|
85
|
+
if (done) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
result.push(value);
|
|
112
89
|
}
|
|
113
|
-
|
|
114
|
-
result.push(value);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return result;
|
|
90
|
+
return result;
|
|
118
91
|
}
|
|
119
|
-
|
|
92
|
+
exports.takeAsync = takeAsync;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { TypedArray } from './types';
|
|
2
|
+
import type { Feature, Geometry, Point, LineString, Polygon } from 'geojson';
|
|
3
|
+
export type { GeoJSON, Feature, FeatureCollection, Geometry, Position, GeoJsonProperties } from 'geojson';
|
|
4
|
+
export type { Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection } from 'geojson';
|
|
5
|
+
export type GeojsonGeometryInfo = {
|
|
6
|
+
coordLength: number;
|
|
7
|
+
pointPositionsCount: number;
|
|
8
|
+
pointFeaturesCount: number;
|
|
9
|
+
linePositionsCount: number;
|
|
10
|
+
linePathsCount: number;
|
|
11
|
+
lineFeaturesCount: number;
|
|
12
|
+
polygonPositionsCount: number;
|
|
13
|
+
polygonObjectsCount: number;
|
|
14
|
+
polygonRingsCount: number;
|
|
15
|
+
polygonFeaturesCount: number;
|
|
16
|
+
};
|
|
17
|
+
export type FlatGeometryType = 'Point' | 'LineString' | 'Polygon';
|
|
18
|
+
type RemoveCoordinatesField<Type> = {
|
|
19
|
+
[Property in keyof Type as Exclude<Property, 'coordinates'>]: Type[Property];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Generic flat geometry data storage type
|
|
23
|
+
*/
|
|
24
|
+
export type FlatIndexedGeometry = {
|
|
25
|
+
data: number[];
|
|
26
|
+
indices: number[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* GeoJSON (Multi)Point geometry with coordinate data flattened into `data` array and indexed by `indices`
|
|
30
|
+
*/
|
|
31
|
+
export type FlatPoint = RemoveCoordinatesField<Point> & FlatIndexedGeometry;
|
|
32
|
+
/**
|
|
33
|
+
* GeoJSON (Multi)LineString geometry with coordinate data flattened into `data` array and indexed by `indices`
|
|
34
|
+
*/
|
|
35
|
+
export type FlatLineString = RemoveCoordinatesField<LineString> & FlatIndexedGeometry;
|
|
36
|
+
/**
|
|
37
|
+
* GeoJSON (Multi)Polygon geometry with coordinate data flattened into `data` array and indexed by 2D `indices`
|
|
38
|
+
*/
|
|
39
|
+
export type FlatPolygon = RemoveCoordinatesField<Polygon> & {
|
|
40
|
+
data: number[];
|
|
41
|
+
indices: number[][];
|
|
42
|
+
areas: number[][];
|
|
43
|
+
};
|
|
44
|
+
export type FlatGeometry = FlatPoint | FlatLineString | FlatPolygon;
|
|
45
|
+
type FlattenGeometry<Type> = {
|
|
46
|
+
[Property in keyof Type]: Type[Property] extends Geometry ? FlatGeometry : Type[Property];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* GeoJSON Feature with Geometry replaced by FlatGeometry
|
|
50
|
+
*/
|
|
51
|
+
export type FlatFeature = FlattenGeometry<Feature>;
|
|
52
|
+
export type BinaryAttribute = {
|
|
53
|
+
value: TypedArray;
|
|
54
|
+
size: number;
|
|
55
|
+
};
|
|
56
|
+
export type BinaryGeometryType = 'Point' | 'LineString' | 'Polygon';
|
|
57
|
+
type NumericProps = {
|
|
58
|
+
[key: string]: BinaryAttribute;
|
|
59
|
+
};
|
|
60
|
+
type Properties = object[];
|
|
61
|
+
/**
|
|
62
|
+
* Represent a single Geometry, similar to a GeoJSON Geometry
|
|
63
|
+
*/
|
|
64
|
+
export type BinaryGeometry = BinaryPointGeometry | BinaryLineGeometry | BinaryPolygonGeometry;
|
|
65
|
+
export type BinaryPointGeometry = {
|
|
66
|
+
type: 'Point';
|
|
67
|
+
positions: BinaryAttribute;
|
|
68
|
+
};
|
|
69
|
+
export type BinaryLineGeometry = {
|
|
70
|
+
type: 'LineString';
|
|
71
|
+
positions: BinaryAttribute;
|
|
72
|
+
pathIndices: BinaryAttribute;
|
|
73
|
+
};
|
|
74
|
+
export type BinaryPolygonGeometry = {
|
|
75
|
+
type: 'Polygon';
|
|
76
|
+
positions: BinaryAttribute;
|
|
77
|
+
polygonIndices: BinaryAttribute;
|
|
78
|
+
primitivePolygonIndices: BinaryAttribute;
|
|
79
|
+
triangles?: BinaryAttribute;
|
|
80
|
+
};
|
|
81
|
+
export type BinaryProperties = {
|
|
82
|
+
featureIds: BinaryAttribute;
|
|
83
|
+
globalFeatureIds: BinaryAttribute;
|
|
84
|
+
numericProps: NumericProps;
|
|
85
|
+
properties: Properties;
|
|
86
|
+
fields?: Properties;
|
|
87
|
+
};
|
|
88
|
+
export type BinaryPointFeatures = BinaryPointGeometry & BinaryProperties;
|
|
89
|
+
export type BinaryLineFeatures = BinaryLineGeometry & BinaryProperties;
|
|
90
|
+
export type BinaryPolygonFeatures = BinaryPolygonGeometry & BinaryProperties;
|
|
91
|
+
/**
|
|
92
|
+
* Represent a collection of Features, similar to a GeoJSON FeatureCollection
|
|
93
|
+
*/
|
|
94
|
+
export type BinaryFeatures = {
|
|
95
|
+
points?: BinaryPointFeatures;
|
|
96
|
+
lines?: BinaryLineFeatures;
|
|
97
|
+
polygons?: BinaryPolygonFeatures;
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=category-gis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-gis.d.ts","sourceRoot":"","sources":["../../src/types/category-gis.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAC,MAAM,SAAS,CAAC;AAK3E,YAAY,EACV,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,iBAAiB,EAClB,MAAM,SAA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,EAAE,eAAe,CAAC;IAClC,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG,gBAAgB,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;AACvE,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GAAG,gBAAgB,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* data images
|
|
3
|
+
*/
|
|
4
|
+
export type ImageDataType = {
|
|
5
|
+
data: Uint8Array;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
compressed?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Supported Image Types
|
|
12
|
+
*/
|
|
13
|
+
export type ImageType = ImageBitmap | typeof Image | ImageDataType;
|
|
14
|
+
/**
|
|
15
|
+
* Image type string used to control or determine the type of images returned from ImageLoader
|
|
16
|
+
*/
|
|
17
|
+
export type ImageTypeEnum = 'imagebitmap' | 'image' | 'data';
|
|
18
|
+
//# sourceMappingURL=category-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-image.d.ts","sourceRoot":"","sources":["../../src/types/category-image.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,OAAO,KAAK,GAAG,aAAa,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Schema } from './schema';
|
|
2
|
+
import type { TypedArray } from './types';
|
|
3
|
+
import type { ColumnarTable, ArrowTable } from './category-table';
|
|
4
|
+
/** Mesh as columnar table */
|
|
5
|
+
export interface MeshTable extends ColumnarTable {
|
|
6
|
+
topology: 'point-list' | 'triangle-list' | 'triangle-strip';
|
|
7
|
+
indices?: MeshAttribute;
|
|
8
|
+
}
|
|
9
|
+
/** Mesh as arrow table */
|
|
10
|
+
export interface MeshArrowTable extends ArrowTable {
|
|
11
|
+
topology: 'point-list' | 'triangle-list' | 'triangle-strip';
|
|
12
|
+
indices?: MeshAttribute;
|
|
13
|
+
}
|
|
14
|
+
/** Geometry part of a Mesh (compatible with a standard luma.gl "mesh") */
|
|
15
|
+
export type MeshGeometry = {
|
|
16
|
+
attributes: {
|
|
17
|
+
[attributeName: string]: MeshAttribute;
|
|
18
|
+
};
|
|
19
|
+
indices?: MeshAttribute;
|
|
20
|
+
topology: 'point-list' | 'triangle-list' | 'triangle-strip';
|
|
21
|
+
mode: number;
|
|
22
|
+
};
|
|
23
|
+
/** Geometry and metadata for a Mesh (compatible with a standard luma.gl "mesh") */
|
|
24
|
+
export type Mesh = MeshGeometry & {
|
|
25
|
+
loader?: string;
|
|
26
|
+
loaderData?: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
header?: {
|
|
30
|
+
vertexCount: number;
|
|
31
|
+
boundingBox?: [number[], number[]];
|
|
32
|
+
};
|
|
33
|
+
schema: Schema;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* luma.gl compatible attribute descriptors
|
|
37
|
+
* Can be mapped to any WebGL framework
|
|
38
|
+
*/
|
|
39
|
+
export type MeshAttribute = {
|
|
40
|
+
value: TypedArray;
|
|
41
|
+
size: number;
|
|
42
|
+
byteOffset?: number;
|
|
43
|
+
byteStride?: number;
|
|
44
|
+
normalized?: boolean;
|
|
45
|
+
};
|
|
46
|
+
/** A map of mesh attributes keyed by attribute names */
|
|
47
|
+
export type MeshAttributes = Record<string, MeshAttribute>;
|
|
48
|
+
//# sourceMappingURL=category-mesh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-mesh.d.ts","sourceRoot":"","sources":["../../src/types/category-mesh.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAEhE,6BAA6B;AAC7B,MAAM,WAAW,SAAU,SAAQ,aAAa;IAE9C,QAAQ,EAAE,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAAC;IAC5D,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,0BAA0B;AAC1B,MAAM,WAAW,cAAe,SAAQ,UAAU;IAEhD,QAAQ,EAAE,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAAC;IAC5D,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,0EAA0E;AAC1E,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE;QAAC,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAA;KAAC,CAAC;IACrD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAAC;IAC5D,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,mFAAmF;AACnF,MAAM,MAAM,IAAI,GAAG,YAAY,GAAG;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAClC,MAAM,CAAC,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;KACpC,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wDAAwD;AACxD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { Table as ApacheArrowTable, RecordBatch } from 'apache-arrow';
|
|
2
|
+
import type { Batch, Schema } from './schema';
|
|
3
|
+
import type { Feature } from './category-gis';
|
|
4
|
+
/** A general table */
|
|
5
|
+
export type Table = RowTable | ArrayRowTable | ObjectRowTable | GeoJSONRowTable | ColumnarTable | ArrowTable;
|
|
6
|
+
/** A table organized as an array of rows */
|
|
7
|
+
export type RowTable = ArrayRowTable | ObjectRowTable | GeoJSONRowTable;
|
|
8
|
+
/** A table organized as an array of rows, each row is an array of values */
|
|
9
|
+
export type ArrayRowTable = {
|
|
10
|
+
shape: 'array-row-table';
|
|
11
|
+
schema?: Schema;
|
|
12
|
+
data: any[][];
|
|
13
|
+
};
|
|
14
|
+
/** A table organized as an array of rows, each row is an object mapping columns to values */
|
|
15
|
+
export type ObjectRowTable = {
|
|
16
|
+
shape: 'object-row-table';
|
|
17
|
+
schema?: Schema;
|
|
18
|
+
data: {
|
|
19
|
+
[columnName: string]: any;
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
/** A table organized as an array of rows, each row is a GeoJSON Feature */
|
|
23
|
+
export type GeoJSONRowTable = {
|
|
24
|
+
shape: 'geojson-row-table';
|
|
25
|
+
schema?: Schema;
|
|
26
|
+
data: Feature[];
|
|
27
|
+
};
|
|
28
|
+
/** A table organized as a map of columns, each column is an array of value */
|
|
29
|
+
export type ColumnarTable = {
|
|
30
|
+
shape: 'columnar-table';
|
|
31
|
+
schema?: Schema;
|
|
32
|
+
data: {
|
|
33
|
+
[columnName: string]: ArrayLike<unknown>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/** A table organized as an Apache Arrow table */
|
|
37
|
+
export type ArrowTable = {
|
|
38
|
+
shape: 'arrow-table';
|
|
39
|
+
schema?: Schema;
|
|
40
|
+
data: ApacheArrowTable;
|
|
41
|
+
};
|
|
42
|
+
/** A collection of tables */
|
|
43
|
+
export type Tables<TableType = Table> = {
|
|
44
|
+
shape: 'tables';
|
|
45
|
+
tables: {
|
|
46
|
+
name: string;
|
|
47
|
+
table: TableType;
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
50
|
+
/** Batch for a general table */
|
|
51
|
+
export type TableBatch = Batch & {
|
|
52
|
+
data: any;
|
|
53
|
+
length: number;
|
|
54
|
+
schema?: Schema;
|
|
55
|
+
schemaType?: 'explicit' | 'deduced';
|
|
56
|
+
};
|
|
57
|
+
/** Batch for a table organized as an array of rows, each row is an array of values */
|
|
58
|
+
export type ArrayRowTableBatch = TableBatch & {
|
|
59
|
+
shape: 'array-row-table';
|
|
60
|
+
data: any[][];
|
|
61
|
+
};
|
|
62
|
+
/** Batch for a table organized as an array of rows, each row is an object mapping columns to values */
|
|
63
|
+
export type ObjectRowTableBatch = TableBatch & {
|
|
64
|
+
shape: 'object-row-table';
|
|
65
|
+
data: {
|
|
66
|
+
[columnName: string]: any;
|
|
67
|
+
}[];
|
|
68
|
+
};
|
|
69
|
+
/** Batch for a table organized as an array of rows, each row is an array of values */
|
|
70
|
+
export type GeoJSONRowTableBatch = TableBatch & {
|
|
71
|
+
shape: 'geojson-row-table';
|
|
72
|
+
data: Feature[];
|
|
73
|
+
};
|
|
74
|
+
/** Batch for a table organized as a map of columns, each column is an array of value */
|
|
75
|
+
export type ColumnarTableBatch = TableBatch & {
|
|
76
|
+
shape: 'columnar-table';
|
|
77
|
+
data: {
|
|
78
|
+
[columnName: string]: ArrayLike<unknown>;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
/** Batch for a table organized as an Apache Arrow table */
|
|
82
|
+
export type ArrowTableBatch = TableBatch & {
|
|
83
|
+
shape: 'arrow-table';
|
|
84
|
+
data: RecordBatch;
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=category-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-table.d.ts","sourceRoot":"","sources":["../../src/types/category-table.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,KAAK,IAAI,gBAAgB,EAAE,WAAW,EAAC,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAC,KAAK,EAAE,MAAM,EAAC,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAQ5C,sBAAsB;AACtB,MAAM,MAAM,KAAK,GACb,QAAQ,GACR,aAAa,GACb,cAAc,GACd,eAAe,GACf,aAAa,GACb,UAAU,CAAC;AAEf,4CAA4C;AAC5C,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,eAAe,CAAC;AAExE,4EAA4E;AAC5E,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC;CACf,CAAC;AAEF,6FAA6F;AAC7F,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,MA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AC;AAEF,uGAAuG;AACvG,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG;IAC7C,KAAK,EAAE,kBAAkB,CAAC;IAC1B,IAAI,EAAE;QAAC,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,EAAE,CAAC;CACrC,CAAC;AAEF,sFAAsF;AACtF,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAC9C,KAAK,EAAE,mBAAmB,CAAC;IAC3B,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB,CAAC;AAEF,wFAAwF;AACxF,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC5C,KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE;QAAC,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAA;KAAC,CAAC;CAClD,CAAC;AAEF,2DAA2D;AAC3D,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACzC,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ImageType } from './category-image';
|
|
2
|
+
/**
|
|
3
|
+
* These represent the main compressed texture formats
|
|
4
|
+
* Each format typically has a number of more specific subformats
|
|
5
|
+
*/
|
|
6
|
+
export type GPUTextureFormat = 'dxt' | 'dxt-srgb' | 'etc1' | 'etc2' | 'pvrtc' | 'atc' | 'astc' | 'rgtc';
|
|
7
|
+
/** One mip level */
|
|
8
|
+
export type TextureLevel = {
|
|
9
|
+
compressed: boolean;
|
|
10
|
+
format?: number;
|
|
11
|
+
data: Uint8Array;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
levelSize?: number;
|
|
15
|
+
hasAlpha?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type TextureOrImage = ImageType | (TextureLevel | ImageType);
|
|
18
|
+
//# sourceMappingURL=category-texture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-texture.d.ts","sourceRoot":"","sources":["../../src/types/category-texture.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,MAAM,CAAC;AAEX,oBAAoB;AACpB,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { RecordBatch } from 'apache-arrow';
|
|
2
|
+
/** For dictionary type */
|
|
3
|
+
export type KeyType = 'int8' | 'int16' | 'int32' | 'uint8' | 'uint16' | 'uint32';
|
|
4
|
+
/** ArrowLike DataType class */
|
|
5
|
+
export type DataType = 'null' | 'bool' | 'int' | 'int8' | 'int16' | 'int32' | 'int64' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'float' | 'float16' | 'float32' | 'float64' | 'binary' | 'utf8' | 'date-day' | 'date-millisecond' | 'time-second' | 'time-millisecond' | 'time-microsecond' | 'time-nanosecond' | 'timestamp-second' | 'timestamp-millisecond' | 'timestamp-microsecond' | 'timestamp-nanosecond' | 'interval-daytime' | 'interval-yearmonth' | {
|
|
6
|
+
type: 'list';
|
|
7
|
+
children: Field[];
|
|
8
|
+
} | {
|
|
9
|
+
type: 'struct';
|
|
10
|
+
children: Field[];
|
|
11
|
+
} | {
|
|
12
|
+
type: 'sparse-union';
|
|
13
|
+
typeIds: Int32Array;
|
|
14
|
+
children: Field[];
|
|
15
|
+
typeIdToChildIndex: {
|
|
16
|
+
[key: number]: number;
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
19
|
+
type: 'dense-union';
|
|
20
|
+
typeIds: Int32Array;
|
|
21
|
+
children: Field[];
|
|
22
|
+
typeIdToChildIndex: {
|
|
23
|
+
[key: number]: number;
|
|
24
|
+
};
|
|
25
|
+
} | {
|
|
26
|
+
type: 'fixed-size-binary';
|
|
27
|
+
byteWidth: number;
|
|
28
|
+
} | {
|
|
29
|
+
type: 'fixed-size-list';
|
|
30
|
+
listSize: number;
|
|
31
|
+
children: Field[];
|
|
32
|
+
} | {
|
|
33
|
+
type: 'map';
|
|
34
|
+
keysSorted: boolean;
|
|
35
|
+
children: Field[];
|
|
36
|
+
} | {
|
|
37
|
+
type: 'dictionary';
|
|
38
|
+
id: number;
|
|
39
|
+
indices: KeyType;
|
|
40
|
+
dictionary: DataType;
|
|
41
|
+
isOrdered: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* SchemaMetadata
|
|
45
|
+
*/
|
|
46
|
+
export type SchemaMetadata = Record<string, string>;
|
|
47
|
+
export type FieldMetadata = Record<string, string>;
|
|
48
|
+
export type Field = {
|
|
49
|
+
name: string;
|
|
50
|
+
type: DataType;
|
|
51
|
+
nullable?: boolean;
|
|
52
|
+
metadata?: FieldMetadata;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* `Schema` type that that can hold all data required by an Arrow Schema
|
|
56
|
+
* but is fully serializable. Helper functions make it easy to convert to and from arrow schemas
|
|
57
|
+
* https://loaders.gl/arrowjs/docs/api-reference/schema
|
|
58
|
+
*/
|
|
59
|
+
export type Schema = {
|
|
60
|
+
fields: Field[];
|
|
61
|
+
metadata: SchemaMetadata;
|
|
62
|
+
};
|
|
63
|
+
export type Batch = {
|
|
64
|
+
batchType: 'data' | 'metadata' | 'partial-result' | 'final-result';
|
|
65
|
+
batch?: number;
|
|
66
|
+
mimeType?: string;
|
|
67
|
+
shape: string;
|
|
68
|
+
data: any;
|
|
69
|
+
recordBatch?: RecordBatch;
|
|
70
|
+
length: number;
|
|
71
|
+
schema?: Schema;
|
|
72
|
+
bytesUsed?: number;
|
|
73
|
+
count?: number;
|
|
74
|
+
cursor?: number;
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/types/schema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAE9C,0BAA0B;AAC1B,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEjF,+BAA+B;AAC/B,MAAM,MAAM,QAAQ,GAChB,MAAM,GAEN,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,MAAM,GACN,UAAU,GACV,kBAAkB,GAClB,aAAa,GACb,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,uBAAuB,GACvB,uBAAuB,GACvB,sBAAsB,GACtB,kBAAkB,GAClB,oBAAoB,GAEpB;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,KAAK,EAAE,CAAA;CAAC,GACjC;IAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,KAAK,EAAE,CAAA;CAAC,GACnC;IACE,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,UAAU,CAAC;I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1B,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,gBAAgB,GAAG,cAAc,CAAC;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Any typed array */
|
|
2
|
+
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
|
|
3
|
+
export type BigTypedArray = TypedArray | BigInt64Array | BigUint64Array;
|
|
4
|
+
export type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor;
|
|
5
|
+
export type BigTypedArrayConstructor = TypedArrayConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor;
|
|
6
|
+
/** Any numeric array: typed array or `number[]` */
|
|
7
|
+
export type NumberArray = number[] | TypedArray;
|
|
8
|
+
export type NumericArray = number[] | TypedArray;
|
|
9
|
+
export interface ArrayType<T = unknown> {
|
|
10
|
+
readonly length: number;
|
|
11
|
+
[n: number]: T;
|
|
12
|
+
}
|
|
13
|
+
/** Any array: typed array or js array (`any[]`) */
|
|
14
|
+
export type AnyArray = any[] | TypedArray;
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,iBAAiB,GACjB,YAAY,GACZ,YAAY,CAAC;AAEjB,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,CAAC;AAExE,MAAM,MAAM,qBAAqB,GAC7B,oBAAoB,GACpB,qBAAqB,GACrB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,uBAAuB,GACvB,uBAAuB,CAAC;AAE5B,MAAM,MAAM,wBAAwB,GAChC,qBAAqB,GACrB,wBAAwB,GACxB,yBAAyB,CAAC;AAE9B,mDAAmD;AACnD,MAAM,MAAM,WAAW,GAAG,MAAM,EAAE,GAAG,UAAU,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,GAAG,UAAU,CAAC;AAEjD,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,OAAO;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;CAChB;AAED,mDAAmD;AACnD,MAAM,MAAM,QAAQ,GAAG,GAAG,EAAE,GAAG,UAAU,CAAC"}
|