kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
27 lines (24 loc) • 2.77 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.enhanceReduxMiddleware = enhanceReduxMiddleware;
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
var _tasks = require("react-palm/tasks");
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
// Extra helpers for redux
// We are exposing this secause react-palm has no UMD module and
// users need taskMiddleware to initiate their redux middle ware
/**
* This method is used to enhance redux middleware and provide
* functionality to support react-palm
* @param middlewares current redux middlewares
* @returns {*[]} the original list of middlewares plus the react-palm middleware
*/
function enhanceReduxMiddleware() {
var middlewares = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
return [].concat((0, _toConsumableArray2["default"])(middlewares), [_tasks.taskMiddleware]);
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfdGFza3MiLCJyZXF1aXJlIiwiZW5oYW5jZVJlZHV4TWlkZGxld2FyZSIsIm1pZGRsZXdhcmVzIiwiYXJndW1lbnRzIiwibGVuZ3RoIiwidW5kZWZpbmVkIiwiY29uY2F0IiwiX3RvQ29uc3VtYWJsZUFycmF5MiIsInRhc2tNaWRkbGV3YXJlIl0sInNvdXJjZXMiOlsiLi4vc3JjL21pZGRsZXdhcmUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVFxuLy8gQ29weXJpZ2h0IGNvbnRyaWJ1dG9ycyB0byB0aGUga2VwbGVyLmdsIHByb2plY3RcblxuLy8gRXh0cmEgaGVscGVycyBmb3IgcmVkdXhcbi8vIFdlIGFyZSBleHBvc2luZyB0aGlzIHNlY2F1c2UgcmVhY3QtcGFsbSBoYXMgbm8gVU1EIG1vZHVsZSBhbmRcbi8v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