[ ... ]
@@ -17,6 +13,7 @@ Connections can be validated before edges are created and nodes get connected.
```
## Passing as node option
+
```ts
const nodes = [
{
@@ -31,9 +28,5 @@ const nodes = [
```
-
-
-
-
-
+
diff --git a/docs/src/examples/empty.md b/docs/src/examples/empty.md
index fb9f7c9d..ab193b79 100644
--- a/docs/src/examples/empty.md
+++ b/docs/src/examples/empty.md
@@ -1,17 +1,8 @@
----
-layout: page
-
----
-
# Empty
Similar to the drag and drop example, we can also add nodes to an empty graph on a button click,
which triggers a push into our elements / nodes array.
-
-
-
-
-
+
diff --git a/docs/src/examples/floating-edges.md b/docs/src/examples/floating-edges.md
deleted file mode 100644
index 0f729272..00000000
--- a/docs/src/examples/floating-edges.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-layout: page
-
----
-
-This example demonstrates "floating edges".
-
-The positions of the source and target nodes are calculated dynamically,
-the caveat here is, that edge-anchors are still tied to Handles (even though invisible in this example),
-so connections would, by default, only be triggered when hovering over the handles (bottom / top by default).
-
-
-
-
-
diff --git a/docs/src/examples/hidden.md b/docs/src/examples/hidden.md
index 942bdf68..17acb79d 100644
--- a/docs/src/examples/hidden.md
+++ b/docs/src/examples/hidden.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Hidden
You can toggle the visibility of nodes by simply setting their `hidden` attribute to either `true` or `false`.
@@ -16,9 +11,5 @@ This can save you some time on initial renders but consider that moving the pane
which can cause performance spikes depending on the complexity of the components that have to be mounted.
-
-
-
-
-
+
diff --git a/docs/src/examples/horizontal.md b/docs/src/examples/horizontal.md
index a2a8d776..c65fa9b7 100644
--- a/docs/src/examples/horizontal.md
+++ b/docs/src/examples/horizontal.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Horizontal Layout
Vue Flow doesn't require you to use vertical layouts.
@@ -11,9 +6,5 @@ You can use horizontal layouts with the default node types as well.
You can define where source or target handle positions are with the `sourcePosition` or `targetPosition` properties of nodes.
-
-
-
-
-
+
diff --git a/docs/src/examples/index.md b/docs/src/examples/index.md
index d80fd09c..780e6390 100644
--- a/docs/src/examples/index.md
+++ b/docs/src/examples/index.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Basic
This is a basic example to help you familiarize with the basic features of Vue Flow.
@@ -11,9 +6,5 @@ On the bottom left you see the viewport-controls and on the bottom right the min
You can also see the built-in node (default, input, output) and edge (bezier, straight, step, smoothstep) types.
-
-
-
-
-
+
diff --git a/docs/src/examples/interaction.md b/docs/src/examples/interaction.md
index d27986f9..9f6af424 100644
--- a/docs/src/examples/interaction.md
+++ b/docs/src/examples/interaction.md
@@ -1,7 +1,3 @@
----
-layout: page
-
----
# Interaction
Vue Flow provides options to interact and limit interaction with the viewport and graph.
@@ -10,9 +6,5 @@ This includes enabling/disabling zoom-scroll, pan-scroll, dragging etc.
In the sandbox below you can find an example showing you how to toggle interaction options.
-
-
-
-
-
+
diff --git a/docs/src/examples/intersection.md b/docs/src/examples/intersection.md
index cd30a248..89f907d1 100644
--- a/docs/src/examples/intersection.md
+++ b/docs/src/examples/intersection.md
@@ -1,15 +1,7 @@
----
-layout: page
-
----
# Intersection
Vue Flow provides utils to find intersections of nodes with other nodes (or a given area).
-
-
-
-
-
+
diff --git a/docs/src/examples/multi.md b/docs/src/examples/multi.md
index 6c274700..e11c7785 100644
--- a/docs/src/examples/multi.md
+++ b/docs/src/examples/multi.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Multi Flows
Vue Flow is not limited to a single instance on a page.
@@ -10,9 +5,5 @@ Vue Flow is not limited to a single instance on a page.
You can use as many component instances as you like.
-
-
-
-
-
+
diff --git a/docs/src/examples/nodes/index.md b/docs/src/examples/nodes/index.md
index 391eb21b..fa8e7bf0 100644
--- a/docs/src/examples/nodes/index.md
+++ b/docs/src/examples/nodes/index.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Custom Node
One of the key features of Vue Flow is implementing custom elements (nodes / edges) that allow you to expand on the basic functionalities (dragging, selecting etc).
@@ -11,9 +6,5 @@ You can display any content and functionality inside a custom node. More documen
up a custom node can be found on the [custom nodes page](/guide/node.html#custom-nodes).
-
-
-
-
-
+
diff --git a/docs/src/examples/nodes/nesting.md b/docs/src/examples/nodes/nesting.md
index 2d569d87..2bb21290 100644
--- a/docs/src/examples/nodes/nesting.md
+++ b/docs/src/examples/nodes/nesting.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Nested Nodes
Another key feature is nested nodes (or even nested flows).
@@ -12,9 +7,5 @@ You can also define the boundaries of a node, i.e. if the node can be dragged ou
or even let Vue Flow extend the area of a node to fit all it's children.
-
-
-
-
-
+
diff --git a/docs/src/examples/nodes/update-node.md b/docs/src/examples/nodes/update-node.md
index 1955373f..22732d1c 100644
--- a/docs/src/examples/nodes/update-node.md
+++ b/docs/src/examples/nodes/update-node.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Update Node
Updating internal node data is simple.
@@ -14,9 +9,5 @@ That means you can manipulate any property of your original nodes, and it will t
You can of course also access the nodes directly from the state and change their properties from there.
-
-
-
-
-
+
diff --git a/docs/src/examples/pinia.md b/docs/src/examples/pinia.md
index 6c5d92c3..a3a5550d 100644
--- a/docs/src/examples/pinia.md
+++ b/docs/src/examples/pinia.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Pinia
Using your existing storage implementation is not an issue.
diff --git a/docs/src/examples/save.md b/docs/src/examples/save.md
index 36ad0112..e61ff987 100644
--- a/docs/src/examples/save.md
+++ b/docs/src/examples/save.md
@@ -1,8 +1,3 @@
----
-layout: page
-
----
-
# Save & Restore
There is no built-in persistent storage feature, however you can use your own storage implementation.
@@ -17,9 +12,5 @@ You can extend on this basic idea however you like, i.e. fetch data that you tra
some other business logic you would like to handle.
-
-
-
-
-
+
diff --git a/docs/src/examples/stress.md b/docs/src/examples/stress.md
index 939d9077..29f77d5c 100644
--- a/docs/src/examples/stress.md
+++ b/docs/src/examples/stress.md
@@ -1,7 +1,3 @@
----
-layout: page
-
----
# Stress
diff --git a/docs/src/examples/teleport.md b/docs/src/examples/teleport.md
index 30eb14e6..7ef6e7bd 100644
--- a/docs/src/examples/teleport.md
+++ b/docs/src/examples/teleport.md
@@ -1,7 +1,3 @@
----
-layout: page
-
----
# Teleport
diff --git a/docs/src/examples/transition.md b/docs/src/examples/transition.md
index a33813ae..e1c3dd65 100644
--- a/docs/src/examples/transition.md
+++ b/docs/src/examples/transition.md
@@ -1,17 +1,8 @@
----
-layout: page
-
----
-
# Transition
Vue Flow allows you to use transitions while zooming and panning around the Viewport.
This example shows you how to use these transitions to animate actions on your graph.
-
-
-
-
-
+