@kepler.gl/utils 3.3.0-alpha.18 → 3.3.0-alpha.19
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 +5 -0
- package/dist/arrow-data-container.d.ts +11 -0
- package/dist/camera-tour.d.ts +11 -0
- package/dist/camera-utils.d.ts +5 -0
- package/dist/camera-utils.spec.d.ts +1 -0
- package/dist/cjs/application-config.js +5 -1
- package/dist/cjs/arrow-data-container.js +457 -25
- package/dist/cjs/camera-tour.js +99 -0
- package/dist/cjs/camera-utils.js +64 -0
- package/dist/cjs/camera-utils.spec.js +209 -0
- package/dist/cjs/data-container-interface.js +1 -1
- package/dist/cjs/export-map-html.js +24 -8
- package/dist/cjs/export-map-html.spec.js +110 -0
- package/dist/cjs/export-utils.js +13 -5
- package/dist/cjs/export-utils.spec.js +24 -3
- package/dist/cjs/extract-dataset-utils.js +2 -2
- package/dist/cjs/filter-utils.js +29 -9
- package/dist/cjs/index.js +38 -1
- package/dist/cjs/plot.js +159 -35
- package/dist/data-container-interface.d.ts +4 -4
- package/dist/esm/application-config.js +5 -1
- package/dist/esm/arrow-data-container.js +458 -26
- package/dist/esm/camera-tour.js +92 -0
- package/dist/esm/camera-utils.js +56 -0
- package/dist/esm/camera-utils.spec.js +208 -0
- package/dist/esm/data-container-interface.js +1 -1
- package/dist/esm/export-map-html.js +24 -8
- package/dist/esm/export-map-html.spec.js +107 -0
- package/dist/esm/export-utils.js +13 -5
- package/dist/esm/export-utils.spec.js +24 -3
- package/dist/esm/extract-dataset-utils.js +2 -2
- package/dist/esm/filter-utils.js +30 -10
- package/dist/esm/index.js +3 -2
- package/dist/esm/plot.js +161 -37
- package/dist/export-map-html.d.ts +2 -0
- package/dist/export-map-html.spec.d.ts +1 -0
- package/dist/export-utils.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/plot.d.ts +6 -2
- package/package.json +4 -4
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* @param {Object} [options.info] map title and description
|
|
8
8
|
* @param {string} [options.appName] application name used by the exported map
|
|
9
9
|
* @param {string} [options.appWebsite] application website linked by the exported map
|
|
10
|
+
* @param {string} [options.appIcon] application icon URL used by the exported map
|
|
11
|
+
* @param {string} [options.appNameColor] application name color used by the exported map
|
|
10
12
|
* @param {string} version which version of Kepler.gl to load.
|
|
11
13
|
*/
|
|
12
14
|
export declare const exportMapToHTML: (options: any, version?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/export-utils.d.ts
CHANGED
|
@@ -46,6 +46,10 @@ type MapJsonOptions = {
|
|
|
46
46
|
appName?: string;
|
|
47
47
|
/** Optional application website to preserve in exported JSON metadata. */
|
|
48
48
|
appWebsite?: string;
|
|
49
|
+
/** Optional application icon URL to preserve in exported JSON metadata. */
|
|
50
|
+
appIcon?: string;
|
|
51
|
+
/** Optional application name color to preserve in exported JSON metadata. */
|
|
52
|
+
appNameColor?: string;
|
|
49
53
|
};
|
|
50
54
|
export declare function getMapJSON(state: any, options?: MapJsonOptions): any;
|
|
51
55
|
export declare function exportJson(state: any, options?: any): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { getCameraSnapshot, normalizeCameraBookmarks } from './camera-utils';
|
|
2
|
+
export { normalizeCameraTour, getCameraTourDuration, evaluateCameraTour } from './camera-tour';
|
|
1
3
|
export { colorMaybeToRGB, colorRangeBackwardCompatibility, createLinearGradient, hasColorMap, hexToRgb, isHexColor, isRgbColor, normalizeColor, reverseColorRange, rgbToHex, addCustomPaletteColor, removeCustomPaletteColor, sortCustomPaletteColor, updateCustomPaletteColor, updateColorRangeBySelectedPalette, paletteIsSteps, paletteIsType, paletteIsColorBlindSafe, updateColorRangeByMatchingPalette, updateCustomColorRangeByColorUI, initializeCustomPalette } from './color-utils';
|
|
2
4
|
export { errorNotification } from './notifications-utils';
|
|
3
5
|
export { createNotification, exportImageError, successNotification } from './notifications-utils';
|
package/dist/plot.d.ts
CHANGED
|
@@ -124,7 +124,9 @@ type MinVisStateForAnimationWindow = {
|
|
|
124
124
|
export declare function adjustValueToAnimationWindow<S extends MinVisStateForAnimationWindow>(state: S, filter: TimeRangeFilter | RangeFilter, plotBaseIndexByDataId?: Record<string, number[]>): {
|
|
125
125
|
value: any[];
|
|
126
126
|
plotType: {
|
|
127
|
-
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
} & {
|
|
129
|
+
[key: string]: any;
|
|
128
130
|
};
|
|
129
131
|
timeBins: any;
|
|
130
132
|
dataId: string[];
|
|
@@ -193,7 +195,9 @@ export declare function adjustValueToAnimationWindow<S extends MinVisStateForAni
|
|
|
193
195
|
} | {
|
|
194
196
|
value: any[];
|
|
195
197
|
plotType: {
|
|
196
|
-
|
|
198
|
+
[key: string]: any;
|
|
199
|
+
} & {
|
|
200
|
+
[key: string]: any;
|
|
197
201
|
};
|
|
198
202
|
timeBins: any;
|
|
199
203
|
dataId: string[];
|
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.19",
|
|
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.19",
|
|
33
|
+
"@kepler.gl/constants": "3.3.0-alpha.19",
|
|
34
|
+
"@kepler.gl/types": "3.3.0-alpha.19",
|
|
35
35
|
"@loaders.gl/gis": "^4.4.1",
|
|
36
36
|
"@luma.gl/constants": "^9.3.2",
|
|
37
37
|
"@luma.gl/core": "^9.3.2",
|