{"version":3,"sources":["webpack://NeoVis/webpack/universalModuleDefinition","webpack://NeoVis/webpack/bootstrap","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/helpers/defineProperty\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/defineProperty\",\"amd\":\"@babel/runtime-corejs3/helpers/defineProperty\"}","webpack://NeoVis/external {\"commonjs\":\"neo4j-driver\",\"commonjs2\":\"neo4j-driver\",\"amd\":\"neo4j-driver\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/regenerator\",\"commonjs2\":\"@babel/runtime-corejs3/regenerator\",\"amd\":\"@babel/runtime-corejs3/regenerator\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/values\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/values\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/values\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/helpers/createClass\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/createClass\",\"amd\":\"@babel/runtime-corejs3/helpers/createClass\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/symbol\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/symbol\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/symbol\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/keys\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/keys\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/keys\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js/get-iterator\",\"commonjs2\":\"@babel/runtime-corejs3/core-js/get-iterator\",\"amd\":\"@babel/runtime-corejs3/core-js/get-iterator\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js/get-iterator-method\",\"commonjs2\":\"@babel/runtime-corejs3/core-js/get-iterator-method\",\"amd\":\"@babel/runtime-corejs3/core-js/get-iterator-method\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/array/from\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/array/from\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/array/from\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/slice\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/slice\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/slice\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/helpers/classCallCheck\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/classCallCheck\",\"amd\":\"@babel/runtime-corejs3/helpers/classCallCheck\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/helpers/asyncToGenerator\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/asyncToGenerator\",\"amd\":\"@babel/runtime-corejs3/helpers/asyncToGenerator\"}","webpack://NeoVis/external {\"commonjs\":\"vis-network/standalone\",\"commonjs2\":\"vis-network/standalone\",\"amd\":\"vis-network/standalone\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/promise\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/promise\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/promise\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/define-property\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/define-property\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/define-property\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/define-properties\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/define-properties\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/define-properties\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/filter\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/filter\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/filter\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/map\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/map\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/map\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\"}","webpack://NeoVis/external {\"commonjs\":\"@babel/runtime-corejs3/helpers/typeof\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/typeof\",\"amd\":\"@babel/runtime-corejs3/helpers/typeof\"}","webpack://NeoVis/./src/defaults.js","webpack://NeoVis/./src/events.js","webpack://NeoVis/./src/neovis.js"],"names":["root","factory","exports","module","require","define","amd","undefined","window","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__1__","__WEBPACK_EXTERNAL_MODULE__2__","__WEBPACK_EXTERNAL_MODULE__3__","__WEBPACK_EXTERNAL_MODULE__4__","__WEBPACK_EXTERNAL_MODULE__5__","__WEBPACK_EXTERNAL_MODULE__6__","__WEBPACK_EXTERNAL_MODULE__7__","__WEBPACK_EXTERNAL_MODULE__8__","__WEBPACK_EXTERNAL_MODULE__9__","__WEBPACK_EXTERNAL_MODULE__10__","__WEBPACK_EXTERNAL_MODULE__11__","__WEBPACK_EXTERNAL_MODULE__12__","__WEBPACK_EXTERNAL_MODULE__13__","__WEBPACK_EXTERNAL_MODULE__14__","__WEBPACK_EXTERNAL_MODULE__15__","__WEBPACK_EXTERNAL_MODULE__16__","__WEBPACK_EXTERNAL_MODULE__17__","__WEBPACK_EXTERNAL_MODULE__18__","__WEBPACK_EXTERNAL_MODULE__19__","__WEBPACK_EXTERNAL_MODULE__20__","__WEBPACK_EXTERNAL_MODULE__21__","__WEBPACK_EXTERNAL_MODULE__22__","__WEBPACK_EXTERNAL_MODULE__23__","__WEBPACK_EXTERNAL_MODULE__24__","__WEBPACK_EXTERNAL_MODULE__25__","__WEBPACK_EXTERNAL_MODULE__26__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","defaults","neo4j","initialQuery","neo4jUri","neo4jUser","neo4jPassword","encrypted","trust","visjs","interaction","hover","hoverConnectedEdges","selectConnectedEdges","multiselect","zoomView","experimental","physics","barnesHut","damping","nodes","mass","shape","labelHighlightBold","widthConstraint","maximum","heightConstraint","edges","hoverWidth","selectionWidth","smooth","type","roundness","font","size","strokeWidth","align","color","inherit","arrows","to","enabled","scaleFactor","EventController","this","_handlers","eventType","handler","Error","push","values","NEOVIS_DEFAULT_CONFIG","NeoVis","config","_init","_consoleLog","_data","message","level","_config","console_debug","console","labels","relationships","_encrypted","_trust","_driver","Neo4j","driver","server_url","auth","basic","server_user","server_password","maxConnectionPoolSize","connectionAcquisitionTimeout","_database","server_database","_query","initial_cypher","_container","document","getElementById","container_id","node","_nodes","id","edge","_edges","neo4jNode","label","labelConfig","captionKey","sizeKey","sizeCypher","communityKey","imageUrl","title_properties","properties","identity","toInt","raw","session","database","readTransaction","tx","run","result","records","record","v","isInt","toNumber","close","sizeProp","inSafeRange","toString","group","e","title","propertyToString","image","nodeTypeConfig","weightKey","thickness","caption","from","start","end","length","out","val","query","recordCount","dataBuildPromises","limit","subscribe","onNext","constructor","dataPromises","toObject","a","types","Node","buildNodeVisObject","_addNode","Relationship","buildEdgeVisObject","_addEdge","Path","startNode","endNode","segments","obj","relationship","Array","all","onCompleted","_network","body","data","update","options","scaling","layout","improvedLayout","hierarchical","sortMethod","hierarchical_sort_method","adaptiveTimestep","stabilization","iterations","fit","container","vis","stopSimulation","_events","generateEvent","record_count","neoVis","on","params","nodeId","getNodeAt","pointer","DOM","edgeId","getEdgeAt","onError","error","error_msg","_neo4jNodes","_neo4jEdges","setData","register","render","clearNetwork"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,iDAAkDA,QAAQ,gBAAiBA,QAAQ,sCAAuCA,QAAQ,uDAAwDA,QAAQ,wDAAyDA,QAAQ,8CAA+CA,QAAQ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UAAUF,EAAOG,QAAQC,KAC3CN,EAAOH,QAAQC,cDrcQ,YCqcsB,CAAEK,OAAQA,EAAQlG,KAAM+F,EAAO9F,OAAOiG,UAC7E,GAAID,EAAO1J,MAAMsG,OAAS,EAAG,CACnC,IAAIyD,EAAS9I,KAAK+I,UAAUN,EAAOG,QAAQC,KAC3CN,EAAOH,QAAQC,cDvcQ,YCucsB,CAAES,OAAQA,EAAQnG,KAAM4F,EAAO3F,OAAOkG,SA5FzE,2CAAF,4CAgGXE,QAAS,SAACC,GACT,EAAKtI,YAAYsI,EAAO,SACxB,EAAKb,QAAQC,cD5cQ,QC4ckB,CAAEa,UAAWD,S,qCASvDjJ,KAAKmJ,YAAc,GACnBnJ,KAAKoJ,YAAc,GACnBpJ,KAAKyC,OAAS,GACdzC,KAAK4C,OAAS,GACd5C,KAAKkH,SAASmC,QAAQ,M,sCASPnJ,EAAWC,GAC1BH,KAAKoI,QAAQkB,SAASpJ,EAAWC,K,6BAQ3BM,GACNT,KAAKU,MAAMD,GACXT,KAAKuJ,W,+BAOLvJ,KAAKwJ,eACLxJ,KAAKuJ,W,kCAOLvJ,KAAKkH,SAASiB,iBACdnI,KAAKW,YAAY,4B,uCAOD6E,GAEhBxF,KAAKwJ,eACLxJ,KAAKkC,OAASsD,EACdxF,KAAKuJ,W,uCAQW/D,GAChBxF,KAAKuJ,OAAO/D,O","file":"neovis-without-dependencies.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@babel/runtime-corejs3/helpers/defineProperty\"), require(\"neo4j-driver\"), require(\"@babel/runtime-corejs3/regenerator\"), require(\"@babel/runtime-corejs3/core-js-stable/object/values\"), require(\"@babel/runtime-corejs3/core-js-stable/array/is-array\"), require(\"@babel/runtime-corejs3/helpers/createClass\"), require(\"@babel/runtime-corejs3/core-js-stable/symbol\"), require(\"@babel/runtime-corejs3/core-js-stable/object/keys\"), require(\"@babel/runtime-corejs3/core-js/get-iterator\"), require(\"@babel/runtime-corejs3/core-js/get-iterator-method\"), require(\"@babel/runtime-corejs3/core-js-stable/array/from\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/slice\"), require(\"@babel/runtime-corejs3/helpers/classCallCheck\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"), require(\"@babel/runtime-corejs3/helpers/asyncToGenerator\"), require(\"vis-network/standalone\"), require(\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors\"), require(\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor\"), require(\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols\"), require(\"@babel/runtime-corejs3/core-js-stable/promise\"), require(\"@babel/runtime-corejs3/core-js-stable/object/define-property\"), require(\"@babel/runtime-corejs3/core-js-stable/object/define-properties\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/filter\"), require(\"@babel/runtime-corejs3/core-js-stable/set-timeout\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/map\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/concat\"), require(\"@babel/runtime-corejs3/helpers/typeof\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@babel/runtime-corejs3/helpers/defineProperty\", \"neo4j-driver\", \"@babel/runtime-corejs3/regenerator\", \"@babel/runtime-corejs3/core-js-stable/object/values\", \"@babel/runtime-corejs3/core-js-stable/array/is-array\", \"@babel/runtime-corejs3/helpers/createClass\", \"@babel/runtime-corejs3/core-js-stable/symbol\", \"@babel/runtime-corejs3/core-js-stable/object/keys\", \"@babel/runtime-corejs3/core-js/get-iterator\", \"@babel/runtime-corejs3/core-js/get-iterator-method\", \"@babel/runtime-corejs3/core-js-stable/array/from\", \"@babel/runtime-corejs3/core-js-stable/instance/slice\", \"@babel/runtime-corejs3/helpers/classCallCheck\", \"@babel/runtime-corejs3/core-js-stable/instance/for-each\", \"@babel/runtime-corejs3/helpers/asyncToGenerator\", \"vis-network/standalone\", \"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors\", \"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor\", \"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols\", \"@babel/runtime-corejs3/core-js-stable/promise\", \"@babel/runtime-corejs3/core-js-stable/object/define-property\", \"@babel/runtime-corejs3/core-js-stable/object/define-properties\", \"@babel/runtime-corejs3/core-js-stable/instance/filter\", \"@babel/runtime-corejs3/core-js-stable/set-timeout\", \"@babel/runtime-corejs3/core-js-stable/instance/map\", \"@babel/runtime-corejs3/core-js-stable/instance/concat\", \"@babel/runtime-corejs3/helpers/typeof\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NeoVis\"] = factory(require(\"@babel/runtime-corejs3/helpers/defineProperty\"), require(\"neo4j-driver\"), require(\"@babel/runtime-corejs3/regenerator\"), require(\"@babel/runtime-corejs3/core-js-stable/object/values\"), require(\"@babel/runtime-corejs3/core-js-stable/array/is-array\"), require(\"@babel/runtime-corejs3/helpers/createClass\"), require(\"@babel/runtime-corejs3/core-js-stable/symbol\"), require(\"@babel/runtime-corejs3/core-js-stable/object/keys\"), require(\"@babel/runtime-corejs3/core-js/get-iterator\"), require(\"@babel/runtime-corejs3/core-js/get-iterator-method\"), require(\"@babel/runtime-corejs3/core-js-stable/array/from\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/slice\"), require(\"@babel/runtime-corejs3/helpers/classCallCheck\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"), require(\"@babel/runtime-corejs3/helpers/asyncToGenerator\"), require(\"vis-network/standalone\"), require(\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors\"), require(\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor\"), require(\"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols\"), require(\"@babel/runtime-corejs3/core-js-stable/promise\"), require(\"@babel/runtime-corejs3/core-js-stable/object/define-property\"), require(\"@babel/runtime-corejs3/core-js-stable/object/define-properties\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/filter\"), require(\"@babel/runtime-corejs3/core-js-stable/set-timeout\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/map\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/concat\"), require(\"@babel/runtime-corejs3/helpers/typeof\"));\n\telse\n\t\troot[\"NeoVis\"] = factory(root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__4__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__9__, __WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__11__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__14__, __WEBPACK_EXTERNAL_MODULE__15__, __WEBPACK_EXTERNAL_MODULE__16__, __WEBPACK_EXTERNAL_MODULE__17__, __WEBPACK_EXTERNAL_MODULE__18__, __WEBPACK_EXTERNAL_MODULE__19__, __WEBPACK_EXTERNAL_MODULE__20__, __WEBPACK_EXTERNAL_MODULE__21__, __WEBPACK_EXTERNAL_MODULE__22__, __WEBPACK_EXTERNAL_MODULE__23__, __WEBPACK_EXTERNAL_MODULE__24__, __WEBPACK_EXTERNAL_MODULE__25__, __WEBPACK_EXTERNAL_MODULE__26__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 27);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1__;","module.exports = __WEBPACK_EXTERNAL_MODULE__2__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3__;","module.exports = __WEBPACK_EXTERNAL_MODULE__4__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5__;","module.exports = __WEBPACK_EXTERNAL_MODULE__6__;","module.exports = __WEBPACK_EXTERNAL_MODULE__7__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8__;","module.exports = __WEBPACK_EXTERNAL_MODULE__9__;","module.exports = __WEBPACK_EXTERNAL_MODULE__10__;","module.exports = __WEBPACK_EXTERNAL_MODULE__11__;","module.exports = __WEBPACK_EXTERNAL_MODULE__12__;","module.exports = __WEBPACK_EXTERNAL_MODULE__13__;","module.exports = __WEBPACK_EXTERNAL_MODULE__14__;","module.exports = __WEBPACK_EXTERNAL_MODULE__15__;","module.exports = __WEBPACK_EXTERNAL_MODULE__16__;","module.exports = __WEBPACK_EXTERNAL_MODULE__17__;","module.exports = __WEBPACK_EXTERNAL_MODULE__18__;","module.exports = __WEBPACK_EXTERNAL_MODULE__19__;","module.exports = __WEBPACK_EXTERNAL_MODULE__20__;","module.exports = __WEBPACK_EXTERNAL_MODULE__21__;","module.exports = __WEBPACK_EXTERNAL_MODULE__22__;","module.exports = __WEBPACK_EXTERNAL_MODULE__23__;","module.exports = __WEBPACK_EXTERNAL_MODULE__24__;","module.exports = __WEBPACK_EXTERNAL_MODULE__25__;","module.exports = __WEBPACK_EXTERNAL_MODULE__26__;","const defaults = {\r\n\r\n\tneo4j: {\r\n\t\tinitialQuery: `MATCH (n) WHERE exists(n.pagerank)\r\n WITH (n), RAND() AS random\r\n ORDER BY random LIMIT 3000\r\n OPTIONAL MATCH (n)-[r]-(m)\r\n //WITH n,r,m WHERE exists(n.pagerank) AND exists(m.pagerank) AND exists(m.community)\r\n RETURN n, r, m;`,\r\n\t\tneo4jUri: 'bolt://localhost:7687',\r\n\t\tneo4jUser: 'neo4j',\r\n\t\tneo4jPassword: 'neo4j',\r\n\t\tencrypted: 'ENCRYPTION_OFF',\r\n\t\ttrust: 'TRUST_ALL_CERTIFICATES'\r\n\t},\r\n\r\n\tvisjs: {\r\n\t\tinteraction: {\r\n\t\t\thover: true,\r\n\t\t\thoverConnectedEdges: true,\r\n\t\t\tselectConnectedEdges: false,\r\n\t\t\t// multiselect: true,\r\n\t\t\tmultiselect: 'alwaysOn',\r\n\t\t\tzoomView: false,\r\n\t\t\texperimental: {}\r\n\t\t},\r\n\t\tphysics: {\r\n\t\t\tbarnesHut: {\r\n\t\t\t\tdamping: 0.1\r\n\t\t\t}\r\n\t\t},\r\n\t\tnodes: {\r\n\t\t\tmass: 4,\r\n\t\t\tshape: 'neo',\r\n\t\t\tlabelHighlightBold: false,\r\n\t\t\twidthConstraint: {\r\n\t\t\t\tmaximum: 40\r\n\t\t\t},\r\n\t\t\theightConstraint: {\r\n\t\t\t\tmaximum: 40\r\n\t\t\t}\r\n\t\t},\r\n\t\tedges: {\r\n\t\t\thoverWidth: 0,\r\n\t\t\tselectionWidth: 0,\r\n\t\t\tsmooth: {\r\n\t\t\t\ttype: 'continuous',\r\n\t\t\t\troundness: 0.15\r\n\t\t\t},\r\n\t\t\tfont: {\r\n\t\t\t\tsize: 9,\r\n\t\t\t\tstrokeWidth: 0,\r\n\t\t\t\talign: 'top'\r\n\t\t\t},\r\n\t\t\tcolor: {\r\n\t\t\t\tinherit: false\r\n\t\t\t},\r\n\t\t\tarrows: {\r\n\t\t\t\tto: {\r\n\t\t\t\t\tenabled: true,\r\n\t\t\t\t\ttype: 'arrow',\r\n\t\t\t\t\tscaleFactor: 0.5\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n};\r\n\r\nexport { defaults };","export const CompletionEvent = 'completed';\r\nexport const ClickNodeEvent = 'clickNode';\r\nexport const ClickEdgeEvent = 'clickEdge';\r\nexport const ErrorEvent = 'error';\r\n\r\nexport class EventController {\r\n\r\n\tconstructor() {\r\n\t\tthis._handlers = {\r\n\t\t\t[CompletionEvent]: [],\r\n\t\t\t[ErrorEvent]: [],\r\n\t\t\t[ClickNodeEvent]: [],\r\n\t\t\t[ClickEdgeEvent]: [],\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType - Type of the event to be handled\r\n\t * @param {callback} handler - Handler to manage the event\r\n\t */\r\n\tregister(eventType, handler) {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tthis._handlers[eventType].push(handler);\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType - Type of the event generated\r\n\t * @param {object} values - Values associated to the event\r\n\t */\r\n\tgenerateEvent(eventType, values) {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tfor (const handler of this._handlers[eventType]) {\r\n\t\t\thandler(values);\r\n\t\t}\r\n\t}\r\n}\r\n","'use strict';\r\n\r\nimport Neo4j from 'neo4j-driver';\r\nimport * as vis from 'vis-network/standalone';\r\nimport { defaults } from './defaults';\r\nimport { EventController, CompletionEvent, ClickEdgeEvent, ClickNodeEvent, ErrorEvent } from './events';\r\n\r\nexport const NEOVIS_DEFAULT_CONFIG = Symbol();\r\n\r\nexport default class NeoVis {\r\n\t_nodes = {};\r\n\t_edges = {};\r\n\t_data = {};\r\n\t_network = null;\r\n\t_events = new EventController();\r\n\r\n\t/**\r\n\t * Get current vis nodes from the graph\r\n\t */\r\n\tget nodes() {\r\n\t\treturn this._data.nodes;\r\n\t}\r\n\r\n\t/**\r\n\t * Get current vis edges from the graph\r\n\t */\r\n\tget edges() {\r\n\t\treturn this._data.edges;\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @constructor\r\n\t * @param {object} config - configures the visualization and Neo4j server connection\r\n\t * {\r\n\t * container:\r\n\t * server_url:\r\n\t * server_password?:\r\n\t * server_username?:\r\n\t * server_database?:\r\n\t * labels:\r\n\t *\r\n\t * }\r\n\t *\r\n\t */\r\n\tconstructor(config) {\r\n\t\tthis._init(config);\r\n\r\n\t\tthis._consoleLog(config);\r\n\t\tthis._consoleLog(defaults);\r\n\t}\r\n\r\n\t_consoleLog(message, level = 'log') {\r\n\t\tif (level !== 'log' || this._config.console_debug) {\r\n\t\t\t// eslint-disable-next-line no-console\r\n\t\t\tconsole[level](message);\r\n\t\t}\r\n\t}\r\n\r\n\t_init(config) {\r\n\t\tif (config.labels && config.labels[NEOVIS_DEFAULT_CONFIG]) {\r\n\t\t\tfor (let key of Object.keys(config.labels)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tconfig = {\r\n\t\t\t\t\t...config,\r\n\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t...config.labels,\r\n\t\t\t\t\t\t[key]: { ...config.labels[NEOVIS_DEFAULT_CONFIG], ...config.labels[key] }\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (config.relationships && config.relationships[NEOVIS_DEFAULT_CONFIG]) {\r\n\t\t\t// getting out of my for not changing the original config object\r\n\t\t\tfor (let key of Object.keys(config.relationships)) {\r\n\t\t\t\tconfig = {\r\n\t\t\t\t\t...config,\r\n\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t...config.relationships,\r\n\t\t\t\t\t\t[key]: { ...config.relationships[NEOVIS_DEFAULT_CONFIG], ...config.relationships[key] }\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis._config = config;\r\n\t\tthis._encrypted = config.encrypted || defaults.neo4j.encrypted;\r\n\t\tthis._trust = config.trust || defaults.neo4j.trust;\r\n\t\tthis._driver = Neo4j.driver(\r\n\t\t\tconfig.server_url || defaults.neo4j.neo4jUri,\r\n\t\t\tNeo4j.auth.basic(config.server_user || defaults.neo4j.neo4jUser, config.server_password || defaults.neo4j.neo4jPassword),\r\n\t\t\t{\r\n\t\t\t\tencrypted: this._encrypted,\r\n\t\t\t\ttrust: this._trust,\r\n\t\t\t\tmaxConnectionPoolSize: 100,\r\n\t\t\t\tconnectionAcquisitionTimeout: 10000,\r\n\t\t\t}\r\n\t\t);\r\n\t\tthis._database = config.server_database;\r\n\t\tthis._query = config.initial_cypher || defaults.neo4j.initialQuery;\r\n\t\tthis._container = document.getElementById(config.container_id);\r\n\t}\r\n\r\n\t_addNode(node) {\r\n\t\tthis._nodes[node.id] = node;\r\n\t}\r\n\r\n\t_addEdge(edge) {\r\n\t\tthis._edges[edge.id] = edge;\r\n\t}\r\n\r\n\t/**\r\n\t * Build node object for vis from a neo4j Node\r\n\t * FIXME: use config\r\n\t * FIXME: move to private api\r\n\t * @param neo4jNode\r\n\t * @returns {{}}\r\n\t */\r\n\tasync buildNodeVisObject(neo4jNode) {\r\n\t\tlet node = {};\r\n\t\tlet label = neo4jNode.labels[0];\r\n\r\n\t\tlet labelConfig = this._config && this._config.labels && (this._config.labels[label] || this._config.labels[NEOVIS_DEFAULT_CONFIG]);\r\n\r\n\t\tconst captionKey = labelConfig && labelConfig['caption'];\r\n\t\tconst sizeKey = labelConfig && labelConfig['size'];\r\n\t\tconst sizeCypher = labelConfig && labelConfig['sizeCypher'];\r\n\t\tconst communityKey = labelConfig && labelConfig['community'];\r\n\t\tconst imageUrl = labelConfig && labelConfig['image'];\r\n\t\tconst font = labelConfig && labelConfig['font'];\r\n\r\n\t\tconst title_properties = (\r\n\t\t\tlabelConfig && labelConfig.title_properties\r\n\t\t) || Object.keys(neo4jNode.properties);\r\n\r\n\t\tnode.id = neo4jNode.identity.toInt();\r\n\t\tnode.raw = neo4jNode;\r\n\r\n\t\t// node size\r\n\r\n\t\tif (sizeCypher) {\r\n\t\t\t// use a cypher statement to determine the size of the node\r\n\t\t\t// the cypher statement will be passed a parameter {id} with the value\r\n\t\t\t// of the internal node id\r\n\t\t\t// TODO: refactor and put all size cypher in one transaction to commit to improve efficiency\r\n\t\t\tnode.value = 1.0;\r\n\t\t\tconst session = this._driver.session(this._database && { database: this._database });\r\n\t\t\ttry {\r\n\t\t\t\tconst result = await session.readTransaction(tx => tx.run(sizeCypher, { id: Neo4j.int(node.id) }));\r\n\t\t\t\tfor (let record of result.records) {\r\n\t\t\t\t\trecord.forEach((v) => {\r\n\t\t\t\t\t\tif (typeof v === 'number') {\r\n\t\t\t\t\t\t\tnode.value = v;\r\n\t\t\t\t\t\t} else if (Neo4j.isInt(v)) {\r\n\t\t\t\t\t\t\tnode.value = v.toNumber();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\tsession.close();\r\n\t\t\t}\r\n\t\t} else if (typeof sizeKey === 'number') {\r\n\t\t\tnode.value = sizeKey;\r\n\t\t} else {\r\n\t\t\tlet sizeProp = neo4jNode.properties[sizeKey];\r\n\r\n\t\t\tif (sizeProp && typeof sizeProp === 'number') {\r\n\t\t\t\t// property value is a number, OK to use\r\n\t\t\t\tnode.value = sizeProp;\r\n\t\t\t} else if (sizeProp && typeof sizeProp === 'object' && Neo4j.isInt(sizeProp)) {\r\n\t\t\t\t// property value might be a Neo4j Integer, check if we can call toNumber on it:\r\n\t\t\t\tif (sizeProp.inSafeRange()) {\r\n\t\t\t\t\tnode.value = sizeProp.toNumber();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// couldn't convert to Number, use default\r\n\t\t\t\t\tnode.value = 1.0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tnode.value = 1.0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// node caption\r\n\t\tif (typeof captionKey === 'function') {\r\n\t\t\tnode.label = captionKey(neo4jNode);\r\n\t\t} else if (captionKey && (typeof neo4jNode.properties[captionKey] === 'number' || Neo4j.isInt(neo4jNode.properties[captionKey]))) {\r\n\t\t\tnode.label = neo4jNode.properties[captionKey].toString() || '';\r\n\t\t} else {\r\n\t\t\tnode.label = neo4jNode.properties[captionKey] || label || '';\r\n\t\t}\r\n\r\n\t\t// community\r\n\t\t// behavior: color by value of community property (if set in config), then color by label\r\n\t\tif (!communityKey) {\r\n\t\t\tnode.group = label;\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tif (neo4jNode.properties[communityKey]) {\r\n\t\t\t\t\tnode.group = neo4jNode.properties[communityKey].toNumber() || label || 0; // FIXME: cast to Integer\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnode.group = 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (e) {\r\n\t\t\t\tnode.group = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// set configured/all properties as tooltip\r\n\t\tnode.title = '';\r\n\t\tfor (const key of title_properties) {\r\n\t\t\tif (neo4jNode.properties.hasOwnProperty(key)) {\r\n\t\t\t\tnode.title += this.propertyToString(key, neo4jNode.properties[key]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// set node shape and image url if a image url is provided in config\r\n\t\tif (imageUrl) {\r\n\t\t\tnode.shape = 'image';\r\n\t\t\tnode.image = imageUrl;\r\n\t\t} else {\r\n\t\t\tnode.shape = 'dot';\r\n\t\t}\r\n\r\n\t\t// set node caption font if font setting is provided in config\r\n\t\tif (font) {\r\n\t\t\tnode.font = font;\r\n\t\t}\r\n\r\n\t\treturn node;\r\n\t}\r\n\r\n\t/**\r\n\t * Build edge object for vis from a neo4j Relationship\r\n\t * @param r\r\n\t * @returns {{}}\r\n\t */\r\n\tbuildEdgeVisObject(r) {\r\n\t\tconst nodeTypeConfig = this._config && this._config.relationships &&\r\n\t\t\t(this._config.relationships[r.type] || this._config.relationships[NEOVIS_DEFAULT_CONFIG]);\r\n\t\tlet weightKey = nodeTypeConfig && nodeTypeConfig.thickness,\r\n\t\t\tcaptionKey = nodeTypeConfig && nodeTypeConfig.caption;\r\n\r\n\t\tlet edge = {};\r\n\t\tedge.id = r.identity.toInt();\r\n\t\tedge.from = r.start.toInt();\r\n\t\tedge.to = r.end.toInt();\r\n\t\tedge.raw = r;\r\n\r\n\t\t// hover tooltip. show all properties in the format key: value\r\n\t\tedge.title = '';\r\n\t\tfor (let key in r.properties) {\r\n\t\t\tif (r.properties.hasOwnProperty(key)) {\r\n\t\t\t\tedge['title'] += this.propertyToString(key, r.properties[key]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// set relationship thickness\r\n\t\tif (weightKey && typeof weightKey === 'string') {\r\n\t\t\tedge.value = r.properties[weightKey];\r\n\t\t} else if (weightKey && typeof weightKey === 'number') {\r\n\t\t\tedge.value = weightKey;\r\n\t\t} else {\r\n\t\t\tedge.value = 1.0;\r\n\t\t}\r\n\r\n\t\t// set caption\r\n\r\n\r\n\t\tif (typeof captionKey === 'boolean') {\r\n\t\t\tif (!captionKey) {\r\n\t\t\t\tedge.label = '';\r\n\t\t\t} else {\r\n\t\t\t\tedge.label = r.type;\r\n\t\t\t}\r\n\t\t} else if (captionKey && typeof captionKey === 'string') {\r\n\t\t\tif (typeof r.properties[captionKey] === 'number' || Neo4j.isInt(r.properties[captionKey])) {\r\n\t\t\t\tedge.label = r.properties[captionKey].toString() || '';\r\n\t\t\t} else {\r\n\t\t\t\tedge.label = r.properties[captionKey] || '';\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tedge.label = r.type;\r\n\t\t}\r\n\t\treturn edge;\r\n\t}\r\n\r\n\tpropertyToString(key, value) {\r\n\t\tif (Array.isArray(value) && value.length > 1) {\r\n\t\t\tlet out = `${key}:
';\r\n\t\t}\r\n\t\treturn `${key}: ${value}
`;\r\n\t}\r\n\r\n\t// public API\r\n\r\n\trender(query) {\r\n\r\n\t\t// connect to Neo4j instance\r\n\t\t// run query\r\n\t\tlet recordCount = 0;\r\n\t\tconst _query = query || this._query;\r\n\t\tlet session = this._driver.session(this._database && { database: this._database });\r\n\t\tconst dataBuildPromises = [];\r\n\t\tsession\r\n\t\t\t.run(_query, { limit: 30 })\r\n\t\t\t.subscribe({\r\n\t\t\t\tonNext: (record) => {\r\n\t\t\t\t\trecordCount++;\r\n\r\n\t\t\t\t\tthis._consoleLog('CLASS NAME');\r\n\t\t\t\t\tthis._consoleLog(record && record.constructor.name);\r\n\t\t\t\t\tthis._consoleLog(record);\r\n\r\n\t\t\t\t\tconst dataPromises = Object.values(record.toObject()).map(async (v) => {\r\n\t\t\t\t\t\tthis._consoleLog('Constructor:');\r\n\t\t\t\t\t\tthis._consoleLog(v && v.constructor.name);\r\n\t\t\t\t\t\tif (v instanceof Neo4j.types.Node) {\r\n\t\t\t\t\t\t\tlet node = await this.buildNodeVisObject(v);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tthis._addNode(node);\r\n\t\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t\tthis._consoleLog(e, 'error');\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (v instanceof Neo4j.types.Relationship) {\r\n\t\t\t\t\t\t\tlet edge = this.buildEdgeVisObject(v);\r\n\t\t\t\t\t\t\tthis._addEdge(edge);\r\n\r\n\t\t\t\t\t\t} else if (v instanceof Neo4j.types.Path) {\r\n\t\t\t\t\t\t\tthis._consoleLog('PATH');\r\n\t\t\t\t\t\t\tthis._consoleLog(v);\r\n\t\t\t\t\t\t\tlet startNode = await this.buildNodeVisObject(v.start);\r\n\t\t\t\t\t\t\tlet endNode = await this.buildNodeVisObject(v.end);\r\n\r\n\t\t\t\t\t\t\tthis._addNode(startNode);\r\n\t\t\t\t\t\t\tthis._addNode(endNode);\r\n\r\n\t\t\t\t\t\t\tfor (let obj of v.segments) {\r\n\t\t\t\t\t\t\t\tthis._addNode(await this.buildNodeVisObject(obj.start));\r\n\t\t\t\t\t\t\t\tthis._addNode(await this.buildNodeVisObject(obj.end));\r\n\t\t\t\t\t\t\t\tthis._addEdge(this.buildEdgeVisObject(obj.relationship));\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (v instanceof Array) {\r\n\t\t\t\t\t\t\tfor (let obj of v) {\r\n\t\t\t\t\t\t\t\tthis._consoleLog('Array element constructor:');\r\n\t\t\t\t\t\t\t\tthis._consoleLog(obj && obj.constructor.name);\r\n\t\t\t\t\t\t\t\tif (obj instanceof Neo4j.types.Node) {\r\n\t\t\t\t\t\t\t\t\tlet node = await this.buildNodeVisObject(obj);\r\n\t\t\t\t\t\t\t\t\tthis._addNode(node);\r\n\r\n\t\t\t\t\t\t\t\t} else if (obj instanceof Neo4j.types.Relationship) {\r\n\t\t\t\t\t\t\t\t\tlet edge = this.buildEdgeVisObject(obj);\r\n\r\n\t\t\t\t\t\t\t\t\tthis._addEdge(edge);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdataBuildPromises.push(Promise.all(dataPromises));\r\n\t\t\t\t},\r\n\t\t\t\tonCompleted: async () => {\r\n\t\t\t\t\tawait Promise.all(dataBuildPromises);\r\n\t\t\t\t\tsession.close();\r\n\r\n\t\t\t\t\tif (this._network && this._network.body.data.nodes.length > 0) {\r\n\t\t\t\t\t\tthis._data.nodes.update(Object.values(this._nodes));\r\n\t\t\t\t\t\tthis._data.edges.update(Object.values(this._edges));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlet options = {\r\n\t\t\t\t\t\t\tnodes: {\r\n\t\t\t\t\t\t\t\t//shape: 'dot',\r\n\t\t\t\t\t\t\t\tfont: {\r\n\t\t\t\t\t\t\t\t\tsize: 26,\r\n\t\t\t\t\t\t\t\t\tstrokeWidth: 7\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tscaling: {\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tedges: {\r\n\t\t\t\t\t\t\t\tarrows: {\r\n\t\t\t\t\t\t\t\t\tto: { enabled: this._config.arrows || false } // FIXME: handle default value\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tlength: 200\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tlayout: {\r\n\t\t\t\t\t\t\t\timprovedLayout: false,\r\n\t\t\t\t\t\t\t\thierarchical: {\r\n\t\t\t\t\t\t\t\t\tenabled: this._config.hierarchical || false,\r\n\t\t\t\t\t\t\t\t\tsortMethod: this._config.hierarchical_sort_method || 'hubsize'\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tphysics: { // TODO: adaptive physics settings based on size of graph rendered\r\n\t\t\t\t\t\t\t\t// enabled: true,\r\n\t\t\t\t\t\t\t\t// timestep: 0.5,\r\n\t\t\t\t\t\t\t\t// stabilization: {\r\n\t\t\t\t\t\t\t\t// iterations: 10\r\n\t\t\t\t\t\t\t\t// }\r\n\r\n\t\t\t\t\t\t\t\tadaptiveTimestep: true,\r\n\t\t\t\t\t\t\t\t// barnesHut: {\r\n\t\t\t\t\t\t\t\t// gravitationalConstant: -8000,\r\n\t\t\t\t\t\t\t\t// springConstant: 0.04,\r\n\t\t\t\t\t\t\t\t// springLength: 95\r\n\t\t\t\t\t\t\t\t// },\r\n\t\t\t\t\t\t\t\tstabilization: {\r\n\t\t\t\t\t\t\t\t\titerations: 200,\r\n\t\t\t\t\t\t\t\t\tfit: true\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tconst container = this._container;\r\n\t\t\t\t\t\tthis._data = {\r\n\t\t\t\t\t\t\tnodes: new vis.DataSet(Object.values(this._nodes)),\r\n\t\t\t\t\t\t\tedges: new vis.DataSet(Object.values(this._edges))\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tthis._consoleLog(this._data.nodes);\r\n\t\t\t\t\t\tthis._consoleLog(this._data.edges);\r\n\r\n\t\t\t\t\t\t// Create duplicate node for any this reference relationships\r\n\t\t\t\t\t\t// NOTE: Is this only useful for data model type data\r\n\t\t\t\t\t\t// this._data.edges = this._data.edges.map(\r\n\t\t\t\t\t\t// function (item) {\r\n\t\t\t\t\t\t// if (item.from == item.to) {\r\n\t\t\t\t\t\t// const newNode = this._data.nodes.get(item.from)\r\n\t\t\t\t\t\t// delete newNode.id;\r\n\t\t\t\t\t\t// const newNodeIds = this._data.nodes.add(newNode);\r\n\t\t\t\t\t\t// this._consoleLog(\"Adding new node and changing this-ref to node: \" + item.to);\r\n\t\t\t\t\t\t// item.to = newNodeIds[0];\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t// return item;\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t// );\r\n\t\t\t\t\t\tthis._network = new vis.Network(container, this._data, options);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis._consoleLog('completed');\r\n\t\t\t\t\tsetTimeout(\r\n\t\t\t\t\t\t() => {\r\n\t\t\t\t\t\t\tthis._network.stopSimulation();\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t10000\r\n\t\t\t\t\t);\r\n\t\t\t\t\tthis._events.generateEvent(CompletionEvent, { record_count: recordCount });\r\n\r\n\t\t\t\t\tlet neoVis = this;\r\n\t\t\t\t\tthis._network.on('click', function (params) {\r\n\t\t\t\t\t\tif (params.nodes.length > 0) {\r\n\t\t\t\t\t\t\tlet nodeId = this.getNodeAt(params.pointer.DOM);\r\n\t\t\t\t\t\t\tneoVis._events.generateEvent(ClickNodeEvent, { nodeId: nodeId, node: neoVis._nodes[nodeId] });\r\n\t\t\t\t\t\t} else if (params.edges.length > 0) {\r\n\t\t\t\t\t\t\tlet edgeId = this.getEdgeAt(params.pointer.DOM);\r\n\t\t\t\t\t\t\tneoVis._events.generateEvent(ClickEdgeEvent, { edgeId: edgeId, edge: neoVis._edges[edgeId] });\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\tonError: (error) => {\r\n\t\t\t\t\tthis._consoleLog(error, 'error');\r\n\t\t\t\t\tthis._events.generateEvent(ErrorEvent, { error_msg: error });\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the data for the visualization\r\n\t */\r\n\tclearNetwork() {\r\n\t\tthis._neo4jNodes = {};\r\n\t\tthis._neo4jEdges = {};\r\n\t\tthis._nodes = {};\r\n\t\tthis._edges = {};\r\n\t\tthis._network.setData([]);\r\n\t}\r\n\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType Event type to be handled\r\n\t * @param {callback} handler Handler to manage the event\r\n\t */\r\n\tregisterOnEvent(eventType, handler) {\r\n\t\tthis._events.register(eventType, handler);\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Reset the config object and reload data\r\n\t * @param config\r\n\t */\r\n\treinit(config) {\r\n\t\tthis._init(config);\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Fetch live data form the server and reload the visualization\r\n\t */\r\n\treload() {\r\n\t\tthis.clearNetwork();\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Stabilize the visuzliation\r\n\t */\r\n\tstabilize() {\r\n\t\tthis._network.stopSimulation();\r\n\t\tthis._consoleLog('Calling stopSimulation');\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and re-render the visualization\r\n\t * @param query\r\n\t */\r\n\trenderWithCypher(query) {\r\n\t\t// this._config.initial_cypher = query;\r\n\t\tthis.clearNetwork();\r\n\t\tthis._query = query;\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and update the current visualization, retaning current nodes\r\n\t * This function will not change the original query given by renderWithCypher or the inital cypher.\r\n\t * @param query \r\n\t */\r\n\tupdateWithCypher(query) {\r\n\t\tthis.render(query);\r\n\t}\r\n\r\n\t// configure exports based on environment (ie Node.js or browser)\r\n\t//if (typeof exports === 'object') {\r\n\t// module.exports = NeoVis;\r\n\t//} else {\r\n\t// define (function () {return NeoVis;})\r\n\t//}\r\n}"],"sourceRoot":""}