summaryrefslogtreecommitdiff
path: root/pages/index.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-21 12:43:51 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-21 12:43:51 +0200
commit2898f25169460bfe483cda96b3b6ad6a66331a8a (patch)
tree35d844468a0a7b4a2ba05890c83cf6275584dd11 /pages/index.tsx
parentc2124abcaae4d4155a99a15fbcb2c42338827c80 (diff)
added chakra and disabled particles by default
Diffstat (limited to 'pages/index.tsx')
-rw-r--r--pages/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 9a22128..fb15ddc 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -23,7 +23,7 @@ const initialPhysics = {
collision: true,
linkStrength: 0.1,
linkIts: 1,
- particles: 2,
+ particles: 0,
linkOpacity: 0.4,
linkWidth: 1,
particleWidth: 4,
@@ -289,6 +289,7 @@ export const Graph = function (props: GraphProps) {
return linkIsHighlighted ? '#a991f1' : 'rgb(50, 50, 50, 0.2)'
}}
linkDirectionalParticles={physics.particles}
+ linkDirectionalParticleWidth={physics.particleWidth}
nodeLabel={(node) => (node as OrgRoamNode).title}
linkWidth={(link) => {
const linkIsHighlighted =
@@ -304,7 +305,6 @@ export const Graph = function (props: GraphProps) {
const highlightSize = highlightedNodes[node.id!] ? 2 : 0
return basicSize + highlightSize
}}
- linkDirectionalParticleWidth={physics.particleWidth}
nodeCanvasObject={(node, ctx, globalScale) => {
if (!physics.labels) {
return