@loaders.gl/schema 4.0.0-alpha.5 → 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.js +2 -2
- package/dist/dist.min.js +11362 -13932
- 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 +27 -25
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +92 -13
- package/dist/{category → lib}/mesh/convert-mesh.d.ts +3 -3
- package/dist/lib/mesh/convert-mesh.d.ts.map +1 -0
- package/dist/lib/mesh/convert-mesh.js +40 -0
- package/dist/{category → lib}/mesh/deduce-mesh-schema.d.ts +5 -5
- 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/{category → lib}/mesh/mesh-utils.d.ts +4 -4
- 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/{schema/impl/field.d.ts → table/arrow-api/arrow-like-field.d.ts} +4 -4
- 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/{schema/impl/type.d.ts → table/arrow-api/arrow-like-type.d.ts} +7 -6
- 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.map +1 -0
- package/dist/lib/table/arrow-api/enum.js +97 -0
- package/dist/lib/{arrow → table/arrow-api}/get-type-info.d.ts +2 -3
- 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/{batches → table/batches}/base-table-batch-aggregator.d.ts +3 -3
- 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/{batches → table/batches}/columnar-table-batch-aggregator.d.ts +4 -4
- 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/{batches → table/batches}/row-table-batch-aggregator.d.ts +3 -3
- 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/{batches → table/batches}/table-batch-aggregator.d.ts +2 -2
- 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/{batches → table/batches}/table-batch-builder.d.ts +5 -5
- 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.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.js +11 -5
- package/dist/lib/utils/async-queue.js +82 -109
- package/dist/{category/gis.d.ts → types/category-gis.d.ts} +26 -26
- package/dist/types/category-gis.d.ts.map +1 -0
- package/dist/types/category-gis.js +2 -0
- package/dist/{category/image/image.d.ts → types/category-image.d.ts} +4 -4
- package/dist/types/category-image.d.ts.map +1 -0
- package/dist/types/category-image.js +2 -0
- package/dist/{category/mesh/mesh-types.d.ts → types/category-mesh.d.ts} +8 -10
- package/dist/types/category-mesh.d.ts.map +1 -0
- package/dist/types/category-mesh.js +3 -0
- package/dist/{category/table/table-types.d.ts → types/category-table.d.ts} +44 -34
- 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 +5 -6
- package/src/index.ts +65 -31
- 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/{category/gis.ts → types/category-gis.ts} +9 -2
- package/src/{category/mesh/mesh-types.ts → types/category-mesh.ts} +6 -4
- package/src/types/category-table.ts +104 -0
- package/src/{category/texture/texture.ts → types/category-texture.ts} +3 -1
- 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.d.ts +0 -19
- package/dist/category/common.d.ts.map +0 -1
- package/dist/category/common.js +0 -2
- package/dist/category/common.js.map +0 -1
- package/dist/category/gis.d.ts.map +0 -1
- package/dist/category/gis.js +0 -2
- package/dist/category/gis.js.map +0 -1
- package/dist/category/image/image.d.ts.map +0 -1
- package/dist/category/image/image.js +0 -2
- package/dist/category/image/image.js.map +0 -1
- package/dist/category/mesh/convert-mesh.d.ts.map +0 -1
- package/dist/category/mesh/convert-mesh.js.map +0 -1
- package/dist/category/mesh/deduce-mesh-schema.d.ts.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.d.ts +0 -11
- package/dist/category/mesh/mesh-to-arrow-table.d.ts.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.d.ts.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.d.ts.map +0 -1
- package/dist/category/mesh/mesh-utils.js.map +0 -1
- package/dist/category/table/deduce-table-schema.d.ts +0 -9
- package/dist/category/table/deduce-table-schema.d.ts.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.d.ts.map +0 -1
- package/dist/category/table/table-types.js +0 -2
- package/dist/category/table/table-types.js.map +0 -1
- package/dist/category/texture/texture.d.ts +0 -18
- package/dist/category/texture/texture.d.ts.map +0 -1
- package/dist/category/texture/texture.js +0 -2
- package/dist/category/texture/texture.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/arrow/arrow-like-type-utils.d.ts +0 -4
- package/dist/lib/arrow/arrow-like-type-utils.d.ts.map +0 -1
- package/dist/lib/arrow/arrow-like-type-utils.js.map +0 -1
- package/dist/lib/arrow/arrow-type-utils.d.ts +0 -6
- package/dist/lib/arrow/arrow-type-utils.d.ts.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.d.ts.map +0 -1
- package/dist/lib/arrow/get-type-info.js.map +0 -1
- package/dist/lib/batches/base-table-batch-aggregator.d.ts.map +0 -1
- package/dist/lib/batches/base-table-batch-aggregator.js.map +0 -1
- package/dist/lib/batches/columnar-table-batch-aggregator.d.ts.map +0 -1
- package/dist/lib/batches/columnar-table-batch-aggregator.js.map +0 -1
- package/dist/lib/batches/row-table-batch-aggregator.d.ts.map +0 -1
- package/dist/lib/batches/row-table-batch-aggregator.js.map +0 -1
- package/dist/lib/batches/table-batch-aggregator.d.ts.map +0 -1
- package/dist/lib/batches/table-batch-aggregator.js.map +0 -1
- package/dist/lib/batches/table-batch-builder.d.ts.map +0 -1
- package/dist/lib/batches/table-batch-builder.js.map +0 -1
- package/dist/lib/schema/impl/enum.d.ts.map +0 -1
- package/dist/lib/schema/impl/enum.js.map +0 -1
- package/dist/lib/schema/impl/field.d.ts.map +0 -1
- package/dist/lib/schema/impl/field.js.map +0 -1
- package/dist/lib/schema/impl/schema.d.ts +0 -16
- package/dist/lib/schema/impl/schema.d.ts.map +0 -1
- package/dist/lib/schema/impl/schema.js.map +0 -1
- package/dist/lib/schema/impl/type.d.ts.map +0 -1
- package/dist/lib/schema/impl/type.js.map +0 -1
- package/dist/lib/schema/schema.d.ts +0 -5
- package/dist/lib/schema/schema.d.ts.map +0 -1
- package/dist/lib/schema/schema.js +0 -5
- package/dist/lib/schema/schema.js.map +0 -1
- package/dist/lib/schema-utils/deduce-column-type.d.ts +0 -3
- package/dist/lib/schema-utils/deduce-column-type.d.ts.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.d.ts.map +0 -1
- package/dist/lib/utils/row-utils.js.map +0 -1
- package/dist/types.d.ts +0 -8
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/src/category/common.ts +0 -30
- 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 -35
- package/src/lib/schema/impl/schema.ts +0 -99
- package/src/lib/schema/schema.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/dist/lib/{schema/impl → table/arrow-api}/enum.d.ts +0 -0
- /package/dist/lib/{utils → table/simple-table}/row-utils.d.ts +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
- /package/src/{category/image/image.ts → types/category-image.ts} +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deduceSchema = exports.deduceTableSchema = void 0;
|
|
4
|
+
const data_type_1 = require("./data-type");
|
|
5
|
+
/**
|
|
6
|
+
* SCHEMA SUPPORT - AUTODEDUCTION
|
|
7
|
+
* @param {*} table
|
|
8
|
+
* @param {*} schema
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
function deduceTableSchema(table) {
|
|
12
|
+
switch (table.shape) {
|
|
13
|
+
case 'array-row-table':
|
|
14
|
+
case 'object-row-table':
|
|
15
|
+
return deduceSchemaFromRows(table.data);
|
|
16
|
+
case 'columnar-table':
|
|
17
|
+
return deduceSchemaFromColumns(table.data);
|
|
18
|
+
case 'arrow-table':
|
|
19
|
+
default:
|
|
20
|
+
throw new Error('Deduce schema');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.deduceTableSchema = deduceTableSchema;
|
|
24
|
+
function deduceSchema(data) {
|
|
25
|
+
return Array.isArray(data) ? deduceSchemaFromRows(data) : deduceSchemaFromColumns(data);
|
|
26
|
+
}
|
|
27
|
+
exports.deduceSchema = deduceSchema;
|
|
28
|
+
/** Given an object with columnar arrays, try to deduce a schema */
|
|
29
|
+
function deduceSchemaFromColumns(columnarTable) {
|
|
30
|
+
const fields = [];
|
|
31
|
+
for (const [columnName, column] of Object.entries(columnarTable)) {
|
|
32
|
+
const field = deduceFieldFromColumn(column, columnName);
|
|
33
|
+
fields.push(field);
|
|
34
|
+
}
|
|
35
|
+
return { fields, metadata: {} };
|
|
36
|
+
}
|
|
37
|
+
/** Given an array of rows, try to deduce a schema */
|
|
38
|
+
function deduceSchemaFromRows(rowTable) {
|
|
39
|
+
if (!rowTable.length) {
|
|
40
|
+
throw new Error('deduce from empty table');
|
|
41
|
+
}
|
|
42
|
+
const fields = [];
|
|
43
|
+
const row0 = rowTable[0];
|
|
44
|
+
// TODO - fields can be nullable, false detection...
|
|
45
|
+
// Could look at additional rows if nulls in first row
|
|
46
|
+
// TODO - if array, column names will be numbers
|
|
47
|
+
for (const [columnName, value] of Object.entries(row0)) {
|
|
48
|
+
fields.push(deduceFieldFromValue(value, columnName));
|
|
49
|
+
}
|
|
50
|
+
return { fields, metadata: {} };
|
|
51
|
+
}
|
|
52
|
+
/** Given a column (i.e. array), attempt to deduce an appropriate `Field` */
|
|
53
|
+
function deduceFieldFromColumn(column, name) {
|
|
54
|
+
if (ArrayBuffer.isView(column)) {
|
|
55
|
+
const type = (0, data_type_1.getDataTypeFromArray)(column);
|
|
56
|
+
return {
|
|
57
|
+
name,
|
|
58
|
+
type: type.type || 'null',
|
|
59
|
+
nullable: type.nullable
|
|
60
|
+
// metadata: {}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
if (Array.isArray(column) && column.length > 0) {
|
|
64
|
+
const value = column[0];
|
|
65
|
+
const type = (0, data_type_1.getDataTypeFromValue)(value);
|
|
66
|
+
// TODO - support nested schemas?
|
|
67
|
+
return {
|
|
68
|
+
name,
|
|
69
|
+
type,
|
|
70
|
+
nullable: true
|
|
71
|
+
// metadata: {},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
throw new Error('empty table');
|
|
75
|
+
}
|
|
76
|
+
/** Given a value, attempt to deduce an appropriate `Field` */
|
|
77
|
+
function deduceFieldFromValue(value, name) {
|
|
78
|
+
const type = (0, data_type_1.getDataTypeFromValue)(value);
|
|
79
|
+
return {
|
|
80
|
+
name,
|
|
81
|
+
type,
|
|
82
|
+
nullable: true
|
|
83
|
+
// metadata: {}
|
|
84
|
+
};
|
|
85
|
+
}
|
package/dist/lib/utils/assert.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assert = void 0;
|
|
4
|
+
// Replacement for the external assert method to reduce bundle size
|
|
5
|
+
// Note: We don't use the second "message" argument in calling code,
|
|
6
|
+
// so no need to support it here
|
|
7
|
+
function assert(condition, message) {
|
|
8
|
+
if (!condition) {
|
|
9
|
+
throw new Error(message || 'loader assertion failed.');
|
|
10
|
+
}
|
|
5
11
|
}
|
|
6
|
-
|
|
12
|
+
exports.assert = assert;
|
|
@@ -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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { TypedArray } from '
|
|
1
|
+
import type { TypedArray } from './types';
|
|
2
2
|
import type { Feature, Geometry, Point, LineString, Polygon } from 'geojson';
|
|
3
|
-
export type { GeoJSON, Feature, Geometry, Position, GeoJsonProperties } from 'geojson';
|
|
3
|
+
export type { GeoJSON, Feature, FeatureCollection, Geometry, Position, GeoJsonProperties } from 'geojson';
|
|
4
4
|
export type { Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection } from 'geojson';
|
|
5
|
-
export
|
|
5
|
+
export type GeojsonGeometryInfo = {
|
|
6
6
|
coordLength: number;
|
|
7
7
|
pointPositionsCount: number;
|
|
8
8
|
pointFeaturesCount: number;
|
|
@@ -14,86 +14,86 @@ export declare type GeojsonGeometryInfo = {
|
|
|
14
14
|
polygonRingsCount: number;
|
|
15
15
|
polygonFeaturesCount: number;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
|
|
17
|
+
export type FlatGeometryType = 'Point' | 'LineString' | 'Polygon';
|
|
18
|
+
type RemoveCoordinatesField<Type> = {
|
|
19
19
|
[Property in keyof Type as Exclude<Property, 'coordinates'>]: Type[Property];
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Generic flat geometry data storage type
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export type FlatIndexedGeometry = {
|
|
25
25
|
data: number[];
|
|
26
26
|
indices: number[];
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* GeoJSON (Multi)Point geometry with coordinate data flattened into `data` array and indexed by `indices`
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export type FlatPoint = RemoveCoordinatesField<Point> & FlatIndexedGeometry;
|
|
32
32
|
/**
|
|
33
33
|
* GeoJSON (Multi)LineString geometry with coordinate data flattened into `data` array and indexed by `indices`
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export type FlatLineString = RemoveCoordinatesField<LineString> & FlatIndexedGeometry;
|
|
36
36
|
/**
|
|
37
37
|
* GeoJSON (Multi)Polygon geometry with coordinate data flattened into `data` array and indexed by 2D `indices`
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type FlatPolygon = RemoveCoordinatesField<Polygon> & {
|
|
40
40
|
data: number[];
|
|
41
41
|
indices: number[][];
|
|
42
42
|
areas: number[][];
|
|
43
43
|
};
|
|
44
|
-
export
|
|
45
|
-
|
|
44
|
+
export type FlatGeometry = FlatPoint | FlatLineString | FlatPolygon;
|
|
45
|
+
type FlattenGeometry<Type> = {
|
|
46
46
|
[Property in keyof Type]: Type[Property] extends Geometry ? FlatGeometry : Type[Property];
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* GeoJSON Feature with Geometry replaced by FlatGeometry
|
|
50
50
|
*/
|
|
51
|
-
export
|
|
52
|
-
export
|
|
51
|
+
export type FlatFeature = FlattenGeometry<Feature>;
|
|
52
|
+
export type BinaryAttribute = {
|
|
53
53
|
value: TypedArray;
|
|
54
54
|
size: number;
|
|
55
55
|
};
|
|
56
|
-
export
|
|
57
|
-
|
|
56
|
+
export type BinaryGeometryType = 'Point' | 'LineString' | 'Polygon';
|
|
57
|
+
type NumericProps = {
|
|
58
58
|
[key: string]: BinaryAttribute;
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
type Properties = object[];
|
|
61
61
|
/**
|
|
62
62
|
* Represent a single Geometry, similar to a GeoJSON Geometry
|
|
63
63
|
*/
|
|
64
|
-
export
|
|
65
|
-
export
|
|
64
|
+
export type BinaryGeometry = BinaryPointGeometry | BinaryLineGeometry | BinaryPolygonGeometry;
|
|
65
|
+
export type BinaryPointGeometry = {
|
|
66
66
|
type: 'Point';
|
|
67
67
|
positions: BinaryAttribute;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type BinaryLineGeometry = {
|
|
70
70
|
type: 'LineString';
|
|
71
71
|
positions: BinaryAttribute;
|
|
72
72
|
pathIndices: BinaryAttribute;
|
|
73
73
|
};
|
|
74
|
-
export
|
|
74
|
+
export type BinaryPolygonGeometry = {
|
|
75
75
|
type: 'Polygon';
|
|
76
76
|
positions: BinaryAttribute;
|
|
77
77
|
polygonIndices: BinaryAttribute;
|
|
78
78
|
primitivePolygonIndices: BinaryAttribute;
|
|
79
79
|
triangles?: BinaryAttribute;
|
|
80
80
|
};
|
|
81
|
-
export
|
|
81
|
+
export type BinaryProperties = {
|
|
82
82
|
featureIds: BinaryAttribute;
|
|
83
83
|
globalFeatureIds: BinaryAttribute;
|
|
84
84
|
numericProps: NumericProps;
|
|
85
85
|
properties: Properties;
|
|
86
86
|
fields?: Properties;
|
|
87
87
|
};
|
|
88
|
-
export
|
|
89
|
-
export
|
|
90
|
-
export
|
|
88
|
+
export type BinaryPointFeatures = BinaryPointGeometry & BinaryProperties;
|
|
89
|
+
export type BinaryLineFeatures = BinaryLineGeometry & BinaryProperties;
|
|
90
|
+
export type BinaryPolygonFeatures = BinaryPolygonGeometry & BinaryProperties;
|
|
91
91
|
/**
|
|
92
92
|
* Represent a collection of Features, similar to a GeoJSON FeatureCollection
|
|
93
93
|
*/
|
|
94
|
-
export
|
|
94
|
+
export type BinaryFeatures = {
|
|
95
95
|
points?: BinaryPointFeatures;
|
|
96
96
|
lines?: BinaryLineFeatures;
|
|
97
97
|
polygons?: BinaryPolygonFeatures;
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=gis.d.ts.map
|
|
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,SAAS,CAAC;AAEjB,YAAY,EACV,KAAK,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,OAAO,EACP,YAAY,EACZ,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;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,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAClC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* data images
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type ImageDataType = {
|
|
5
5
|
data: Uint8Array;
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
@@ -10,9 +10,9 @@ export declare type ImageDataType = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Supported Image Types
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type ImageType = ImageBitmap | typeof Image | ImageDataType;
|
|
14
14
|
/**
|
|
15
15
|
* Image type string used to control or determine the type of images returned from ImageLoader
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
18
|
-
//# sourceMappingURL=image.d.ts.map
|
|
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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Schema } from '
|
|
2
|
-
import type { TypedArray } from '
|
|
3
|
-
import type { ColumnarTable, ArrowTable } from '
|
|
1
|
+
import type { Schema } from './schema';
|
|
2
|
+
import type { TypedArray } from './types';
|
|
3
|
+
import type { ColumnarTable, ArrowTable } from './category-table';
|
|
4
4
|
/** Mesh as columnar table */
|
|
5
5
|
export interface MeshTable extends ColumnarTable {
|
|
6
6
|
topology: 'point-list' | 'triangle-list' | 'triangle-strip';
|
|
@@ -12,7 +12,7 @@ export interface MeshArrowTable extends ArrowTable {
|
|
|
12
12
|
indices?: MeshAttribute;
|
|
13
13
|
}
|
|
14
14
|
/** Geometry part of a Mesh (compatible with a standard luma.gl "mesh") */
|
|
15
|
-
export
|
|
15
|
+
export type MeshGeometry = {
|
|
16
16
|
attributes: {
|
|
17
17
|
[attributeName: string]: MeshAttribute;
|
|
18
18
|
};
|
|
@@ -21,7 +21,7 @@ export declare type MeshGeometry = {
|
|
|
21
21
|
mode: number;
|
|
22
22
|
};
|
|
23
23
|
/** Geometry and metadata for a Mesh (compatible with a standard luma.gl "mesh") */
|
|
24
|
-
export
|
|
24
|
+
export type Mesh = MeshGeometry & {
|
|
25
25
|
loader?: string;
|
|
26
26
|
loaderData?: {
|
|
27
27
|
[key: string]: any;
|
|
@@ -36,7 +36,7 @@ export declare type Mesh = MeshGeometry & {
|
|
|
36
36
|
* luma.gl compatible attribute descriptors
|
|
37
37
|
* Can be mapped to any WebGL framework
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type MeshAttribute = {
|
|
40
40
|
value: TypedArray;
|
|
41
41
|
size: number;
|
|
42
42
|
byteOffset?: number;
|
|
@@ -44,7 +44,5 @@ export declare type MeshAttribute = {
|
|
|
44
44
|
normalized?: boolean;
|
|
45
45
|
};
|
|
46
46
|
/** A map of mesh attributes keyed by attribute names */
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=mesh-types.d.ts.map
|
|
47
|
+
export type MeshAttributes = Record<string, MeshAttribute>;
|
|
48
|
+
//# sourceMappingURL=category-mesh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-mesh.d.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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"}
|
|
@@ -1,76 +1,86 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type { Batch } from '../common';
|
|
1
|
+
import type { Table as ApacheArrowTable, RecordBatch } from 'apache-arrow';
|
|
2
|
+
import type { Batch, Schema } from './schema';
|
|
3
|
+
import type { Feature } from './category-gis';
|
|
5
4
|
/** A general table */
|
|
6
|
-
export
|
|
7
|
-
shape: 'row-table' | 'array-row-table' | 'object-row-table' | 'columnar-table' | 'arrow-table';
|
|
8
|
-
schema?: Schema;
|
|
9
|
-
schemaType?: 'explicit' | 'deduced';
|
|
10
|
-
}
|
|
5
|
+
export type Table = RowTable | ArrayRowTable | ObjectRowTable | GeoJSONRowTable | ColumnarTable | ArrowTable;
|
|
11
6
|
/** A table organized as an array of rows */
|
|
12
|
-
export
|
|
13
|
-
shape: 'row-table' | 'array-row-table' | 'object-row-table';
|
|
14
|
-
data: any[];
|
|
15
|
-
}
|
|
7
|
+
export type RowTable = ArrayRowTable | ObjectRowTable | GeoJSONRowTable;
|
|
16
8
|
/** A table organized as an array of rows, each row is an array of values */
|
|
17
|
-
export
|
|
9
|
+
export type ArrayRowTable = {
|
|
18
10
|
shape: 'array-row-table';
|
|
11
|
+
schema?: Schema;
|
|
19
12
|
data: any[][];
|
|
20
|
-
}
|
|
13
|
+
};
|
|
21
14
|
/** A table organized as an array of rows, each row is an object mapping columns to values */
|
|
22
|
-
export
|
|
15
|
+
export type ObjectRowTable = {
|
|
23
16
|
shape: 'object-row-table';
|
|
17
|
+
schema?: Schema;
|
|
24
18
|
data: {
|
|
25
19
|
[columnName: string]: any;
|
|
26
20
|
}[];
|
|
27
|
-
}
|
|
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
28
|
/** A table organized as a map of columns, each column is an array of value */
|
|
29
|
-
export
|
|
29
|
+
export type ColumnarTable = {
|
|
30
30
|
shape: 'columnar-table';
|
|
31
|
+
schema?: Schema;
|
|
31
32
|
data: {
|
|
32
|
-
[columnName: string]:
|
|
33
|
+
[columnName: string]: ArrayLike<unknown>;
|
|
33
34
|
};
|
|
34
|
-
}
|
|
35
|
+
};
|
|
35
36
|
/** A table organized as an Apache Arrow table */
|
|
36
|
-
export
|
|
37
|
+
export type ArrowTable = {
|
|
37
38
|
shape: 'arrow-table';
|
|
39
|
+
schema?: Schema;
|
|
38
40
|
data: ApacheArrowTable;
|
|
39
|
-
}
|
|
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
|
+
};
|
|
40
50
|
/** Batch for a general table */
|
|
41
|
-
export
|
|
51
|
+
export type TableBatch = Batch & {
|
|
42
52
|
data: any;
|
|
43
53
|
length: number;
|
|
44
54
|
schema?: Schema;
|
|
45
55
|
schemaType?: 'explicit' | 'deduced';
|
|
46
56
|
};
|
|
47
|
-
/** Batch for a table organized as an array of rows */
|
|
48
|
-
export declare type RowTableBatch = TableBatch & {
|
|
49
|
-
shape: 'row-table';
|
|
50
|
-
data: any[];
|
|
51
|
-
};
|
|
52
57
|
/** Batch for a table organized as an array of rows, each row is an array of values */
|
|
53
|
-
export
|
|
58
|
+
export type ArrayRowTableBatch = TableBatch & {
|
|
54
59
|
shape: 'array-row-table';
|
|
55
60
|
data: any[][];
|
|
56
61
|
};
|
|
57
62
|
/** Batch for a table organized as an array of rows, each row is an object mapping columns to values */
|
|
58
|
-
export
|
|
63
|
+
export type ObjectRowTableBatch = TableBatch & {
|
|
59
64
|
shape: 'object-row-table';
|
|
60
65
|
data: {
|
|
61
66
|
[columnName: string]: any;
|
|
62
67
|
}[];
|
|
63
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
|
+
};
|
|
64
74
|
/** Batch for a table organized as a map of columns, each column is an array of value */
|
|
65
|
-
export
|
|
75
|
+
export type ColumnarTableBatch = TableBatch & {
|
|
66
76
|
shape: 'columnar-table';
|
|
67
77
|
data: {
|
|
68
|
-
[columnName: string]:
|
|
78
|
+
[columnName: string]: ArrayLike<unknown>;
|
|
69
79
|
};
|
|
70
80
|
};
|
|
71
81
|
/** Batch for a table organized as an Apache Arrow table */
|
|
72
|
-
export
|
|
82
|
+
export type ArrowTableBatch = TableBatch & {
|
|
73
83
|
shape: 'arrow-table';
|
|
74
84
|
data: RecordBatch;
|
|
75
85
|
};
|
|
76
|
-
//# sourceMappingURL=table
|
|
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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