chore(docs): allow intro nodes to be dragged and use bezier edges
This commit is contained in:
@@ -30,7 +30,6 @@ onMounted(() => {
|
|||||||
const initialEdges = [
|
const initialEdges = [
|
||||||
{
|
{
|
||||||
id: 'eintro-examples',
|
id: 'eintro-examples',
|
||||||
type: 'smoothstep',
|
|
||||||
sourceHandle: 'a',
|
sourceHandle: 'a',
|
||||||
source: 'intro',
|
source: 'intro',
|
||||||
target: 'examples',
|
target: 'examples',
|
||||||
@@ -39,7 +38,6 @@ const initialEdges = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'eintro-documentation',
|
id: 'eintro-documentation',
|
||||||
type: 'smoothstep',
|
|
||||||
sourceHandle: 'a',
|
sourceHandle: 'a',
|
||||||
source: 'intro',
|
source: 'intro',
|
||||||
target: 'documentation',
|
target: 'documentation',
|
||||||
@@ -48,7 +46,6 @@ const initialEdges = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'eintro-acknowledgement',
|
id: 'eintro-acknowledgement',
|
||||||
type: 'smoothstep',
|
|
||||||
sourceHandle: 'a',
|
sourceHandle: 'a',
|
||||||
source: 'intro',
|
source: 'intro',
|
||||||
target: 'acknowledgement',
|
target: 'acknowledgement',
|
||||||
@@ -65,7 +62,6 @@ const { dimensions, onNodeClick, getNodes, fitView, getNode, getEdge, updateEdge
|
|||||||
],
|
],
|
||||||
edges: initialEdges,
|
edges: initialEdges,
|
||||||
elementsSelectable: true,
|
elementsSelectable: true,
|
||||||
nodesDraggable: false,
|
|
||||||
panOnDrag: false,
|
panOnDrag: false,
|
||||||
zoomOnScroll: false,
|
zoomOnScroll: false,
|
||||||
zoomOnDoubleClick: false,
|
zoomOnDoubleClick: false,
|
||||||
@@ -152,7 +148,6 @@ const setNodes = () => {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
id: 'eintro-examples',
|
id: 'eintro-examples',
|
||||||
type: 'smoothstep',
|
|
||||||
sourceHandle: 'a',
|
sourceHandle: 'a',
|
||||||
source: 'intro',
|
source: 'intro',
|
||||||
target: 'examples',
|
target: 'examples',
|
||||||
@@ -161,7 +156,6 @@ const setNodes = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'eexamples-documentation',
|
id: 'eexamples-documentation',
|
||||||
type: 'smoothstep',
|
|
||||||
source: 'examples',
|
source: 'examples',
|
||||||
target: 'documentation',
|
target: 'documentation',
|
||||||
animated: true,
|
animated: true,
|
||||||
@@ -169,7 +163,6 @@ const setNodes = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'edocumentation-acknowledgement',
|
id: 'edocumentation-acknowledgement',
|
||||||
type: 'smoothstep',
|
|
||||||
source: 'documentation',
|
source: 'documentation',
|
||||||
target: 'acknowledgement',
|
target: 'acknowledgement',
|
||||||
animated: true,
|
animated: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user