summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-22 18:41:18 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-22 18:41:18 +0200
commita71be5204800100917034f49d14243010b3f648c (patch)
treeb16f2017f7979d07e394299bed06dad320ae13cc /pages
parent1d66292f8f16af75ac878a94a87abf9e56ee38ea (diff)
passed emacsnode prop
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 31cc0ba..ff0537f 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -201,6 +201,7 @@ export function GraphPage() {
physics,
graphData,
threeDim,
+ emacsNode,
}}
/>
</div>
@@ -529,10 +530,11 @@ export interface GraphProps {
graphData: GraphData
physics: typeof initialPhysics
threeDim: boolean
+ emacsNode: string
}
export const Graph = function (props: GraphProps) {
- const { physics, graphData, threeDim, linksByNodeId } = props
+ const { physics, graphData, threeDim, linksByNodeId, emacsNode } = props
const graph2dRef = useRef<any>(null)
const graph3dRef = useRef<any>(null)