Commit Graph
100 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 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
bcakmakoglu 8e3f1a394d docs: update examples 2022-05-27 23:36:01 +02:00
Braks d55aba3f17 chore: Update CHANGELOG.md 2022-05-26 19:38:57 +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
bcakmakoglu e2d66a4233 chore: update README.md 2022-05-22 22:46:47 +02:00
bcakmakoglu e4c296ad46 feat: add devcontainer files 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 233f5cd078 chore(examples): Update vue-flow pkg alias path 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 3b0e301bf1 chore: add dependency to types pipeline 2022-05-22 22:46:47 +02:00
Braks 36b3729a2b chore: update pathfinding edge pkg 2022-05-22 22:46:47 +02:00
Braks cbb94ba7c8 chore: update tsconfig, remove license 2022-05-22 22:46:47 +02:00
Braks a90bbb9b5e chore: lint files 2022-05-22 22:46:47 +02:00
Braks 4ee7eb909a feat(pkg): Add pathfinding edge pkg to packages dir 2022-05-22 22:46:47 +02:00
Braks b9dbb97374 refactor(pkg): Move vue-flow into separate pkg directory 2022-05-22 22:46:47 +02:00
Braks df43ff3b8b chore: Update CHANGELOG.md 2022-05-14 18:29:00 +02:00
Braks 9627f236c7 v0.4.10 2022-05-14 18:28:54 +02:00
Braks d36402e537 fix(edges): Check if connection exists for new connection 2022-05-14 18:26:55 +02:00
Braks 1d2322eb46 examples: Update node example color 2022-05-14 18:26:55 +02:00
Braks 8459476a98 chore: Update CHANGELOG.md 2022-05-11 22:12:58 +02:00
Braks bcaf346926 v0.4.9 2022-05-11 22:12:52 +02:00
Braks 36de50ede9 chore(pkg): update typedoc & unplugin-auto-import 2022-05-11 22:10:40 +02:00
Braks 75390a75e7 chore(pkg): update vite 2022-05-11 22:10:40 +02:00
Braks 75a94e7b22 chore(pkg): remove "private" interfaces from components 2022-05-11 22:10:40 +02:00
Braks c396b4fc3c chore(deps,deps-dev): update pkg and root deps 2022-05-11 22:10:40 +02:00
Braks 69ed530198 chore(pkg): explicitly export defaults from vue files 2022-05-11 22:10:40 +02:00
Braks ca552dc8ae chore(pkg): update eslint config 2022-05-11 22:10:40 +02:00
Braks 22845c210d chore: lint files 2022-05-11 22:10:40 +02:00
Braks 447d24c5a8 chore(deps-dev): update eslint, prettier & antfu/eslint-config 2022-05-11 22:10:40 +02:00
Braks be2a37246a feat: export base edge 2022-05-11 22:10:40 +02:00
Braks 8e91e4a8e5 refactor: use watchEffect for keypress 2022-05-11 22:10:40 +02:00
Braks 412c0e500f feat: Export storage class
# What's changed?

* Export storage class as GlobalVueFlowStorage
* For possible global access of all currently active stores
2022-05-11 22:10:40 +02:00
Braks 1fab0317d5 refactor(edges): update edge type to include default edge types 2022-05-11 22:10:40 +02:00
Braks e2e3a650c1 fix(edges): Add edges not respecting default edge options 2022-05-11 22:10:40 +02:00
Braks 152801edac feat: Add pattern slot to background
# What's changed?

* Add a slot named pattern to background
* Allows for icons or similar things to be passed as bg pattern
2022-05-11 22:10:40 +02:00
Braks 5fb0280e5b fix: fit view not respecting options nodes 2022-05-11 22:10:40 +02:00
Braks b68dc4c032 fix: wrong elements removed when index can't be found 2022-05-11 22:10:40 +02:00
Braks b8abc78307 chore: Update CHANGELOG.md 2022-04-24 13:35:40 +02:00
Braks 892728717e v0.4.8 2022-04-24 13:34:22 +02:00
Braks 18f0d2f1ce chore: move changelog update to postrelease 2022-04-24 13:34:22 +02:00
Braks c4f9b2c780 fix: ensure scope dispose is run 2022-04-24 13:34:22 +02:00
Braks 1b97109b94 refactor: remove scoped slot props from handles 2022-04-24 13:34:22 +02:00
Braks 9cc7806972 fix(edges): Cancel edge update if connection exists 2022-04-24 13:34:22 +02:00
Braks 0becad73ad refactor(nodes): minimize position change loops
# What's changed?

* Only loop selected nodes instead of all nodes when determining position changes
2022-04-24 13:34:22 +02:00
Braks e2fd3b44ef refactor(edges): defer grouping to next tick 2022-04-24 13:34:22 +02:00
Braks f5d245322b feat: Add emits property to store
# What's changed?

* For easier access (and shorter syntax) of event emitters add emits property to store
* Change instance, zoom, hooks, emits and onEvent triggers to readonly
2022-04-24 13:34:22 +02:00
Braks c6840a31ad fix: missing mouseevent on minimap node click 2022-04-24 13:34:22 +02:00
Braks aaccbb4b3e chore: update README.md 2022-04-24 13:34:22 +02:00
Braks b6848e37c8 refactor(nodes,edges): Pass type component as prop
# What's changed?

* Pass component as prop
* Reduce watcher and computed
* Add reactivity transform macros to examples
2022-04-24 13:34:22 +02:00