Commit Graph
100 Commits
Author SHA1 Message Date
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
Braks 2918b689fe tests: update tests to work with removed store property 2022-04-24 13:34:22 +02:00
Braks cf7a8ec6d9 refactor: re-set nodes arr on addNodes 2022-04-24 13:34:22 +02:00
Braks 14ef119a95 fix(nodes): use label content as inner html 2022-04-24 13:34:22 +02:00
Braks 4eb775477f fix(nodes): Add draggable watchers 2022-04-24 13:34:22 +02:00
Braks f69118e265 fix: Watcher not re-binding when initialized with empty arr 2022-04-24 13:34:22 +02:00
Braks bb30db7c08 examples: add initial class to basic 2022-04-24 13:34:22 +02:00
Braks 19bc4fda24 chore: update auto imports 2022-04-24 13:34:22 +02:00
Braks 6d1fb963b3 chore: correct watcher 2022-04-24 13:34:22 +02:00
Braks 5ce711e6d9 chore: update tsconfig 2022-04-24 13:34:22 +02:00
Braks dc1d71d0bd refactor: Destructure props with reactivity transform 2022-04-24 13:34:22 +02:00
Braks e722f49e6e refactor(types,flow)!: Use reactivity transform and remove store property
# What's changed?

* Remove store property from usevueflow return value
* All previously available properties are still there, just not nested inside an additional store object to avoid confusion + duplicates
* use reactivity transform to get rid of .value calls
2022-04-24 13:34:22 +02:00
Braks 3bc972a1d1 chore: reorganize edgewrapper 2022-04-24 13:34:22 +02:00
Braks 869d88cdcf chore: reorganize nodewrapper 2022-04-24 13:34:22 +02:00
Braks 0b23112462 update(types): Add explicit action types
# What's changed?

* use explicit types for actions and export those
* add comments
2022-04-24 13:34:22 +02:00
Braks 73beef8079 chore: cb event type 2022-04-24 13:34:22 +02:00
Braks 7e80033080 chore: shorten exports 2022-04-24 13:34:22 +02:00
Braks f5174ebe10 refactor: Change minimap nodes to functional components 2022-04-24 13:34:22 +02:00
Braks cd85eb1842 chore: disable inheriting attrs 2022-04-24 13:34:22 +02:00
Braks 21570209d8 chore: remove unused attrs 2022-04-24 13:34:22 +02:00
Braks 4c86e3e2bb chore: remove log 2022-04-24 13:34:22 +02:00
Braks 4e73c5b2fb regression: reassign keys 2022-04-24 13:34:22 +02:00
Braks 8d33014291 refactor(nodes,edges): change defaults to functional components
# What's changed?

* Change default node/edge components to functional components
2022-04-24 13:34:22 +02:00
Braks 0519bd0f25 chore: Remove casting node/edge to null on unmount 2022-04-24 13:34:22 +02:00
Braks 7f54d3a38e refactor(edges): Remove base edge from default edge types
# What's changed?

* Remove base-edge component for performance
2022-04-24 13:34:22 +02:00