starting work on link map reimplementation using force-graph library

This commit is contained in:
zadam
2021-05-29 22:52:32 +02:00
parent 60f88574b0
commit f5573fcad4
8 changed files with 183 additions and 255 deletions

View File

@@ -57,6 +57,10 @@ const WHEEL_ZOOM = {
js: [ "libraries/wheel-zoom.min.js"]
};
const FORCE_GRAPH = {
js: [ "libraries/force-graph.min.js"]
};
async function requireLibrary(library) {
if (library.css) {
library.css.map(cssUrl => requireCss(cssUrl));
@@ -106,5 +110,6 @@ export default {
PRINT_THIS,
CALENDAR_WIDGET,
KATEX,
WHEEL_ZOOM
WHEEL_ZOOM,
FORCE_GRAPH
}