Commit Graph
100 Commits
Author SHA1 Message Date
bcakmakoglu 0102ebcd33 fix(nodes): performance issue with getNode 2022-06-03 23:17:03 +02:00
bcakmakoglu f272bd60d7 chore: bump version 2022-06-03 21:34:51 +02:00
bcakmakoglu f624c1a2c8 chore: use https for registry link 2022-06-03 21:29:12 +02:00
bcakmakoglu 22f87a8334 chore: add empty test script 2022-06-03 21:27:49 +02:00
bcakmakoglu f21d317fe8 examples: add nuxt3 example 2022-06-03 21:21:53 +02:00
bcakmakoglu f626c28b3b chore: add .quasar to gitignore 2022-06-03 21:21:53 +02:00
bcakmakoglu 586e8bfe41 chore(nodes): use computed pos z for zIndex 2022-06-03 21:21:53 +02:00
bcakmakoglu 2bd15c1710 chore: replace Math.pow with ** 2022-06-03 21:21:53 +02:00
bcakmakoglu 0b21708b58 fix(nodes): getNode not returning proper node element
# What's changed?

* use `.find` instead of computed index
2022-06-03 21:21:53 +02:00
bcakmakoglu 0373dae236 tests: update import path for utils 2022-06-03 19:32:46 +02:00
bcakmakoglu 330d6d7eac examples: add quasar example 2022-06-03 19:32:46 +02:00
bcakmakoglu 8dd7c79700 examples: move current examples into examples/vite 2022-06-03 19:32:46 +02:00
bcakmakoglu c6bda81c5e docs: fix version link 2022-06-03 13:26:05 +02:00
bcakmakoglu 3672b86df3 chore(resize-rotate-node,pathfinding-edge): update git links 2022-06-01 22:28:04 +02:00
bcakmakoglu fe77de1a0e chore(pathfinding-edge): bump version 2022-06-01 22:25:49 +02:00
bcakmakoglu 2d47cfac74 chore: update lock file 2022-06-01 22:19:25 +02:00
bcakmakoglu d6758918e6 chore(pathfinding-edge): remove np 2022-06-01 22:17:23 +02:00
bcakmakoglu 4810483fe6 chore(resize-rotate-node): remove np 2022-06-01 22:16:06 +02:00
bcakmakoglu 2858214e62 chore(resize-rotate-node): bump version 2022-06-01 22:12:05 +02:00
bcakmakoglu d22773dad9 docs: use vueflow version from composable instead of pkg 2022-06-01 21:58:03 +02:00
bcakmakoglu 99499dd18c docs: update vuepress version 2022-06-01 21:58:03 +02:00
bcakmakoglu c07069dcd0 refactor: replace yarn with pnpm as package manager 2022-06-01 21:58:03 +02:00
Braks 710b22eb0e chore: Update CHANGELOG.md 2022-06-01 19:13:15 +02:00
bcakmakoglu a260f04d79 v0.4.15 2022-06-01 19:12:46 +02:00
bcakmakoglu ab77231797 chore(deps): update vue-flow 2022-06-01 19:10:30 +02:00
bcakmakoglu 4866e26cd6 feat(resize-rotate-node): show moveable when dragging 2022-06-01 19:10:30 +02:00
bcakmakoglu 4f506b6e56 fix(resize-rotate-node): apply rotation correctly 2022-06-01 19:10:30 +02:00
bcakmakoglu 29439f005b fix(vue-flow,nodes): use computed pos to calculate relative node pos 2022-06-01 19:10:30 +02:00
bcakmakoglu 30efd62082 fix(vue-flow): unregister apply handlers when applyDefault is false 2022-06-01 19:10:30 +02:00
bcakmakoglu 42ea2de513 fix(vue-flow): set applyDefault regardless of true/false 2022-06-01 19:10:30 +02:00
bcakmakoglu 700156f16f docs: add margin top to h1 elements 2022-05-29 18:37:12 +02:00
bcakmakoglu 3828378355 docs: remove onPaneReady handler from Intro.vue 2022-05-29 18:31:48 +02:00
bcakmakoglu 95104fdca2 docs: change stroke color of intro example node 2022-05-29 18:12:23 +02:00
bcakmakoglu eef7c49e23 v0.4.14 2022-05-29 09:46:56 +02:00
bcakmakoglu f32dd24400 chore(deps-dev): update typescript to 4.7.2 and vue-tsc to 0.35.0 2022-05-29 09:45:12 +02:00
bcakmakoglu 713ef07820 docs: use new vuepress plugin api 2022-05-29 09:45:12 +02:00
bcakmakoglu ab09a9b786 fix(edges): remove unnecessary filter from updateEdge util 2022-05-29 09:15:09 +02:00
bcakmakoglu d8bae03b8f fix(drag): filter by nodrag class name 2022-05-29 09:15:09 +02:00
bcakmakoglu 7afbd870f4 chore: fix readme discord link 2022-05-29 08:51:29 +02:00
bcakmakoglu 015e34baf8 chore: update README.md
# What's changed?

* Add Discord Server info to README
2022-05-29 08:49:08 +02:00
Braks bcfc40382c chore: Update CHANGELOG.md 2022-05-27 23:38:46 +02:00
Braks 30db19bb50 v0.4.13 2022-05-27 23:38:21 +02:00
bcakmakoglu d4ce7b835c refactor(edges): remove v-html from template tag 2022-05-27 23:36:01 +02:00
bcakmakoglu fd7fe86204 chore: update yarn lock 2022-05-27 23:36:01 +02:00
bcakmakoglu 008929a939 fix(edges): use correct bbox for edge text 2022-05-27 23:36:01 +02:00
bcakmakoglu 1b8d9cfa41 docs: pin repl version to 1.1.2 2022-05-27 23:36:01 +02:00
bcakmakoglu a3f307708b fix(edges): missing source / target node 2022-05-27 23:36:01 +02:00
bcakmakoglu 048775df29 fix(drag): properly expand parent 2022-05-27 23:36:01 +02:00
bcakmakoglu 8af74259ec chore: remove old edge wrapper component 2022-05-27 23:36:01 +02:00
bcakmakoglu 957918e7c7 fix(drag): set dragging to false after drag 2022-05-27 23:36:01 +02:00
bcakmakoglu ee78e925e0 examples: fix import path 2022-05-27 23:36:01 +02:00
bcakmakoglu 674a65788e feat(nodes): implement useDrag in NodesSelection.vue 2022-05-27 23:36:01 +02:00
bcakmakoglu 7479534647 fix(nodes): extent not applied 2022-05-27 23:36:01 +02:00
bcakmakoglu e3c7424aa7 chore(edges): add missing selected prop 2022-05-27 23:36:01 +02:00
bcakmakoglu 128c1a4a84 fix(drag): check if node position was manually changed since last drag 2022-05-27 23:36:01 +02:00
Braks e483da2443 refactor(nodes): watch dimensions for xyzpos 2022-05-27 23:36:01 +02:00
Braks 98162699ae chore: remove passing getters to getSelectionChanges 2022-05-27 23:36:01 +02:00
Braks e2f3da8e1b refactor(vue-flow)!: remove reactive options 2022-05-27 23:36:01 +02:00
Braks b63d3da0c0 fix(nodes,drag): update xyz on select 2022-05-27 23:36:01 +02:00
Braks cec8f4d77e refactor(vue-flow,nodes): use absolute positions instead of deltas 2022-05-27 23:36:01 +02:00
Braks 660c0bceab fix(nodes): unselect nodes on drag start 2022-05-27 23:36:01 +02:00
Braks fe6114c738 chore: lint 2022-05-27 23:36:01 +02:00
Braks 9cdad4d9fc refactor(vue-flow,hooks): simplify event defs 2022-05-27 23:36:01 +02:00
Braks 78d8190f58 chore(vue-flow,store): move store utils to separate file 2022-05-27 23:36:01 +02:00
Braks ec7901ef34 refactor(vue-flow,nodes,edges)!: add remove selected elements actions
# What's changed?

* Rename `resetSelectedElements` to `removeSelectedElements` and allow to specify which elements to remove
* Add `removeSelectedNodes` and `removeSelectedEdges` actions
2022-05-27 23:36:01 +02:00
Braks c059b5929a refactor(vue-flow,nodes): remove v-model 2022-05-27 23:36:01 +02:00
Braks ddac5b0e58 fix(vue-flow,nodes): unselect nodes on click when multi selection active 2022-05-27 23:36:01 +02:00
Braks d5a19cd1d8 refactor(edges): move classes to Wrapper.ts 2022-05-27 23:36:01 +02:00
Braks 975d5519a4 fix(edges): check if connection exists 2022-05-27 23:36:01 +02:00
Braks bae5d1e26d chore: lint 2022-05-27 23:36:01 +02:00
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 643f75273d docs: remove unused edges from nested example 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
bcakmakoglu d9e7c7a0b0 docs: add teleport example 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
bcakmakoglu ce7569da5f refactor: move pull request template to up a directory 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 a6e6f31e9c docs: update stress example 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 4e9ad11fc5 docs: update stress example 2022-05-27 23:36:01 +02:00
bcakmakoglu 488b632e2e docs: add horizontal layout example 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