-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
ba6e250
commit c94e175
Showing
8 changed files
with
70 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@vue-flow/core": minor | ||
--- | ||
|
||
Remove node intersections from drag event args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
.vue-flow__node.intersecting { | ||
background-color: yellow; | ||
background-color: #f15a16; | ||
} | ||
|
||
.vue-flow__panel { | ||
height: 250px; | ||
width: 250px; | ||
border: 1px dashed #ccc; | ||
pointer-events: none !important; | ||
border-radius: 4px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.vue-flow__panel.intersecting { | ||
border-color: #f15a16; | ||
background-color: rgba(241, 90, 22, 0.03); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters