Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[chore] Update Comments in actions (#3098)

Indranil Halderda38e26b9365
diff --git a/src/actions/src/action-types.ts b/src/actions/src/action-types.ts
index 7499abd55..2d4c55f9a 100644
--- a/src/actions/src/action-types.ts
+++ b/src/actions/src/action-types.ts
@@ -15,8 +15,8 @@ export const ACTION_PREFIX = '@@kepler.gl/';
* import {createStore, combineReducers, applyMiddleware} from 'redux';
* import {taskMiddleware} from 'react-palm/tasks';
*
- * import keplerGlReducer from 'kepler.gl/reducers';
- * import {ActionTypes} from 'kepler.gl/actions';
+ * import keplerGlReducer from '@kepler.gl/reducers';
+ * import {ActionTypes} from '@kepler.gl/actions';
*
* const appReducer = handleActions({
* // listen on kepler.gl map update action to store a copy of viewport in app state
diff --git a/src/actions/src/action-wrapper.ts b/src/actions/src/action-wrapper.ts
index f571838c5..3863ea682 100644
--- a/src/actions/src/action-wrapper.ts
+++ b/src/actions/src/action-wrapper.ts
@@ -56,7 +56,7 @@ export const getActionForwardAddress = (id: string) => `${ADDRESS_PREFIX}${id.to
* @public
* @example
*
- * import {wrapTo, togglePerspective} from 'kepler.gl/actions';
+ * import {wrapTo, togglePerspective} from '@kepler.gl/actions';
*
* // This action will only dispatch to the KeplerGl instance with `id: map_1`
* this.props.dispatch(wrapTo('map_1', togglePerspective()));
@@ -131,7 +131,7 @@ export const _actionFor = (id: string, action: IKeplerGlAction) =>
* @example
*
* // action and forward dispatcher
- * import {toggleSplitMap, forwardTo} from 'kepler.gl/actions';
+ * import {toggleSplitMap, forwardTo} from '@kepler.gl/actions';
* import {connect} from 'react-redux';
*
* const MapContainer = props => (
diff --git a/src/actions/src/actions.ts b/src/actions/src/actions.ts
index cf3b1fe76..01597b064 100644
--- a/src/actions/src/actions.ts
+++ b/src/actions/src/actions.ts
@@ -54,7 +54,7 @@ export type ActionHandlers<T extends {[k: string]: Handler}> = {
* @example
*
* // app.js
- * import {addDataToMap} from 'kepler.gl/actions';
+ * import {addDataToMap} from '@kepler.gl/actions';
*
* const sampleTripData = {
* fields: [
@@ -146,8 +146,8 @@ export type ReceiveMapConfigPayload = {
* @param {boolean} options.autoCreateLayers whether to automatically create layers based on dataset columns `default: true`.
* @public
* @example
- * import {receiveMapConfig} from 'kepler.gl/actions';
- * import KeplerGlSchema from 'kepler.gl/schemas';
+ * import {receiveMapConfig} from '@kepler.gl/actions';
+ * import KeplerGlSchema from '@kepler.gl/schemas';
*
* const parsedConfig = KeplerGlSchema.parseSavedConfig(config);
* this.props.dispatch(receiveMapConfig(parsedConfig));
diff --git a/src/actions/src/map-state-actions.ts b/src/actions/src/map-state-actions.ts
index a79d25a37..84bbd17cb 100644
--- a/src/actions/src/map-state-actions.ts
+++ b/src/actions/src/map-state-actions.ts
@@ -12,7 +12,7 @@ export type TogglePerspectiveUpdaterAction = void;
* @memberof mapStateActions
* @public
* @example
- * import {togglePerspective} from 'kepler.gl/actions';
+ * import {togglePerspective} from '@kepler.gl/actions';
* this.props.dispatch(togglePerspective());
*/
export const togglePerspective: () => Merge<
@@ -27,7 +27,7 @@ export type FitBoundsUpdaterAction = {payload: Bounds};
* @param {Array<Number>} bounds as `[lngMin, latMin, lngMax, latMax]`
* @public
* @example
- * import {fitBounds} from 'kepler.gl/actions';
+ * import {fitBounds} from '@kepler.gl/actions';
* this.props.dispatch(fitBounds([-122.23, 37.127, -122.11, 37.456]));
*/
export const fitBounds: (
@@ -53,7 +53,7 @@ export type UpdateMapUpdaterAction = {payload: {viewport: Viewport; mapIndex?: n
* @param {number} mapIndex Index of which map to update the viewport of
* @public
* @example
- * import {updateMap} from 'kepler.gl/actions';
+ * import {updateMap} from '@kepler.gl/actions';
* this.props.dispatch(updateMap({latitude: 37.75043, longitude: -122.34679, width: 800, height: 1200}, 0));
*/
@@ -79,7 +79,7 @@ export type ToggleSplitMapUpdaterAction = {
* @param {Number} [index] index is provided, close split map at index
* @public
* @example
- * import {toggleSplitMap} from 'kepler.gl/actions';
+ * import {toggleSplitMap} from '@kepler.gl/actions';
* this.props.dispatch(toggleSplitMap());
*/
export const toggleSplitMap: (
diff --git a/src/actions/src/vis-state-actions.ts b/src/actions/src/vis-state-actions.ts
index 36850107f..603cd0b9c 100644
--- a/src/actions/src/vis-state-actions.ts
+++ b/src/actions/src/vis-state-actions.ts
@@ -1452,8 +1452,8 @@ export type SetEditorModeUpdaterAction = {
* @returns action
* @public
* @example
- * import {setMapMode} from 'kepler.gl/actions';
- * import {EDITOR_MODES} from 'kepler.gl/constants';
+ * import {setMapMode} from '@kepler.gl/actions';
+ * import {EDITOR_MODES} from '@kepler.gl/constants';
*
* this.props.dispatch(setMapMode(EDITOR_MODES.DRAW_POLYGON));
*/