Commit Graph
100 Commits
Author SHA1 Message Date
braks 9a8459c8eb refactor: import Emits type 2022-07-27 22:49:00 +02:00
braks 3d22b879a3 chore: update vueuse 2022-07-27 22:49:00 +02:00
braks cff5e05ac9 chore(store): remove unused prop in store 2022-07-27 22:49:00 +02:00
braks 12108d092c chore: update auto-imports.d.ts 2022-07-27 22:49:00 +02:00
braks 4e7f4b5cf8 chore: symlink deps in tsconfig 2022-07-27 22:49:00 +02:00
braks b0fc5ada92 fix(store): remove generic from node getter
# What's changed?

* generic causes type problem in d.ts file
2022-07-27 22:49:00 +02:00
braks 376f91e264 feat: set vueflow & viewport elements in store 2022-07-27 22:49:00 +02:00
braks 27fa623543 chore(gh): unfreeze lockfile
# What's changed?

* until lockfile issue is sorted, use `no-frozen-lockfile`
2022-07-27 22:49:00 +02:00
braks 93a9a99a85 fix: prevent falsy values from stopping prop watcher 2022-07-27 22:49:00 +02:00
braks 97d89bf4c7 feat: expose flow store and element ref
# What's changed?

* add define expose to expose vue flow store instance
2022-07-27 22:49:00 +02:00
braks ce77bc5d64 chore(deps): upgrade dependencies 2022-07-27 22:49:00 +02:00
Git Cliff 47164f01b8 chore: update CHANGELOG.md 2022-07-22 15:28:57 +00:00
braks 600922afd9 chore: bump version 2022-07-22 17:28:19 +02:00
braks c16cd464b3 chore(deps): upgrade dependencies 2022-07-22 17:23:43 +02:00
braks 78f176cf46 chore: update pnpm-lock.yaml 2022-07-22 17:01:41 +02:00
braks d96e944a49 fix(types): use correct edge event types
# What's changed?

* instead of `MouseEvent`, emit `EdgeMouseEvent` type
* fix examples
2022-07-22 16:56:10 +02:00
Git Cliff 3537e6b022 chore: update CHANGELOG.md 2022-07-18 19:19:44 +00:00
braks 7596c4d325 chore: bump version 2022-07-18 21:19:06 +02:00
braks 9bca73d762 fix(nodes): remove child nodes when parent gets removed 2022-07-18 21:09:36 +02:00
braks 7d66094b06 fix(nodes): check parent dimensions before extending 2022-07-18 21:09:36 +02:00
Git Cliff 480a48744d chore: update CHANGELOG.md 2022-07-16 12:40:58 +00:00
braks b696eb04f9 chore: bump version 2022-07-16 14:40:18 +02:00
braks 4b83ae0325 fix(edges): pass auto-connector result as new edge params 2022-07-16 14:37:08 +02:00
Braks b7428e9512 fix(handles): correctly calculate handle pos by using viewport zoom 2022-07-16 14:37:08 +02:00
Braks c0c72f1f6d chore(zoom): fix typing 2022-07-16 14:37:08 +02:00
Braks 45163f31c9 refactor(zoom): don't interrupt while zoom/pan is active 2022-07-16 14:37:08 +02:00
Braks 95afba3e17 fix(edges): auto-connector always triggered even when not set 2022-07-16 14:37:08 +02:00
Braks 1f035fbc5e docs: update pinia example to use latest version of vue flow 2022-07-14 10:57:16 +02:00
bcakmakoglu b11feaf2ce docs: add seo plugins 2022-07-05 21:53:30 +02:00
bcakmakoglu 9c171c0ff8 chore(docs): update meta title & description 2022-07-05 21:53:30 +02:00
bcakmakoglu d6df271c2d chore(docs): update tsconfig.json 2022-07-05 21:53:30 +02:00
bcakmakoglu 5a89d0e947 chore: add .eslintignore file 2022-07-05 21:53:30 +02:00
Git Cliff 1d9e7ec07d chore: update CHANGELOG.md 2022-06-26 16:29:14 +00:00
bcakmakoglu 32e7ee99b2 chore: bump version 2022-06-26 18:28:35 +02:00
bcakmakoglu ae5d5b4637 chore(nodes): check if node ref exists before updating dimensions 2022-06-26 18:10:59 +02:00
bcakmakoglu 0c5473ae14 chore(docs): fix typo 2022-06-26 18:10:59 +02:00
bcakmakoglu b2834b95c8 docs: documentation for new connectionLineOptions prop 2022-06-26 18:10:59 +02:00
bcakmakoglu 1578d404ee feat(edges): add connectionLineOptions prop
# What's changed?

* allow defining markers on connection lines
* deprecate `connectionLineType`
* deprecate `connectionLineStyle`
2022-06-26 18:10:59 +02:00
bcakmakoglu e02297875d chore(docs): set transition mode 2022-06-26 18:10:59 +02:00
bcakmakoglu 48dc16cf73 chore(docs): correct tooltip position 2022-06-26 18:10:59 +02:00
bcakmakoglu 26781124d6 chore(deps): update deps 2022-06-26 18:10:59 +02:00
bcakmakoglu 2a8f4a16f5 feat(nodes): allow node internals to be updated by event
# What's changed?

* add listener for `update-node-internals` on node component
* update internals when event is emitted
2022-06-26 18:10:59 +02:00
bcakmakoglu f8be3cb843 docs: documentation for updateNodeInternals event listener 2022-06-26 18:10:59 +02:00
bcakmakoglu a24fc5241e chore(docs): move icons into header but in container 2022-06-25 02:10:58 +02:00
bcakmakoglu 3ea735558f chore(docs): move icons into floating container 2022-06-25 01:53:08 +02:00
Git Cliff 1f11365e34 chore: update CHANGELOG.md 2022-06-24 22:44:12 +00:00
bcakmakoglu 9fdac11fd0 chore: bump version 2022-06-25 00:43:43 +02:00
bcakmakoglu fd1cc00c97 chore(docs): elevate edges on select in intro 2022-06-25 00:36:48 +02:00
bcakmakoglu 491f2dc07a chore(docs): change blobity mode 2022-06-25 00:36:48 +02:00
bcakmakoglu d265a62c83 chore(docs): allow intro nodes to be dragged and use bezier edges 2022-06-25 00:36:48 +02:00
bcakmakoglu 07e7484420 chore(docs): enable animated background on intro node click 2022-06-25 00:36:48 +02:00
bcakmakoglu 6e2ae482b5 chore(docs): color github logo black when light mode 2022-06-25 00:36:48 +02:00
bcakmakoglu 74f367c6c7 chore(docs): have animations be at least 5 seconds long 2022-06-25 00:36:48 +02:00
bcakmakoglu 2932a8cb38 chore(docs): randomize animation durations 2022-06-25 00:36:48 +02:00
bcakmakoglu 3cb3ada783 refactor: trigger viewport size update on window resize 2022-06-25 00:36:48 +02:00
bcakmakoglu 8d975c6aad chore(docs): color github logo white 2022-06-25 00:36:48 +02:00
bcakmakoglu f1a0568449 docs: add animated background to intro 2022-06-25 00:36:48 +02:00
bcakmakoglu 7534ad9304 docs: move examples into nodes and edges dir 2022-06-25 00:36:48 +02:00
bcakmakoglu 89daa827f3 feat(components): add pattern-container slot to Background
# What's changed?

* `pattern-container` allows for complete overwrite of the pattern of Background
2022-06-25 00:36:48 +02:00
Git Cliff 0d5f9a5f0a chore: update CHANGELOG.md 2022-06-24 15:57:55 +00:00
bcakmakoglu 16ec3cc717 chore: bump version 2022-06-24 17:57:20 +02:00
bcakmakoglu eeed10c859 chore(deps): remove d3 and move types/d3 to deps-dev 2022-06-24 17:51:50 +02:00
bcakmakoglu a183c7dced fix(components): use v-if on slots instead of lock icons 2022-06-24 14:41:09 +02:00
bcakmakoglu c27c895f88 docs: use edge style function to style edges on node select 2022-06-23 23:25:47 +02:00
bcakmakoglu 097b859e26 docs: add github, discord and react flow icons to header 2022-06-23 23:09:17 +02:00
bcakmakoglu d37b67c9dc chore(docs): update auto-imports.d.ts 2022-06-23 23:09:17 +02:00
bcakmakoglu a0541cb5df chore(docs): let windicss scan theme dir 2022-06-23 23:09:17 +02:00
Git Cliff 6a71a5fdbd chore: update CHANGELOG.md 2022-06-23 17:33:06 +00:00
bcakmakoglu 7d9a7b6dbe chore: push from changelog workflow to master branch 2022-06-23 19:32:23 +02:00
bcakmakoglu f4201fd94f chore: bump version 2022-06-23 19:26:35 +02:00
bcakmakoglu 580de082fb chore(deps): update package deps 2022-06-23 19:24:11 +02:00
bcakmakoglu f25f6bf9a1 perf(edges): too many loops in grouping watcher 2022-06-23 19:13:50 +02:00
bcakmakoglu acc27a7867 fix(edges): remove sourcePosition & targetPosition from initial edge options 2022-06-23 19:13:50 +02:00
bcakmakoglu 905a6fbaa0 docs: documentation for new edge events property 2022-06-23 19:13:50 +02:00
bcakmakoglu 730f49e879 feat(edges): add contextual edge events
# What's changed?

* allow event handlers to be passed in initial edge definition
* allow event listeners to be forwarded to edge components
2022-06-23 19:13:50 +02:00
bcakmakoglu fb51f8d8bd chore(nodes): correct name of useNodeHooks 2022-06-23 19:13:50 +02:00
bcakmakoglu d036769d58 chore(edges): simplify elevateEdgesOnSelect logic 2022-06-23 19:13:50 +02:00
bcakmakoglu be68a27b33 refactor(types): remove unnecessary generics 2022-06-23 19:13:50 +02:00
bcakmakoglu 6dfeebf7af docs: documentation for new elevateEdgesOnSelect option 2022-06-23 19:13:50 +02:00
bcakmakoglu eb28934cee chore(nodes): use scope for node watchers 2022-06-23 19:13:50 +02:00
bcakmakoglu 6c06eeee74 docs: update nested example 2022-06-23 19:13:50 +02:00
Braks c0920bfb4d refactor(edges): edges z-index 0 by default
# What's changed?

* only group edges by z-index when `elevateEdgesOnSelect` is true
* add `elevateEdgesOnSelect` option
2022-06-23 19:13:50 +02:00
bcakmakoglu 345cf9bc38 docs: fix links for docsearch 2022-06-23 19:13:50 +02:00
bcakmakoglu 4e431a17b6 fix(nodes): use correct zindex on selection 2022-06-23 19:13:50 +02:00
bcakmakoglu 78e15b23f3 refactor(nodes): use content-box for resize observer 2022-06-23 19:13:50 +02:00
bcakmakoglu c5e4264dda refactor(nodes): apply node specific snapGrid on drag
# What's changed?

* remove params `noDragClassName` and `handleSelector` and access while dragging from store or current node
* apply snap grid if present on node
2022-06-23 19:13:50 +02:00
bcakmakoglu 7d47904a81 docs: documentation for new node events property 2022-06-23 19:13:50 +02:00
bcakmakoglu 439aa49c23 docs: update documentation on custom node props 2022-06-23 19:13:50 +02:00
bcakmakoglu e395cc7aad chore(nodes): remove nodeElement from NodeProps type 2022-06-23 19:13:50 +02:00
bcakmakoglu a84dc911d2 chore(nodes): remove computedPosition from NodeProps 2022-06-23 19:13:50 +02:00
bcakmakoglu 38d8565702 chore(types): add generic for custom events on node associated types 2022-06-23 19:13:50 +02:00
bcakmakoglu b5998ee301 feat(nodes,types): update node event types
# What's changed?

* accept initial event handlers as `NodeEventHandlers`
* pass contextual events (custom component) as `NodeEventsOn` Type
* forward custom node events as is (not an event hook)
2022-06-23 19:13:50 +02:00
bcakmakoglu 394f9a01b3 feat(nodes): add useNodeHooks composable
# What's changed?

* create node hooks for context and global event emitters
2022-06-23 19:13:50 +02:00
bcakmakoglu b363e9457e feat(nodes): add contextual node events
# What's changed?

* create hooks so we can receive contextual node event handlers from initial definition and pass the hook to custom components
* contextual events are meant for their specific context unlike `FlowHooks` which are on a global level
2022-06-23 19:13:50 +02:00
bcakmakoglu 5a031e3fe2 docs: add docs for new connection line class 2022-06-23 19:13:50 +02:00
bcakmakoglu 2a9cdd6855 feat(edges): move connection lines to separate container
# What's changed?

* connection lines should be above nodes
* selected node should be above edges
2022-06-23 19:13:50 +02:00
bcakmakoglu 92fc866265 docs: add notice about FlowInstance removal 2022-06-23 19:13:50 +02:00
bcakmakoglu 17d3f8df6f docs: add deprecation notice for useZoomPanHelper 2022-06-23 19:13:50 +02:00
bcakmakoglu f5b02c3278 chore: deprecate useZoomPanHelper 2022-06-23 19:13:50 +02:00
bcakmakoglu 77c43aa207 fix(nodes): apply node extent 2022-06-23 19:13:50 +02:00