kepler.gl 3.2.2 → 3.2.3
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/src/processors/src/file-handler.d.ts +2 -7
- package/dist/src/utils/src/arrow-data-container.d.ts +38 -1
- package/dist/src/utils/src/data-container-interface.d.ts +3 -2
- package/dist/src/utils/src/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/actions/package.json +8 -8
- package/src/ai-assistant/package.json +7 -7
- package/src/cloud-providers/package.json +2 -2
- package/src/common-utils/package.json +3 -3
- package/src/components/package.json +16 -16
- package/src/constants/dist/default-settings.js +1 -1
- package/src/constants/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/da/54/b803dd69cea23939320d2d3aa0502638ac264cea8968854e5ccc4a71ddfbb0d6ce41a875ec1be176eb7d99815b3d6464bf60d0274b1175d7fcb131846d7d +1 -0
- package/src/constants/node_modules/.cache/terser-webpack-plugin/index-v5/9c/6d/1f90c56b793c944c2a9a393e837a46aef02e3b867e2bf28fcb0929c4ac5e +2 -0
- package/src/constants/package.json +2 -2
- package/src/constants/umd/keplergl.min.js +1 -1
- package/src/deckgl-arrow-layers/dist/utils/utils.js +5 -4
- package/src/deckgl-arrow-layers/dist/utils/validate.js +3 -2
- package/src/deckgl-arrow-layers/package.json +3 -2
- package/src/deckgl-arrow-layers/src/utils/utils.ts +4 -3
- package/src/deckgl-arrow-layers/src/utils/validate.ts +2 -1
- package/src/deckgl-layers/package.json +4 -4
- package/src/duckdb/dist/table/duckdb-table.js +3 -3
- package/src/duckdb/package.json +7 -6
- package/src/duckdb/src/table/duckdb-table.ts +11 -6
- package/src/effects/package.json +5 -5
- package/src/layers/dist/base-layer.js +2 -6
- package/src/layers/dist/layer-text-label.js +3 -3
- package/src/layers/package.json +9 -9
- package/src/layers/src/base-layer.ts +3 -2
- package/src/layers/src/layer-text-label.ts +3 -3
- package/src/localization/package.json +1 -1
- package/src/processors/dist/file-handler.d.ts +2 -7
- package/src/processors/dist/file-handler.js +8 -16
- package/src/processors/package.json +7 -7
- package/src/processors/src/file-handler.ts +3 -10
- package/src/reducers/package.json +16 -16
- package/src/schemas/package.json +7 -7
- package/src/styles/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/fd/ef/551b4725615a0e609688e4b55cf4f617fab2a80dcb5e9efb288d77e62f25cd67f3525e372e109c35ef3b3508da4eb974cdf1a784ee3ff610942b93415cc7 +1 -0
- package/src/styles/node_modules/.cache/terser-webpack-plugin/index-v5/aa/b2/36c45c478923af2d1fd8b06c81f5aa622e67be3239349c2219ac4652d959 +2 -0
- package/src/styles/package.json +2 -2
- package/src/styles/umd/keplergl.min.js +1 -1
- package/src/table/dist/kepler-table.js +3 -3
- package/src/table/package.json +5 -5
- package/src/table/src/kepler-table.ts +1 -1
- package/src/tasks/package.json +2 -2
- package/src/types/package.json +1 -1
- package/src/utils/dist/arrow-data-container.d.ts +38 -1
- package/src/utils/dist/arrow-data-container.js +78 -11
- package/src/utils/dist/data-container-interface.d.ts +3 -2
- package/src/utils/dist/data-container-interface.js +1 -1
- package/src/utils/dist/data-utils.js +3 -6
- package/src/utils/dist/index.d.ts +1 -1
- package/src/utils/dist/index.js +29 -1
- package/src/utils/package.json +4 -4
- package/src/utils/src/arrow-data-container.ts +101 -13
- package/src/utils/src/data-container-interface.ts +3 -2
- package/src/utils/src/data-utils.ts +2 -2
- package/src/utils/src/index.ts +5 -1
- package/umd/keplergl.min.js +1370 -1370
|
@@ -19,7 +19,13 @@ import {
|
|
|
19
19
|
} from '@kepler.gl/processors';
|
|
20
20
|
import {KeplerTable} from '@kepler.gl/table';
|
|
21
21
|
import {Field} from '@kepler.gl/types';
|
|
22
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
getApplicationConfig,
|
|
24
|
+
DatabaseAdapter,
|
|
25
|
+
DatabaseConnection,
|
|
26
|
+
isArrowTable,
|
|
27
|
+
isArrowVector
|
|
28
|
+
} from '@kepler.gl/utils';
|
|
23
29
|
|
|
24
30
|
import {
|
|
25
31
|
processCsvRowObject,
|
|
@@ -161,10 +167,9 @@ export class KeplerGlDuckDbTable extends KeplerTable {
|
|
|
161
167
|
try {
|
|
162
168
|
// 1) data.rows contains an arrow table created by Add to Map data from DuckDb query.
|
|
163
169
|
// 2) arrow table is in cols & fields when a file is dragged & dropped into Add Data To Map dialog.
|
|
164
|
-
const arrowTable =
|
|
165
|
-
data.rows
|
|
166
|
-
|
|
167
|
-
: restoreArrowTable(data.cols || [], data.fields, data.arrowSchema);
|
|
170
|
+
const arrowTable = isArrowTable(data.rows)
|
|
171
|
+
? data.rows
|
|
172
|
+
: restoreArrowTable(data.cols || [], data.fields, data.arrowSchema);
|
|
168
173
|
|
|
169
174
|
// remove unsupported extensions from an arrow table that throw exceptions in DuckDB.
|
|
170
175
|
adjustedMetadata = removeUnsupportedExtensions(arrowTable);
|
|
@@ -215,7 +220,7 @@ export class KeplerGlDuckDbTable extends KeplerTable {
|
|
|
215
220
|
format = DATASET_FORMATS.row;
|
|
216
221
|
} else if (data.rows?.type === 'FeatureCollection') {
|
|
217
222
|
format = DATASET_FORMATS.geojson;
|
|
218
|
-
} else if (data.cols?.[0]
|
|
223
|
+
} else if (isArrowVector(data.cols?.[0])) {
|
|
219
224
|
format = DATASET_FORMATS.arrow;
|
|
220
225
|
}
|
|
221
226
|
}
|
package/src/effects/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kepler.gl/effects",
|
|
3
3
|
"author": "Shan He <shan@uber.com>",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.3",
|
|
5
5
|
"description": "kepler.gl viaual effects",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@deck.gl/core": "^8.9.27",
|
|
34
|
-
"@kepler.gl/common-utils": "3.2.
|
|
35
|
-
"@kepler.gl/constants": "3.2.
|
|
36
|
-
"@kepler.gl/types": "3.2.
|
|
37
|
-
"@kepler.gl/utils": "3.2.
|
|
34
|
+
"@kepler.gl/common-utils": "3.2.3",
|
|
35
|
+
"@kepler.gl/constants": "3.2.3",
|
|
36
|
+
"@kepler.gl/types": "3.2.3",
|
|
37
|
+
"@kepler.gl/utils": "3.2.3",
|
|
38
38
|
"@luma.gl/core": "^8.5.20",
|
|
39
39
|
"@luma.gl/shadertools": "^8.5.20",
|
|
40
40
|
"moment-timezone": "^0.5.35",
|