Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new graph #414

Merged
merged 13 commits into from
Sep 21, 2022
Merged

Add new graph #414

merged 13 commits into from
Sep 21, 2022

Conversation

xypnox
Copy link
Contributor

@xypnox xypnox commented Sep 21, 2022

Description

  • New graph library react-force-graph
  • Features
    • 3D
    • Click to focus with animation
    • Fit graph to screen
    • Fullscreen graph
    • Stability
  • Global graph is based on the current opened namespace
  • Local graph includes all nodes related to the current note, including those of different namespaces
  • Local graph has directional curved links with arrows
  • Graph controls are:
    • Left click+drag to rotate
    • Right click+drag to pan
    • Left click on node to focus it and see its preview
    • Left click and drag to reposition the node (positions are not saved)
    • Mouse wheel/Middle click to zoom
    • Buttons for fullscreen / fit graph to screen beside the local graph switch
  • Root node has been replaced with the current namespace name

Motivation and Context

  • Revamp old graph

How has this been tested?

  • Making new graph
  • Seeing graphs for different namespaces

Screenshots (if appropriate):

Screenshot 2022-09-21 at 8 28 30 PM
Screenshot 2022-09-21 at 8 28 21 PM

Screenshot 2022-09-21 at 8 29 01 PM

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.

@linear
Copy link

linear bot commented Sep 21, 2022

WD-1562 [TASK] Add new graph

Description

https://www.npmjs.com/package/react-force-graph

Purpose

What is the purpose of this task?

Make graph great again

  • Basic nested hierarchy
  • On Click preview
  • On double click navigate
  • Local Graph

Additional Context

Any additional information that needs to be added

NA

@github-actions
Copy link

github-actions bot commented Sep 21, 2022

yarn.lock changes

Summary

Status Count
ADDED 103
UPDATED 96
REMOVED 4
Click to toggle table visibility
Name Status Previous Current
@babel/compat-data UPDATED 7.18.13 7.19.1
@babel/core UPDATED 7.18.13 7.19.1
@babel/generator UPDATED 7.18.13 7.19.0
@babel/helper-compilation-targets UPDATED 7.18.9 7.19.1
@babel/helper-function-name UPDATED 7.18.9 7.19.0
@babel/helper-module-transforms UPDATED 7.18.9 7.19.0
@babel/helper-plugin-utils UPDATED 7.18.9 7.19.0
@babel/helper-validator-identifier UPDATED 7.18.6 7.19.1
@babel/helpers UPDATED 7.18.9 7.19.0
@babel/parser UPDATED 7.18.13 7.19.1
@babel/plugin-transform-react-jsx UPDATED 7.18.10 7.19.0
@babel/runtime-corejs2 UPDATED 7.18.9 7.19.2
@babel/runtime UPDATED 7.18.9 7.19.0
@babel/traverse UPDATED 7.18.13 7.19.1
@babel/types UPDATED 7.18.13 7.19.0
@esbuild/android-arm ADDED - 0.15.8
@esbuild/linux-loong64 UPDATED 0.14.54 0.15.8
@fluentui/theme UPDATED 1.7.8 1.7.11
@iconify/icons-bi UPDATED 1.2.8 1.2.9
@iconify/icons-logos UPDATED 1.2.15 1.2.17
@iconify/icons-simple-icons UPDATED 1.2.24 1.2.27
@iconify/types UPDATED 1.1.0 2.0.0
@microsoft/load-themed-styles UPDATED 1.10.290 1.10.295
@react-spring/animated UPDATED 9.5.2 9.5.4
@react-spring/core UPDATED 9.5.2 9.5.4
@react-spring/konva UPDATED 9.5.2 9.5.4
@react-spring/native UPDATED 9.5.2 9.5.4
@react-spring/rafz UPDATED 9.5.2 9.5.4
@react-spring/shared UPDATED 9.5.2 9.5.4
@react-spring/three UPDATED 9.5.2 9.5.4
@react-spring/types UPDATED 9.5.2 9.5.4
@react-spring/web UPDATED 9.5.2 9.5.4
@react-spring/zdog UPDATED 9.5.2 9.5.4
@remix-run/router ADDED - 1.0.0
@testing-library/dom UPDATED 8.17.1 8.18.0
@tweenjs/tween.js ADDED - 18.6.4
@types/lodash UPDATED 4.14.184 4.14.185
@types/minimatch UPDATED 5.1.1 5.1.2
@types/node UPDATED 14.18.26 14.18.29
@types/react UPDATED 18.0.17 18.0.20
@types/three ADDED - 0.144.0
@types/webxr ADDED - 0.5.0
@udecode/zustood UPDATED 1.1.1 1.1.3
@uifabric/merge-styles UPDATED 7.19.2 7.20.0
@uifabric/styling UPDATED 7.21.3 7.22.3
@uifabric/utilities UPDATED 7.36.0 7.38.0
@vitejs/plugin-react UPDATED 2.0.1 2.1.0
3d-force-graph-ar ADDED - 1.7.5
3d-force-graph-vr ADDED - 2.0.15
3d-force-graph ADDED - 1.70.13
accessor-fn ADDED - 1.3.2
aframe-extras ADDED - 6.1.1
aframe-forcegraph-component ADDED - 3.0.6
aframe ADDED - 1.3.0
an-array ADDED - 1.0.0
ansi-styles UPDATED 6.1.0 6.1.1
array-shuffle ADDED - 1.0.1
as-number ADDED - 1.0.0
bezier-js ADDED - 6.1.0
browserslist UPDATED 4.21.3 4.21.4
buffer-to-arraybuffer ADDED - 0.0.5
caniuse-lite UPDATED 1.0.30001385 1.0.30001406
canvas-color-tracker ADDED - 1.1.6
cardboard-vr-display ADDED - 1.0.19
ci-info UPDATED 3.3.2 3.4.0
core-js UPDATED 3.25.0 3.25.2
csstype UPDATED 3.1.0 3.1.1
custom-event-polyfill ADDED - 1.0.7
d3-array ADDED - 3.2.0
d3-binarytree ADDED - 0.2.2
d3-color ADDED - 3.1.0
d3-dispatch ADDED - 3.0.1
d3-drag ADDED - 3.0.0
d3-ease ADDED - 3.0.1
d3-force-3d ADDED - 3.0.3
d3-format ADDED - 3.1.0
d3-interpolate ADDED - 3.0.1
d3-octree ADDED - 0.2.2
d3-quadtree ADDED - 3.0.1
d3-scale-chromatic ADDED - 3.0.0
d3-scale ADDED - 4.0.2
d3-selection ADDED - 3.0.0
d3-time-format ADDED - 4.1.0
d3-time ADDED - 3.0.0
d3-timer ADDED - 3.0.1
d3-transition ADDED - 3.0.1
d3-zoom ADDED - 3.0.0
data-joint ADDED - 1.2.6
date-fns UPDATED 2.29.2 2.29.3
debounce ADDED - 1.2.1
decode-uri-component ADDED - 0.2.0
deep-assign ADDED - 2.0.0
document-register-element ADDED - 0.5.4
dom-walk ADDED - 0.1.2
downshift UPDATED 6.1.9 6.1.11
dtype ADDED - 2.0.0
electron-to-chromium UPDATED 1.4.234 1.4.254
es-abstract UPDATED 1.20.1 1.20.2
esbuild-android-64 UPDATED 0.14.54 0.15.8
esbuild-android-arm64 UPDATED 0.14.54 0.15.8
esbuild-darwin-64 UPDATED 0.14.54 0.15.8
esbuild-darwin-arm64 UPDATED 0.14.54 0.15.8
esbuild-freebsd-64 UPDATED 0.14.54 0.15.8
esbuild-freebsd-arm64 UPDATED 0.14.54 0.15.8
esbuild-linux-32 UPDATED 0.14.54 0.15.8
esbuild-linux-64 UPDATED 0.14.54 0.15.8
esbuild-linux-arm UPDATED 0.14.54 0.15.8
esbuild-linux-arm64 UPDATED 0.14.54 0.15.8
esbuild-linux-mips64le UPDATED 0.14.54 0.15.8
esbuild-linux-ppc64le UPDATED 0.14.54 0.15.8
esbuild-linux-riscv64 UPDATED 0.14.54 0.15.8
esbuild-linux-s390x UPDATED 0.14.54 0.15.8
esbuild-netbsd-64 UPDATED 0.14.54 0.15.8
esbuild-openbsd-64 UPDATED 0.14.54 0.15.8
esbuild-sunos-64 UPDATED 0.14.54 0.15.8
esbuild-wasm ADDED - 0.15.8
esbuild-windows-32 UPDATED 0.14.54 0.15.8
esbuild-windows-64 UPDATED 0.14.54 0.15.8
esbuild-windows-arm64 UPDATED 0.14.54 0.15.8
esbuild UPDATED 0.14.54 0.15.8
eslint-plugin-react UPDATED 7.31.1 7.31.8
fast-glob UPDATED 3.2.11 3.2.12
flatten-vertex-data ADDED - 1.0.2
follow-redirects UPDATED 1.15.1 1.15.2
force-graph ADDED - 1.42.13
fromentries ADDED - 1.3.2
get-intrinsic UPDATED 1.1.2 1.1.3
gl-preserve-state ADDED - 1.0.0
global ADDED - 4.4.0
index-array-by ADDED - 1.3.3
internmap ADDED - 2.0.3
is-callable UPDATED 1.2.4 1.2.6
is-function ADDED - 1.0.2
jerrypick ADDED - 1.0.5
jotai UPDATED 1.8.2 1.8.4
kapsule ADDED - 1.13.8
layout-bmfont-text ADDED - 1.3.4
load-bmfont ADDED - 1.4.1
lodash.throttle ADDED - 4.1.1
map-limit ADDED - 0.0.1
mdast-util-to-hast UPDATED 12.2.1 12.2.2
min-document ADDED - 2.19.0
new-array ADDED - 1.0.0
ngraph.events ADDED - 1.2.2
ngraph.forcelayout ADDED - 3.3.0
ngraph.graph ADDED - 20.0.0
ngraph.merge ADDED - 1.0.0
ngraph.random ADDED - 1.1.0
nice-color-palettes ADDED - 1.0.1
nosleep.js ADDED - 0.7.0
parse-bmfont-ascii ADDED - 1.0.6
parse-bmfont-binary ADDED - 1.0.6
parse-bmfont-xml ADDED - 1.1.4
parse-headers ADDED - 2.0.5
phin ADDED - 2.9.3
present ADDED - 0.0.6
process ADDED - 0.11.10
promise-polyfill ADDED - 3.1.0
quad-indices ADDED - 2.0.1
query-string ADDED - 5.1.1
rc-util UPDATED 5.23.0 5.24.4
react-force-graph ADDED - 1.41.14
react-hook-form UPDATED 7.34.2 7.35.0
react-hot-toast UPDATED 2.3.0 2.4.0
react-kapsule ADDED - 2.2.5
react-responsive UPDATED 9.0.0-beta.10 9.0.0
react-router-dom UPDATED 6.3.0 6.4.0
react-router UPDATED 6.3.0 6.4.0
react-spring UPDATED 9.5.2 9.5.4
react-virtuoso UPDATED 2.17.2 2.19.0
react-vis-network-graph REMOVED 3.0.1 -
rollup UPDATED 2.77.3 2.78.1
sanitize-html UPDATED 2.7.1 2.7.2
strict-uri-encode ADDED - 1.1.0
super-animejs ADDED - 3.1.0
super-three ADDED - 0.137.0
three-bmfont-text ADDED - 2.4.0
three-buffer-vertex-data ADDED - 1.1.0
three-forcegraph ADDED - 1.39.5
three-pathfinding ADDED - 0.7.0
three-render-objects ADDED - 1.27.3
three-spritetext ADDED - 1.6.5
three ADDED - 0.144.0
timed-out ADDED - 4.0.1
tinycolor2 ADDED - 1.4.2
ts-loader UPDATED 9.3.1 9.4.0
typescript UPDATED 4.8.2 4.8.3
update-browserslist-db UPDATED 1.0.5 1.0.9
url-set-query ADDED - 1.0.0
use-memo-one UPDATED 1.1.2 1.1.3
uuid REMOVED 2.0.3 -
vfile UPDATED 5.3.4 5.3.5
vis-data REMOVED 6.6.1 -
vis-network REMOVED 7.10.2 -
vite UPDATED 3.0.9 3.1.3
webvr-polyfill-dpdb ADDED - 1.0.18
webvr-polyfill ADDED - 0.10.12
word-wrapper ADDED - 1.0.7
xhr-request ADDED - 1.1.0
xhr ADDED - 2.6.0
xml-parse-from-string ADDED - 1.0.1
xml2js ADDED - 0.4.23
xtend ADDED - 4.0.2

@xypnox xypnox marked this pull request as ready for review September 21, 2022 16:24
@rpPanda rpPanda merged commit aef5b04 into main Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants