diff --git a/report.20200730.133531.24641.0.001.json b/report.20200730.133531.24641.0.001.json new file mode 100644 index 0000000000..4686e9dd77 --- /dev/null +++ b/report.20200730.133531.24641.0.001.json @@ -0,0 +1,859 @@ + +{ + "header": { + "reportVersion": 2, + "event": "Allocation failed - JavaScript heap out of memory", + "trigger": "FatalError", + "filename": "report.20200730.133531.24641.0.001.json", + "dumpEventTime": "2020-07-30T13:35:31Z", + "dumpEventTimeStamp": "1596087331048", + "processId": 24641, + "threadId": null, + "cwd": "/Users/shiwu/Documents/GitHub/G6", + "commandLine": [ + "node", + "/Users/shiwu/Documents/GitHub/G6/node_modules/.bin/start-storybook", + "-p", + "8080", + "-c", + ".storybook" + ], + "nodejsVersion": "v12.16.3", + "wordSize": 64, + "arch": "x64", + "platform": "darwin", + "componentVersions": { + "node": "12.16.3", + "v8": "7.8.279.23-node.35", + "uv": "1.34.2", + "zlib": "1.2.11", + "brotli": "1.0.7", + "ares": "1.16.0", + "modules": "72", + "nghttp2": "1.40.0", + "napi": "5", + "llhttp": "2.0.4", + "http_parser": "2.9.3", + "openssl": "1.1.1g", + "cldr": "36.0", + "icu": "65.1", + "tz": "2019c", + "unicode": "12.1" + }, + "release": { + "name": "node", + "lts": "Erbium", + "headersUrl": "https://nodejs.org/download/release/v12.16.3/node-v12.16.3-headers.tar.gz", + "sourceUrl": "https://nodejs.org/download/release/v12.16.3/node-v12.16.3.tar.gz" + }, + "osName": "Darwin", + "osRelease": "18.6.0", + "osVersion": "Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64", + "osMachine": "x86_64", + "cpus": [ + { + "model": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz", + "speed": 2400, + "user": 150944310, + "nice": 0, + "sys": 28853150, + "idle": 183604940, + "irq": 0 + }, + { + "model": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz", + "speed": 2400, + "user": 15826410, + "nice": 0, + "sys": 5632580, + "idle": 341875830, + "irq": 0 + }, + { + "model": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz", + "speed": 2400, + "user": 124796320, + "nice": 0, + "sys": 23958290, + "idle": 214580720, + "irq": 0 + }, + { + "model": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz", + "speed": 2400, + "user": 13956600, + "nice": 0, + "sys": 4844240, + "idle": 344533930, + "irq": 0 + }, + { + "model": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz", + "speed": 2400, + "user": 118914330, + "nice": 0, + "sys": 21535140, + "idle": 222885800, + "irq": 0 + }, + { + "model": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz", + "speed": 2400, + "user": 13066590, + "nice": 0, + "sys": 4555480, + "idle": 345712660, + "irq": 0 + }, + { + "model": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz", + "speed": 2400, + "user": 109777190, + "nice": 0, + "sys": 18890090, + "idle": 234667930, + "irq": 0 + }, + { + "model": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz", + "speed": 2400, + "user": 12868710, + "nice": 0, + "sys": 4310970, + "idle": 346155020, + "irq": 0 + } + ], + "networkInterfaces": [ + { + "name": "lo0", + "internal": true, + "mac": "00:00:00:00:00:00", + "address": "127.0.0.1", + "netmask": "255.0.0.0", + "family": "IPv4" + }, + { + "name": "lo0", + "internal": true, + "mac": "00:00:00:00:00:00", + "address": "::1", + "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", + "family": "IPv6", + "scopeid": 0 + }, + { + "name": "lo0", + "internal": true, + "mac": "00:00:00:00:00:00", + "address": "fe80::1", + "netmask": "ffff:ffff:ffff:ffff::", + "family": "IPv6", + "scopeid": 1 + }, + { + "name": "en5", + "internal": false, + "mac": "ac:de:48:00:11:22", + "address": "fe80::aede:48ff:fe00:1122", + "netmask": "ffff:ffff:ffff:ffff::", + "family": "IPv6", + "scopeid": 8 + }, + { + "name": "en0", + "internal": false, + "mac": "a4:83:e7:26:15:f8", + "address": "fe80::2c:d12f:4ac:286e", + "netmask": "ffff:ffff:ffff:ffff::", + "family": "IPv6", + "scopeid": 14 + }, + { + "name": "en0", + "internal": false, + "mac": "a4:83:e7:26:15:f8", + "address": "10.15.230.55", + "netmask": "255.255.254.0", + "family": "IPv4" + }, + { + "name": "awdl0", + "internal": false, + "mac": "72:d7:9d:68:60:83", + "address": "fe80::70d7:9dff:fe68:6083", + "netmask": "ffff:ffff:ffff:ffff::", + "family": "IPv6", + "scopeid": 16 + }, + { + "name": "utun0", + "internal": false, + "mac": "00:00:00:00:00:00", + "address": "fe80::2a6e:57ea:96b:45bc", + "netmask": "ffff:ffff:ffff:ffff::", + "family": "IPv6", + "scopeid": 18 + } + ], + "host": "ali-170853shiwu.local" + }, + "javascriptStack": { + "message": "No stack.", + "stack": [ + "Unavailable." + ] + }, + "nativeStack": [ + { + "pc": "0x0000000100164e03", + "symbol": "report::TriggerNodeReport(v8::Isolate*, node::Environment*, char const*, char const*, std::__1::basic_string, std::__1::allocator > const&, v8::Local) [/usr/local/bin/node]" + }, + { + "pc": "0x000000010008645a", + "symbol": "node::OnFatalError(char const*, char const*) [/usr/local/bin/node]" + }, + { + "pc": "0x0000000100187c07", + "symbol": "v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]" + }, + { + "pc": "0x0000000100187ba7", + "symbol": "v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]" + }, + { + "pc": "0x0000000100315955", + "symbol": "v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/bin/node]" + }, + { + "pc": "0x00000001003171ca", + "symbol": "v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/local/bin/node]" + }, + { + "pc": "0x0000000100313bfc", + "symbol": "v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]" + }, + { + "pc": "0x00000001003119fe", + "symbol": "v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]" + }, + { + "pc": "0x000000010031d8ca", + "symbol": "v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]" + }, + { + "pc": "0x000000010031d951", + "symbol": "v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]" + }, + { + "pc": "0x00000001002eb58a", + "symbol": "v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/node]" + }, + { + "pc": "0x000000010063e698", + "symbol": "v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]" + }, + { + "pc": "0x000000010097cc39", + "symbol": "Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/usr/local/bin/node]" + } + ], + "javascriptHeap": { + "totalMemory": 2153988096, + "totalCommittedMemory": 2150682920, + "usedMemory": 2119767936, + "availableMemory": 55121144, + "memoryLimit": 2197815296, + "heapSpaces": { + "read_only_space": { + "memorySize": 262144, + "committedMemory": 33088, + "capacity": 32808, + "used": 32808, + "available": 0 + }, + "new_space": { + "memorySize": 4194304, + "committedMemory": 1284880, + "capacity": 2094912, + "used": 297984, + "available": 1796928 + }, + "old_space": { + "memorySize": 1934499840, + "committedMemory": 1934459840, + "capacity": 1915843040, + "used": 1908440936, + "available": 7402104 + }, + "code_space": { + "memorySize": 4886528, + "committedMemory": 4760512, + "capacity": 4431744, + "used": 4431744, + "available": 0 + }, + "map_space": { + "memorySize": 6819840, + "committedMemory": 6819160, + "capacity": 3581600, + "used": 3581600, + "available": 0 + }, + "large_object_space": { + "memorySize": 202702848, + "committedMemory": 202702848, + "capacity": 202438320, + "used": 202438320, + "available": 0 + }, + "code_large_object_space": { + "memorySize": 622592, + "committedMemory": 622592, + "capacity": 544544, + "used": 544544, + "available": 0 + }, + "new_large_object_space": { + "memorySize": 0, + "committedMemory": 0, + "capacity": 2094912, + "used": 0, + "available": 2094912 + } + } + }, + "resourceUsage": { + "userCpuSeconds": 436.816, + "kernelCpuSeconds": 69.5841, + "cpuConsumptionPercent": 1.52205, + "maxRss": 2720773701632, + "pageFaults": { + "IORequired": 1538, + "IONotRequired": 3667801 + }, + "fsActivity": { + "reads": 0, + "writes": 0 + } + }, + "libuv": [ + ], + "workers": [ + ], + "environmentVariables": { + "npm_config_save_dev": "", + "npm_config_legacy_bundling": "", + "npm_config_dry_run": "", + "npm_package_devDependencies_typedoc_plugin_markdown": "^2.2.11", + "npm_package_devDependencies_react_dom": "^16.13.1", + "npm_package_devDependencies_lint_staged": "^9.2.3", + "npm_package_devDependencies__turf_turf": "^5.1.6", + "npm_package_dependencies__antv_g_canvas": "^0.4.14", + "ELECTRON_MIRROR": "https://cdn.npm.taobao.org/dist/electron/", + "npm_config_viewer": "man", + "npm_config_only": "", + "npm_config_commit_hooks": "true", + "npm_config_browser": "", + "npm_package_gitHead": "9629ec9973127620d021ad312beba2b31b56e2a6", + "npm_package_devDependencies_prettier": "^2.0.5", + "npm_package_devDependencies_awesome_typescript_loader": "^5.2.1", + "npm_config_also": "", + "npm_package_devDependencies_jest_extended": "^0.11.2", + "npm_package_dependencies_ml_matrix": "^6.5.0", + "npm_package_dependencies_insert_css": "^2.0.0", + "npm_package_scripts_ci": "npm run build && npm run coverage", + "FLOW_BINARY_MIRROR": "https://github.com/facebook/flow/releases/download/v", + "npm_config_sign_git_commit": "", + "npm_config_rollback": "true", + "npm_package_dependencies__antv_hierarchy": "^0.6.2", + "npm_package_scripts_prettier": "prettier -c --write \"**/*\"", + "TERM_PROGRAM": "vscode", + "NODE": "/usr/local/bin/node", + "npm_config_usage": "", + "npm_config_audit": "true", + "npm_package_devDependencies_gatsby": "^2.23.9", + "INIT_CWD": "/Users/shiwu/Documents/GitHub/G6", + "npm_package_devDependencies_typescript": "^3.5.3", + "npm_package_devDependencies__umijs_fabric": "^2.0.0", + "npm_package_scripts_site_clean": "gatsby clean", + "npm_package_homepage": "https://g6.antv.vision", + "npm_config_globalignorefile": "/usr/local/etc/npmignore", + "npm_package_devDependencies_jest": "^26.0.1", + "npm_package_dependencies__antv_g_math": "^0.1.1", + "SHELL": "/bin/bash", + "TERM": "xterm-256color", + "npm_config_shell": "/bin/bash", + "npm_config_maxsockets": "50", + "npm_config_init_author_url": "", + "npm_package_devDependencies_rimraf": "^3.0.0", + "npm_package_devDependencies_jest_electron": "^0.1.7", + "npm_config_shrinkwrap": "true", + "npm_config_parseable": "", + "npm_config_metrics_registry": "https://registry.npm.alibaba-inc.com/", + "npm_package_devDependencies__storybook_addon_knobs": "^5.2.8", + "TMPDIR": "/var/folders/hr/y83tnpys531br0cbp1zy17rh0000gp/T/", + "npm_config_timing": "", + "npm_config_init_license": "ISC", + "npm_config_email": "", + "npm_package_scripts_lint": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty \"./\"", + "Apple_PubSub_Socket_Render": "/private/tmp/com.apple.launchd.NC4J7KBlp0/Render", + "npm_config_if_present": "", + "TERM_PROGRAM_VERSION": "1.47.2", + "npm_package_devDependencies__antv_gatsby_theme_antv": "0.10.69", + "npm_config_sign_git_tag": "", + "npm_config_init_author_email": "", + "npm_config_cache_max": "Infinity", + "ORIGINAL_XDG_CURRENT_DESKTOP": "undefined", + "npm_config_preid": "", + "npm_config_long": "", + "npm_config_local_address": "", + "npm_config_git_tag_version": "true", + "npm_config_cert": "", + "npm_package_dependencies__antv_event_emitter": "~0.1.0", + "NWJS_URLBASE": "https://cdn.npm.taobao.org/dist/nwjs/v", + "npm_config_noproxy": "", + "npm_config_fetch_retries": "2", + "npm_config_registry": "https://registry.npm.alibaba-inc.com/", + "npm_package_dependencies__antv_g_svg": "^0.4.1", + "npm_package_repository_url": "git+https://github.com/antvis/g6.git", + "npm_config_versions": "", + "npm_config_message": "%s", + "npm_config_key": "", + "npm_package_readmeFilename": "README.md", + "NO_PROXY": "*", + "npm_package_devDependencies_webpack": "^4.41.4", + "npm_package_devDependencies_react_i18next": "^11.1.0", + "npm_package_devDependencies_react": "^16.13.1", + "npm_package_description": "A Graph Visualization Framework in JavaScript", + "USER": "shiwu", + "npm_package_devDependencies_webpack_cli": "^3.3.10", + "npm_package_dependencies_d3_force": "^2.0.1", + "npm_package_dependencies__antv_color_util": "^2.0.5", + "npm_package_license": "MIT", + "npm_config_globalconfig": "/usr/local/etc/npmrc", + "npm_config_prefer_online": "", + "npm_config_logs_max": "10", + "npm_config_always_auth": "", + "npm_package_devDependencies__babel_core": "^7.7.7", + "npm_package_devDependencies_father": "^2.29.1", + "npm_package_devDependencies_babel_loader": "^8.0.6", + "npm_package_devDependencies__storybook_addon_actions": "^5.2.8", + "npm_package_dependencies__antv_util": "~2.0.5", + "SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.MpBhjfYe3u/Listeners", + "npm_package_devDependencies__types_jest": "^25.2.1", + "npm_package_scripts_test_live": "DEBUG_MODE=1 jest --watch ./tests/unit/plugins/timebar-spec.ts", + "__CF_USER_TEXT_ENCODING": "0x1F6:0x19:0x34", + "npm_execpath": "/usr/local/lib/node_modules/tnpm/node_modules/_npm@6.10.1@npm/bin/npm-cli.js", + "npm_config_global_style": "", + "npm_config_cache_lock_retries": "10", + "npm_package_husky_hooks_pre_commit": "npm run lint", + "npm_package_scripts_coverage": "jest --coverage", + "npm_config_update_notifier": "true", + "npm_config_cafile": "", + "npm_package_module": "es/index.js", + "npm_package_author_name": "https://github.com/orgs/antvis/people", + "npm_config_heading": "npm", + "npm_config_audit_level": "low", + "npm_config_searchlimit": "20", + "npm_config_read_only": "", + "npm_config_offline": "", + "npm_config_fetch_retry_mintimeout": "10000", + "npm_package_scripts_lint_staged_js": "eslint --ext .js,.jsx,.ts,.tsx", + "npm_package_scripts_doc": "rimraf apis && typedoc", + "npm_config_json": "", + "npm_config_access": "", + "npm_config_argv": "{\"remain\":[],\"cooked\":[\"--cache\",\"/Users/shiwu/.tnpm\",\"--tmp\",\"/Users/shiwu/.tnpm_tmp\",\"--no-proxy\",\"--disturl\",\"https://tnpm-hz.oss-cn-hangzhou.aliyuncs.com/dist/node\",\"--userconfig\",\"/Users/shiwu/.tnpmrc\",\"--registry\",\"https://registry.npm.alibaba-inc.com\",\"run\",\"demos\"],\"original\":[\"--cache=/Users/shiwu/.tnpm\",\"--tmp=/Users/shiwu/.tnpm_tmp\",\"--no-proxy\",\"--disturl=https://tnpm-hz.oss-cn-hangzhou.aliyuncs.com/dist/node\",\"--userconfig=/Users/shiwu/.tnpmrc\",\"--registry=https://registry.npm.alibaba-inc.com\",\"run\",\"demos\"]}", + "PATH": "/usr/local/lib/node_modules/tnpm/node_modules/_npm@6.10.1@npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/shiwu/Documents/GitHub/G6/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/opt/X11/bin:/Users/shiwu/torch/install/bin:/Users/shiwu/torch/install/bin", + "npm_config_allow_same_version": "", + "npm_package_devDependencies_typedoc": "^0.17.6", + "npm_config_https_proxy": "", + "npm_config_engine_strict": "", + "npm_config_description": "true", + "_": "/Users/shiwu/Documents/GitHub/G6/node_modules/.bin/start-storybook", + "npm_config_init_module": "/Users/shiwu/.npm-init.js", + "npm_config_userconfig": "/Users/shiwu/.tnpmrc", + "npm_package_devDependencies_ts_jest": "^24.1.0", + "npm_package_keywords_4": "graph editor", + "NVM_NODEJS_ORG_MIRROR": "https://cdn.npm.taobao.org/dist/node", + "npm_config_cidr": "", + "npm_package_keywords_5": "graph visualization", + "PWD": "/Users/shiwu/Documents/GitHub/G6", + "npm_config_user": "", + "npm_config_node_version": "12.16.3", + "npm_package_lint_staged_______js_jsx_": "npm run lint-staged:js", + "npm_package_bugs_url": "https://github.com/antvis/g6/issues", + "npm_package_keywords_6": "relational data", + "PUPPETEER_DOWNLOAD_HOST": "https://cdn.npm.taobao.org/dist", + "npm_lifecycle_event": "demos", + "CHROMEDRIVER_CDNURL": "https://cdn.npm.taobao.org/dist/chromedriver", + "npm_config_save": "true", + "npm_config_ignore_prepublish": "", + "npm_config_editor": "vi", + "npm_config_auth_type": "legacy", + "npm_package_types": "lib/index.d.ts", + "npm_package_repository_type": "git", + "npm_package_keywords_0": "antv", + "npm_package_name": "@antv/g6", + "LANG": "zh_CN.UTF-8", + "NO_UPDATE_NOTIFIER": "true", + "npm_config_tag": "latest", + "npm_config_script_shell": "", + "npm_package_devDependencies__babel_preset_react": "^7.7.4", + "npm_package_scripts_site_develop": "GATSBY=true gatsby develop --open", + "npm_package_keywords_1": "g6", + "npm_config_progress": "true", + "npm_config_global": "", + "npm_config_before": "", + "npm_package_dependencies__antv_path_util": "^2.0.3", + "npm_package_scripts_start": "npm run site:develop", + "npm_package_scripts_build": "npm run clean && father build && npm run build:umd", + "npm_package_keywords_2": "graph", + "npm_config_searchstaleness": "900", + "npm_config_optional": "true", + "npm_config_ham_it_up": "", + "npm_package_devDependencies_ts_loader": "^7.0.3", + "npm_package_dependencies__antv_component": "^0.6.1", + "npm_package_keywords_3": "graph analysis", + "XPC_FLAGS": "0x0", + "npm_config_save_prod": "", + "npm_config_force": "", + "npm_config_bin_links": "true", + "SENTRYCLI_CDNURL": "https://cdn.npm.taobao.org/dist/sentry-cli", + "npm_config_searchopts": "", + "npm_package_devDependencies_pre_commit": "^1.2.2", + "npm_package_devDependencies__storybook_react": "^5.2.8", + "npm_package_devDependencies__storybook_addon_info": "^5.2.8", + "npm_config_node_gyp": "/usr/local/lib/node_modules/tnpm/node_modules/_npm@6.10.1@npm/node_modules/node-gyp/bin/node-gyp.js", + "npm_config_depth": "Infinity", + "npm_package_main": "lib/index.js", + "npm_config_sso_poll_frequency": "500", + "npm_config_rebuild_bundle": "true", + "npm_package_scripts_watch": "father build -w", + "npm_package_version": "3.6.0", + "XPC_SERVICE_NAME": "0", + "npm_config_unicode": "true", + "npm_package_devDependencies_worker_loader": "^2.0.0", + "yarn_registry": "https://registry.npm.alibaba-inc.com", + "HOME": "/Users/shiwu", + "SHLVL": "3", + "npm_config_fetch_retry_maxtimeout": "60000", + "npm_package_scripts_test": "jest", + "npm_package_scripts_site_build": "npm run site:clean && GATSBY=true gatsby build --prefix-paths", + "VSCODE_GIT_ASKPASS_MAIN": "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", + "npm_config_tag_version_prefix": "v", + "npm_config_strict_ssl": "true", + "npm_config_sso_type": "oauth", + "npm_config_scripts_prepend_node_path": "warn-only", + "npm_config_save_prefix": "^", + "npm_config_loglevel": "notice", + "npm_config_ca": "", + "npm_config_save_exact": "", + "npm_config_group": "20", + "npm_config_fetch_retry_factor": "10", + "npm_config_dev": "", + "npm_package_devDependencies_husky": "^4.2.5", + "npm_package_dependencies_dagre": "^0.8.5", + "SASS_BINARY_SITE": "https://cdn.npm.taobao.org/dist/node-sass", + "npm_config_version": "", + "npm_config_prefer_offline": "", + "npm_config_cache_lock_stale": "60000", + "npm_package_devDependencies_ttypescript": "^1.5.8", + "npm_package_devDependencies_event_simulate": "~1.0.0", + "npm_package_dependencies__antv_dom_util": "^2.0.1", + "PHANTOMJS_CDNURL": "https://cdn.npm.taobao.org/dist/phantomjs", + "npm_config_otp": "", + "npm_config_cache_min": "10", + "npm_config_disturl": "https://tnpm-hz.oss-cn-hangzhou.aliyuncs.com/dist/node", + "OPERADRIVER_CDNURL": "https://cdn.npm.taobao.org/dist/operadriver", + "npm_config_searchexclude": "", + "npm_config_cache": "/Users/shiwu/.tnpm", + "npm_package_scripts_cdn": "antv-bin upload -n @antv/g6", + "LOGNAME": "shiwu", + "npm_lifecycle_script": "start-storybook -p 8080 -c .storybook", + "npm_config_color": "true", + "npm_package_devDependencies_gh_pages": "^2.1.1", + "NODEJS_ORG_MIRROR": "https://cdn.npm.taobao.org/dist/node", + "npm_config_package_lock": "true", + "npm_config_proxy": "", + "npm_package_scripts_build_umd": "webpack --config webpack.config.js --mode production", + "VSCODE_GIT_IPC_HANDLE": "/var/folders/hr/y83tnpys531br0cbp1zy17rh0000gp/T/vscode-git-3cac888e60.sock", + "npm_config_package_lock_only": "", + "npm_config_save_optional": "", + "npm_package_browser": "dist/g6.min.js", + "npm_config_ignore_scripts": "", + "npm_config_user_agent": "npm/6.10.1 node/v12.16.3 darwin x64", + "npm_package_dependencies__antv_matrix_util": "^2.0.4", + "npm_package_files_3": "dist", + "NVM_IOJS_ORG_MIRROR": "https://cdn.npm.taobao.org/dist/iojs", + "npm_config_cache_lock_wait": "10000", + "npm_package_devDependencies__types_node": "13.11.1", + "npm_package_files_2": "lib", + "GIT_ASKPASS": "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", + "VSCODE_GIT_ASKPASS_NODE": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer)", + "npm_config_production": "", + "npm_package_lint_staged_______js_ts_tsx_": "npm run lint-staged:js", + "npm_package_files_1": "es", + "DISPLAY": "/private/tmp/com.apple.launchd.86VBkMcR5H/org.macosforge.xquartz:0", + "npm_config_send_metrics": "", + "npm_config_save_bundle": "", + "npm_package_dependencies__antv_g_base": "^0.4.1", + "npm_package_scripts_site_deploy": "npm run site:build && gh-pages -d public", + "npm_package_files_0": "package.json", + "npm_config_umask": "0022", + "npm_config_node_options": "", + "npm_config_init_version": "1.0.0", + "npm_config_sharp_binary_host": "https://cdn.npm.taobao.org/dist/sharp", + "npm_package_dependencies__antv_scale": "^0.3.1", + "npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__0": "prettier --write", + "npm_config_init_author_name": "", + "npm_config_git": "git", + "npm_config_scope": "", + "npm_package_lint_staged_______js_jsx_tsx_ts_less_md_json__1": "git add", + "npm_package_scripts_clean": "rimraf es esm lib dist", + "npm_config_unsafe_perm": "true", + "npm_config_onload_script": "", + "npm_config_tmp": "/Users/shiwu/.tnpm_tmp", + "npm_package_devDependencies_rollup_plugin_web_worker_loader": "^0.8.1", + "npm_package_scripts_lint_src": "eslint --cache --ext .ts --format=pretty \"./src\"", + "npm_package_scripts_demos": "start-storybook -p 8080 -c .storybook", + "npm_package_files_5": "README.md", + "npm_node_execpath": "/usr/local/bin/node", + "npm_config_link": "", + "npm_config_prefix": "/usr/local", + "npm_package_files_4": "LICENSE", + "COLORTERM": "truecolor", + "NODE_ENV": "development" + }, + "userLimits": { + "core_file_size_blocks": { + "soft": 0, + "hard": "unlimited" + }, + "data_seg_size_kbytes": { + "soft": "unlimited", + "hard": "unlimited" + }, + "file_size_blocks": { + "soft": "unlimited", + "hard": "unlimited" + }, + "max_locked_memory_bytes": { + "soft": "unlimited", + "hard": "unlimited" + }, + "max_memory_size_kbytes": { + "soft": "unlimited", + "hard": "unlimited" + }, + "open_files": { + "soft": 24576, + "hard": "unlimited" + }, + "stack_size_bytes": { + "soft": 8388608, + "hard": 67104768 + }, + "cpu_time_seconds": { + "soft": "unlimited", + "hard": "unlimited" + }, + "max_user_processes": { + "soft": 1418, + "hard": 2128 + }, + "virtual_memory_kbytes": { + "soft": "unlimited", + "hard": "unlimited" + } + }, + "sharedObjects": [ + "/usr/local/bin/node", + "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation", + "/usr/lib/libSystem.B.dylib", + "/usr/lib/libc++.1.dylib", + "/usr/lib/libobjc.A.dylib", + "/usr/lib/libDiagnosticMessagesClient.dylib", + "/usr/lib/libicucore.A.dylib", + "/usr/lib/libz.1.dylib", + "/usr/lib/libc++abi.dylib", + "/usr/lib/system/libcache.dylib", + "/usr/lib/system/libcommonCrypto.dylib", + "/usr/lib/system/libcompiler_rt.dylib", + "/usr/lib/system/libcopyfile.dylib", + "/usr/lib/system/libcorecrypto.dylib", + "/usr/lib/system/libdispatch.dylib", + "/usr/lib/system/libdyld.dylib", + "/usr/lib/system/libkeymgr.dylib", + "/usr/lib/system/liblaunch.dylib", + "/usr/lib/system/libmacho.dylib", + "/usr/lib/system/libquarantine.dylib", + "/usr/lib/system/libremovefile.dylib", + "/usr/lib/system/libsystem_asl.dylib", + "/usr/lib/system/libsystem_blocks.dylib", + "/usr/lib/system/libsystem_c.dylib", + "/usr/lib/system/libsystem_configuration.dylib", + "/usr/lib/system/libsystem_coreservices.dylib", + "/usr/lib/system/libsystem_darwin.dylib", + "/usr/lib/system/libsystem_dnssd.dylib", + "/usr/lib/system/libsystem_info.dylib", + "/usr/lib/system/libsystem_m.dylib", + "/usr/lib/system/libsystem_malloc.dylib", + "/usr/lib/system/libsystem_networkextension.dylib", + "/usr/lib/system/libsystem_notify.dylib", + "/usr/lib/system/libsystem_sandbox.dylib", + "/usr/lib/system/libsystem_secinit.dylib", + "/usr/lib/system/libsystem_kernel.dylib", + "/usr/lib/system/libsystem_platform.dylib", + "/usr/lib/system/libsystem_pthread.dylib", + "/usr/lib/system/libsystem_symptoms.dylib", + "/usr/lib/system/libsystem_trace.dylib", + "/usr/lib/system/libunwind.dylib", + "/usr/lib/system/libxpc.dylib", + "/System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib", + "/usr/lib/libnetwork.dylib", + "/usr/lib/libpcap.A.dylib", + "/usr/lib/libcoretls.dylib", + "/usr/lib/libcoretls_cfhelpers.dylib", + "/System/Library/Frameworks/Security.framework/Versions/A/Security", + "/usr/lib/libapple_nghttp2.dylib", + "/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation", + "/System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression", + "/usr/lib/libOpenScriptingUtil.dylib", + "/usr/lib/libauto.dylib", + "/usr/lib/libbsm.0.dylib", + "/usr/lib/libpam.2.dylib", + "/usr/lib/libsqlite3.dylib", + "/usr/lib/libxar.1.dylib", + "/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit", + "/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration", + "/usr/lib/libarchive.2.dylib", + "/usr/lib/libxml2.2.dylib", + "/System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork", + "/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices", + "/usr/lib/liblangid.dylib", + "/usr/lib/libCRFSuite.dylib", + "/usr/lib/libenergytrace.dylib", + "/usr/lib/system/libkxld.dylib", + "/usr/lib/libbz2.1.0.dylib", + "/usr/lib/liblzma.5.dylib", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList", + "/System/Library/Frameworks/NetFS.framework/Versions/A/NetFS", + "/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth", + "/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport", + "/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC", + "/System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP", + "/System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities", + "/usr/lib/libmecabra.dylib", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices", + "/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics", + "/System/Library/Frameworks/CoreText.framework/Versions/A/CoreText", + "/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO", + "/System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis", + "/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight", + "/System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate", + "/usr/lib/libcompression.dylib", + "/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay", + "/System/Library/Frameworks/Metal.framework/Versions/A/Metal", + "/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders", + "/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport", + "/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib", + "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib", + "/System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler", + "/System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator", + "/System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment", + "/System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay", + "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib", + "/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore", + "/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage", + "/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork", + "/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix", + "/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSRayIntersector.framework/Versions/A/MPSRayIntersector", + "/System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools", + "/System/Library/PrivateFrameworks/AggregateDictionary.framework/Versions/A/AggregateDictionary", + "/usr/lib/libMobileGestalt.dylib", + "/System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage", + "/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo", + "/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL", + "/System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer", + "/System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore", + "/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL", + "/usr/lib/libFosl_dynamic.dylib", + "/System/Library/PrivateFrameworks/OTSVG.framework/Versions/A/OTSVG", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib", + "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib", + "/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib", + "/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib", + "/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib", + "/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib", + "/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib", + "/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib", + "/System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG", + "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib", + "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib", + "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib", + "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib", + "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib", + "/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib", + "/usr/lib/libcups.2.dylib", + "/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos", + "/System/Library/Frameworks/GSS.framework/Versions/A/GSS", + "/usr/lib/libresolv.9.dylib", + "/usr/lib/libiconv.2.dylib", + "/System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal", + "/usr/lib/libheimdal-asn1.dylib", + "/System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory", + "/System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth", + "/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory", + "/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation", + "/System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS", + "/usr/lib/libutil.dylib", + "/usr/lib/libcharset.1.dylib", + "/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio", + "/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox", + "/System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce", + "/System/Library/PrivateFrameworks/AssertionServices.framework/Versions/A/AssertionServices", + "/System/Library/PrivateFrameworks/BaseBoard.framework/Versions/A/BaseBoard", + "/usr/lib/libmecab.1.0.0.dylib", + "/usr/lib/libgermantok.dylib", + "/usr/lib/libThaiTokenizer.dylib", + "/usr/lib/libChineseTokenizer.dylib", + "/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling", + "/System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji", + "/System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon", + "/System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData", + "/usr/lib/libcmph.dylib", + "/System/Library/Frameworks/CoreData.framework/Versions/A/CoreData", + "/System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement", + "/System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement", + "/usr/lib/libxslt.1.dylib", + "/Users/shiwu/Documents/GitHub/G6/node_modules/_fsevents@2.1.3@fsevents/fsevents.node" + ] +} \ No newline at end of file diff --git a/src/layout/g6force.ts b/src/layout/g6force.ts index 77f841073c..8d498c9b91 100644 --- a/src/layout/g6force.ts +++ b/src/layout/g6force.ts @@ -74,7 +74,7 @@ export default class G6Force extends BaseLayout { public optimizeRangeFactor: number = 1; /** 每次迭代的回调函数 */ - public tick: () => void = () => {}; + public tick: () => void = () => { }; /** 内部计算参数 */ public nodes: Node[] = []; diff --git a/stories/Layout/component/g6force.tsx b/stories/Layout/component/g6force.tsx new file mode 100644 index 0000000000..62fb8f19f4 --- /dev/null +++ b/stories/Layout/component/g6force.tsx @@ -0,0 +1,51 @@ +import React, { useEffect } from 'react'; +import G6 from '../../../src'; +import { IGraph } from '../../../src/interface/graph'; + +let graph: IGraph = null; + +const G6Force = () => { + const container = React.useRef(); + useEffect(() => { + if (!graph) { + + const graph = new G6.Graph({ + container: container.current as string | HTMLElement, + width: 500, + height: 500, + layout: { + type: 'g6force', + linkDistance: 50, + // preventOverlap: true + maxIteration: 10 + }, + defaultNode: { + size: 15, + color: '#5B8FF9', + style: { + lineWidth: 2, + fill: '#C6E5FF', + }, + }, + defaultEdge: { + size: 1, + color: '#e2e2e2', + }, + modes: { + default: ['drag-canvas', 'zoom-canvas'] + } + }); + + const data = { + nodes: [{ "id": "0", "x": 420.0, "y": 231.0 }, { "id": "1", "x": 398.0, "y": 431.0 }, { "id": "2", "x": 86.0, "y": 480.0 }, { "id": "3", "x": 33.0, "y": 189.0 }, { "id": "4", "x": 207.0, "y": 38.0 }, { "id": "5", "x": 148.0, "y": 436.0 }, { "id": "6", "x": 375.0, "y": 424.0 }, { "id": "7", "x": 90.0, "y": 354.0 }, { "id": "8", "x": 441.0, "y": 93.0 }, { "id": "9", "x": 418.0, "y": 313.0 }, { "id": "10", "x": 499.0, "y": 95.0 }, { "id": "11", "x": 208.0, "y": 326.0 }, { "id": "12", "x": 27.0, "y": 77.0 }, { "id": "13", "x": 498.0, "y": 478.0 }, { "id": "14", "x": 413.0, "y": 372.0 }, { "id": "15", "x": 194.0, "y": 129.0 }, { "id": "16", "x": 431.0, "y": 141.0 }, { "id": "17", "x": 339.0, "y": 94.0 }, { "id": "18", "x": 439.0, "y": 94.0 }, { "id": "19", "x": 492.0, "y": 393.0 }, { "id": "20", "x": 452.0, "y": 377.0 }, { "id": "21", "x": 456.0, "y": 293.0 }, { "id": "22", "x": 424.0, "y": 286.0 }, { "id": "23", "x": 472.0, "y": 494.0 }, { "id": "24", "x": 290.0, "y": 303.0 }, { "id": "25", "x": 68.0, "y": 405.0 }, { "id": "26", "x": 483.0, "y": 455.0 }, { "id": "27", "x": 466.0, "y": 218.0 }, { "id": "28", "x": 188.0, "y": 307.0 }, { "id": "29", "x": 341.0, "y": 117.0 }, { "id": "30", "x": 135.0, "y": 414.0 }, { "id": "31", "x": 339.0, "y": 72.0 }, { "id": "32", "x": 204.0, "y": 319.0 }, { "id": "33", "x": 234.0, "y": 385.0 }, { "id": "34", "x": 404.0, "y": 311.0 }, { "id": "35", "x": 411.0, "y": 221.0 }, { "id": "36", "x": 326.0, "y": 18.0 }, { "id": "37", "x": 478.0, "y": 86.0 }, { "id": "38", "x": 9.0, "y": 492.0 }, { "id": "39", "x": 318.0, "y": 100.0 }, { "id": "40", "x": 114.0, "y": 274.0 }, { "id": "41", "x": 40.0, "y": 71.0 }, { "id": "42", "x": 342.0, "y": 367.0 }, { "id": "43", "x": 11.0, "y": 444.0 }, { "id": "44", "x": 345.0, "y": 251.0 }, { "id": "45", "x": 270.0, "y": 67.0 }, { "id": "46", "x": 179.0, "y": 402.0 }, { "id": "47", "x": 321.0, "y": 123.0 }, { "id": "48", "x": 382.0, "y": 26.0 }, { "id": "49", "x": 482.0, "y": 373.0 }, { "id": "50", "x": 445.0, "y": 48.0 }, { "id": "51", "x": 286.0, "y": 193.0 }, { "id": "52", "x": 65.0, "y": 494.0 }, { "id": "53", "x": 413.0, "y": 17.0 }, { "id": "54", "x": 45.0, "y": 417.0 }, { "id": "55", "x": 190.0, "y": 216.0 }, { "id": "56", "x": 111.0, "y": 227.0 }, { "id": "57", "x": 66.0, "y": 365.0 }, { "id": "58", "x": 357.0, "y": 414.0 }, { "id": "59", "x": 25.0, "y": 65.0 }, { "id": "60", "x": 89.0, "y": 453.0 }, { "id": "61", "x": 314.0, "y": 346.0 }, { "id": "62", "x": 171.0, "y": 303.0 }, { "id": "63", "x": 258.0, "y": 198.0 }, { "id": "64", "x": 472.0, "y": 243.0 }, { "id": "65", "x": 244.0, "y": 297.0 }, { "id": "66", "x": 4.0, "y": 3.0 }, { "id": "67", "x": 496.0, "y": 440.0 }, { "id": "68", "x": 458.0, "y": 366.0 }, { "id": "69", "x": 225.0, "y": 362.0 }], + edges: [{ "source": "0", "target": "69", "value": 1 }, { "source": "1", "target": "67", "value": 1 }, { "source": "2", "target": "54", "value": 1 }, { "source": "3", "target": "12", "value": 1 }, { "source": "4", "target": "26", "value": 1 }, { "source": "5", "target": "57", "value": 1 }, { "source": "6", "target": "37", "value": 1 }, { "source": "7", "target": "60", "value": 1 }, { "source": "8", "target": "35", "value": 1 }, { "source": "9", "target": "21", "value": 1 }, { "source": "0", "target": "25", "value": 1 }, { "source": "1", "target": "58", "value": 1 }, { "source": "2", "target": "69", "value": 1 }, { "source": "3", "target": "12", "value": 1 }, { "source": "4", "target": "25", "value": 1 }, { "source": "5", "target": "7", "value": 1 }, { "source": "6", "target": "45", "value": 1 }, { "source": "7", "target": "12", "value": 1 }, { "source": "8", "target": "48", "value": 1 }, { "source": "9", "target": "8", "value": 1 }, { "source": "0", "target": "56", "value": 1 }, { "source": "1", "target": "57", "value": 1 }, { "source": "2", "target": "48", "value": 1 }, { "source": "3", "target": "62", "value": 1 }, { "source": "4", "target": "12", "value": 1 }, { "source": "5", "target": "29", "value": 1 }, { "source": "6", "target": "30", "value": 1 }, { "source": "7", "target": "55", "value": 1 }, { "source": "8", "target": "39", "value": 1 }, { "source": "9", "target": "20", "value": 1 }, { "source": "0", "target": "4", "value": 1 }, { "source": "1", "target": "19", "value": 1 }, { "source": "2", "target": "26", "value": 1 }, { "source": "3", "target": "41", "value": 1 }, { "source": "4", "target": "33", "value": 1 }, { "source": "5", "target": "58", "value": 1 }, { "source": "6", "target": "67", "value": 1 }, { "source": "7", "target": "64", "value": 1 }, { "source": "8", "target": "21", "value": 1 }, { "source": "9", "target": "65", "value": 1 }, { "source": "0", "target": "9", "value": 1 }, { "source": "1", "target": "26", "value": 1 }, { "source": "2", "target": "48", "value": 1 }, { "source": "3", "target": "41", "value": 1 }, { "source": "4", "target": "43", "value": 1 }, { "source": "5", "target": "24", "value": 1 }, { "source": "6", "target": "36", "value": 1 }, { "source": "7", "target": "28", "value": 1 }, { "source": "8", "target": "22", "value": 1 }, { "source": "9", "target": "28", "value": 1 }, { "source": "0", "target": "56", "value": 1 }, { "source": "1", "target": "52", "value": 1 }, { "source": "2", "target": "38", "value": 1 }, { "source": "3", "target": "49", "value": 1 }, { "source": "4", "target": "25", "value": 1 }, { "source": "5", "target": "52", "value": 1 }, { "source": "6", "target": "59", "value": 1 }, { "source": "7", "target": "61", "value": 1 }, { "source": "8", "target": "65", "value": 1 }, { "source": "9", "target": "66", "value": 1 }, { "source": "0", "target": "31", "value": 1 }, { "source": "1", "target": "49", "value": 1 }, { "source": "2", "target": "57", "value": 1 }, { "source": "3", "target": "66", "value": 1 }, { "source": "4", "target": "12", "value": 1 }, { "source": "5", "target": "17", "value": 1 }, { "source": "6", "target": "23", "value": 1 }, { "source": "7", "target": "14", "value": 1 }, { "source": "8", "target": "47", "value": 1 }, { "source": "9", "target": "47", "value": 1 }] + }; + graph.data(data); + + graph.render(); + } + }); + return
; +}; + +export default G6Force;