kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
30 lines (28 loc) • 3.68 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getFileFormatNames = exports.getFileExtensions = void 0;
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
var _reselect = require("reselect");
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
// NOTE: default formats must match file-handler-test.js
var DEFAULT_FILE_EXTENSIONS = ['csv', 'json', 'geojson', 'arrow', 'parquet'];
var DEFAULT_FILE_FORMATS = ['CSV', 'Json', 'GeoJSON', 'Arrow', 'Parquet'];
var getFileFormatNames = exports.getFileFormatNames = (0, _reselect.createSelector)(function (state) {
return state.loaders;
}, function (loaders) {
return [].concat(DEFAULT_FILE_FORMATS, (0, _toConsumableArray2["default"])(loaders.map(function (loader) {
return loader.name;
})));
});
var getFileExtensions = exports.getFileExtensions = (0, _reselect.createSelector)(function (state) {
return state.loaders;
}, function (loaders) {
return [].concat(DEFAULT_FILE_EXTENSIONS, (0, _toConsumableArray2["default"])(loaders.flatMap(function (loader) {
return loader.extensions;
})));
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVzZWxlY3QiLCJyZXF1aXJlIiwiREVGQVVMVF9GSUxFX0VYVEVOU0lPTlMiLCJERUZBVUxUX0ZJTEVfRk9STUFUUyIsImdldEZpbGVGb3JtYXROYW1lcyIsImV4cG9ydHMiLCJjcmVhdGVTZWxlY3RvciIsInN0YXRlIiwibG9hZGVycyIsImNvbmNhdCIsIl90b0NvbnN1bWFibGVBcnJheTIiLCJtYXAiLCJsb2FkZXIiLCJuYW1lIiwiZ2V0RmlsZUV4dGVuc2lvbnMiLCJmbGF0TWFwIiwiZXh0ZW5zaW9ucyJdLCJzb3VyY2VzIjpbIi4uL3NyYy92aXMtc3RhdGUtc2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