diff --git a/src/Graph.svelte b/src/Graph.svelte index 1beef29..0b8ccf2 100644 --- a/src/Graph.svelte +++ b/src/Graph.svelte @@ -52,10 +52,13 @@ panOnDrag={!$auto} edgesUpdatable={!$auto} connectOnClick={true} - nodesFocusable={!$auto} - edgesFocusable={!$auto} + nodesFocusable={false} + edgesFocusable={false} + elementsSelectable={false} + nodesSelectable={!$auto} zoomOnScroll={!$auto} deleteKey={0} + multiSelectionKeyCode={null} on:nodeclick={onClick} {nodeTypes} {edgeTypes} diff --git a/src/Node.svelte b/src/Node.svelte index d7f182d..7712045 100644 --- a/src/Node.svelte +++ b/src/Node.svelte @@ -1,10 +1,12 @@ -
+
{data.nodeType}
{#if data.nodeType != "output"} @@ -96,6 +98,10 @@ .node { padding: 5px; } + .selected { + outline: 2px solid var(--b1); + background-color: var(--b2); + } .head { display: flex; justify-content: space-between;