@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.
Files changed (40) hide show
  1. package/dist/application-config.d.ts +5 -0
  2. package/dist/arrow-data-container.d.ts +11 -0
  3. package/dist/camera-tour.d.ts +11 -0
  4. package/dist/camera-utils.d.ts +5 -0
  5. package/dist/camera-utils.spec.d.ts +1 -0
  6. package/dist/cjs/application-config.js +5 -1
  7. package/dist/cjs/arrow-data-container.js +457 -25
  8. package/dist/cjs/camera-tour.js +99 -0
  9. package/dist/cjs/camera-utils.js +64 -0
  10. package/dist/cjs/camera-utils.spec.js +209 -0
  11. package/dist/cjs/data-container-interface.js +1 -1
  12. package/dist/cjs/export-map-html.js +24 -8
  13. package/dist/cjs/export-map-html.spec.js +110 -0
  14. package/dist/cjs/export-utils.js +13 -5
  15. package/dist/cjs/export-utils.spec.js +24 -3
  16. package/dist/cjs/extract-dataset-utils.js +2 -2
  17. package/dist/cjs/filter-utils.js +29 -9
  18. package/dist/cjs/index.js +38 -1
  19. package/dist/cjs/plot.js +159 -35
  20. package/dist/data-container-interface.d.ts +4 -4
  21. package/dist/esm/application-config.js +5 -1
  22. package/dist/esm/arrow-data-container.js +458 -26
  23. package/dist/esm/camera-tour.js +92 -0
  24. package/dist/esm/camera-utils.js +56 -0
  25. package/dist/esm/camera-utils.spec.js +208 -0
  26. package/dist/esm/data-container-interface.js +1 -1
  27. package/dist/esm/export-map-html.js +24 -8
  28. package/dist/esm/export-map-html.spec.js +107 -0
  29. package/dist/esm/export-utils.js +13 -5
  30. package/dist/esm/export-utils.spec.js +24 -3
  31. package/dist/esm/extract-dataset-utils.js +2 -2
  32. package/dist/esm/filter-utils.js +30 -10
  33. package/dist/esm/index.js +3 -2
  34. package/dist/esm/plot.js +161 -37
  35. package/dist/export-map-html.d.ts +2 -0
  36. package/dist/export-map-html.spec.d.ts +1 -0
  37. package/dist/export-utils.d.ts +4 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/plot.d.ts +6 -2
  40. 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 {};
@@ -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
- interval: any;
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
- interval: any;
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.18",
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.18",
33
- "@kepler.gl/constants": "3.3.0-alpha.18",
34
- "@kepler.gl/types": "3.3.0-alpha.18",
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",