UNPKG

kepler.gl

Version:

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

39 lines (36 loc) 3.86 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project // This is a dummy component that can be replaced to inject more side panel sub panels into the side bar function CustomPanelsFactory() { var CustomPanels = function CustomPanels() { return /*#__PURE__*/_react["default"].createElement("div", null); }; // provide a list of additional panels CustomPanels.panels = [ // { // id: 'rocket', // label: 'Rocket', // iconComponent: Icons.Rocket // }, // { // id: 'chart', // label: 'Chart', // iconComponent: Icons.LineChart // } ]; // prop selector from side panel props // eslint-disable-next-line @typescript-eslint/no-unused-vars CustomPanels.getProps = function (sidePanelProps) { return {}; }; return CustomPanels; } var _default = exports["default"] = CustomPanelsFactory; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIkN1c3RvbVBhbmVsc0ZhY3RvcnkiLCJDdXN0b21QYW5lbHMiLCJjcmVhdGVFbGVtZW50IiwicGFuZWxzIiwiZ2V0UHJvcHMiLCJzaWRlUGFuZWxQcm9wcyIsIl9kZWZhdWx0IiwiZXhwb3J0cyJdLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaWRlLXBhbmVsL2N1c3RvbS1wYW5lbC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiLy8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IE1JVFxuLy8gQ29weXJpZ2h0IGNvbnRyaWJ1dG9ycyB0byB0aGUga2VwbGVyLmdsIHByb2plY3RcblxuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7U2lkZVBhbmVsSXRlbSwgU2lkZVBhbmVsUHJvcHN9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