Created
July 2, 2022 16:27
-
-
Save hasyimibhar/7c88f7353c9ee10949cf37a365d2ba87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { | |
/******/ return installedModules[moduleId].exports; | |
/******/ } | |
/******/ // Create a new module (and put it into the cache) | |
/******/ var module = installedModules[moduleId] = { | |
/******/ i: moduleId, | |
/******/ l: false, | |
/******/ exports: {} | |
/******/ }; | |
/******/ | |
/******/ // Execute the module function | |
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | |
/******/ | |
/******/ // Flag the module as loaded | |
/******/ module.l = true; | |
/******/ | |
/******/ // Return the exports of the module | |
/******/ return module.exports; | |
/******/ } | |
/******/ | |
/******/ | |
/******/ // expose the modules object (__webpack_modules__) | |
/******/ __webpack_require__.m = modules; | |
/******/ | |
/******/ // expose the module cache | |
/******/ __webpack_require__.c = installedModules; | |
/******/ | |
/******/ // define getter function for harmony exports | |
/******/ __webpack_require__.d = function(exports, name, getter) { | |
/******/ if(!__webpack_require__.o(exports, name)) { | |
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | |
/******/ } | |
/******/ }; | |
/******/ | |
/******/ // define __esModule on exports | |
/******/ __webpack_require__.r = function(exports) { | |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
/******/ } | |
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
/******/ }; | |
/******/ | |
/******/ // create a fake namespace object | |
/******/ // mode & 1: value is a module id, require it | |
/******/ // mode & 2: merge all properties of value into the ns | |
/******/ // mode & 4: return value when already ns object | |
/******/ // mode & 8|1: behave like require | |
/******/ __webpack_require__.t = function(value, mode) { | |
/******/ if(mode & 1) value = __webpack_require__(value); | |
/******/ if(mode & 8) return value; | |
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | |
/******/ var ns = Object.create(null); | |
/******/ __webpack_require__.r(ns); | |
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | |
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | |
/******/ return ns; | |
/******/ }; | |
/******/ | |
/******/ // getDefaultExport function for compatibility with non-harmony modules | |
/******/ __webpack_require__.n = function(module) { | |
/******/ var getter = module && module.__esModule ? | |
/******/ function getDefault() { return module['default']; } : | |
/******/ function getModuleExports() { return module; }; | |
/******/ __webpack_require__.d(getter, 'a', getter); | |
/******/ return getter; | |
/******/ }; | |
/******/ | |
/******/ // Object.prototype.hasOwnProperty.call | |
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | |
/******/ | |
/******/ // __webpack_public_path__ | |
/******/ __webpack_require__.p = ""; | |
/******/ | |
/******/ | |
/******/ // Load entry module and return exports | |
/******/ return __webpack_require__(__webpack_require__.s = "./index.js"); | |
/******/ }) | |
/************************************************************************/ | |
/******/ ({ | |
/***/ "./flowmap-layer.js": | |
/*!**************************!*\ | |
!*** ./flowmap-layer.js ***! | |
\**************************/ | |
/*! exports provided: FlowmapLayer */ | |
/***/ (function(module, __webpack_exports__, __webpack_require__) { | |
"use strict"; | |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FlowmapLayer\", function() { return FlowmapLayer; });\n/* harmony import */ var _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @flowmap.gl/layers */ \"@flowmap.gl/layers\");\n/* harmony import */ var _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _deck_gl_layers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @deck.gl/layers */ \"@deck.gl/layers\");\n/* harmony import */ var _deck_gl_layers__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_layers__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\nconst config = {\n darkMode: true,\n colorScheme: 'Teal',\n highlightColor: '#ff9b29',\n opacity: 1.0,\n fadeEnabled: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.fadeEnabled,\n fadeOpacityEnabled: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.fadeOpacityEnabled,\n fadeAmount: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.fadeAmount,\n clusteringEnabled: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.clusteringEnabled,\n clusteringAuto: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.clusteringAuto,\n clusteringLevel: 5,\n clusteringMethod: 'HCA',\n animationEnabled: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.animationEnabled,\n adaptiveScalesEnabled: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.adaptiveScalesEnabled,\n locationTotalsEnabled: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.locationTotalsEnabled,\n locationLabelsEnabled: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.locationLabelsEnabled,\n maxTopFlowsDisplayNum: _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"].defaultProps.maxTopFlowsDisplayNum,\n};\n\nclass FlowmapLayer extends _deck_gl_layers__WEBPACK_IMPORTED_MODULE_1__[\"CompositeLayer\"] {\n renderLayers() {\n return [\n new _flowmap_gl_layers__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"]({\n id: 'my-flowmap-layer',\n data: this.props.data,\n pickable: true,\n opacity: config.opacity,\n darkMode: config.darkMode,\n colorScheme: config.colorScheme,\n fadeAmount: config.fadeAmount,\n fadeEnabled: config.fadeEnabled,\n fadeOpacityEnabled: config.fadeOpacityEnabled,\n locationTotalsEnabled: config.locationTotalsEnabled,\n animationEnabled: config.animationEnabled,\n clusteringEnabled: config.clusteringEnabled,\n clusteringAuto: config.clusteringAuto,\n clusteringLevel: config.clusteringLevel,\n adaptiveScalesEnabled: config.adaptiveScalesEnabled,\n highlightColor: config.highlightColor,\n getLocationId: (loc) => loc.id,\n getLocationLat: (loc) => loc.lat,\n getLocationLon: (loc) => loc.lon,\n getFlowOriginId: (flow) => flow.origin,\n getFlowDestId: (flow) => flow.dest,\n getFlowMagnitude: (flow) => flow.count,\n getLocationName: (loc) => loc.name,\n // onHover: (info) => setTooltip(getTooltipState(info)),\n // onClick: (info) => console.log('clicked', info.type, info.object),\n }),\n ];\n }\n}\n\nFlowmapLayer.layerName = \"FlowmapLayer\";\nFlowmapLayer.defaultProps = defaultProps;\n\n\n\n\n//# sourceURL=webpack:///./flowmap-layer.js?"); | |
/***/ }), | |
/***/ "./index.js": | |
/*!******************!*\ | |
!*** ./index.js ***! | |
\******************/ | |
/*! exports provided: default */ | |
/***/ (function(module, __webpack_exports__, __webpack_require__) { | |
"use strict"; | |
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _flowmap_layer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./flowmap-layer */ \"./flowmap-layer.js\");\n/* global window, global */\n\n\nconst _global = typeof window === 'undefined' ? global : window;\n_global.FlowmapLayerLibrary = { FlowmapLayer: _flowmap_layer__WEBPACK_IMPORTED_MODULE_0__[\"FlowmapLayer\"] };\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (FlowmapLayerLibrary);\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./index.js?"); | |
/***/ }), | |
/***/ "./node_modules/webpack/buildin/global.js": | |
/*!***********************************!*\ | |
!*** (webpack)/buildin/global.js ***! | |
\***********************************/ | |
/*! no static exports found */ | |
/***/ (function(module, exports) { | |
eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack:///(webpack)/buildin/global.js?"); | |
/***/ }), | |
/***/ "@deck.gl/layers": | |
/*!**********************************!*\ | |
!*** external "@deck.gl/layers" ***! | |
\**********************************/ | |
/*! no static exports found */ | |
/***/ (function(module, exports) { | |
eval("module.exports = @deck.gl/layers;\n\n//# sourceURL=webpack:///external_%22@deck.gl/layers%22?"); | |
/***/ }), | |
/***/ "@flowmap.gl/layers": | |
/*!*************************************!*\ | |
!*** external "@flowmap.gl/layers" ***! | |
\*************************************/ | |
/*! no static exports found */ | |
/***/ (function(module, exports) { | |
eval("module.exports = @flowmap.gl/layers;\n\n//# sourceURL=webpack:///external_%22@flowmap.gl/layers%22?"); | |
/***/ }) | |
/******/ }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment