UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

35 lines (33 loc) 4.4 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = RangeFilterFactory; var _react = _interopRequireDefault(require("react")); var _rangeSlider = _interopRequireDefault(require("../common/range-slider")); var _constants = require("@kepler.gl/constants"); // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project RangeFilterFactory.deps = [_rangeSlider["default"]]; function RangeFilterFactory(RangeSlider) { var RangeFilter = function RangeFilter(_ref) { var filter = _ref.filter, setFilter = _ref.setFilter, setFilterPlot = _ref.setFilterPlot; return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(RangeSlider, { range: filter.domain, value0: filter.value[0], value1: filter.value[1], step: filter.step, bins: filter.bins, isEnlarged: filter.view === _constants.FILTER_VIEW_TYPES.enlarged, onChange: setFilter, setFilterPlot: setFilterPlot, inputTheme: "secondary", plotType: filter.plotType })); }; return RangeFilter; } //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9yYW5nZVNsaWRlciIsIl9jb25zdGFudHMiLCJSYW5nZUZpbHRlckZhY3RvcnkiLCJkZXBzIiwiUmFuZ2VTbGlkZXJGYWN0b3J5IiwiUmFuZ2VTbGlkZXIiLCJSYW5nZUZpbHRlciIsIl9yZWYiLCJmaWx0ZXIiLCJzZXRGaWx0ZXIiLCJzZXRGaWx0ZXJQbG90IiwiY3JlYXRlRWxlbWVudCIsInJhbmdlIiwiZG9tYWluIiwidmFsdWUwIiwidmFsdWUiLCJ2YWx1ZTEiLCJzdGVwIiwiYmlucyIsImlzRW5sYXJnZWQiLCJ2aWV3IiwiRklMVEVSX1ZJRVdfVFlQRVMiLCJlbmxhcmdlZCIs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