@kepler.gl/utils 3.3.0-alpha.7 → 3.3.0-alpha.8
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/application-config.d.ts +20 -0
- package/dist/arrow-data-container.d.ts +20 -0
- package/dist/cjs/application-config.js +4 -2
- package/dist/cjs/arrow-data-container.js +205 -20
- package/dist/cjs/data-scale-utils.js +2 -2
- package/dist/cjs/editor-feature-utils.js +2 -2
- package/dist/cjs/effect-utils.js +2 -2
- package/dist/cjs/export-utils.js +2 -2
- package/dist/cjs/filter-utils.js +21 -11
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/map-style-utils/mapbox-gl-style-editor.js +7 -3
- package/dist/cjs/observe-dimensions.js +2 -2
- package/dist/cjs/plot.js +2 -2
- package/dist/cjs/split-map-utils.js +2 -2
- package/dist/esm/application-config.js +4 -2
- package/dist/esm/arrow-data-container.js +204 -20
- package/dist/esm/data-scale-utils.js +2 -2
- package/dist/esm/editor-feature-utils.js +2 -2
- package/dist/esm/effect-utils.js +2 -2
- package/dist/esm/export-utils.js +2 -2
- package/dist/esm/filter-utils.js +21 -11
- package/dist/esm/index.js +2 -2
- package/dist/esm/map-style-utils/mapbox-gl-style-editor.js +8 -4
- package/dist/esm/observe-dimensions.js +2 -2
- package/dist/esm/plot.js +2 -2
- package/dist/esm/split-map-utils.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/map-style-utils/mapbox-gl-style-editor.d.ts +11 -10
- package/package.json +5 -6
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export { computeDeckEffects, fixEffectOrder, reorderEffectOrder, validateEffectP
|
|
|
31
31
|
export { isStyleUsingMapboxTiles, isStyleUsingOpenStreetMapTiles, mapHasOpenStreetMapAttribution, getBaseMapAttributions, getBaseMapLibrary, transformRequest } from './map-style-utils/mapbox-utils';
|
|
32
32
|
export type { AttributionMapLike } from './map-style-utils/mapbox-utils';
|
|
33
33
|
export * from './map-utils';
|
|
34
|
-
export { ArrowDataContainer, arrowDataTypeToAnalyzerDataType, arrowDataTypeToFieldType, isArrowTable, isArrowFixedSizeList, isArrowStruct, isArrowVector } from './arrow-data-container';
|
|
34
|
+
export { ArrowDataContainer, compactArrowTable, arrowDataTypeToAnalyzerDataType, arrowDataTypeToFieldType, isArrowTable, isArrowFixedSizeList, isArrowStruct, isArrowVector } from './arrow-data-container';
|
|
35
35
|
export type { DataContainerInterface } from './data-container-interface';
|
|
36
36
|
export { DataForm, createDataContainer, createIndexedDataContainer, getSampleData as getSampleContainerData } from './data-container-utils';
|
|
37
37
|
export * from './filter-utils';
|
|
@@ -2,6 +2,14 @@ import { BaseMapStyle, LayerGroup, MapState } from '@kepler.gl/types';
|
|
|
2
2
|
export declare function getDefaultLayerGroupVisibility({ layerGroups }: {
|
|
3
3
|
layerGroups: LayerGroup[];
|
|
4
4
|
}): {};
|
|
5
|
+
type EditMapStyleArgs = {
|
|
6
|
+
id?: string;
|
|
7
|
+
mapStyle: BaseMapStyle;
|
|
8
|
+
visibleLayerGroups: {
|
|
9
|
+
[id: string]: LayerGroup | boolean;
|
|
10
|
+
} | false;
|
|
11
|
+
};
|
|
12
|
+
type EditMapStyle = (args: EditMapStyleArgs) => object;
|
|
5
13
|
/**
|
|
6
14
|
* Edit preset map style to keep only visible layers
|
|
7
15
|
*
|
|
@@ -9,15 +17,7 @@ export declare function getDefaultLayerGroupVisibility({ layerGroups }: {
|
|
|
9
17
|
* @param visibleLayerGroups - visible layers of top map
|
|
10
18
|
* @returns top map style
|
|
11
19
|
*/
|
|
12
|
-
export declare const editTopMapStyle:
|
|
13
|
-
id?: string;
|
|
14
|
-
mapStyle: BaseMapStyle;
|
|
15
|
-
visibleLayerGroups: {
|
|
16
|
-
[id: string]: LayerGroup | boolean;
|
|
17
|
-
} | false;
|
|
18
|
-
}) => {
|
|
19
|
-
layers: any;
|
|
20
|
-
}) & import("lodash").MemoizedFunction;
|
|
20
|
+
export declare const editTopMapStyle: EditMapStyle;
|
|
21
21
|
/**
|
|
22
22
|
* Edit preset map style to filter out invisible layers
|
|
23
23
|
*
|
|
@@ -25,7 +25,7 @@ export declare const editTopMapStyle: (({ mapStyle, visibleLayerGroups }: {
|
|
|
25
25
|
* @param {Object} visibleLayerGroups - visible layers of bottom map
|
|
26
26
|
* @returns {Object} bottom map style
|
|
27
27
|
*/
|
|
28
|
-
export declare const editBottomMapStyle:
|
|
28
|
+
export declare const editBottomMapStyle: EditMapStyle;
|
|
29
29
|
export declare function getStyleDownloadUrl(styleUrl: any, accessToken: any, mapboxApiUrl: any): any;
|
|
30
30
|
/**
|
|
31
31
|
* Generate static map image from style Url to be used as icon
|
|
@@ -54,3 +54,4 @@ export declare function scaleMapStyleByResolution(mapboxStyle: any, scale: any):
|
|
|
54
54
|
* @return {Object} mergedLayerGroups
|
|
55
55
|
*/
|
|
56
56
|
export declare function mergeLayerGroupVisibility(defaultLayerGroup: any, currentLayerGroup: any): any;
|
|
57
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kepler.gl/utils",
|
|
3
3
|
"author": "Shan He <shan@uber.com>",
|
|
4
|
-
"version": "3.3.0-alpha.
|
|
4
|
+
"version": "3.3.0-alpha.8",
|
|
5
5
|
"description": "kepler.gl constants used by kepler.gl components, actions and reducers",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/cjs/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@deck.gl/core": "^9.3.1",
|
|
32
|
-
"@kepler.gl/common-utils": "3.3.0-alpha.
|
|
33
|
-
"@kepler.gl/constants": "3.3.0-alpha.
|
|
34
|
-
"@kepler.gl/types": "3.3.0-alpha.
|
|
32
|
+
"@kepler.gl/common-utils": "3.3.0-alpha.8",
|
|
33
|
+
"@kepler.gl/constants": "3.3.0-alpha.8",
|
|
34
|
+
"@kepler.gl/types": "3.3.0-alpha.8",
|
|
35
35
|
"@loaders.gl/gis": "^4.4.1",
|
|
36
36
|
"@luma.gl/constants": "^9.3.2",
|
|
37
37
|
"@luma.gl/core": "^9.3.2",
|
|
@@ -40,17 +40,16 @@
|
|
|
40
40
|
"@turf/helpers": "^7.2.0",
|
|
41
41
|
"@types/d3-array": "^2.8.0",
|
|
42
42
|
"@types/keymirror": "^0.1.1",
|
|
43
|
-
"@types/lodash": "4.17.24",
|
|
44
43
|
"apache-arrow": ">=15.0.0",
|
|
45
44
|
"d3-array": "^2.8.0",
|
|
46
45
|
"d3-color": "^3.1.0",
|
|
47
46
|
"d3-format": "^2.0.0",
|
|
48
47
|
"d3-interpolate": "^3.0.1",
|
|
49
48
|
"decimal.js": "^10.2.0",
|
|
49
|
+
"es-toolkit": "^1.39.10",
|
|
50
50
|
"global": "^4.3.0",
|
|
51
51
|
"h3-js": "^4.4.0",
|
|
52
52
|
"keymirror": "^0.1.1",
|
|
53
|
-
"lodash": "4.18.1",
|
|
54
53
|
"mapbox-gl": "1.13.1",
|
|
55
54
|
"maplibre-gl": "^4.0.0",
|
|
56
55
|
"maplibregl-mapbox-request-transformer": "^0.0.2",
|