Commit Graph
54 Commits
Author SHA1 Message Date
Braks 9510f3dd54 update(nodes): add drag filter type 2022-05-27 23:36:01 +02:00
Braks dd86e04a03 chore: fix prop types in edge wrapper 2022-05-27 23:36:01 +02:00
Braks de60d924ff fix(nodes): jumping when drag is out of sync with last pos 2022-05-27 23:36:01 +02:00
Braks ce13007dbf refactor(edges): Make edge wrapper functional component
# What's changed?

* remove edge-positions from graph edge
* remove source and target nodes from graph edge
* refactor edge wrapper into functional component and handle source/target positions internally
2022-05-27 23:36:01 +02:00
Braks a65d85687d refactor(nodes): reduce nodewrapper re-render
# What's changed?

* use v-model for computed pos
* remove computed from style and class getters
2022-05-27 23:36:01 +02:00
Braks 33127395b6 refactor(nodes,edges): mark nodes edges as shallow reactive
# What's changed?

* Mark nodes & edges as shallow reactives
* defer changes to nextTick
2022-05-27 23:36:01 +02:00
Braks 4cb4d9c0f4 refactor(edges): Remove get type call for names 2022-05-27 23:36:01 +02:00
Braks f9671b1ec4 refactor(store,selection)!: Remove selectedNodesBbox from store
# What's changed?

* Remove selectedNodesBbox from store state
* Will be handled internally by NodesSelection component
2022-05-27 23:36:01 +02:00
Braks 80878a228c refactor(nodes): remove node and parent node props from wrapper 2022-05-27 23:36:01 +02:00
Braks 1e506dc151 chore: filter on drag 2022-05-27 23:36:01 +02:00
Braks 86ba26fe9a refactor(nodes)!: Remove dragging from graph nodes
# What's changed?

* Dragging property removed from position updates and graph nodes
* Dragging is handled internally by nodes and passed to custom nodes
2022-05-27 23:36:01 +02:00
Braks 95e36d0c2c refactor: use d3-drag 2022-05-27 23:36:01 +02:00
bcakmakoglu 5d94a988c7 docs: add teleportable example 2022-05-27 23:36:01 +02:00
bcakmakoglu e38cb4e0c2 feat(nodes): only allow teleport on graph nodes 2022-05-27 23:36:01 +02:00
Braks 0d35f1c7e3 feat(nodes): Add teleport option to nodes
# What's changed?

* Add option to set a teleport target to nodes
2022-05-27 23:36:01 +02:00
Braks 1ddeffe1af refactor(nodes,edges): Add node/edge add changes
# What's changed?

* Elements are not added directly to state but parsed and emitted through change handler and then inserted to state
* Remove add element cb from apply changes
* Remove reset change (not implemented)
2022-05-27 23:36:01 +02:00
bcakmakoglu 567b55b8e4 fix(edges): destruct bounding box 2022-05-27 23:36:01 +02:00
bcakmakoglu d519eba430 feat(vue-flow,components): add mouseover events for minimap nodes 2022-05-27 23:36:01 +02:00
Braks 7c360bb5c1 feat: Add mouse over events for minimap nodes 2022-05-27 23:36:01 +02:00
Braks 0cd6eaff35 feat: Add width and height options to minimap 2022-05-27 23:36:01 +02:00
bcakmakoglu 5b307b548a feat(nodes): add connected edges to node mouse events
# What's changed?

* Add `NodeMouseEvent` interface
* Add `EdgeMouseEvent` interface
* Add `connectedEdges` to node mouse events
2022-05-27 23:36:01 +02:00
Braks 0a2a467e56 refactor: use reactivity transform in edge-texts 2022-05-27 23:36:01 +02:00
Braks 0d17d00644 refactor: change edge-text prop type to extend svgattributes 2022-05-27 23:36:01 +02:00
bcakmakoglu b846a3f763 fix(edges): default edge options not applied on new edges 2022-05-27 23:36:01 +02:00
bcakmakoglu f6d250956e v0.4.12 2022-05-26 19:37:03 +02:00
Braks 98a893108c docs: replace codesandbox embed with repl (#122)
* docs: Animations

* docs: add confetti gun

* docs: update basic example on home page

* docs(deps): Add stackblitz sdk to deps

* chore: update yarn.lock

* docs: use vue repl

* docs: remove stackblitz sdk

* docs: basic repl example

* docs: use repl for examples/index.md (basic example)

* docs: pass ext to repl

* docs: add copy plugin

* docs: use import map instead of dynamic imports

* docs: use repl for custom node example

* docs: hide repl errors

* docs: use repl for custom connectionline example

* docs: use repl for edges example

* docs: exclude repl from ssr

* docs: use repl for nested example

* docs: use repl for stress example

* docs: rename customNode to custom-node

* docs: use repl for update-edge example

* docs: use repl for update-node example

* docs: use repl for validation example

* docs: use repl for save-restore example

* docs: scale down minimap in repl examples

* docs: use repl for dnd example

* docs: use repl for empty example

* docs: use repl for hidden example

* docs: use repl for interaction example

* docs: use repl for multi example

* docs: add pinia example with stackblitz

* docs: update basic example

* docs: update examples

* docs: remove transition from intro

* docs: update features

* update: README.md

* docs: scope css
2022-05-26 19:28:25 +02:00
bcakmakoglu 6494b65b3e fix(edges): pass markers to correct attributes 2022-05-26 19:28:25 +02:00
Braks e714fe66dd v0.4.11 2022-05-22 22:49:42 +02:00
Braks 0a285d63c7 feat(pathfinding-edge): add and export props type 2022-05-22 22:46:47 +02:00
Braks 18cf57937c chore(vue-flow,components): use correct dbl click casing 2022-05-22 22:46:47 +02:00
Braks 263b6dff9f refactor(vue-flow,components): camelCase custom events in Controls.vue 2022-05-22 22:46:47 +02:00
Braks 045a768ab1 feat(vue-flow,components): add top slot to Controls.vue 2022-05-22 22:46:47 +02:00
Braks 0702fb80f4 feat(vue-flow,components): export ControlButton.vue 2022-05-22 22:46:47 +02:00
bcakmakoglu b263c1089d chore: move gif to root 2022-05-22 22:46:47 +02:00
Braks 6879c44a12 chore(resize-rotate-node): cleanup unused refs 2022-05-22 22:46:47 +02:00
Braks e847e2cb3f chore(pathfinding-edge): update README.md 2022-05-22 22:46:47 +02:00
Braks 728d27c689 chore(resize-rotate-node): update README.md 2022-05-22 22:46:47 +02:00
Braks 8246e6e8d3 feat(resize-rotate-node): hide moveable on pane interaction 2022-05-22 22:46:47 +02:00
Braks f0e2bc02d5 fix(resize-rotate-node): regexp for replacing transform values 2022-05-22 22:46:47 +02:00
Braks 827469ec40 chore(resize-rotate-node): update examples 2022-05-22 22:46:47 +02:00
Braks b4c12fb028 feat(resize-rotate-node): implement onResize & onRotate handlers 2022-05-22 22:46:47 +02:00
Braks efad878cd4 chore(resize-rotate-node): Add vue-types to deps dev 2022-05-22 22:46:47 +02:00
Braks bc0bd3a812 chore: Move env.d.ts to root 2022-05-22 22:46:47 +02:00
Braks 37bc17f6c0 feat(resize-rotate-node): Add onResize handler 2022-05-22 22:46:47 +02:00
Braks b120c22174 feat: Add moveable to ResizeRotateNode.vue 2022-05-22 22:46:47 +02:00
Braks 0e00a41d44 chore: cleanup deps 2022-05-22 22:46:47 +02:00
Braks 66312b5d4b feat: Add resize-rotate-node pkg 2022-05-22 22:46:47 +02:00
Braks 796aeaa139 chore: add release script 2022-05-22 22:46:47 +02:00
Braks 70a148d082 chore: move vue-flow to dev-deps 2022-05-22 22:46:47 +02:00
Braks 36b3729a2b chore: update pathfinding edge pkg 2022-05-22 22:46:47 +02:00