@kepler.gl/actions 3.3.0-alpha.2 → 3.3.0-alpha.21
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/action-types.d.ts +103 -1
- package/dist/action-wrapper.d.ts +22 -17
- package/dist/actions.d.ts +13 -0
- package/dist/cjs/action-types.js +266 -0
- package/dist/cjs/action-types.js.map +1 -0
- package/dist/cjs/action-wrapper.js +177 -0
- package/dist/cjs/action-wrapper.js.map +1 -0
- package/dist/cjs/actions.js +193 -0
- package/dist/cjs/actions.js.map +1 -0
- package/dist/cjs/identity-actions.js +86 -0
- package/dist/cjs/identity-actions.js.map +1 -0
- package/dist/cjs/index.js +182 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/map-state-actions.js +174 -0
- package/dist/cjs/map-state-actions.js.map +1 -0
- package/dist/cjs/map-style-actions.js +211 -0
- package/dist/cjs/map-style-actions.js.map +1 -0
- package/dist/cjs/provider-actions.js +99 -0
- package/dist/cjs/provider-actions.js.map +1 -0
- package/dist/cjs/ui-state-actions.js +463 -0
- package/dist/cjs/ui-state-actions.js.map +1 -0
- package/dist/cjs/vis-state-actions.js +1859 -0
- package/dist/cjs/vis-state-actions.js.map +1 -0
- package/dist/esm/action-types.js +260 -0
- package/dist/esm/action-types.js.map +1 -0
- package/dist/esm/action-wrapper.js +171 -0
- package/dist/esm/action-wrapper.js.map +1 -0
- package/dist/esm/actions.js +186 -0
- package/dist/esm/actions.js.map +1 -0
- package/dist/esm/identity-actions.js +79 -0
- package/dist/esm/identity-actions.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/map-state-actions.js +167 -0
- package/dist/esm/map-state-actions.js.map +1 -0
- package/dist/esm/map-style-actions.js +204 -0
- package/dist/esm/map-style-actions.js.map +1 -0
- package/dist/esm/provider-actions.js +93 -0
- package/dist/esm/provider-actions.js.map +1 -0
- package/dist/esm/ui-state-actions.js +456 -0
- package/dist/esm/ui-state-actions.js.map +1 -0
- package/dist/esm/vis-state-actions.js +1728 -0
- package/dist/esm/vis-state-actions.js.map +1 -0
- package/dist/map-state-actions.d.ts +51 -3
- package/dist/ui-state-actions.d.ts +77 -2
- package/dist/vis-state-actions.d.ts +573 -21
- package/package.json +25 -22
- package/dist/action-types.js +0 -213
- package/dist/action-wrapper.js +0 -174
- package/dist/actions.js +0 -187
- package/dist/identity-actions.js +0 -86
- package/dist/index.js +0 -183
- package/dist/map-state-actions.js +0 -129
- package/dist/map-style-actions.js +0 -211
- package/dist/provider-actions.js +0 -99
- package/dist/ui-state-actions.js +0 -388
- package/dist/vis-state-actions.js +0 -1299
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-types.js","names":["ACTION_PREFIX","exports","ActionTypes","REGISTER_ENTRY","concat","DELETE_ENTRY","RENAME_ENTRY","ADD_DATA","ADD_FILTER","CREATE_OR_UPDATE_FILTER","CREATE_NEW_DATASET_SUCCESS","ADD_LAYER","APPLY_FILTER_CONFIG","APPLY_LAYER_CONFIG","DUPLICATE_LAYER","INTERACTION_CONFIG_CHANGE","LAYER_CONFIG_CHANGE","LAYER_SET_IS_VALID","LAYER_VISUAL_CHANNEL_CHANGE","LAYER_TYPE_CHANGE","LAYER_VIS_CONFIG_CHANGE","LAYER_TOGGLE_VISIBILITY","LAYER_TEXT_LABEL_CHANGE","LAYER_HOVER","LAYER_CLICK","MAP_CLICK","MOUSE_MOVE","REMOVE_FILTER","REMOVE_LAYER","REMOVE_DATASET","REORDER_LAYER","ADD_LAYER_GROUP","REMOVE_LAYER_GROUP","UPDATE_LAYER_GROUP","ADD_LAYER_TO_LAYER_GROUP","REMOVE_LAYER_FROM_LAYER_GROUP","SWAP_LAYER_ORDER_ENTRIES","SET_FILTER","SET_FILTER_ANIMATION_TIME","SET_FILTER_ANIMATION_TIME_CONFIG","SET_FILTER_ANIMATION_WINDOW","SHOW_DATASET_TABLE","UPDATE_LAYER_BLENDING","UPDATE_OVERLAY_BLENDING","UPDATE_VIS_DATA","RENAME_DATASET","UPDATE_DATASET_PROPS","UPDATE_DATASET","RENAME_TABLE_COLUMN","CHANGE_TABLE_COLUMN_TYPE","DELETE_TABLE_COLUMN","TOGGLE_FILTER_ANIMATION","UPDATE_FILTER_ANIMATION_SPEED","PLAY_ANIMATION","SET_ANIMATION_CONFIG","SET_LAYER_ANIMATION_TIME","SET_LAYER_ANIMATION_TIME_CONFIG","UPDATE_ANIMATION_SPEED","UPDATE_LAYER_ANIMATION_SPEED","TOGGLE_LAYER_ANIMATION","TOGGLE_LAYER_ANIMATION_CONTROL","TOGGLE_LAYER_CONFIG_ACTIVE","SET_FILTER_VIEW","TOGGLE_FILTER_FEATURE","TOGGLE_LAYER_FOR_MAP","SET_FILTER_PLOT","LOAD_FILES","LOAD_NEXT_FILE","EXPAND_ZIP_ARCHIVE_SUCCESS","LOAD_BATCH_DATA_SUCCESS","LOAD_FILE_STEP_SUCCESS","LOAD_FILES_ERR","LOAD_FILES_SUCCESS","CONFIRM_REPLACE_DATASET","STAGE_LOADED_FILES","APPEND_STAGED_LOADED_FILES","CLEAR_STAGED_LOADED_FILES","LAYER_COLOR_UI_CHANGE","TOGGLE_FEATURE_LAYER","APPLY_CPU_FILTER","SET_MAP_INFO","SORT_TABLE_COLUMN","PIN_TABLE_COLUMN","TOGGLE_TABLE_COLUMN_HIDDEN","SHOW_ALL_TABLE_COLUMNS","COPY_TABLE_COLUMN","SET_COLUMN_DISPLAY_FORMAT","LOAD_COLUMN_STATS","LOAD_COLUMN_STATS_SUCCESS","LOAD_COLUMN_STATS_ERROR","NEXT_FILE_BATCH","PROCESS_FILE_CONTENT","UPDATE_TABLE_COLOR","REFRESH_DATASET","REFRESH_DATASET_SUCCESS","REFRESH_DATASET_ERROR","REFRESH_DATASET_PROGRESS","ADD_GROUP_BY","SET_GROUP_BY_CONFIG","RUN_GROUP_BY","ADD_JOIN","SET_JOIN_CONFIG","RUN_JOIN","ADD_SPATIAL_JOIN","SET_SPATIAL_JOIN_CONFIG","RUN_SPATIAL_JOIN","ADD_SUITABILITY","SET_SUITABILITY_CONFIG","RUN_SUITABILITY","REMOVE_DATASET_OP","ADD_TO_DATASET","REMOVE_FROM_DATASET","ADD_EFFECT","REORDER_EFFECT","REMOVE_EFFECT","UPDATE_EFFECT","ADD_CHART","UPDATE_CHART","REMOVE_CHART","SET_CAMERA_BOOKMARKS","SET_CAMERA_TOUR","ADD_ANNOTATION","REMOVE_ANNOTATION","UPDATE_ANNOTATION","DUPLICATE_ANNOTATION","SET_SELECTED_ANNOTATION","UPDATE_MAP","APPLY_MAP_STATE","FIT_BOUNDS","TOGGLE_PERSPECTIVE","TOGGLE_FULLSCREEN","TOGGLE_SPLIT_MAP","TOGGLE_SPLIT_MAP_VIEWPORT","SET_MAP_VIEW_MODE","GLOBE_CONFIG_CHANGE","SET_MAP_SPLIT_MODE","SET_SWIPE_COMPARE_PERCENTAGE","MAP_CONFIG_CHANGE","SET_DEFAULT_MAP_STYLE","MAP_STYLE_CHANGE","LOAD_MAP_STYLES","LOAD_MAP_STYLE_ERR","INPUT_MAP_STYLE","LOAD_CUSTOM_MAP_STYLE","ADD_CUSTOM_MAP_STYLE","EDIT_CUSTOM_MAP_STYLE","REMOVE_CUSTOM_MAP_STYLE","REQUEST_MAP_STYLES","SET_3D_BUILDING_COLOR","SET_BACKGROUND_COLOR","CONTROL_CAMERA_TOUR","TOGGLE_SIDE_PANEL","TOGGLE_MODAL","SHOW_EXPORT_DROPDOWN","HIDE_EXPORT_DROPDOWN","TOGGLE_SIDE_PANEL_CLOSE_BUTTON","OPEN_DELETE_MODAL","OPEN_REPLACE_DATASET_MODAL","TOGGLE_MAP_CONTROL","SET_MAP_CONTROL_VISIBILITY","SET_MAP_CONTROL_SETTINGS","ADD_NOTIFICATION","REMOVE_NOTIFICATION","SET_LOCALE","SET_THEME","LAYER_FILTERED_ITEMS_CHANGE","WMS_FEATURE_INFO","SYNC_TIME_FILTER_WITH_LAYER_TIMELINE","SYNC_TIME_FILTER_TIMELINE_MODE","TOGGLE_PANEL_LIST_VIEW","SET_LOADING_INDICATOR","SET_LOADING_PROGRESS","SET_EXPORT_IMAGE_SETTING","START_EXPORTING_IMAGE","SET_EXPORT_IMAGE_DATA_URI","SET_EXPORT_IMAGE_ERROR","CLEANUP_EXPORT_IMAGE","SET_EXPORT_VIDEO_SETTING","SET_EXPORT_SELECTED_DATASET","SET_EXPORT_DATA_TYPE","SET_EXPORT_FILTERED","SET_EXPORT_DATA","SET_EXPORT_MAP_FORMAT","SET_USER_MAPBOX_ACCESS_TOKEN","SET_EXPORT_MAP_HTML_MODE","SET_EXPORT_MAP_BRANDING","SET_EXPORT_MAP_FILE_NAME","SET_EXPORT_INCLUDE_LAYER_API_KEYS","SET_EDITOR_MODE","SET_SELECTED_FEATURE","INIT","ADD_DATA_TO_MAP","RECEIVE_MAP_CONFIG","RESET_MAP_CONFIG","REPLACE_DATA_IN_MAP","SET_FEATURES","SET_EDITOR_FEATURE_PROPERTIES","SET_POLYGON_FILTER_LAYER","SET_POLYGON_FILTER_ALL_LAYERS","DELETE_FEATURE","TOGGLE_EDITOR_VISIBILITY","CONVERT_EDITOR_FEATURES_TO_LAYER","EXTRACT_DATA_FROM_FEATURE","START_SAVE_STORAGE","assignType","obj","_default"],"sources":["../../src/action-types.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\nexport const ACTION_PREFIX = '@@kepler.gl/';\n\n/**\n * Kepler.gl action types, can be listened by reducers to perform additional tasks whenever an action is called in kepler.gl\n * @constant\n * @type {Object}\n * @public\n *\n * @example\n * // store.js\n * import {handleActions} from 'redux-actions';\n * import {createStore, combineReducers, applyMiddleware} from 'redux';\n * import {taskMiddleware} from '@kepler.gl/tasks';\n *\n * import keplerGlReducer from '@kepler.gl/reducers';\n * import {ActionTypes} from '@kepler.gl/actions';\n *\n * const appReducer = handleActions({\n * // listen on kepler.gl map update action to store a copy of viewport in app state\n * [ActionTypes.UPDATE_MAP]: (state, action) => ({\n * ...state,\n * viewport: action.payload\n * }),\n * }, {});\n *\n * const reducers = combineReducers({\n * app: appReducer,\n * keplerGl: keplerGlReducer\n * });\n *\n * export default createStore(reducers, {}, applyMiddleware(taskMiddleware))\n */\nexport const ActionTypes = {\n // identity action\n REGISTER_ENTRY: `${ACTION_PREFIX}REGISTER_ENTRY`,\n DELETE_ENTRY: `${ACTION_PREFIX}DELETE_ENTRY`,\n RENAME_ENTRY: `${ACTION_PREFIX}RENAME_ENTRY`,\n\n // visState\n ADD_DATA: `${ACTION_PREFIX}ADD_DATA`,\n ADD_FILTER: `${ACTION_PREFIX}ADD_FILTER`,\n CREATE_OR_UPDATE_FILTER: `${ACTION_PREFIX}CREATE_OR_UPDATE_FILTER`,\n CREATE_NEW_DATASET_SUCCESS: `${ACTION_PREFIX}CREATE_NEW_DATASET_SUCCESS`,\n ADD_LAYER: `${ACTION_PREFIX}ADD_LAYER`,\n APPLY_FILTER_CONFIG: `${ACTION_PREFIX}APPLY_FILTER_CONFIG`,\n APPLY_LAYER_CONFIG: `${ACTION_PREFIX}APPLY_LAYER_CONFIG`,\n DUPLICATE_LAYER: `${ACTION_PREFIX}DUPLICATE_LAYER`,\n INTERACTION_CONFIG_CHANGE: `${ACTION_PREFIX}INTERACTION_CONFIG_CHANGE`,\n LAYER_CONFIG_CHANGE: `${ACTION_PREFIX}LAYER_CONFIG_CHANGE`,\n LAYER_SET_IS_VALID: `${ACTION_PREFIX}LAYER_SET_IS_VALID`,\n LAYER_VISUAL_CHANNEL_CHANGE: `${ACTION_PREFIX}LAYER_VISUAL_CHANNEL_CHANGE`,\n LAYER_TYPE_CHANGE: `${ACTION_PREFIX}LAYER_TYPE_CHANGE`,\n LAYER_VIS_CONFIG_CHANGE: `${ACTION_PREFIX}LAYER_VIS_CONFIG_CHANGE`,\n LAYER_TOGGLE_VISIBILITY: `${ACTION_PREFIX}LAYER_TOGGLE_VISIBILITY`,\n LAYER_TEXT_LABEL_CHANGE: `${ACTION_PREFIX}LAYER_TEXT_LABEL_CHANGE`,\n LAYER_HOVER: `${ACTION_PREFIX}LAYER_HOVER`,\n LAYER_CLICK: `${ACTION_PREFIX}LAYER_CLICK`,\n MAP_CLICK: `${ACTION_PREFIX}MAP_CLICK`,\n MOUSE_MOVE: `${ACTION_PREFIX}MOUSE_MOVE`,\n REMOVE_FILTER: `${ACTION_PREFIX}REMOVE_FILTER`,\n REMOVE_LAYER: `${ACTION_PREFIX}REMOVE_LAYER`,\n REMOVE_DATASET: `${ACTION_PREFIX}REMOVE_DATASET`,\n REORDER_LAYER: `${ACTION_PREFIX}REORDER_LAYER`,\n ADD_LAYER_GROUP: `${ACTION_PREFIX}ADD_LAYER_GROUP`,\n REMOVE_LAYER_GROUP: `${ACTION_PREFIX}REMOVE_LAYER_GROUP`,\n UPDATE_LAYER_GROUP: `${ACTION_PREFIX}UPDATE_LAYER_GROUP`,\n ADD_LAYER_TO_LAYER_GROUP: `${ACTION_PREFIX}ADD_LAYER_TO_LAYER_GROUP`,\n REMOVE_LAYER_FROM_LAYER_GROUP: `${ACTION_PREFIX}REMOVE_LAYER_FROM_LAYER_GROUP`,\n SWAP_LAYER_ORDER_ENTRIES: `${ACTION_PREFIX}SWAP_LAYER_ORDER_ENTRIES`,\n SET_FILTER: `${ACTION_PREFIX}SET_FILTER`,\n SET_FILTER_ANIMATION_TIME: `${ACTION_PREFIX}SET_FILTER_ANIMATION_TIME`,\n SET_FILTER_ANIMATION_TIME_CONFIG: `${ACTION_PREFIX}SET_FILTER_ANIMATION_TIME_CONFIG`,\n SET_FILTER_ANIMATION_WINDOW: `${ACTION_PREFIX}SET_FILTER_ANIMATION_WINDOW`,\n SHOW_DATASET_TABLE: `${ACTION_PREFIX}SHOW_DATASET_TABLE`,\n UPDATE_LAYER_BLENDING: `${ACTION_PREFIX}UPDATE_LAYER_BLENDING`,\n UPDATE_OVERLAY_BLENDING: `${ACTION_PREFIX}UPDATE_OVERLAY_BLENDING`,\n UPDATE_VIS_DATA: `${ACTION_PREFIX}UPDATE_VIS_DATA`,\n RENAME_DATASET: `${ACTION_PREFIX}RENAME_DATASET`,\n UPDATE_DATASET_PROPS: `${ACTION_PREFIX}UPDATE_DATASET_PROPS`,\n UPDATE_DATASET: `${ACTION_PREFIX}UPDATE_DATASET`,\n RENAME_TABLE_COLUMN: `${ACTION_PREFIX}RENAME_TABLE_COLUMN`,\n CHANGE_TABLE_COLUMN_TYPE: `${ACTION_PREFIX}CHANGE_TABLE_COLUMN_TYPE`,\n DELETE_TABLE_COLUMN: `${ACTION_PREFIX}DELETE_TABLE_COLUMN`,\n TOGGLE_FILTER_ANIMATION: `${ACTION_PREFIX}TOGGLE_FILTER_ANIMATION`,\n UPDATE_FILTER_ANIMATION_SPEED: `${ACTION_PREFIX}UPDATE_FILTER_ANIMATION_SPEED`,\n PLAY_ANIMATION: `${ACTION_PREFIX}PLAY_ANIMATION`,\n SET_ANIMATION_CONFIG: `${ACTION_PREFIX}SET_ANIMATION_CONFIG`,\n SET_LAYER_ANIMATION_TIME: `${ACTION_PREFIX}SET_LAYER_ANIMATION_TIME`,\n SET_LAYER_ANIMATION_TIME_CONFIG: `${ACTION_PREFIX}SET_LAYER_ANIMATION_TIME_CONFIG`,\n UPDATE_ANIMATION_SPEED: `${ACTION_PREFIX}UPDATE_ANIMATION_SPEED`,\n UPDATE_LAYER_ANIMATION_SPEED: `${ACTION_PREFIX}UPDATE_LAYER_ANIMATION_SPEED`,\n TOGGLE_LAYER_ANIMATION: `${ACTION_PREFIX}TOGGLE_LAYER_ANIMATION`,\n TOGGLE_LAYER_ANIMATION_CONTROL: `${ACTION_PREFIX}TOGGLE_LAYER_ANIMATION_CONTROL`,\n TOGGLE_LAYER_CONFIG_ACTIVE: `${ACTION_PREFIX}TOGGLE_LAYER_CONFIG_ACTIVE`,\n SET_FILTER_VIEW: `${ACTION_PREFIX}SET_FILTER_VIEW`,\n TOGGLE_FILTER_FEATURE: `${ACTION_PREFIX}TOGGLE_FILTER_FEATURE`,\n TOGGLE_LAYER_FOR_MAP: `${ACTION_PREFIX}TOGGLE_LAYER_FOR_MAP`,\n SET_FILTER_PLOT: `${ACTION_PREFIX}SET_FILTER_PLOT`,\n LOAD_FILES: `${ACTION_PREFIX}LOAD_FILES`,\n LOAD_NEXT_FILE: `${ACTION_PREFIX}LOAD_NEXT_FILE`,\n EXPAND_ZIP_ARCHIVE_SUCCESS: `${ACTION_PREFIX}EXPAND_ZIP_ARCHIVE_SUCCESS`,\n LOAD_BATCH_DATA_SUCCESS: `${ACTION_PREFIX}LOAD_BATCH_DATA_SUCCESS`,\n LOAD_FILE_STEP_SUCCESS: `${ACTION_PREFIX}LOAD_FILE_STEP_SUCCESS`,\n LOAD_FILES_ERR: `${ACTION_PREFIX}LOAD_FILES_ERR`,\n LOAD_FILES_SUCCESS: `${ACTION_PREFIX}LOAD_FILES_SUCCESS`,\n CONFIRM_REPLACE_DATASET: `${ACTION_PREFIX}CONFIRM_REPLACE_DATASET`,\n STAGE_LOADED_FILES: `${ACTION_PREFIX}STAGE_LOADED_FILES`,\n APPEND_STAGED_LOADED_FILES: `${ACTION_PREFIX}APPEND_STAGED_LOADED_FILES`,\n CLEAR_STAGED_LOADED_FILES: `${ACTION_PREFIX}CLEAR_STAGED_LOADED_FILES`,\n LAYER_COLOR_UI_CHANGE: `${ACTION_PREFIX}LAYER_COLOR_UI_CHANGE`,\n TOGGLE_FEATURE_LAYER: `${ACTION_PREFIX}TOGGLE_FEATURE_LAYER`,\n APPLY_CPU_FILTER: `${ACTION_PREFIX}APPLY_CPU_FILTER`,\n SET_MAP_INFO: `${ACTION_PREFIX}SET_MAP_INFO`,\n SORT_TABLE_COLUMN: `${ACTION_PREFIX}SORT_TABLE_COLUMN`,\n PIN_TABLE_COLUMN: `${ACTION_PREFIX}PIN_TABLE_COLUMN`,\n TOGGLE_TABLE_COLUMN_HIDDEN: `${ACTION_PREFIX}TOGGLE_TABLE_COLUMN_HIDDEN`,\n SHOW_ALL_TABLE_COLUMNS: `${ACTION_PREFIX}SHOW_ALL_TABLE_COLUMNS`,\n COPY_TABLE_COLUMN: `${ACTION_PREFIX}COPY_TABLE_COLUMN`,\n SET_COLUMN_DISPLAY_FORMAT: `${ACTION_PREFIX}SET_COLUMN_DISPLAY_FORMAT`,\n LOAD_COLUMN_STATS: `${ACTION_PREFIX}LOAD_COLUMN_STATS`,\n LOAD_COLUMN_STATS_SUCCESS: `${ACTION_PREFIX}LOAD_COLUMN_STATS_SUCCESS`,\n LOAD_COLUMN_STATS_ERROR: `${ACTION_PREFIX}LOAD_COLUMN_STATS_ERROR`,\n NEXT_FILE_BATCH: `${ACTION_PREFIX}NEXT_FILE_BATCH`,\n PROCESS_FILE_CONTENT: `${ACTION_PREFIX}PROCESS_FILE_CONTENT`,\n UPDATE_TABLE_COLOR: `${ACTION_PREFIX}UPDATE_TABLE_COLOR`,\n REFRESH_DATASET: `${ACTION_PREFIX}REFRESH_DATASET`,\n REFRESH_DATASET_SUCCESS: `${ACTION_PREFIX}REFRESH_DATASET_SUCCESS`,\n REFRESH_DATASET_ERROR: `${ACTION_PREFIX}REFRESH_DATASET_ERROR`,\n REFRESH_DATASET_PROGRESS: `${ACTION_PREFIX}REFRESH_DATASET_PROGRESS`,\n ADD_GROUP_BY: `${ACTION_PREFIX}ADD_GROUP_BY`,\n SET_GROUP_BY_CONFIG: `${ACTION_PREFIX}SET_GROUP_BY_CONFIG`,\n RUN_GROUP_BY: `${ACTION_PREFIX}RUN_GROUP_BY`,\n ADD_JOIN: `${ACTION_PREFIX}ADD_JOIN`,\n SET_JOIN_CONFIG: `${ACTION_PREFIX}SET_JOIN_CONFIG`,\n RUN_JOIN: `${ACTION_PREFIX}RUN_JOIN`,\n ADD_SPATIAL_JOIN: `${ACTION_PREFIX}ADD_SPATIAL_JOIN`,\n SET_SPATIAL_JOIN_CONFIG: `${ACTION_PREFIX}SET_SPATIAL_JOIN_CONFIG`,\n RUN_SPATIAL_JOIN: `${ACTION_PREFIX}RUN_SPATIAL_JOIN`,\n ADD_SUITABILITY: `${ACTION_PREFIX}ADD_SUITABILITY`,\n SET_SUITABILITY_CONFIG: `${ACTION_PREFIX}SET_SUITABILITY_CONFIG`,\n RUN_SUITABILITY: `${ACTION_PREFIX}RUN_SUITABILITY`,\n REMOVE_DATASET_OP: `${ACTION_PREFIX}REMOVE_DATASET_OP`,\n ADD_TO_DATASET: `${ACTION_PREFIX}ADD_TO_DATASET`,\n REMOVE_FROM_DATASET: `${ACTION_PREFIX}REMOVE_FROM_DATASET`,\n ADD_EFFECT: `${ACTION_PREFIX}ADD_EFFECT`,\n REORDER_EFFECT: `${ACTION_PREFIX}REORDER_EFFECT`,\n REMOVE_EFFECT: `${ACTION_PREFIX}REMOVE_EFFECT`,\n UPDATE_EFFECT: `${ACTION_PREFIX}UPDATE_EFFECT`,\n\n // charts\n ADD_CHART: `${ACTION_PREFIX}ADD_CHART`,\n UPDATE_CHART: `${ACTION_PREFIX}UPDATE_CHART`,\n REMOVE_CHART: `${ACTION_PREFIX}REMOVE_CHART`,\n\n // camera bookmarks\n SET_CAMERA_BOOKMARKS: `${ACTION_PREFIX}SET_CAMERA_BOOKMARKS`,\n SET_CAMERA_TOUR: `${ACTION_PREFIX}SET_CAMERA_TOUR`,\n\n // annotations\n ADD_ANNOTATION: `${ACTION_PREFIX}ADD_ANNOTATION`,\n REMOVE_ANNOTATION: `${ACTION_PREFIX}REMOVE_ANNOTATION`,\n UPDATE_ANNOTATION: `${ACTION_PREFIX}UPDATE_ANNOTATION`,\n DUPLICATE_ANNOTATION: `${ACTION_PREFIX}DUPLICATE_ANNOTATION`,\n SET_SELECTED_ANNOTATION: `${ACTION_PREFIX}SET_SELECTED_ANNOTATION`,\n\n // mapState\n UPDATE_MAP: `${ACTION_PREFIX}UPDATE_MAP`,\n APPLY_MAP_STATE: `${ACTION_PREFIX}APPLY_MAP_STATE`,\n FIT_BOUNDS: `${ACTION_PREFIX}FIT_BOUNDS`,\n TOGGLE_PERSPECTIVE: `${ACTION_PREFIX}TOGGLE_PERSPECTIVE`,\n TOGGLE_FULLSCREEN: `${ACTION_PREFIX}TOGGLE_FULLSCREEN`,\n TOGGLE_SPLIT_MAP: `${ACTION_PREFIX}TOGGLE_SPLIT_MAP`,\n TOGGLE_SPLIT_MAP_VIEWPORT: `${ACTION_PREFIX}TOGGLE_SPLIT_MAP_VIEWPORT`,\n SET_MAP_VIEW_MODE: `${ACTION_PREFIX}SET_MAP_VIEW_MODE`,\n GLOBE_CONFIG_CHANGE: `${ACTION_PREFIX}GLOBE_CONFIG_CHANGE`,\n SET_MAP_SPLIT_MODE: `${ACTION_PREFIX}SET_MAP_SPLIT_MODE`,\n SET_SWIPE_COMPARE_PERCENTAGE: `${ACTION_PREFIX}SET_SWIPE_COMPARE_PERCENTAGE`,\n\n // mapStyle\n MAP_CONFIG_CHANGE: `${ACTION_PREFIX}MAP_CONFIG_CHANGE`,\n SET_DEFAULT_MAP_STYLE: `${ACTION_PREFIX}SET_DEFAULT_MAP_STYLE`,\n MAP_STYLE_CHANGE: `${ACTION_PREFIX}MAP_STYLE_CHANGE`,\n LOAD_MAP_STYLES: `${ACTION_PREFIX}LOAD_MAP_STYLES`,\n LOAD_MAP_STYLE_ERR: `${ACTION_PREFIX}LOAD_MAP_STYLE_ERR`,\n INPUT_MAP_STYLE: `${ACTION_PREFIX}INPUT_MAP_STYLE`,\n LOAD_CUSTOM_MAP_STYLE: `${ACTION_PREFIX}LOAD_CUSTOM_MAP_STYLE`,\n ADD_CUSTOM_MAP_STYLE: `${ACTION_PREFIX}ADD_CUSTOM_MAP_STYLE`,\n EDIT_CUSTOM_MAP_STYLE: `${ACTION_PREFIX}EDIT_CUSTOM_MAP_STYLE`,\n REMOVE_CUSTOM_MAP_STYLE: `${ACTION_PREFIX}REMOVE_CUSTOM_MAP_STYLE`,\n REQUEST_MAP_STYLES: `${ACTION_PREFIX}REQUEST_MAP_STYLES`,\n SET_3D_BUILDING_COLOR: `${ACTION_PREFIX}SET_3D_BUILDING_COLOR`,\n SET_BACKGROUND_COLOR: `${ACTION_PREFIX}SET_BACKGROUND_COLOR`,\n\n CONTROL_CAMERA_TOUR: `${ACTION_PREFIX}CONTROL_CAMERA_TOUR`,\n\n // uiState\n TOGGLE_SIDE_PANEL: `${ACTION_PREFIX}TOGGLE_SIDE_PANEL`,\n TOGGLE_MODAL: `${ACTION_PREFIX}TOGGLE_MODAL`,\n SHOW_EXPORT_DROPDOWN: `${ACTION_PREFIX}SHOW_EXPORT_DROPDOWN`,\n HIDE_EXPORT_DROPDOWN: `${ACTION_PREFIX}HIDE_EXPORT_DROPDOWN`,\n TOGGLE_SIDE_PANEL_CLOSE_BUTTON: `${ACTION_PREFIX}TOGGLE_SIDE_PANEL_CLOSE_BUTTON`,\n OPEN_DELETE_MODAL: `${ACTION_PREFIX}OPEN_DELETE_MODAL`,\n OPEN_REPLACE_DATASET_MODAL: `${ACTION_PREFIX}OPEN_REPLACE_DATASET_MODAL`,\n TOGGLE_MAP_CONTROL: `${ACTION_PREFIX}TOGGLE_MAP_CONTROL`,\n SET_MAP_CONTROL_VISIBILITY: `${ACTION_PREFIX}SET_MAP_CONTROL_VISIBILITY`,\n SET_MAP_CONTROL_SETTINGS: `${ACTION_PREFIX}SET_MAP_CONTROL_SETTINGS`,\n ADD_NOTIFICATION: `${ACTION_PREFIX}ADD_NOTIFICATION`,\n REMOVE_NOTIFICATION: `${ACTION_PREFIX}REMOVE_NOTIFICATION`,\n SET_LOCALE: `${ACTION_PREFIX}SET_LOCALE`,\n SET_THEME: `${ACTION_PREFIX}SET_THEME`,\n LAYER_FILTERED_ITEMS_CHANGE: `${ACTION_PREFIX}LAYER_FILTERED_ITEMS_CHANGE`,\n WMS_FEATURE_INFO: `${ACTION_PREFIX}WMS_FEATURE_INFO`,\n SYNC_TIME_FILTER_WITH_LAYER_TIMELINE: `${ACTION_PREFIX}SYNC_TIME_FILTER_WITH_LAYER_TIMELINE`,\n SYNC_TIME_FILTER_TIMELINE_MODE: `${ACTION_PREFIX}SYNC_TIME_FILTER_TIMELINE_MODE`,\n TOGGLE_PANEL_LIST_VIEW: `${ACTION_PREFIX}TOGGLE_PANEL_LIST_VIEW`,\n SET_LOADING_INDICATOR: `${ACTION_PREFIX}SET_LOADING_INDICATOR`,\n SET_LOADING_PROGRESS: `${ACTION_PREFIX}SET_LOADING_PROGRESS`,\n\n // uiState > export image\n SET_EXPORT_IMAGE_SETTING: `${ACTION_PREFIX}SET_EXPORT_IMAGE_SETTING`,\n START_EXPORTING_IMAGE: `${ACTION_PREFIX}START_EXPORTING_IMAGE`,\n SET_EXPORT_IMAGE_DATA_URI: `${ACTION_PREFIX}SET_EXPORT_IMAGE_DATA_URI`,\n SET_EXPORT_IMAGE_ERROR: `${ACTION_PREFIX}SET_EXPORT_IMAGE_ERROR`,\n CLEANUP_EXPORT_IMAGE: `${ACTION_PREFIX}CLEANUP_EXPORT_IMAGE`,\n\n // uiState > export video (state only, via hubble.gl)\n SET_EXPORT_VIDEO_SETTING: `${ACTION_PREFIX}SET_EXPORT_VIDEO_SETTING`,\n\n // uiState > export data\n SET_EXPORT_SELECTED_DATASET: `${ACTION_PREFIX}SET_EXPORT_SELECTED_DATASET`,\n SET_EXPORT_DATA_TYPE: `${ACTION_PREFIX}SET_EXPORT_DATA_TYPE`,\n SET_EXPORT_FILTERED: `${ACTION_PREFIX}SET_EXPORT_FILTERED`,\n SET_EXPORT_DATA: `${ACTION_PREFIX}SET_EXPORT_DATA`,\n\n // uiState > export map\n SET_EXPORT_MAP_FORMAT: `${ACTION_PREFIX}SET_EXPORT_MAP_FORMAT`,\n SET_USER_MAPBOX_ACCESS_TOKEN: `${ACTION_PREFIX}SET_USER_MAPBOX_ACCESS_TOKEN`,\n SET_EXPORT_MAP_HTML_MODE: `${ACTION_PREFIX}SET_EXPORT_MAP_HTML_MODE`,\n SET_EXPORT_MAP_BRANDING: `${ACTION_PREFIX}SET_EXPORT_MAP_BRANDING`,\n SET_EXPORT_MAP_FILE_NAME: `${ACTION_PREFIX}SET_EXPORT_MAP_FILE_NAME`,\n SET_EXPORT_INCLUDE_LAYER_API_KEYS: `${ACTION_PREFIX}SET_EXPORT_INCLUDE_LAYER_API_KEYS`,\n\n // uiState > editor\n SET_EDITOR_MODE: `${ACTION_PREFIX}SET_EDITOR_MODE`,\n SET_SELECTED_FEATURE: `${ACTION_PREFIX}SET_SELECTED_FEATURE`,\n\n // all\n INIT: `${ACTION_PREFIX}INIT`,\n ADD_DATA_TO_MAP: `${ACTION_PREFIX}ADD_DATA_TO_MAP`,\n RECEIVE_MAP_CONFIG: `${ACTION_PREFIX}RECEIVE_MAP_CONFIG`,\n RESET_MAP_CONFIG: `${ACTION_PREFIX}RESET_MAP_CONFIG`,\n REPLACE_DATA_IN_MAP: `${ACTION_PREFIX}REPLACE_DATA_IN_MAP`,\n\n // geo-operations\n SET_FEATURES: `${ACTION_PREFIX}SET_FEATURES`,\n SET_EDITOR_FEATURE_PROPERTIES: `${ACTION_PREFIX}SET_EDITOR_FEATURE_PROPERTIES`,\n SET_POLYGON_FILTER_LAYER: `${ACTION_PREFIX}SET_POLYGON_FILTER_LAYER`,\n SET_POLYGON_FILTER_ALL_LAYERS: `${ACTION_PREFIX}SET_POLYGON_FILTER_ALL_LAYERS`,\n DELETE_FEATURE: `${ACTION_PREFIX}DELETE_FEATURE`,\n TOGGLE_EDITOR_VISIBILITY: `${ACTION_PREFIX}TOGGLE_EDITOR_VISIBILITY`,\n CONVERT_EDITOR_FEATURES_TO_LAYER: `${ACTION_PREFIX}CONVERT_EDITOR_FEATURES_TO_LAYER`,\n EXTRACT_DATA_FROM_FEATURE: `${ACTION_PREFIX}EXTRACT_DATA_FROM_FEATURE`,\n\n // storage\n START_SAVE_STORAGE: `${ACTION_PREFIX}START_SAVE_STORAGE`\n};\n\n// eslint-disable-next-line prettier/prettier\nconst assignType = <T>(obj: T): {[K in keyof T]: `${typeof ACTION_PREFIX}${string & K}`} =>\n obj as any;\n\nexport default assignType(ActionTypes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A,CAAOC,GAAM;EAAA,OAC3BA,GAAG;AAAA,CAAO;AAAC,IAAAC,QAAA,GAAA7M,OAAA,cAEE2M,UAAU,CAAC1M,WAAW,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.wrapTo = exports.unwrap = exports.isForwardAction = exports.getActionForwardAddress = exports.forwardTo = exports._updateProperty = exports._actionFor = exports.FORWARD = exports.ADDRESS_PREFIX = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _curry = _interopRequireDefault(require("es-toolkit/compat/curry"));
|
|
10
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
// SPDX-License-Identifier: MIT
|
|
13
|
+
// Copyright contributors to the kepler.gl project
|
|
14
|
+
|
|
15
|
+
var FORWARD = exports.FORWARD = '@redux-forward/FORWARD';
|
|
16
|
+
var ADDRESS_PREFIX = exports.ADDRESS_PREFIX = '@@KG_';
|
|
17
|
+
var getActionForwardAddress = exports.getActionForwardAddress = function getActionForwardAddress(id) {
|
|
18
|
+
return "".concat(ADDRESS_PREFIX).concat(id.toUpperCase());
|
|
19
|
+
};
|
|
20
|
+
function wrapToImpl(id, action) {
|
|
21
|
+
return {
|
|
22
|
+
// keep original action.type
|
|
23
|
+
type: action.type,
|
|
24
|
+
// actual action
|
|
25
|
+
payload: _objectSpread(_objectSpread({}, action), {}, {
|
|
26
|
+
meta: _objectSpread(_objectSpread({}, action.meta), {}, {
|
|
27
|
+
_id_: id
|
|
28
|
+
})
|
|
29
|
+
}),
|
|
30
|
+
// add forward signature to meta
|
|
31
|
+
meta: _objectSpread(_objectSpread({}, action.meta || {}), {}, {
|
|
32
|
+
_forward_: FORWARD,
|
|
33
|
+
_addr_: getActionForwardAddress(id)
|
|
34
|
+
})
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Explicit type so declaration emit does not need es-toolkit's unexported CurriedFunction2.
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Wrap an action into a forward action that only modify the state of a specific
|
|
42
|
+
* kepler.gl instance. kepler.gl reducer will look for signatures in the action to
|
|
43
|
+
* determine whether it needs to be forwarded to a specific instance reducer.
|
|
44
|
+
*
|
|
45
|
+
* wrapTo can be curried. You can create a curried action wrapper by only supply the `id` argument
|
|
46
|
+
*
|
|
47
|
+
* A forward action looks like this
|
|
48
|
+
* ```js
|
|
49
|
+
* {
|
|
50
|
+
* type: "@@kepler.gl/LAYER_CONFIG_CHANGE",
|
|
51
|
+
* payload: {
|
|
52
|
+
* type: '@@kepler.gl/LAYER_CONFIG_CHANGE',
|
|
53
|
+
* payload: {},
|
|
54
|
+
* meta: {
|
|
55
|
+
* // id of instance
|
|
56
|
+
* _id_: id
|
|
57
|
+
* // other meta
|
|
58
|
+
* }
|
|
59
|
+
* },
|
|
60
|
+
* meta: {
|
|
61
|
+
* _forward_: '@redux-forward/FORWARD',
|
|
62
|
+
* _addr_: '@@KG_id'
|
|
63
|
+
* }
|
|
64
|
+
* };
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @memberof forwardActions
|
|
68
|
+
* @param {string} id - The id to forward to
|
|
69
|
+
* @param {Object} action - the action object {type: string, payload: *}
|
|
70
|
+
* @returns {{type: string, payload: {type: string, payload: *, meta: {_id_: string}, meta: {_forward_: string, _addr_: string}}}}
|
|
71
|
+
* @public
|
|
72
|
+
* @example
|
|
73
|
+
*
|
|
74
|
+
* import {wrapTo, togglePerspective} from '@kepler.gl/actions';
|
|
75
|
+
*
|
|
76
|
+
* // This action will only dispatch to the KeplerGl instance with `id: map_1`
|
|
77
|
+
* this.props.dispatch(wrapTo('map_1', togglePerspective()));
|
|
78
|
+
*
|
|
79
|
+
* // You can also create a curried action for each instance
|
|
80
|
+
* const wrapToMap1 = wrapTo('map_1');
|
|
81
|
+
* this.props.dispatch(wrapToMap1(togglePerspective()));
|
|
82
|
+
*/
|
|
83
|
+
var wrapTo = exports.wrapTo = (0, _curry["default"])(wrapToImpl);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Whether an action is a forward action
|
|
87
|
+
* @memberof forwardActions
|
|
88
|
+
* @param {Object} action - the action object
|
|
89
|
+
* @returns {boolean} boolean - whether the action is a forward action
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
var isForwardAction = exports.isForwardAction = function isForwardAction(action) {
|
|
93
|
+
return Boolean(action && action.meta && action.meta._forward_ === FORWARD);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Unwrap an action
|
|
98
|
+
* @memberof forwardActions
|
|
99
|
+
* @param {Object} action - the action object
|
|
100
|
+
* @returns {Object} - unwrapped action
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
var _unwrap = exports.unwrap = function unwrap(action) {
|
|
104
|
+
return isForwardAction(action) ? _unwrap(action.payload) : action;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Given an id, returns the action for that id.
|
|
109
|
+
* If the action is not a forward action, return the action
|
|
110
|
+
* @memberof forwardActions
|
|
111
|
+
* @param {String} id
|
|
112
|
+
* @param {Object} action
|
|
113
|
+
* @private
|
|
114
|
+
*/
|
|
115
|
+
var _actionFor = exports._actionFor = function _actionFor(id, action) {
|
|
116
|
+
var _action$meta;
|
|
117
|
+
return isForwardAction(action) ? ((_action$meta = action.meta) === null || _action$meta === void 0 ? void 0 : _action$meta._addr_) === getActionForwardAddress(id) ? action.payload : {} : action;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Returns an action dispatcher that wraps and forwards the actions to a specific instance
|
|
122
|
+
* @memberof forwardActions
|
|
123
|
+
* @param {string} id - instance id
|
|
124
|
+
* @param {Function} dispatch - action dispatcher
|
|
125
|
+
* @public
|
|
126
|
+
* @example
|
|
127
|
+
*
|
|
128
|
+
* // action and forward dispatcher
|
|
129
|
+
* import {toggleSplitMap, forwardTo} from '@kepler.gl/actions';
|
|
130
|
+
* import {connect} from 'react-redux';
|
|
131
|
+
*
|
|
132
|
+
* const MapContainer = props => (
|
|
133
|
+
* <div>
|
|
134
|
+
* <button onClick={() => props.keplerGlDispatch(toggleSplitMap())}/>
|
|
135
|
+
* </div>
|
|
136
|
+
* )
|
|
137
|
+
*
|
|
138
|
+
* const mapDispatchToProps = (dispatch, props) => ({
|
|
139
|
+
* dispatch,
|
|
140
|
+
* keplerGlDispatch: forwardTo(‘foo’, dispatch)
|
|
141
|
+
* });
|
|
142
|
+
*
|
|
143
|
+
* export default connect(
|
|
144
|
+
* state => state,
|
|
145
|
+
* mapDispatchToProps
|
|
146
|
+
* )(MapContainer);
|
|
147
|
+
*/
|
|
148
|
+
var forwardTo = exports.forwardTo = function forwardTo(id, dispatch) {
|
|
149
|
+
return function (action) {
|
|
150
|
+
return dispatch(wrapTo(id, action));
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Update the state of a kepler.gl instance
|
|
156
|
+
* @memberof forwardActions
|
|
157
|
+
* @param {Object} state
|
|
158
|
+
* @param {string} id
|
|
159
|
+
* @param {Object} nextState
|
|
160
|
+
* @private
|
|
161
|
+
*/
|
|
162
|
+
var _updateProperty = exports._updateProperty = function _updateProperty(state, id, nextState) {
|
|
163
|
+
return state[id] === nextState ? state : _objectSpread(_objectSpread({}, state), {}, (0, _defineProperty2["default"])({}, id, nextState));
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* This declaration is needed to group actions in docs
|
|
168
|
+
*/
|
|
169
|
+
/**
|
|
170
|
+
* A set of helpers to forward dispatch actions to a specific instance reducer
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
174
|
+
// @ts-ignore
|
|
175
|
+
var forwardActions = null;
|
|
176
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
177
|
+
//# sourceMappingURL=action-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-wrapper.js","names":["_curry","_interopRequireDefault","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","FORWARD","exports","ADDRESS_PREFIX","getActionForwardAddress","id","concat","toUpperCase","wrapToImpl","action","type","payload","meta","_id_","_forward_","_addr_","wrapTo","curry","isForwardAction","Boolean","unwrap","_actionFor","_action$meta","forwardTo","dispatch","_updateProperty","state","nextState","forwardActions"],"sources":["../../src/action-wrapper.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\nexport const FORWARD = '@redux-forward/FORWARD';\nexport const ADDRESS_PREFIX = '@@KG_';\nimport {Dispatch} from 'redux';\nimport {ActionTypes} from './action-types';\n\nimport curry from 'es-toolkit/compat/curry';\n\ninterface IKeplerGlAction {\n type: (typeof ActionTypes)[keyof typeof ActionTypes];\n // TODO: Construct a type depending on the payload\n payload?: any;\n meta?: {\n _forward_?: string;\n _addr_?: string;\n _id_?: string;\n [key: string]: any;\n };\n}\n\nexport const getActionForwardAddress = (id: string) => `${ADDRESS_PREFIX}${id.toUpperCase()}`;\n\nfunction wrapToImpl(id: string, action: IKeplerGlAction) {\n return {\n // keep original action.type\n type: action.type,\n\n // actual action\n payload: {\n ...action,\n meta: {\n ...action.meta,\n _id_: id\n }\n },\n\n // add forward signature to meta\n meta: {\n ...(action.meta || {}),\n _forward_: FORWARD,\n _addr_: getActionForwardAddress(id)\n }\n };\n}\n\n// Explicit type so declaration emit does not need es-toolkit's unexported CurriedFunction2.\ntype WrapTo = {\n (id: string, action: IKeplerGlAction): ReturnType<typeof wrapToImpl>;\n (id: string): (action: IKeplerGlAction) => ReturnType<typeof wrapToImpl>;\n};\n\n/**\n * Wrap an action into a forward action that only modify the state of a specific\n * kepler.gl instance. kepler.gl reducer will look for signatures in the action to\n * determine whether it needs to be forwarded to a specific instance reducer.\n *\n * wrapTo can be curried. You can create a curried action wrapper by only supply the `id` argument\n *\n * A forward action looks like this\n * ```js\n * {\n * type: \"@@kepler.gl/LAYER_CONFIG_CHANGE\",\n * payload: {\n * type: '@@kepler.gl/LAYER_CONFIG_CHANGE',\n * payload: {},\n * meta: {\n * // id of instance\n * _id_: id\n * // other meta\n * }\n * },\n * meta: {\n * _forward_: '@redux-forward/FORWARD',\n * _addr_: '@@KG_id'\n * }\n * };\n * ```\n *\n * @memberof forwardActions\n * @param {string} id - The id to forward to\n * @param {Object} action - the action object {type: string, payload: *}\n * @returns {{type: string, payload: {type: string, payload: *, meta: {_id_: string}, meta: {_forward_: string, _addr_: string}}}}\n * @public\n * @example\n *\n * import {wrapTo, togglePerspective} from '@kepler.gl/actions';\n *\n * // This action will only dispatch to the KeplerGl instance with `id: map_1`\n * this.props.dispatch(wrapTo('map_1', togglePerspective()));\n *\n * // You can also create a curried action for each instance\n * const wrapToMap1 = wrapTo('map_1');\n * this.props.dispatch(wrapToMap1(togglePerspective()));\n */\nexport const wrapTo: WrapTo = curry(wrapToImpl);\n\n/**\n * Whether an action is a forward action\n * @memberof forwardActions\n * @param {Object} action - the action object\n * @returns {boolean} boolean - whether the action is a forward action\n * @public\n */\nexport const isForwardAction = (action: IKeplerGlAction) => {\n return Boolean(action && action.meta && action.meta._forward_ === FORWARD);\n};\n\n/**\n * Unwrap an action\n * @memberof forwardActions\n * @param {Object} action - the action object\n * @returns {Object} - unwrapped action\n * @public\n */\nexport const unwrap = (action: IKeplerGlAction) =>\n isForwardAction(action) ? unwrap(action.payload) : action;\n\n/**\n * Given an id, returns the action for that id.\n * If the action is not a forward action, return the action\n * @memberof forwardActions\n * @param {String} id\n * @param {Object} action\n * @private\n */\nexport const _actionFor = (id: string, action: IKeplerGlAction) =>\n isForwardAction(action)\n ? action.meta?._addr_ === getActionForwardAddress(id)\n ? action.payload\n : {}\n : action;\n\n/**\n * Returns an action dispatcher that wraps and forwards the actions to a specific instance\n * @memberof forwardActions\n * @param {string} id - instance id\n * @param {Function} dispatch - action dispatcher\n * @public\n * @example\n *\n * // action and forward dispatcher\n * import {toggleSplitMap, forwardTo} from '@kepler.gl/actions';\n * import {connect} from 'react-redux';\n *\n * const MapContainer = props => (\n * <div>\n * <button onClick={() => props.keplerGlDispatch(toggleSplitMap())}/>\n * </div>\n * )\n *\n * const mapDispatchToProps = (dispatch, props) => ({\n * dispatch,\n * keplerGlDispatch: forwardTo(‘foo’, dispatch)\n * });\n *\n * export default connect(\n * state => state,\n * mapDispatchToProps\n * )(MapContainer);\n */\nexport const forwardTo =\n (id: string, dispatch: Dispatch<IKeplerGlAction>) => (action: IKeplerGlAction) =>\n dispatch(wrapTo(id, action));\n\n/**\n * Update the state of a kepler.gl instance\n * @memberof forwardActions\n * @param {Object} state\n * @param {string} id\n * @param {Object} nextState\n * @private\n */\nexport const _updateProperty = (state, id: string, nextState) =>\n state[id] === nextState\n ? state\n : {\n ...state,\n [id]: nextState\n };\n\n/**\n * This declaration is needed to group actions in docs\n */\n/**\n * A set of helpers to forward dispatch actions to a specific instance reducer\n * @public\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// @ts-ignore\nconst forwardActions = null;\n/* eslint-enable @typescript-eslint/no-unused-vars */\n"],"mappings":";;;;;;;;AAQA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,CAAA,IAAAE,MAAA,CAAAgB,cAAA,CAAAnB,CAAA,EAAAC,CAAA,EAAAE,MAAA,CAAAK,wBAAA,CAAAN,CAAA,EAAA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KAAKsB,SAAS,GACnBD,KAAK,GAAAjC,aAAA,CAAAA,aAAA,KAEAiC,KAAK,WAAA7B,gBAAA,iBACPQ,EAAE,EAAGsB,SAAS,EAChB;AAAA;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,cAAc,GAAG,IAAI;AAC3B","ignoreList":[]}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.resetMapConfig = exports.replaceDataInMap = exports.receiveMapConfig = exports.keplerGlInit = exports.addDataToMap = void 0;
|
|
8
|
+
var _actionTypes = _interopRequireDefault(require("./action-types"));
|
|
9
|
+
var _toolkit = require("@reduxjs/toolkit");
|
|
10
|
+
// SPDX-License-Identifier: MIT
|
|
11
|
+
// Copyright contributors to the kepler.gl project
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Add data to kepler.gl reducer, prepare map with preset configuration if config is passed.
|
|
15
|
+
* Kepler.gl provides a handy set of utils to parse data from different formats to the `data` object required in dataset. You rarely need to manually format the data obejct.
|
|
16
|
+
*
|
|
17
|
+
* Use `KeplerGlSchema.getConfigToSave` to generate a json blob of the currents instance config.
|
|
18
|
+
* The config object value will always have higher precedence than the options properties.
|
|
19
|
+
*
|
|
20
|
+
* Kepler.gl uses `dataId` in the config to match with loaded dataset. If you pass a config object, you need
|
|
21
|
+
* to match the `info.id` of your dataset to the `dataId` in each `layer`, `filter` and `interactionConfig.tooltips.fieldsToShow`
|
|
22
|
+
*
|
|
23
|
+
* @memberof main
|
|
24
|
+
* @param {Object} data
|
|
25
|
+
* @param {Array<Object>|Object} data.datasets - ***required** datasets can be a dataset or an array of datasets
|
|
26
|
+
* Each dataset object needs to have `info` and `data` property.
|
|
27
|
+
* @param {Object} data.datasets.info -info of a dataset
|
|
28
|
+
* @param {string} data.datasets.info.id - id of this dataset. If config is defined, `id` should matches the `dataId` in config.
|
|
29
|
+
* @param {string} data.datasets.info.label - A display name of this dataset
|
|
30
|
+
* @param {Object} data.datasets.data - ***required** The data object, in a tabular format with 2 properties `fields` and `rows`
|
|
31
|
+
* @param {Array<Object>} data.datasets.data.fields - ***required** Array of fields,
|
|
32
|
+
* @param {string} data.datasets.data.fields.name - ***required** Name of the field,
|
|
33
|
+
* @param {Array<Array>} data.datasets.data.rows - ***required** Array of rows, in a tabular format with `fields` and `rows`
|
|
34
|
+
*
|
|
35
|
+
* @param {Object} data.options
|
|
36
|
+
* @param {boolean} data.options.centerMap `default: true` if `centerMap` is set to `true` kepler.gl will
|
|
37
|
+
* place the map view within the data points boundaries. `options.centerMap` will override `config.mapState` if passed in.
|
|
38
|
+
* @param {Number|Object} data.options.padding padding in pixels applied when `centerMap` is true so data is not hidden
|
|
39
|
+
* under the side panel or other UI. Can be a number or `{top, bottom, left, right}`.
|
|
40
|
+
* @param {boolean} data.options.readOnly `default: false` if `readOnly` is set to `true`
|
|
41
|
+
* the left setting panel will be hidden
|
|
42
|
+
* @param {boolean} data.options.keepExistingConfig whether to keep exiting map data and associated layer filter interaction config `default: false`.
|
|
43
|
+
* To append, upsert, or delete rows on an existing in-memory row or Arrow dataset without replacing it or creating layers, use `addToDataset` / `removeFromDataset`. DuckDB tables do not support those actions yet.
|
|
44
|
+
* @param {Object} data.config this object will contain the full kepler.gl instance configuration {mapState, mapStyle, visState}
|
|
45
|
+
* @public
|
|
46
|
+
* @example
|
|
47
|
+
*
|
|
48
|
+
* // app.js
|
|
49
|
+
* import {addDataToMap} from '@kepler.gl/actions';
|
|
50
|
+
*
|
|
51
|
+
* const sampleTripData = {
|
|
52
|
+
* fields: [
|
|
53
|
+
* {name: 'tpep_pickup_datetime', format: 'YYYY-M-D H:m:s', type: 'timestamp'},
|
|
54
|
+
* {name: 'pickup_longitude', format: '', type: 'real'},
|
|
55
|
+
* {name: 'pickup_latitude', format: '', type: 'real'}
|
|
56
|
+
* ],
|
|
57
|
+
* rows: [
|
|
58
|
+
* ['2015-01-15 19:05:39 +00:00', -73.99389648, 40.75011063],
|
|
59
|
+
* ['2015-01-15 19:05:39 +00:00', -73.97642517, 40.73981094],
|
|
60
|
+
* ['2015-01-15 19:05:40 +00:00', -73.96870422, 40.75424576],
|
|
61
|
+
* ]
|
|
62
|
+
* };
|
|
63
|
+
*
|
|
64
|
+
* const sampleConfig = {
|
|
65
|
+
* visState: {
|
|
66
|
+
* filters: [
|
|
67
|
+
* {
|
|
68
|
+
* id: 'me',
|
|
69
|
+
* dataId: 'test_trip_data',
|
|
70
|
+
* name: 'tpep_pickup_datetime',
|
|
71
|
+
* type: 'timeRange',
|
|
72
|
+
* view: 'enlarged'
|
|
73
|
+
* }
|
|
74
|
+
* ]
|
|
75
|
+
* }
|
|
76
|
+
* }
|
|
77
|
+
*
|
|
78
|
+
* this.props.dispatch(
|
|
79
|
+
* addDataToMap({
|
|
80
|
+
* datasets: {
|
|
81
|
+
* info: {
|
|
82
|
+
* label: 'Sample Taxi Trips in New York City',
|
|
83
|
+
* id: 'test_trip_data'
|
|
84
|
+
* },
|
|
85
|
+
* data: sampleTripData
|
|
86
|
+
* },
|
|
87
|
+
* options: {
|
|
88
|
+
* centerMap: true,
|
|
89
|
+
* padding: {left: 300, top: 24, right: 24, bottom: 24},
|
|
90
|
+
* readOnly: false,
|
|
91
|
+
* keepExistingConfig: false
|
|
92
|
+
* },
|
|
93
|
+
* info: {
|
|
94
|
+
* title: 'Taro and Blue',
|
|
95
|
+
* description: 'This is my map'
|
|
96
|
+
* },
|
|
97
|
+
* config: sampleConfig
|
|
98
|
+
* })
|
|
99
|
+
* );
|
|
100
|
+
*/
|
|
101
|
+
var addDataToMap = exports.addDataToMap = (0, _toolkit.createAction)(_actionTypes["default"].ADD_DATA_TO_MAP, function (data) {
|
|
102
|
+
return {
|
|
103
|
+
payload: data
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Reset all sub-reducers to its initial state. This can be used to clear out all configuration in the reducer.
|
|
109
|
+
* @memberof main
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
var resetMapConfig = exports.resetMapConfig = (0, _toolkit.createAction)(_actionTypes["default"].RESET_MAP_CONFIG);
|
|
113
|
+
/**
|
|
114
|
+
* Pass config to kepler.gl instance, prepare the state with preset configs.
|
|
115
|
+
* Calling `KeplerGlSchema.parseSavedConfig` to convert saved config before passing it in is required.
|
|
116
|
+
*
|
|
117
|
+
* You can call `receiveMapConfig` before passing in any data. The reducer will store layer and filter config, waiting for
|
|
118
|
+
* data to come in. When data arrives, you can call `addDataToMap` without passing any config, and the reducer will try to match
|
|
119
|
+
* preloaded configs. This behavior is designed to allow asynchronous data loading.
|
|
120
|
+
*
|
|
121
|
+
* It is also useful when you want to prepare the kepler.gl instance with some preset layer and filter settings.
|
|
122
|
+
* **Note** Sequence is important, `receiveMapConfig` needs to be called __before__ data is loaded. Currently kepler.gl doesn't allow calling `receiveMapConfig` after data is loaded.
|
|
123
|
+
* It will reset current configuration first then apply config to it.
|
|
124
|
+
* @memberof main
|
|
125
|
+
* @param {Object} config - ***required** The Config Object
|
|
126
|
+
* @param {Object} options - ***optional** The Option object
|
|
127
|
+
* @param {boolean} options.centerMap `default: true` if `centerMap` is set to `true` kepler.gl will
|
|
128
|
+
* place the map view within the data points boundaries
|
|
129
|
+
* @param {Number|Object} options.padding padding in pixels applied when `centerMap` is true so data is not hidden
|
|
130
|
+
* under the side panel or other UI. Can be a number or `{top, bottom, left, right}`.
|
|
131
|
+
* @param {boolean} options.readOnly `default: false` if `readOnly` is set to `true`
|
|
132
|
+
* the left setting panel will be hidden
|
|
133
|
+
* @param {boolean} options.keepExistingConfig whether to keep exiting layer filter and interaction config `default: false`.
|
|
134
|
+
* @param {boolean} options.autoCreateLayers whether to automatically create layers based on dataset columns `default: true`.
|
|
135
|
+
* @public
|
|
136
|
+
* @example
|
|
137
|
+
* import {receiveMapConfig} from '@kepler.gl/actions';
|
|
138
|
+
* import KeplerGlSchema from '@kepler.gl/schemas';
|
|
139
|
+
*
|
|
140
|
+
* const parsedConfig = KeplerGlSchema.parseSavedConfig(config);
|
|
141
|
+
* this.props.dispatch(receiveMapConfig(parsedConfig));
|
|
142
|
+
*/
|
|
143
|
+
var receiveMapConfig = exports.receiveMapConfig = (0, _toolkit.createAction)(_actionTypes["default"].RECEIVE_MAP_CONFIG, function (config, options) {
|
|
144
|
+
return {
|
|
145
|
+
payload: {
|
|
146
|
+
config: config,
|
|
147
|
+
options: options
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
});
|
|
151
|
+
/**
|
|
152
|
+
* Initialize kepler.gl reducer. It is used to pass in `mapboxApiAccessToken` to `mapStyle` reducer.
|
|
153
|
+
* @memberof main
|
|
154
|
+
* @param {object} payload
|
|
155
|
+
* @param payload.mapboxApiAccessToken - mapboxApiAccessToken to be saved to mapStyle reducer
|
|
156
|
+
* @param payload.mapboxApiUrl - mapboxApiUrl to be saved to mapStyle reducer.
|
|
157
|
+
* @param payload.mapStylesReplaceDefault - mapStylesReplaceDefault to be saved to mapStyle reducer
|
|
158
|
+
* @param payload.initialUiState - initial ui state
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
// @ts-expect-error
|
|
162
|
+
var keplerGlInit = exports.keplerGlInit = (0, _toolkit.createAction)(_actionTypes["default"].INIT, function (payload) {
|
|
163
|
+
return {
|
|
164
|
+
payload: payload
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
/**
|
|
168
|
+
* Initialize kepler.gl reducer. It is used to pass in `mapboxApiAccessToken` to `mapStyle` reducer.
|
|
169
|
+
* @memberof main
|
|
170
|
+
* @param payload
|
|
171
|
+
* @param payload.datasetToReplaceId - mapboxApiAccessToken to be saved to mapStyle reducer
|
|
172
|
+
* @param payload.datasetToUse - mapboxApiUrl to be saved to mapStyle reducer.
|
|
173
|
+
* @public
|
|
174
|
+
*/
|
|
175
|
+
var replaceDataInMap = exports.replaceDataInMap = (0, _toolkit.createAction)(_actionTypes["default"].REPLACE_DATA_IN_MAP, function (payload) {
|
|
176
|
+
return {
|
|
177
|
+
payload: payload
|
|
178
|
+
};
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* This declaration is needed to group actions in docs
|
|
183
|
+
*/
|
|
184
|
+
/**
|
|
185
|
+
* Main kepler.gl actions, these actions handles loading data and config into kepler.gl reducer. These actions
|
|
186
|
+
* is listened by all subreducers,
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
190
|
+
// @ts-ignore
|
|
191
|
+
var main = null;
|
|
192
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
193
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","names":["_actionTypes","_interopRequireDefault","require","_toolkit","addDataToMap","exports","createAction","ActionTypes","ADD_DATA_TO_MAP","data","payload","resetMapConfig","RESET_MAP_CONFIG","receiveMapConfig","RECEIVE_MAP_CONFIG","config","options","keplerGlInit","INIT","replaceDataInMap","REPLACE_DATA_IN_MAP","main"],"sources":["../../src/actions.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\nimport {default as ActionTypes} from './action-types';\nimport {createAction} from '@reduxjs/toolkit';\n\nimport {\n AddDataToMapOptions,\n AddDataToMapPayload,\n Bounds,\n UiState,\n ParsedConfig,\n ProtoDataset\n} from '@kepler.gl/types';\n\ntype Handler = (...args: any) => any;\n\nexport type ActionHandler<A extends Handler> = (...args: Parameters<A>) => void;\n\nexport type ActionHandlers<T extends {[k: string]: Handler}> = {\n [K in keyof T]: ActionHandler<T[K]>;\n};\n\n/**\n * Add data to kepler.gl reducer, prepare map with preset configuration if config is passed.\n * Kepler.gl provides a handy set of utils to parse data from different formats to the `data` object required in dataset. You rarely need to manually format the data obejct.\n *\n * Use `KeplerGlSchema.getConfigToSave` to generate a json blob of the currents instance config.\n * The config object value will always have higher precedence than the options properties.\n *\n * Kepler.gl uses `dataId` in the config to match with loaded dataset. If you pass a config object, you need\n * to match the `info.id` of your dataset to the `dataId` in each `layer`, `filter` and `interactionConfig.tooltips.fieldsToShow`\n *\n * @memberof main\n * @param {Object} data\n * @param {Array<Object>|Object} data.datasets - ***required** datasets can be a dataset or an array of datasets\n * Each dataset object needs to have `info` and `data` property.\n * @param {Object} data.datasets.info -info of a dataset\n * @param {string} data.datasets.info.id - id of this dataset. If config is defined, `id` should matches the `dataId` in config.\n * @param {string} data.datasets.info.label - A display name of this dataset\n * @param {Object} data.datasets.data - ***required** The data object, in a tabular format with 2 properties `fields` and `rows`\n * @param {Array<Object>} data.datasets.data.fields - ***required** Array of fields,\n * @param {string} data.datasets.data.fields.name - ***required** Name of the field,\n * @param {Array<Array>} data.datasets.data.rows - ***required** Array of rows, in a tabular format with `fields` and `rows`\n *\n * @param {Object} data.options\n * @param {boolean} data.options.centerMap `default: true` if `centerMap` is set to `true` kepler.gl will\n * place the map view within the data points boundaries. `options.centerMap` will override `config.mapState` if passed in.\n * @param {Number|Object} data.options.padding padding in pixels applied when `centerMap` is true so data is not hidden\n * under the side panel or other UI. Can be a number or `{top, bottom, left, right}`.\n * @param {boolean} data.options.readOnly `default: false` if `readOnly` is set to `true`\n * the left setting panel will be hidden\n * @param {boolean} data.options.keepExistingConfig whether to keep exiting map data and associated layer filter interaction config `default: false`.\n * To append, upsert, or delete rows on an existing in-memory row or Arrow dataset without replacing it or creating layers, use `addToDataset` / `removeFromDataset`. DuckDB tables do not support those actions yet.\n * @param {Object} data.config this object will contain the full kepler.gl instance configuration {mapState, mapStyle, visState}\n * @public\n * @example\n *\n * // app.js\n * import {addDataToMap} from '@kepler.gl/actions';\n *\n * const sampleTripData = {\n * fields: [\n * {name: 'tpep_pickup_datetime', format: 'YYYY-M-D H:m:s', type: 'timestamp'},\n * {name: 'pickup_longitude', format: '', type: 'real'},\n * {name: 'pickup_latitude', format: '', type: 'real'}\n * ],\n * rows: [\n * ['2015-01-15 19:05:39 +00:00', -73.99389648, 40.75011063],\n * ['2015-01-15 19:05:39 +00:00', -73.97642517, 40.73981094],\n * ['2015-01-15 19:05:40 +00:00', -73.96870422, 40.75424576],\n * ]\n * };\n *\n * const sampleConfig = {\n * visState: {\n * filters: [\n * {\n * id: 'me',\n * dataId: 'test_trip_data',\n * name: 'tpep_pickup_datetime',\n * type: 'timeRange',\n * view: 'enlarged'\n * }\n * ]\n * }\n * }\n *\n * this.props.dispatch(\n * addDataToMap({\n * datasets: {\n * info: {\n * label: 'Sample Taxi Trips in New York City',\n * id: 'test_trip_data'\n * },\n * data: sampleTripData\n * },\n * options: {\n * centerMap: true,\n * padding: {left: 300, top: 24, right: 24, bottom: 24},\n * readOnly: false,\n * keepExistingConfig: false\n * },\n * info: {\n * title: 'Taro and Blue',\n * description: 'This is my map'\n * },\n * config: sampleConfig\n * })\n * );\n */\nexport const addDataToMap: (data: AddDataToMapPayload) => {\n type: typeof ActionTypes.ADD_DATA_TO_MAP;\n payload: AddDataToMapPayload;\n} = createAction(ActionTypes.ADD_DATA_TO_MAP, (data: AddDataToMapPayload) => ({payload: data}));\n\n/**\n * Reset all sub-reducers to its initial state. This can be used to clear out all configuration in the reducer.\n * @memberof main\n * @public\n */\nexport const resetMapConfig: () => {type: typeof ActionTypes.RESET_MAP_CONFIG} = createAction(\n ActionTypes.RESET_MAP_CONFIG\n);\n\nexport type ReceiveMapConfigPayload = {\n config: ParsedConfig;\n options?: AddDataToMapOptions;\n bounds?: Bounds;\n};\n/**\n * Pass config to kepler.gl instance, prepare the state with preset configs.\n * Calling `KeplerGlSchema.parseSavedConfig` to convert saved config before passing it in is required.\n *\n * You can call `receiveMapConfig` before passing in any data. The reducer will store layer and filter config, waiting for\n * data to come in. When data arrives, you can call `addDataToMap` without passing any config, and the reducer will try to match\n * preloaded configs. This behavior is designed to allow asynchronous data loading.\n *\n * It is also useful when you want to prepare the kepler.gl instance with some preset layer and filter settings.\n * **Note** Sequence is important, `receiveMapConfig` needs to be called __before__ data is loaded. Currently kepler.gl doesn't allow calling `receiveMapConfig` after data is loaded.\n * It will reset current configuration first then apply config to it.\n * @memberof main\n * @param {Object} config - ***required** The Config Object\n * @param {Object} options - ***optional** The Option object\n * @param {boolean} options.centerMap `default: true` if `centerMap` is set to `true` kepler.gl will\n * place the map view within the data points boundaries\n * @param {Number|Object} options.padding padding in pixels applied when `centerMap` is true so data is not hidden\n * under the side panel or other UI. Can be a number or `{top, bottom, left, right}`.\n * @param {boolean} options.readOnly `default: false` if `readOnly` is set to `true`\n * the left setting panel will be hidden\n * @param {boolean} options.keepExistingConfig whether to keep exiting layer filter and interaction config `default: false`.\n * @param {boolean} options.autoCreateLayers whether to automatically create layers based on dataset columns `default: true`.\n * @public\n * @example\n * import {receiveMapConfig} from '@kepler.gl/actions';\n * import KeplerGlSchema from '@kepler.gl/schemas';\n *\n * const parsedConfig = KeplerGlSchema.parseSavedConfig(config);\n * this.props.dispatch(receiveMapConfig(parsedConfig));\n */\nexport const receiveMapConfig: (\n config: ReceiveMapConfigPayload['config'],\n options: ReceiveMapConfigPayload['options']\n) => {\n type: typeof ActionTypes.RECEIVE_MAP_CONFIG;\n payload: ReceiveMapConfigPayload;\n} = createAction(\n ActionTypes.RECEIVE_MAP_CONFIG,\n (config: ReceiveMapConfigPayload['config'], options: ReceiveMapConfigPayload['options']) => ({\n payload: {\n config,\n options\n }\n })\n);\n\nexport type KeplerGlInitPayload = {\n mapboxApiAccessToken?: string;\n mapboxApiUrl?: string;\n mapStylesReplaceDefault?: boolean;\n initialUiState?: Partial<UiState>;\n};\n/**\n * Initialize kepler.gl reducer. It is used to pass in `mapboxApiAccessToken` to `mapStyle` reducer.\n * @memberof main\n * @param {object} payload\n * @param payload.mapboxApiAccessToken - mapboxApiAccessToken to be saved to mapStyle reducer\n * @param payload.mapboxApiUrl - mapboxApiUrl to be saved to mapStyle reducer.\n * @param payload.mapStylesReplaceDefault - mapStylesReplaceDefault to be saved to mapStyle reducer\n * @param payload.initialUiState - initial ui state\n * @public\n */\n// @ts-expect-error\nexport const keplerGlInit: (options?: KeplerGlInitPayload) => {\n type: typeof ActionTypes.INIT;\n payload: KeplerGlInitPayload;\n} = createAction(ActionTypes.INIT, (payload: KeplerGlInitPayload) => ({payload}));\n\nexport type ReplaceDataToMapOptions = {\n centerMap?: boolean;\n padding?: AddDataToMapOptions['padding'];\n keepExistingConfig?: boolean;\n autoCreateLayers?: boolean;\n /**\n * Remove the dataset being replaced from the map.\n * Layers and filters are remapped onto the new dataset either way.\n * Defaults to `true`.\n */\n deleteOriginalDataset?: boolean;\n};\nexport type ReplaceDataInMapPayload = {\n datasetToReplaceId: string;\n datasetToUse: ProtoDataset;\n options?: ReplaceDataToMapOptions;\n};\n\n/**\n * Initialize kepler.gl reducer. It is used to pass in `mapboxApiAccessToken` to `mapStyle` reducer.\n * @memberof main\n * @param payload\n * @param payload.datasetToReplaceId - mapboxApiAccessToken to be saved to mapStyle reducer\n * @param payload.datasetToUse - mapboxApiUrl to be saved to mapStyle reducer.\n * @public\n */\nexport const replaceDataInMap: (payload: ReplaceDataInMapPayload) => {\n type: typeof ActionTypes.REPLACE_DATA_IN_MAP;\n payload: ReplaceDataInMapPayload;\n} = createAction(ActionTypes.REPLACE_DATA_IN_MAP, (payload: ReplaceDataInMapPayload) => ({\n payload\n}));\n\n/**\n * This declaration is needed to group actions in docs\n */\n/**\n * Main kepler.gl actions, these actions handles loading data and config into kepler.gl reducer. These actions\n * is listened by all subreducers,\n * @public\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// @ts-ignore\nconst main = null;\n/* eslint-enable @typescript-eslint/no-unused-vars */\n"],"mappings":";;;;;;;AAGA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAJA;AACA;;AAsBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAME,YAGZ,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,qBAAY,EAACC,uBAAW,CAACC,eAAe,EAAE,UAACC,IAAyB;EAAA,OAAM;IAACC,OAAO,EAAED;EAAI,CAAC;AAAA,CAAC,CAAC;;AAE/F;AACA;AACA;AACA;AACA;AACO,IAAME,cAAiE,GAAAN,OAAA,CAAAM,cAAA,GAAG,IAAAL,qBAAY,EAC3FC,uBAAW,CAACK,gBACd,CAAC;AAOD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,gBAMZ,GAAAR,OAAA,CAAAQ,gBAAA,GAAG,IAAAP,qBAAY,EACdC,uBAAW,CAACO,kBAAkB,EAC9B,UAACC,MAAyC,EAAEC,OAA2C;EAAA,OAAM;IAC3FN,OAAO,EAAE;MACPK,MAAM,EAANA,MAAM;MACNC,OAAO,EAAPA;IACF;EACF,CAAC;AAAA,CACH,CAAC;AAQD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,YAGZ,GAAAZ,OAAA,CAAAY,YAAA,GAAG,IAAAX,qBAAY,EAACC,uBAAW,CAACW,IAAI,EAAE,UAACR,OAA4B;EAAA,OAAM;IAACA,OAAO,EAAPA;EAAO,CAAC;AAAA,CAAC,CAAC;AAoBjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMS,gBAGZ,GAAAd,OAAA,CAAAc,gBAAA,GAAG,IAAAb,qBAAY,EAACC,uBAAW,CAACa,mBAAmB,EAAE,UAACV,OAAgC;EAAA,OAAM;IACvFA,OAAO,EAAPA;EACF,CAAC;AAAA,CAAC,CAAC;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMW,IAAI,GAAG,IAAI;AACjB","ignoreList":[]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.renameEntry = exports.registerEntry = exports.deleteEntry = void 0;
|
|
8
|
+
var _toolkit = require("@reduxjs/toolkit");
|
|
9
|
+
var _actionTypes = _interopRequireDefault(require("./action-types"));
|
|
10
|
+
// SPDX-License-Identifier: MIT
|
|
11
|
+
// Copyright contributors to the kepler.gl project
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Add a new kepler.gl instance in `keplerGlReducer`. This action is called under-the-hood when a `KeplerGl` component is **mounted** to the dom.
|
|
16
|
+
* Note that if you dispatch actions such as adding data to a kepler.gl instance before the React component is mounted, the action will not be
|
|
17
|
+
* performed. Instance reducer can only handle actions when it is instantiated.
|
|
18
|
+
* @memberof rootActions
|
|
19
|
+
* @param payload
|
|
20
|
+
* @param payload.id - ***required** The id of the instance
|
|
21
|
+
* @param payload.mint - Whether to use a fresh empty state, when `mint: true` it will *always* load a fresh state when the component is re-mounted.
|
|
22
|
+
* When `mint: false` it will register with existing instance state under the same `id`, when the component is unmounted then mounted again. Default: `true`
|
|
23
|
+
* @param payload.mapboxApiAccessToken - mapboxApiAccessToken to be saved in `map-style` reducer.
|
|
24
|
+
* @param payload.mapboxApiUrl - mapboxApiUrl to be saved in `map-style` reducer.
|
|
25
|
+
* @param payload.mapStylesReplaceDefault - mapStylesReplaceDefault to be saved in `map-style` reducer.
|
|
26
|
+
* @param payload.initialUiState - initial ui state
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
var registerEntry = exports.registerEntry = (0, _toolkit.createAction)(_actionTypes["default"].REGISTER_ENTRY, function (payload) {
|
|
30
|
+
return {
|
|
31
|
+
payload: payload
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* Delete an instance from `keplerGlReducer`. This action is called under-the-hood when a `KeplerGl` component is **un-mounted** to the dom.
|
|
38
|
+
* If `mint` is set to be `true` in the component prop, the instance state will be deleted from the root reducer. Otherwise, the root reducer will keep
|
|
39
|
+
* the instance state and later transfer it to a newly mounted component with the same `id`
|
|
40
|
+
* @memberof rootActions
|
|
41
|
+
* @param {string} id - the id of the instance to be deleted
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
var deleteEntry = exports.deleteEntry = (0, _toolkit.createAction)(_actionTypes["default"].DELETE_ENTRY, function (id) {
|
|
45
|
+
return {
|
|
46
|
+
payload: {
|
|
47
|
+
id: id
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* Rename an instance in the root reducer, keep its entire state
|
|
55
|
+
*
|
|
56
|
+
* @memberof rootActions
|
|
57
|
+
* @param {string} oldId - ***required** old id
|
|
58
|
+
* @param {string} newId - ***required** new id
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
var renameEntry = exports.renameEntry = (0, _toolkit.createAction)(_actionTypes["default"].RENAME_ENTRY, function (oldId, newId) {
|
|
62
|
+
return {
|
|
63
|
+
payload: {
|
|
64
|
+
oldId: oldId,
|
|
65
|
+
newId: newId
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* This declaration is needed to group actions in docs
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Root actions managers adding and removing instances in root reducer.
|
|
75
|
+
* Under-the-hood, when a `KeplerGl` component is mounted or unmounted,
|
|
76
|
+
* it will automatically calls these actions to add itself to the root reducer.
|
|
77
|
+
* However, sometimes the data is ready before the component is registered in the reducer,
|
|
78
|
+
* in this case, you can manually call these actions or the corresponding updater to add it to the reducer.
|
|
79
|
+
*
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
var rootActions = null;
|
|
85
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
86
|
+
//# sourceMappingURL=identity-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-actions.js","names":["_toolkit","require","_actionTypes","_interopRequireDefault","registerEntry","exports","createAction","ActionTypes","REGISTER_ENTRY","payload","deleteEntry","DELETE_ENTRY","id","renameEntry","RENAME_ENTRY","oldId","newId","rootActions"],"sources":["../../src/identity-actions.ts"],"sourcesContent":["// SPDX-License-Identifier: MIT\n// Copyright contributors to the kepler.gl project\n\nimport {createAction} from '@reduxjs/toolkit';\nimport {default as ActionTypes} from './action-types';\nimport {UiState} from '@kepler.gl/types';\n\nexport type RegisterEntryUpdaterAction = {\n payload: {\n id: string;\n mint?: boolean;\n mapboxApiAccessToken?: string;\n mapboxApiUrl?: string;\n mapStylesReplaceDefault?: boolean;\n initialUiState?: Partial<UiState>;\n };\n};\n\nexport type RenameEntryUpdaterAction = {\n payload: {\n oldId: string;\n newId: string;\n };\n};\n/**\n *\n * Add a new kepler.gl instance in `keplerGlReducer`. This action is called under-the-hood when a `KeplerGl` component is **mounted** to the dom.\n * Note that if you dispatch actions such as adding data to a kepler.gl instance before the React component is mounted, the action will not be\n * performed. Instance reducer can only handle actions when it is instantiated.\n * @memberof rootActions\n * @param payload\n * @param payload.id - ***required** The id of the instance\n * @param payload.mint - Whether to use a fresh empty state, when `mint: true` it will *always* load a fresh state when the component is re-mounted.\n * When `mint: false` it will register with existing instance state under the same `id`, when the component is unmounted then mounted again. Default: `true`\n * @param payload.mapboxApiAccessToken - mapboxApiAccessToken to be saved in `map-style` reducer.\n * @param payload.mapboxApiUrl - mapboxApiUrl to be saved in `map-style` reducer.\n * @param payload.mapStylesReplaceDefault - mapStylesReplaceDefault to be saved in `map-style` reducer.\n * @param payload.initialUiState - initial ui state\n * @public\n */\nexport const registerEntry: (entry: RegisterEntryUpdaterAction['payload']) => {\n type: typeof ActionTypes.REGISTER_ENTRY;\n payload: RegisterEntryUpdaterAction['payload'];\n} = createAction(ActionTypes.REGISTER_ENTRY, (payload: RegisterEntryUpdaterAction['payload']) => ({\n payload\n}));\n\n/**\n *\n * Delete an instance from `keplerGlReducer`. This action is called under-the-hood when a `KeplerGl` component is **un-mounted** to the dom.\n * If `mint` is set to be `true` in the component prop, the instance state will be deleted from the root reducer. Otherwise, the root reducer will keep\n * the instance state and later transfer it to a newly mounted component with the same `id`\n * @memberof rootActions\n * @param {string} id - the id of the instance to be deleted\n * @public\n */\nexport const deleteEntry: (id: string) => {\n type: typeof ActionTypes.DELETE_ENTRY;\n payload: {id: string};\n} = createAction(ActionTypes.DELETE_ENTRY, (id: string) => ({payload: {id: id}}));\n\n/**\n *\n * Rename an instance in the root reducer, keep its entire state\n *\n * @memberof rootActions\n * @param {string} oldId - ***required** old id\n * @param {string} newId - ***required** new id\n * @public\n */\nexport const renameEntry: (\n oldId: string,\n newId: string\n) => {\n type: typeof ActionTypes.RENAME_ENTRY;\n payload: RenameEntryUpdaterAction['payload'];\n} = createAction(ActionTypes.RENAME_ENTRY, (oldId: string, newId: string) => ({\n payload: {\n oldId,\n newId\n }\n}));\n\n/**\n * This declaration is needed to group actions in docs\n */\n/**\n * Root actions managers adding and removing instances in root reducer.\n * Under-the-hood, when a `KeplerGl` component is mounted or unmounted,\n * it will automatically calls these actions to add itself to the root reducer.\n * However, sometimes the data is ready before the component is registered in the reducer,\n * in this case, you can manually call these actions or the corresponding updater to add it to the reducer.\n *\n * @public\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// @ts-ignore\nconst rootActions = null;\n/* eslint-enable @typescript-eslint/no-unused-vars */\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AAJA;AACA;;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMG,aAGZ,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,qBAAY,EAACC,uBAAW,CAACC,cAAc,EAAE,UAACC,OAA8C;EAAA,OAAM;IAChGA,OAAO,EAAPA;EACF,CAAC;AAAA,CAAC,CAAC;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,WAGZ,GAAAL,OAAA,CAAAK,WAAA,GAAG,IAAAJ,qBAAY,EAACC,uBAAW,CAACI,YAAY,EAAE,UAACC,EAAU;EAAA,OAAM;IAACH,OAAO,EAAE;MAACG,EAAE,EAAEA;IAAE;EAAC,CAAC;AAAA,CAAC,CAAC;;AAEjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,WAMZ,GAAAR,OAAA,CAAAQ,WAAA,GAAG,IAAAP,qBAAY,EAACC,uBAAW,CAACO,YAAY,EAAE,UAACC,KAAa,EAAEC,KAAa;EAAA,OAAM;IAC5EP,OAAO,EAAE;MACPM,KAAK,EAALA,KAAK;MACLC,KAAK,EAALA;IACF;EACF,CAAC;AAAA,CAAC,CAAC;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,WAAW,GAAG,IAAI;AACxB","ignoreList":[]}
|