refactor(core): remove node intersections arg from drag events (#1460)

* refactor(core): remove node intersections arg from drag events

* chore(changeset): add

* docs(examples): update intersection example
This commit is contained in:
Braks
2024-06-13 00:04:51 +02:00
parent a9ccd61eec
commit 0825101ebe
8 changed files with 70 additions and 22 deletions
+1 -1
View File
@@ -210,7 +210,6 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
{ text: 'Screenshot', link: '/examples/screenshot' },
{ text: 'Confirm Delete', link: '/examples/confirm' },
{ text: 'Hidden', link: '/examples/hidden' },
{ text: 'Node Intersections', link: '/examples/intersection' },
{ text: 'Multiple Flows', link: '/examples/multi' },
{ text: 'Pinia Store', link: '/examples/pinia' },
{ text: 'Viewport Transition', link: '/examples/transition' },
@@ -224,6 +223,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
items: [
{ text: 'Custom Node', link: '/examples/nodes/' },
{ text: 'Update Node', link: '/examples/nodes/update-node' },
{ text: 'Intersections', link: '/examples/nodes/intersection' },
{ text: 'Nested Nodes', link: '/examples/nodes/nesting' },
{ text: 'Node Resizer', link: '/examples/nodes/node-resizer' },
{ text: 'Node Toolbar', link: '/examples/nodes/node-toolbar' },
-7
View File
@@ -1,7 +0,0 @@
# Intersection
Vue Flow provides utils to find intersections of nodes with other nodes (or a given area).
<div class="mt-6">
<Repl example="intersection"></Repl>
</div>
+9
View File
@@ -0,0 +1,9 @@
# Node Intersections
Sometimes you need to know if two nodes intersect. `useVueFlow` provides you methods like `getIntersectingNodes`
or `isNodeIntersection` to help you find out when two or more nodes intersect,
or if a node intersects with a given area.
<div class="mt-6">
<Repl example="intersection"></Repl>
</div>