Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Feat] GeoArrow incremental rendering (1) (#2459)
Xun Li2024a6d82406
diff --git a/examples/demo-app/src/cloud-providers/foursquare/foursquare-icon.js b/examples/demo-app/src/cloud-providers/foursquare/foursquare-icon.jsindex bb9e55b02..99a98bd38 100644--- a/examples/demo-app/src/cloud-providers/foursquare/foursquare-icon.js+++ b/examples/demo-app/src/cloud-providers/foursquare/foursquare-icon.js@@ -1,3 +1,23 @@+// Copyright (c) 2023 Uber Technologies, Inc.+//+// Permission is hereby granted, free of charge, to any person obtaining a copy+// of this software and associated documentation files (the "Software"), to deal+// in the Software without restriction, including without limitation the rights+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+// copies of the Software, and to permit persons to whom the Software is+// furnished to do so, subject to the following conditions:+//+// The above copyright notice and this permission notice shall be included in+// all copies or substantial portions of the Software.+//+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+// THE SOFTWARE.+import React, {Component} from 'react';import {Icons} from '@kepler.gl/components';import PropTypes from 'prop-types';diff --git a/examples/demo-app/src/cloud-providers/foursquare/foursquare-provider.js b/examples/demo-app/src/cloud-providers/foursquare/foursquare-provider.jsindex 1587ed7f5..5c7bcebbe 100644--- a/examples/demo-app/src/cloud-providers/foursquare/foursquare-provider.js+++ b/examples/demo-app/src/cloud-providers/foursquare/foursquare-provider.js@@ -1,3 +1,23 @@+// Copyright (c) 2023 Uber Technologies, Inc.+//+// Permission is hereby granted, free of charge, to any person obtaining a copy+// of this software and associated documentation files (the "Software"), to deal+// in the Software without restriction, including without limitation the rights+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+// copies of the Software, and to permit persons to whom the Software is+// furnished to do so, subject to the following conditions:+//+// The above copyright notice and this permission notice shall be included in+// all copies or substantial portions of the Software.+//+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+// THE SOFTWARE.+import FSQIcon from './foursquare-icon';import {Provider, KEPLER_FORMAT} from '@kepler.gl/cloud-providers';import {Auth0Client} from '@auth0/auth0-spa-js';diff --git a/package.json b/package.jsonindex 3843b269f..0fc86d3aa 100644--- a/package.json+++ b/package.json@@ -114,7 +114,7 @@"@hubble.gl/core": "1.2.0-alpha.6","@hubble.gl/react": "1.2.0-alpha.6","@kepler.gl/components": "3.0.0-alpha.1",- "@loaders.gl/polyfills": "^4.0.3",+ "@loaders.gl/polyfills": "^4.1.0-alpha.2","@types/mapbox__geo-viewport": "^0.4.1","@typescript-eslint/parser": "^5.27.0","eslint-config-developit": "^1.2.0",@@ -142,7 +142,7 @@"@babel/traverse": "^7.12.1","@cfaester/enzyme-adapter-react-18": "^0.7.0","@deck.gl/test-utils": "^8.9.27",- "@loaders.gl/polyfills": "^4.0.3",+ "@loaders.gl/polyfills": "^4.1.0-alpha.2","@luma.gl/test-utils": "^8.5.20","@nebula.gl/layers": "1.0.2-alpha.1","@probe.gl/env": "^3.5.0",@@ -216,12 +216,12 @@"webpack-stats-plugin": "^0.2.1"},"resolutions": {- "@loaders.gl/core": "^4.0.3",- "@loaders.gl/csv": "^4.0.3",- "@loaders.gl/gltf": "^4.0.3",- "@loaders.gl/json": "^4.0.3",- "@loaders.gl/loader-utils": "^4.0.3",- "@loaders.gl/polyfills": "^4.0.3",+ "@loaders.gl/core": "^4.1.0-alpha.2",+ "@loaders.gl/csv": "^4.1.0-alpha.2",+ "@loaders.gl/gltf": "^4.1.0-alpha.2",+ "@loaders.gl/json": "^4.1.0-alpha.2",+ "@loaders.gl/loader-utils": "^4.1.0-alpha.2",+ "@loaders.gl/polyfills": "^4.1.0-alpha.2","@luma.gl/constants": "8.5.20","@luma.gl/core": "8.5.20","@luma.gl/experimental": "8.5.20",diff --git a/src/actions/src/action-types.ts b/src/actions/src/action-types.tsindex 71db454a8..8acab393d 100644--- a/src/actions/src/action-types.ts+++ b/src/actions/src/action-types.ts@@ -103,6 +103,7 @@ export const ActionTypes = {SET_FILTER_PLOT: `${ACTION_PREFIX}SET_FILTER_PLOT`,LOAD_FILES: `${ACTION_PREFIX}LOAD_FILES`,LOAD_NEXT_FILE: `${ACTION_PREFIX}LOAD_NEXT_FILE`,+ LOAD_BATCH_DATA_SUCCESS: `${ACTION_PREFIX}LOAD_BATCH_DATA_SUCCESS`,LOAD_FILE_STEP_SUCCESS: `${ACTION_PREFIX}LOAD_FILE_STEP_SUCCESS`,LOAD_FILES_ERR: `${ACTION_PREFIX}LOAD_FILES_ERR`,LOAD_FILES_SUCCESS: `${ACTION_PREFIX}LOAD_FILES_SUCCESS`,diff --git a/src/actions/src/vis-state-actions.ts b/src/actions/src/vis-state-actions.tsindex 3480890be..31fb94dfc 100644--- a/src/actions/src/vis-state-actions.ts+++ b/src/actions/src/vis-state-actions.ts@@ -1240,6 +1240,20 @@ export function loadFileStepSuccess({};}+export function loadBatchDataSuccess({+ fileName,+ fileCache+}: {+ fileName: string;+ fileCache: FileCacheItem[];+}): Merge<LoadFileStepSuccessAction, {type: typeof ActionTypes.LOAD_BATCH_DATA_SUCCESS}> {+ return {+ type: ActionTypes.LOAD_BATCH_DATA_SUCCESS,+ fileName,+ fileCache+ };+}+export type LoadFilesErrUpdaterAction = {fileName: string;error: any;diff --git a/src/layers/package.json b/src/layers/package.jsonindex 5dcbe6351..7fb592076 100644--- a/src/layers/package.json+++ b/src/layers/package.json@@ -42,11 +42,11 @@"@kepler.gl/table": "3.0.0-alpha.1","@kepler.gl/types": "3.0.0-alpha.1","@kepler.gl/utils": "3.0.0-alpha.1",- "@loaders.gl/arrow": "^4.0.3",- "@loaders.gl/core": "^4.0.3",- "@loaders.gl/gis": "^4.0.3",- "@loaders.gl/gltf": "^4.0.3",- "@loaders.gl/wkt": "^4.0.3",+ "@loaders.gl/arrow": "^4.1.0-alpha.2",+ "@loaders.gl/core": "^4.1.0-alpha.2",+ "@loaders.gl/gis": "^4.1.0-alpha.2",+ "@loaders.gl/gltf": "^4.1.0-alpha.2",+ "@loaders.gl/wkt": "^4.1.0-alpha.2","@luma.gl/constants": "^8.5.20","@mapbox/geojson-normalize": "0.0.1","@nebula.gl/edit-modes": "1.0.2-alpha.1",diff --git a/src/layers/src/base-layer.ts b/src/layers/src/base-layer.tsindex d1c2fe0a3..fd69ad428 100644--- a/src/layers/src/base-layer.ts+++ b/src/layers/src/base-layer.ts@@ -1104,7 +1104,7 @@ class Layer {const dataUpdateTriggers = this.getDataUpdateTriggers(layerDataset);const triggerChanged = this.getChangedTriggers(dataUpdateTriggers);- if (triggerChanged && triggerChanged.getMeta) {+ if (triggerChanged && (triggerChanged.getMeta || triggerChanged.getData)) {this.updateLayerMeta(dataContainer, getPosition);}diff --git a/src/layers/src/geojson-layer/geojson-layer.ts b/src/layers/src/geojson-layer/geojson-layer.tsindex f307258b0..9aeee1877 100644--- a/src/layers/src/geojson-layer/geojson-layer.ts+++ b/src/layers/src/geojson-layer/geojson-layer.ts@@ -209,7 +209,7 @@ export default class GeoJsonLayer extends Layer {dataToFeature: GeojsonDataMaps | BinaryFeatures[] = [];dataContainer: DataContainerInterface | null = null;filteredIndex: Uint8ClampedArray | null = null;- filteredIndexTrigger: number[] = [];+ filteredIndexTrigger: number[] | null = null;constructor(props) {super(props);@@ -360,25 +360,32 @@ export default class GeoJsonLayer extends Layer {return null;}- calculateDataAttribute({dataContainer, filteredIndex}, getPosition) {- // filter geojson/arrow table by values and make a partial copy of the raw table are expensive- // so we will use filteredIndex to create an attribute e.g. filteredIndex [0|1] for GPU filtering- // in deck.gl layer, see: FilterArrowExtension in @kepler.gl/deckgl-layers- if (!this.filteredIndex) {- this.filteredIndex = new Uint8ClampedArray(dataContainer.numRows());- }- this.filteredIndex.fill(0);- for (let i = 0; i < filteredIndex.length; ++i) {- this.filteredIndex[filteredIndex[i]] = 1;- }-- this.filteredIndexTrigger = filteredIndex;+ calculateDataAttribute({ dataContainer, filteredIndex }, getPosition) {+ if (dataContainer instanceof ArrowDataContainer) {+ // filter geojson/arrow table by values and make a partial copy of the raw table are expensive+ // so we will use filteredIndex to create an attribute e.g. filteredIndex [0|1] for GPU filtering+ // in deck.gl layer, see: FilterArrowExtension in @kepler.gl/deckgl-layers+ if (!this.filteredIndex || this.filteredIndex.length !== dataContainer.numRows()) {+ // for incremental data loading, we need to update filteredIndex+ this.filteredIndex = new Uint8ClampedArray(dataContainer.numRows());+ this.filteredIndex.fill(1);+ }+ // check if filteredIndex is a range from 0 to numRows if it is, we don't need to update it+ const isRange = filteredIndex && filteredIndex.length === dataContainer.numRows();+ if (!isRange || this.filteredIndexTrigger !== null) {+ this.filteredIndex.fill(0);+ for (let i = 0; i < filteredIndex.length; ++i) {+ this.filteredIndex[filteredIndex[i]] = 1;+ }+ this.filteredIndexTrigger = filteredIndex;+ }// for arrow, always return full dataToFeature instead of a filtered one, so there is no need to update attributes in GPU+ return this.dataToFeature;+ }+// for geojson, this should work as well and more efficient. But we need to update some test cases e.g. #GeojsonLayer -> formatLayerData- return dataContainer instanceof ArrowDataContainer- ? this.dataToFeature- : filteredIndex.map(i => this.dataToFeature[i]).filter(d => d);+ return filteredIndex.map(i => this.dataToFeature[i]).filter(d => d);}formatLayerData(datasets, oldLayerData) {@@ -412,27 +419,37 @@ export default class GeoJsonLayer extends Layer {}updateLayerMeta(dataContainer) {- // check datasource is arrow format if dataContainer is arrow data containerthis.dataContainer = dataContainer;const getFeature = this.getPositionAccessor(dataContainer);const getGeoColumn = geoColumnAccessor(this.config.columns);const getGeoField = geoFieldAccessor(this.config.columns);- if (this.dataToFeature.length === 0) {- const updateLayerMetaFunc =- dataContainer instanceof ArrowDataContainer- ? getGeojsonLayerMetaFromArrow- : getGeojsonLayerMeta;- const {dataToFeature, bounds, fixedRadius, featureTypes} = updateLayerMetaFunc({- dataContainer,- getFeature,- getGeoColumn,- getGeoField- });-- this.dataToFeature = dataToFeature;- this.updateMeta({bounds, fixedRadius, featureTypes});+ if (dataContainer instanceof ArrowDataContainer) {+ // update the latest batch/chunk of geoarrow data when loading data incrementally+ if (this.dataToFeature.length < dataContainer.numChunks()) {+ const {dataToFeature, bounds, fixedRadius, featureTypes} = getGeojsonLayerMetaFromArrow({+ dataContainer,+ getGeoColumn,+ getGeoField,+ chunkIndex: this.dataToFeature.length+ });+ if (this.dataToFeature.length === 0) {+ // not update bounds for every batch, to avoid interrupt user interacts with map while loading the map incrementally+ this.updateMeta({bounds, fixedRadius, featureTypes});+ }+ // @ts-expect-error TODO fix this+ this.dataToFeature = [...this.dataToFeature, ...dataToFeature];+ }+ } else {+ if (this.dataToFeature.length === 0) {+ const {dataToFeature, bounds, fixedRadius, featureTypes} = getGeojsonLayerMeta({+ dataContainer,+ getFeature+ });+ this.dataToFeature = dataToFeature;+ this.updateMeta({ bounds, fixedRadius, featureTypes });+ }}}diff --git a/src/layers/src/layer-utils.ts b/src/layers/src/layer-utils.tsindex 4c93f9b5b..398ce3c72 100644--- a/src/layers/src/layer-utils.ts+++ b/src/layers/src/layer-utils.ts@@ -23,7 +23,11 @@ import {Feature, BBox} from 'geojson';import {Field, FieldPair} from '@kepler.gl/types';import {DataContainerInterface} from '@kepler.gl/utils';import {BinaryFeatures} from '@loaders.gl/schema';-import {getBinaryGeometriesFromArrow, parseGeometryFromArrow} from '@loaders.gl/arrow';+import {+ getBinaryGeometriesFromArrow,+ parseGeometryFromArrow,+ BinaryGeometriesFromArrowOptions+} from '@loaders.gl/arrow';import {DeckGlGeoTypes} from './geojson-layer/geojson-utils';@@ -52,20 +56,32 @@ export type GeojsonLayerMetaProps = {export function getGeojsonLayerMetaFromArrow({dataContainer,getGeoColumn,- getGeoField+ getGeoField,+ chunkIndex}: {dataContainer: DataContainerInterface;getGeoColumn: (dataContainer: DataContainerInterface) => unknown;getGeoField: (dataContainer: DataContainerInterface) => Field | null;+ chunkIndex?: number;}): GeojsonLayerMetaProps {const geoColumn = getGeoColumn(dataContainer) as arrow.Vector;const arrowField = getGeoField(dataContainer);const encoding = arrowField?.metadata?.get('ARROW:extension:name');+ const options: BinaryGeometriesFromArrowOptions = {+ ...(chunkIndex !== undefined && chunkIndex >= 0+ ? {+ chunkIndex,+ chunkOffset: geoColumn.data[0].length * chunkIndex+ }+ : {}),+ triangulate: true+ };// create binary data from arrow data for GeoJsonLayerconst {binaryGeometries, featureTypes, bounds} = getBinaryGeometriesFromArrow(geoColumn,- encoding+ encoding,+ options);// since there is no feature.properties.radius, we set fixedRadius to false@@ -105,10 +121,7 @@ export function getHoveredObjectFromArrow(const field = fieldAccessor(dataContainer);const encoding = field?.metadata?.get('ARROW:extension:name');- const hoveredFeature = parseGeometryFromArrow({- encoding,- data: rawGeometry- });+ const hoveredFeature = parseGeometryFromArrow(rawGeometry, encoding);const properties = dataContainer.rowAsArray(objectInfo.index).reduce((prev, cur, i) => {const fieldName = dataContainer?.getField?.(i).name;@@ -120,7 +133,8 @@ export function getHoveredObjectFromArrow(return hoveredFeature? {- ...hoveredFeature,+ type: 'Feature',+ geometry: hoveredFeature,properties: {...properties,index: objectInfo.indexdiff --git a/src/processors/package.json b/src/processors/package.jsonindex 5cb9315eb..5d6a56f5d 100644--- a/src/processors/package.json+++ b/src/processors/package.json@@ -35,11 +35,11 @@"@kepler.gl/schemas": "3.0.0-alpha.1","@kepler.gl/types": "3.0.0-alpha.1","@kepler.gl/utils": "3.0.0-alpha.1",- "@loaders.gl/arrow": "^4.0.3",- "@loaders.gl/core": "^4.0.3",- "@loaders.gl/csv": "^4.0.3",- "@loaders.gl/json": "^4.0.3",- "@loaders.gl/loader-utils": "^4.0.3",+ "@loaders.gl/arrow": "^4.1.0-alpha.2",+ "@loaders.gl/core": "^4.1.0-alpha.2",+ "@loaders.gl/csv": "^4.1.0-alpha.2",+ "@loaders.gl/json": "^4.1.0-alpha.2",+ "@loaders.gl/loader-utils": "^4.1.0-alpha.2","@mapbox/geojson-normalize": "0.0.1","@nebula.gl/edit-modes": "1.0.2-alpha.1","@turf/helpers": "^6.1.4",diff --git a/src/processors/src/file-handler.ts b/src/processors/src/file-handler.tsindex 425afc199..2211e4df4 100644--- a/src/processors/src/file-handler.ts+++ b/src/processors/src/file-handler.ts@@ -29,7 +29,7 @@ import {processKeplerglJSON,processRowObject} from './data-processor';-import {generateHashId, isPlainObject} from '@kepler.gl/utils';+import {generateHashId, isPlainObject, generateHashIdFromString} from '@kepler.gl/utils';import {DATASET_FORMATS} from '@kepler.gl/constants';import {Loader} from '@loaders.gl/loader-utils';import {FileCacheItem, ValidKeplerGlMap} from './types';@@ -215,10 +215,13 @@ export function processFileData({fileCache: FileCacheItem[];}): Promise<FileCacheItem[]> {return new Promise((resolve, reject) => {- let {data} = content;+ let {fileName, data} = content;let format: string | undefined;let processor: Function | undefined;+ // generate unique id with length of 4 using fileName string+ const id = generateHashIdFromString(fileName);+if (isArrowData(data)) {format = DATASET_FORMATS.arrow;processor = processArrowTable;@@ -241,6 +244,7 @@ export function processFileData({{data: result,info: {+ id,label: content.fileName,format}diff --git a/src/reducers/package.json b/src/reducers/package.jsonindex dce756dfc..0c3310046 100644--- a/src/reducers/package.json+++ b/src/reducers/package.json@@ -43,7 +43,7 @@"@kepler.gl/tasks": "3.0.0-alpha.1","@kepler.gl/types": "3.0.0-alpha.1","@kepler.gl/utils": "3.0.0-alpha.1",- "@loaders.gl/loader-utils": "^4.0.3",+ "@loaders.gl/loader-utils": "^4.1.0-alpha.2","@types/lodash.clonedeep": "^4.5.7","@types/lodash.flattendeep": "^4.4.7","@types/lodash.get": "^4.4.6",diff --git a/src/reducers/src/combined-updaters.ts b/src/reducers/src/combined-updaters.tsindex cba9e01ed..d864a3ff0 100644--- a/src/reducers/src/combined-updaters.ts+++ b/src/reducers/src/combined-updaters.ts@@ -160,6 +160,24 @@ export const addDataToMapUpdater = (...payload.options};+ // check if progresive loading dataset by bataches, and update visState directly+ const isProgressiveLoading =+ Array.isArray(datasets) &&+ datasets[0].info.format === 'arrow' &&+ datasets[0].info.id &&+ datasets[0].info.id in state.visState.datasets;+ if (isProgressiveLoading) {+ return compose_<KeplerGlState>([+ pick_('visState')(+ apply_<VisState, any>(visStateUpdateVisDataUpdater, {+ datasets,+ options,+ config+ })+ )+ ])(state);+ }+// @ts-expect-errorlet parsedConfig: ParsedConfig = config;@@ -193,7 +211,6 @@ export const addDataToMapUpdater = (apply_<VisState, any>(setMapInfoUpdater, {info}))),-with_(({visState}) =>pick_('mapState')(apply_(diff --git a/src/reducers/src/vis-state-updaters.ts b/src/reducers/src/vis-state-updaters.tsindex 166f9ace3..0b95700b7 100644--- a/src/reducers/src/vis-state-updaters.ts+++ b/src/reducers/src/vis-state-updaters.ts@@ -37,6 +37,7 @@ import {layerTypeChange,layerVisConfigChange,layerVisualChannelConfigChange,+ loadBatchDataSuccess,loadFilesErr,loadFilesSuccess,loadFileStepSuccess,@@ -2276,6 +2277,21 @@ export function parseProgress(prevProgress = {}, progress) {};}+export function loadBatchDataSuccessUpdater(+ state: VisState,+ action: VisStateActions.LoadFileStepSuccessAction+): VisState {+ if (!state.fileLoading) {+ return state;+ }+ const {fileCache} = action;+ const {onFinish} = state.fileLoading;+ return withTask(+ state,+ DELAY_TASK(200).map(() => onFinish(fileCache))+ );+}+/*** gets called with payload = AsyncGenerator<???>* @memberof visStateUpdaters@@ -2291,8 +2307,16 @@ export const nextFileBatchUpdater = (fileName,progress: parseProgress(state.fileLoadingProgress[fileName], progress)});- return withTask(- stateWithProgress,++ return withTask(stateWithProgress, [+ ...(fileName.endsWith('arrow') && accumulated && accumulated.data?.length > 1+ ? [+ PROCESS_FILE_DATA({content: accumulated, fileCache: []}).bimap(+ result => loadBatchDataSuccess({fileName, fileCache: result}),+ err => loadFilesErr(fileName, err)+ )+ ]+ : []),UNWRAP_TASK(gen.next()).bimap(({value, done}) => {return done@@ -2307,7 +2331,7 @@ export const nextFileBatchUpdater = (},err => loadFilesErr(fileName, err))- );+ ]);};/**diff --git a/src/reducers/src/vis-state.ts b/src/reducers/src/vis-state.tsindex f7633c027..1ebb771f7 100644--- a/src/reducers/src/vis-state.ts+++ b/src/reducers/src/vis-state.ts@@ -67,6 +67,8 @@ const actionHandler = {[ActionTypes.LOAD_NEXT_FILE]: visStateUpdaters.loadNextFileUpdater,+ [ActionTypes.LOAD_BATCH_DATA_SUCCESS]: visStateUpdaters.loadBatchDataSuccessUpdater,+[ActionTypes.LOAD_FILE_STEP_SUCCESS]: visStateUpdaters.loadFileStepSuccessUpdater,[ActionTypes.MAP_CLICK]: visStateUpdaters.mapClickUpdater,diff --git a/src/schemas/package.json b/src/schemas/package.jsonindex 13e3cca93..45388c9de 100644--- a/src/schemas/package.json+++ b/src/schemas/package.json@@ -35,7 +35,7 @@"@kepler.gl/table": "3.0.0-alpha.1","@kepler.gl/types": "3.0.0-alpha.1","@kepler.gl/utils": "3.0.0-alpha.1",- "@loaders.gl/loader-utils": "^4.0.3",+ "@loaders.gl/loader-utils": "^4.1.0-alpha.2","@types/keymirror": "^0.1.1","@types/lodash.clonedeep": "^4.5.7","@types/lodash.pick": "^4.4.6",diff --git a/src/table/src/dataset-utils.ts b/src/table/src/dataset-utils.tsindex 289ea2a88..6648e5cf9 100644--- a/src/table/src/dataset-utils.ts+++ b/src/table/src/dataset-utils.ts@@ -68,6 +68,17 @@ export function createNewDataEntry(return {};}+ // check if dataset already exists, and update it when loading data by batches incrementally+ if (info && info.id && datasets[info.id]) {+ // get keplerTable from datasets+ const keplerTable = datasets[info.id];+ // update the data in keplerTable+ keplerTable.update(validatedData);+ return {+ [keplerTable.id]: keplerTable+ };+ }+info = info || {};const color = info.color || getNewDatasetColor(datasets);diff --git a/src/table/src/kepler-table.ts b/src/table/src/kepler-table.tsindex acf5b16ee..74f723256 100644--- a/src/table/src/kepler-table.ts+++ b/src/table/src/kepler-table.ts@@ -202,6 +202,18 @@ class KeplerTable {this.disableDataOperation = disableDataOperation;}+ /**+ * update table with new data+ * @param data - new data e.g. the arrow data with new batches loaded+ */+ update(data: ProtoDataset['data']) {+ const dataContainerData = data.cols ? data.cols : data.rows;+ this.dataContainer.update?.(dataContainerData);+ this.allIndexes = this.dataContainer.getPlainIndex();+ this.filteredIndex = this.allIndexes;+ this.filteredIndexForDomain = this.allIndexes;+ }+get length() {return this.dataContainer.numRows();}diff --git a/src/utils/src/arrow-data-container.ts b/src/utils/src/arrow-data-container.tsindex c838128c8..61c962ac1 100644--- a/src/utils/src/arrow-data-container.ts+++ b/src/utils/src/arrow-data-container.ts@@ -44,6 +44,7 @@ export class ArrowDataContainer implements DataContainerInterface {_numColumns: number;_numRows: number;_fields: Field[];+ _numChunks: number;// cache column data to make valueAt() faster// _colData: any[][];@@ -60,10 +61,23 @@ export class ArrowDataContainer implements DataContainerInterface {this._numColumns = data.cols.length;this._numRows = data.cols[0].length;this._fields = data.fields || [];-+ this._numChunks = data.cols[0].data.length;// this._colData = data.cols.map(c => c.toArray());}+ update(updateData: arrow.Vector<any>[]) {+ this._cols = updateData;+ this._numColumns = this._cols.length;+ this._numRows = this._cols[0].length;+ this._numChunks = this._cols[0].data.length;+ // cache column data to make valueAt() faster+ // this._colData = this._cols.map(c => c.toArray());+ }++ numChunks(): number {+ return this._numChunks;+ }+numRows(): number {return this._numRows;}diff --git a/src/utils/src/data-container-interface.ts b/src/utils/src/data-container-interface.tsindex cef686d1e..b01a16cc7 100644--- a/src/utils/src/data-container-interface.ts+++ b/src/utils/src/data-container-interface.ts@@ -9,6 +9,12 @@ export type RangeOptions = {end?: number;};export interface DataContainerInterface {+ /**+ * Updates the data container with new data.+ * @param updateData updated data, e.g. for arrow data container, it's an array of arrow columns; for row data container, it's an array of rows.+ */+ update?(updateData: any[]): void;+/*** Returns the number of rows in the data container.* @returns Number of rows in the data container.diff --git a/src/utils/src/utils.ts b/src/utils/src/utils.tsindex eaa980296..a2b6aa421 100644--- a/src/utils/src/utils.ts+++ b/src/utils/src/utils.ts@@ -31,6 +31,28 @@ export function generateHashId(count: number = 6): string {.substr(count);}+/**+ * Generate a hash string based on string+ * @param str+ * @returns+ */+export function generateHashIdFromString(str: string): string {+ // generate hash string based on string+ let hash = 0;+ let i;+ let chr;+ let len;+ if (str.length === 0) return hash.toString();+ for (i = 0, len = str.length; i < len; i++) {+ chr = str.charCodeAt(i);+ // eslint-disable-next-line no-bitwise+ hash = (hash << 5) - hash + chr;+ // eslint-disable-next-line no-bitwise+ hash |= 0; // Convert to 32bit integer+ }+ return hash.toString(36);+}+/*** Detect chrome* @returns {boolean} - yes or nodiff --git a/test/browser/file-handler-test.js b/test/browser/file-handler-test.jsindex c6ac609a5..5ab6a43f9 100644--- a/test/browser/file-handler-test.js+++ b/test/browser/file-handler-test.js@@ -20,6 +20,7 @@/* eslint-disable max-statements */import test from 'tape';+import {generateHashIdFromString} from '@kepler.gl/utils';import {processFileData, readFileInBatches, csvWithNull} from '@kepler.gl/processors';import {dataWithNulls, testFields, parsedDataWithNulls} from 'test/fixtures/test-csv-data';import geojsonString, {@@ -136,7 +137,7 @@ test('#file-handler -> readFileInBatches.csv -> processFileData', async t => {// go on to run processFileDataconst processed = await processFileData({content: batch2.value, fileCache: []});- const expectedInfo = {label: 'text-data.csv', format: 'row'};+ const expectedInfo = {id: generateHashIdFromString('text-data.csv'), label: 'text-data.csv', format: 'row'};t.equal(processed.length, 1, 'processFileData should return 1 result');t.ok(processed[0].info, 'processFileData should have info');@@ -266,7 +267,11 @@ test('#file-handler -> readFileInBatches.GeoJSON FeatureCollection -> processFil// process geojson data receivedconst processed = await processFileData({content: batch4.value, fileCache: []});- const expectedInfo = {label: 'text-data-1.geojson', format: 'geojson'};+ const expectedInfo = {+ id: generateHashIdFromString('text-data-1.geojson'),+ label: 'text-data-1.geojson',+ format: 'geojson'+ };t.equal(processed.length, 1, 'processFileData should return 1 result');t.ok(processed[0].info, 'processFileData should have info');@@ -367,7 +372,11 @@ test('#file-handler -> readFileInBatches.GeoJSON Single Feature -> processFileDa// process geojson data receivedconst processed = await processFileData({content: batch2.value, fileCache: []});- const expectedInfo = {label: 'text-data-1.geojson', format: 'geojson'};+ const expectedInfo = {+ id: generateHashIdFromString('text-data-1.geojson'),+ label: 'text-data-1.geojson',+ format: 'geojson'+ };t.equal(processed.length, 1, 'processFileData should return 1 result');t.ok(processed[0].info, 'processFileData should have info');@@ -498,7 +507,7 @@ test('#file-handler -> readFileInBatches.row -> processFileData', async t => {fields: parsedFields,rows: parsedRows},- info: {label: fileName, format: 'row'}+ info: {id: generateHashIdFromString(fileName), label: fileName, format: 'row'}}];t.equal(processed.length, 1, 'processFileData should return 1 result');@@ -624,7 +633,11 @@ test('#file-handler -> readFileInBatches.keplerMap -> processFileData', async t// process fileconst processed = await processFileData({content: batch4.value, fileCache: []});- const expectedInfo = {label: fileName, format: 'keplergl'};+ const expectedInfo = {+ id: generateHashIdFromString(fileName),+ label: fileName,+ format: 'keplergl'+ };const expectedFileCache = [{diff --git a/yarn.lock b/yarn.lockindex b50176ff3..475d1bc43 100644--- a/yarn.lock+++ b/yarn.lock@@ -2165,43 +2165,45 @@"@math.gl/geospatial" "^3.5.1"long "^5.2.1"-"@loaders.gl/arrow@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/arrow/-/arrow-4.0.3.tgz#e4a5478380e70d8176b1e0031687fdb17e98d227"- integrity sha512-RJQMkyTL51z5XYjRqIYBUrzIIC8ukmQj0NTeqSJAYClaSTu07PppjakYZ757hc53KPEl9b7DpLEuFE+Tobbkkg==- dependencies:- "@loaders.gl/gis" "4.0.3"- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/schema" "4.0.3"+"@loaders.gl/arrow@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/arrow/-/arrow-4.1.0-alpha.2.tgz#1a99329c577ebc4cffae8e0e13128e269e7be360"+ integrity sha512-iu3r1LKOHvt/ntlAYabkhbPATkn7xT25UkUq9K7gU0eRjzVJebzxYhGjYELi3GnPhYcyCn+SEJuqTh54GIm/mg==+ dependencies:+ "@loaders.gl/gis" "4.1.0-alpha.2"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/schema" "4.1.0-alpha.2"+ "@loaders.gl/wkt" "4.1.0-alpha.2"+ "@math.gl/polygon" "4.0.0"apache-arrow "^13.0.0"-"@loaders.gl/core@^2.1.6", "@loaders.gl/core@^3.4.13", "@loaders.gl/core@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/core/-/core-4.0.3.tgz#a99a97623c5f3c37fef21e87aebefde828b4ec86"- integrity sha512-L2MNtzchhTyOZi8OwD8Q62VgzgCk22b9lIQ1fojR/k9/Nv8xdozMhVgV/nhiwYCdd+qVGcZzyH43B0U8jlU+QA==+"@loaders.gl/core@^2.1.6", "@loaders.gl/core@^3.4.13", "@loaders.gl/core@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/core/-/core-4.1.0-alpha.2.tgz#d5e348f37fac9a00964d9c8b6f851049c15d2a7f"+ integrity sha512-Tkw5rcTGoTpTwGhN6aGeNgk1YX3NWMmVNHzwCpHnqWV0n+hgLSl6Sr1cUM9yTH6Z/AI9qEZFt1EJnkclfmRGKQ==dependencies:"@babel/runtime" "^7.3.1"- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/worker-utils" "4.0.3"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/worker-utils" "4.1.0-alpha.2""@probe.gl/log" "^4.0.2"-"@loaders.gl/[email protected]":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/crypto/-/crypto-4.0.3.tgz#2baef207bb0333fe3efcaba4d064d8695afa1aa3"- integrity sha512-oJmDQrtSyAiBh4V9F54SljmIasNdayB0epcaJNeal/i+PFXTn45gOPdovgFuQuuAm0rWo+S4r25KDmLBBzE3Rg==+"@loaders.gl/[email protected]":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/crypto/-/crypto-4.1.0-alpha.2.tgz#7fde654b0755e04fb1af46f59e82e3e1f679cc20"+ integrity sha512-JulwOyOiOkbHKGbjnef4gl3nGYx6SlGCzNaEE3+pFf3kW7Ie2A6vu8eec4dtRLoOriAdch79XqOU/9T9vOq/kw==dependencies:"@babel/runtime" "^7.3.1"- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/worker-utils" "4.0.3"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/worker-utils" "4.1.0-alpha.2""@types/crypto-js" "^4.0.2"-"@loaders.gl/csv@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/csv/-/csv-4.0.3.tgz#72679e7bbd7bdf27291352c07502823f3b051d96"- integrity sha512-oEYscUld0xrKlmb3ZEaNqrHIgF0kwpoEIVz5yFb/It+2kwSok0j7UdU29lT6t5NlCHTWL6Du+7NuOkSB1UGLzA==+"@loaders.gl/csv@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/csv/-/csv-4.1.0-alpha.2.tgz#166cdac52d4e6c6e4a9ae77873f8a5656c99f0ab"+ integrity sha512-XpaNusnhxLD+lusXQ/Qu6RpS1A9wPWQ3QqP/yCJKAG8xFljuR89GG9xk5mEhU88QflF3vY/gWDObfSDBXAzGvA==dependencies:- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/schema" "4.0.3"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/schema" "4.1.0-alpha.2""@loaders.gl/[email protected]":version "3.4.14"@@ -2214,15 +2216,15 @@"@loaders.gl/worker-utils" "3.4.14"draco3d "1.5.5"-"@loaders.gl/[email protected]":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/draco/-/draco-4.0.3.tgz#a52481b1738b56cb5fb87938edfa9389c8271d9b"- integrity sha512-W6m4L5bcov2rqluZsM+wg/5kH0+mU5Vp+2DLx/CMA7LYCnrho7b1apAqPJ/fHVwQCyL392Nv+p9i8GdyX4UCEw==+"@loaders.gl/[email protected]":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/draco/-/draco-4.1.0-alpha.2.tgz#7a8c7534dad77b3a9278995fed02fd1c1dbeadb6"+ integrity sha512-mfH3l61lVammoS79/BqOV3j1ZLBZ8W7P/CcDOnpersvX1bG+0raVQNLrltNudoSzcaQ/OfPK2wGDmH/vB7iWHA==dependencies:"@babel/runtime" "^7.3.1"- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/schema" "4.0.3"- "@loaders.gl/worker-utils" "4.0.3"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/schema" "4.1.0-alpha.2"+ "@loaders.gl/worker-utils" "4.1.0-alpha.2"draco3d "1.5.5""@loaders.gl/[email protected]", "@loaders.gl/gis@^3.4.13":@@ -2236,26 +2238,26 @@"@math.gl/polygon" "^3.5.1"pbf "^3.2.1"-"@loaders.gl/[email protected]", "@loaders.gl/gis@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/gis/-/gis-4.0.3.tgz#bdaee00825d12909eeef0fa82cfc8e60555ea96b"- integrity sha512-fBd5vxlcxZpn0g7yuW/NvhdBbcVuFfiSPmJDVOP3oyT5/c1va4h8FJaRd5RLpLep3tcrHevzjiBjfaEw9U9Z2g==+"@loaders.gl/[email protected]", "@loaders.gl/gis@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/gis/-/gis-4.1.0-alpha.2.tgz#261f52e7ddfcd8a565a3ec75beb276248374b502"+ integrity sha512-W7Cidxv8lVqaR4ukFxPLOJ9F4M8VVeQPqCg9+qOnKlpht0xTtQA8RUeTpQkPSaPwfrEkFtVRtk7doQ35usY70w==dependencies:- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/schema" "4.0.3"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/schema" "4.1.0-alpha.2""@mapbox/vector-tile" "^1.3.1""@math.gl/polygon" "^4.0.0"pbf "^3.2.1"-"@loaders.gl/[email protected]", "@loaders.gl/gltf@^3.4.13", "@loaders.gl/gltf@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/gltf/-/gltf-4.0.3.tgz#60a29464df34a8bee0b429ae92a3f9ce2a4d4f07"- integrity sha512-Lbve+DGkhrYMZTXCPBFbn9J30xmdoAt2TnqB3Xr6ZHytM3WOJmYeou5/t3vmUuBM1fjK0rKY1BFDvgQsX+5nNw==+"@loaders.gl/[email protected]", "@loaders.gl/gltf@^3.4.13", "@loaders.gl/gltf@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/gltf/-/gltf-4.1.0-alpha.2.tgz#ffe9fc66d70c62846de6a586db3def34022eee9d"+ integrity sha512-xoDIbaPjIz+brX7fEA9bHT5/Yd5gbpzSlhskNVoB/hArtDZ71PBFrOBGYjz2mfYQx0eD+Doz7TiECiyScADh6A==dependencies:- "@loaders.gl/draco" "4.0.3"- "@loaders.gl/images" "4.0.3"- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/textures" "4.0.3"+ "@loaders.gl/draco" "4.1.0-alpha.2"+ "@loaders.gl/images" "4.1.0-alpha.2"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/textures" "4.1.0-alpha.2""@math.gl/core" "^4.0.0""@loaders.gl/[email protected]", "@loaders.gl/images@^3.4.13":@@ -2265,29 +2267,29 @@dependencies:"@loaders.gl/loader-utils" "3.4.14"-"@loaders.gl/[email protected]":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/images/-/images-4.0.3.tgz#fd09f51c1afb25af0bf4fbe74cb4de9edd3db224"- integrity sha512-nWbp9wzO7OPt20A7hY3k0xydR9ooY4rBASiNLrzdOELQYS0YMGHsNdSQpgyZlnAUMtcQHP8CqEUHRWlO3dAi3Q==+"@loaders.gl/[email protected]":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/images/-/images-4.1.0-alpha.2.tgz#f7bd4dcfd06fe71200d5718d60c93de4246b804a"+ integrity sha512-Yu4KdIXwB7h0yRKMSnpgUBxFHvDVyYmRSBNIueY8FV4R88r24AT3z5Jz33/VqGYyhwWiAkatiYyV7LwENNINAA==dependencies:- "@loaders.gl/loader-utils" "4.0.3"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"-"@loaders.gl/json@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/json/-/json-4.0.3.tgz#ad53e4aa808d670902f12720b5cfe771484b4b85"- integrity sha512-iZUiI3KkwgXjZD1GcfyubxPhCxAtf0L+XSLDl7kIcF9Fc7ap+84JqYtmgdhzyDfK5BmvVCUh6PaouPYzCALXZA==+"@loaders.gl/json@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/json/-/json-4.1.0-alpha.2.tgz#725a640d5aaf48fbee1a7b49757d5d3438e5fdf2"+ integrity sha512-3ZWJqIskcXRWKTlF4qtBFXV25a/u2FlxUyHq7Duko4TWJHCaxi/sC5knIzw6kvTsRl1yff4/e783Jn7oMNjHyQ==dependencies:- "@loaders.gl/gis" "4.0.3"- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/schema" "4.0.3"+ "@loaders.gl/gis" "4.1.0-alpha.2"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/schema" "4.1.0-alpha.2"-"@loaders.gl/[email protected]", "@loaders.gl/[email protected]", "@loaders.gl/loader-utils@^2.1.3", "@loaders.gl/loader-utils@^3.4.13", "@loaders.gl/loader-utils@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/loader-utils/-/loader-utils-4.0.3.tgz#a3229e070d849bb3699a13857df5aa0e56ba73bc"- integrity sha512-orklRrTVX95C4CbPUBVwhQTe992DiRsdIh9r2vHX+geQCrPM2gkdTpm+DQvulm7uFCmP/hmqbE37mye7DnJV+g==+"@loaders.gl/[email protected]", "@loaders.gl/[email protected]", "@loaders.gl/loader-utils@^2.1.3", "@loaders.gl/loader-utils@^3.4.13", "@loaders.gl/loader-utils@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/loader-utils/-/loader-utils-4.1.0-alpha.2.tgz#811c30b295906aac509bf63704b4dc3aace45d5e"+ integrity sha512-hbU2vdTqCzlNQlFQ/C4VftPXWEKgmPDBUCdXOANCVWcNJW6Qcjj0MSGEKBM+6tlFWYX/OaV8tChPLysVwR6/Sw==dependencies:"@babel/runtime" "^7.3.1"- "@loaders.gl/worker-utils" "4.0.3"+ "@loaders.gl/worker-utils" "4.1.0-alpha.2""@probe.gl/stats" "^4.0.2""@loaders.gl/[email protected]":@@ -2310,14 +2312,14 @@"@math.gl/polygon" "^3.5.1"pbf "^3.2.1"-"@loaders.gl/polyfills@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/polyfills/-/polyfills-4.0.3.tgz#a307909795c8af1f778c94bc540122e617cb4bb9"- integrity sha512-ldQEl7M80VNY9FewUOANASV2Q08OToVuSdO5LbuLoIO7n1VNxJmYg8AbXN5SZ5j93RUSyKVyO5WxhBQicoDuDQ==+"@loaders.gl/polyfills@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/polyfills/-/polyfills-4.1.0-alpha.2.tgz#883743ed1acb161ab2f61c7aaf96b8cbc1591f9d"+ integrity sha512-CP+IX2k5rHw2nVqpo+2bSvXnaS+0AUMthIc4RvjnffZe+9mINJl/hXaU3b+kVnEAOmuiWhOrvDb2iM2afO9slg==dependencies:"@babel/runtime" "^7.3.1"- "@loaders.gl/crypto" "4.0.3"- "@loaders.gl/loader-utils" "4.0.3"+ "@loaders.gl/crypto" "4.1.0-alpha.2"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"buffer "^6.0.3"get-pixels "^3.3.3"ndarray "^1.0.19"@@ -2333,10 +2335,10 @@dependencies:"@types/geojson" "^7946.0.7"-"@loaders.gl/[email protected]":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/schema/-/schema-4.0.3.tgz#93e0dc640c528c044b040e960d5014e746ba6fcc"- integrity sha512-WC+T0S76RbLcDq+a/aAViNSAf2Gr8rCs6tXmk3Cq/pcwLWYM8XNWlR1ZUMuyRyeZIBBur24LE4GSGlvt+xD4JA==+"@loaders.gl/[email protected]":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/schema/-/schema-4.1.0-alpha.2.tgz#d90378833fb00c613116cbc73444f8f3f99c29fc"+ integrity sha512-y/Y59c0QQyPpdlBlH1cOEj5pxMEkBGaogvFaj8RlzqgZCNjsbnzSTyBcrtd/wl6fTiHmSo+apP3rNQJ8IQ9Uuw==dependencies:"@types/geojson" "^7946.0.7"@@ -2351,15 +2353,15 @@"@loaders.gl/schema" "3.4.14""@mapbox/martini" "^0.2.0"-"@loaders.gl/[email protected]":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/textures/-/textures-4.0.3.tgz#d4e3e33d349e71797c46899d14e7470a07c26586"- integrity sha512-nwexaPrctTrwPXDMiS++jmQGUcCMg51XGSMu9kfLKhrPWiOU4yEPyAK3wjmlXHymv4FVIy8UAgGAu+8jZf3g6w==+"@loaders.gl/[email protected]":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/textures/-/textures-4.1.0-alpha.2.tgz#4747f7308a7cfa2769ff4a7f4098b7ab4751f2b3"+ integrity sha512-vmaeTP3EkWPp9s2LAGhT/PIwSat6fRddngHBrfr3M5U/rnZ4e/MAOsVaZfzqb/4nIFAmAewlU1C+R89C4vOFsg==dependencies:- "@loaders.gl/images" "4.0.3"- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/schema" "4.0.3"- "@loaders.gl/worker-utils" "4.0.3"+ "@loaders.gl/images" "4.1.0-alpha.2"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/schema" "4.1.0-alpha.2"+ "@loaders.gl/worker-utils" "4.1.0-alpha.2"ktx-parse "^0.0.4"texture-compressor "^1.0.2"@@ -2384,13 +2386,13 @@"@loaders.gl/loader-utils" "^2.1.3"gifshot "^0.4.5"-"@loaders.gl/wkt@^4.0.3":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/wkt/-/wkt-4.0.3.tgz#b734a0aa99bcf5c12322f0f7e1b321b77ff3a2a4"- integrity sha512-4PsAhDKmP6sRUfeHTaClwkTi+JGlEkdU3faZaLKcF5MAuFksytZOXX4kLG2e84lFtpFH72zztivHUihEIeXuPg==+"@loaders.gl/[email protected]", "@loaders.gl/wkt@^4.1.0-alpha.2":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/wkt/-/wkt-4.1.0-alpha.2.tgz#f886ce594c4be1ccb7225206524f47a4398742ab"+ integrity sha512-eIiYmHKKOu3OmDmHR++wHd1Yf6LbQ7+xgKyWnOtpBkviz0qA8FLjXmpBENwaZjkxMh+VLab0QuX7SQ61rZRLow==dependencies:- "@loaders.gl/loader-utils" "4.0.3"- "@loaders.gl/schema" "4.0.3"+ "@loaders.gl/loader-utils" "4.1.0-alpha.2"+ "@loaders.gl/schema" "4.1.0-alpha.2""@loaders.gl/wms@^3.4.13":version "3.4.14"@@ -2413,10 +2415,10 @@dependencies:"@babel/runtime" "^7.3.1"-"@loaders.gl/[email protected]":- version "4.0.3"- resolved "https://registry.yarnpkg.com/@loaders.gl/worker-utils/-/worker-utils-4.0.3.tgz#94bda0e57f686421247beb3b7c8d6eaba26b235c"- integrity sha512-P8ZvWNE3fpdb7KHYv5TxInL2AH3Z+VVnLrJjuClZrPPouvBA/pAhgPu+Y2ktvawZ35PJ1Y9EMLDin864pMXN+Q==+"@loaders.gl/[email protected]":+ version "4.1.0-alpha.2"+ resolved "https://registry.yarnpkg.com/@loaders.gl/worker-utils/-/worker-utils-4.1.0-alpha.2.tgz#000e5d94d1bcf5a16ccb3dce20d3b7ab448e6769"+ integrity sha512-EJ88ypx6R7QLnnw2FNUKEnwoMIRXK250KKchN1n4UC0Eo7C8Z6Fk12tbqMGa16YE/aKa7KdQtPW1iIWQ1P741w==dependencies:"@babel/runtime" "^7.3.1"@@ -2673,6 +2675,13 @@"@math.gl/core" "3.5.3"gl-matrix "^3.0.0"+"@math.gl/[email protected]", "@math.gl/polygon@^4.0.0":+ version "4.0.0"+ resolved "https://registry.yarnpkg.com/@math.gl/polygon/-/polygon-4.0.0.tgz#17d2b1c7569d5a7fd1cde67e885d77e5742c23ec"+ integrity sha512-BsseetloYtSZkphH5Fqn02uCL9UWsD26DNLfGhvd2farhU9BaJnn0JGuZnRWT/rf+glZZcDJkyqHq5pDnSX/BQ==+ dependencies:+ "@math.gl/core" "4.0.0"+"@math.gl/polygon@^3.5.1":version "3.5.3"resolved "https://registry.yarnpkg.com/@math.gl/polygon/-/polygon-3.5.3.tgz#5cdd6ad623e3a9652ed25eb52bb9941c657ee78d"@@ -2687,13 +2696,6 @@dependencies:"@math.gl/core" "3.6.3"-"@math.gl/polygon@^4.0.0":- version "4.0.0"- resolved "https://registry.yarnpkg.com/@math.gl/polygon/-/polygon-4.0.0.tgz#17d2b1c7569d5a7fd1cde67e885d77e5742c23ec"- integrity sha512-BsseetloYtSZkphH5Fqn02uCL9UWsD26DNLfGhvd2farhU9BaJnn0JGuZnRWT/rf+glZZcDJkyqHq5pDnSX/BQ==- dependencies:- "@math.gl/core" "4.0.0"-"@math.gl/sun@^3.6.2":version "3.6.3"resolved "https://registry.yarnpkg.com/@math.gl/sun/-/sun-3.6.3.tgz#30c15612313b56349c568f21f39c0e0f0e77b2df"