Commit Graph
100 Commits
Author SHA1 Message Date
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
bcakmakoglu d75feb6c61 chore: update vite-config.ts 2022-06-23 19:13:50 +02:00
bcakmakoglu d0d9a3459b docs: add sidebar links for actions, getters and events 2022-06-19 22:33:48 +02:00
bcakmakoglu 9a72a5a0c1 docs: add typedoc links and fix edge docs 2022-06-19 21:51:25 +02:00
bcakmakoglu 1dcfb2dfce docs: update minimap-node.md 2022-06-19 21:30:26 +02:00
bcakmakoglu 597cfad39b docs: add minimap node docs to sidebar 2022-06-19 21:22:20 +02:00
bcakmakoglu 04907fcc16 docs: rename button class to docs-button 2022-06-17 23:20:58 +02:00
bcakmakoglu 119bcabaf8 docs: move button style to index.css 2022-06-17 23:20:58 +02:00
Git Cliff 9b373ce49c chore: update CHANGELOG.md 2022-06-16 21:19:32 +00:00
bcakmakoglu 14a1843d9b chore: use fetch-depth 0 2022-06-16 23:16:23 +02:00
bcakmakoglu e154b60a6a chore: add name to changelog workflow 2022-06-16 23:14:23 +02:00
bcakmakoglu 2e1150c32f chore: allow manual workflow dispatch 2022-06-16 23:11:16 +02:00
bcakmakoglu b4d123cab5 chore: remove repository ref from changelog workflow 2022-06-16 23:10:26 +02:00
bcakmakoglu c866df6d06 chore: bump version 2022-06-16 23:06:30 +02:00
bcakmakoglu e047be6854 feat(vue-flow): add autoConnect option
# What's changed?

* auto-connect allows to easily enable the default add edge change handler (shown in the examples)
* allow auto-connect to be a function that returns false when connection is cancelled or partial edge when it should be created
2022-06-16 23:00:31 +02:00
bcakmakoglu 5a563e45b6 docs: add documentation on autoConnect option 2022-06-16 23:00:31 +02:00
bcakmakoglu 4a2345b533 chore: rename postrelease script to changelog 2022-06-16 23:00:31 +02:00
bcakmakoglu 2526d76a2e docs: fix docs links 2022-06-16 23:00:31 +02:00
bcakmakoglu c2303f4c2f chore(nodes): move update position into own function 2022-06-16 23:00:31 +02:00
bcakmakoglu 4b824b527f refactor: remove computed position as prop from custom nodes 2022-06-16 23:00:31 +02:00
bcakmakoglu 47bc652c46 docs: use updateNodeInternals in teleport example 2022-06-16 23:00:31 +02:00
bcakmakoglu 648350cded refactor(nodes): add updateNodeInternals action
# What's changed?

* remove node element as prop from custom node components
* add `updateNodeInternals` action to force update node dimensions and position (i.e. transitions etc.)
* add `updateNodeInternals` hook to trigger update in nodes
2022-06-16 23:00:31 +02:00
bcakmakoglu 942a122fcb examples: fix import path 2022-06-16 23:00:31 +02:00
bcakmakoglu 1aa9230fe4 refactor(nodes): remove ctrl key from drag filter condition 2022-06-16 23:00:31 +02:00
bcakmakoglu 8e911deaa7 refactor(vue-flow,components): move position: absolute to required handle styles 2022-06-16 21:40:11 +02:00
bcakmakoglu 77e481bddb docs: set inheritAttrs to false on teleportable nodes 2022-06-16 00:09:33 +02:00
bcakmakoglu 597f799fa4 docs: add multiple transition animations to teleport example
# What's changed?

* add fade and shrink animations to teleportable nodes
* demonstrate using `updateNodeDimensions` to properly align edges after a resizing transition
2022-06-15 22:38:57 +02:00
bcakmakoglu 2de121509e docs: improve teleport example with transitions 2022-06-15 21:17:36 +02:00
bcakmakoglu 87ad709e5e chore: add workflow to generate changelog on v*-tags push 2022-06-15 19:59:08 +02:00
Braks e55a3fbeb6 chore: Update CHANGELOG.md 2022-06-15 19:43:10 +02:00
bcakmakoglu 893b35b519 chore: bump version 2022-06-15 19:41:36 +02:00
bcakmakoglu 0726a98170 docs: add documentation for Vue Flow slots 2022-06-15 19:31:20 +02:00
bcakmakoglu 53a85bf49b docs: replace old typedoc links 2022-06-15 19:31:20 +02:00
bcakmakoglu 3587478e5f docs: add documentation for MiniMapNode 2022-06-15 19:31:20 +02:00
bcakmakoglu e469708b57 docs: replace old typedoc links 2022-06-15 19:31:20 +02:00
bcakmakoglu 06420ac6cd feat(vue-flow,components): export MiniMapNode component 2022-06-15 19:31:20 +02:00
bcakmakoglu 33cd638fd9 docs: add documentation for ControlButton 2022-06-15 19:31:20 +02:00
bcakmakoglu 3162b79f54 docs: add slot documentation for Controls 2022-06-15 19:31:20 +02:00
bcakmakoglu 32086e0760 refactor(vue-flow,components): hide/show slots in Controls.vue
# What's changed?

* depending on props, hide slot as well
* rename `control-fitview` to `control-fit-view`
2022-06-15 19:31:20 +02:00
bcakmakoglu 14000111f9 docs: fit view on features flows on wrapper resize 2022-06-13 20:17:55 +02:00
bcakmakoglu 2bd81fe173 docs: set repl store on mounted 2022-06-13 20:17:55 +02:00
bcakmakoglu 281b0fccc8 docs: disable sources 2022-06-13 00:48:48 +02:00
bcakmakoglu bd51614fb7 chore: add typedoc script to docs dev 2022-06-13 00:48:48 +02:00
bcakmakoglu d3e6f63822 docs: generate typedocs sidebar dynamically from subdirectories 2022-06-13 00:48:48 +02:00
bcakmakoglu 12c27e9d78 docs: generate own document for all reflections 2022-06-13 00:48:48 +02:00
bcakmakoglu fc981081ae docs: skip readme when generating typedocs 2022-06-13 00:48:48 +02:00
bcakmakoglu ecf454e7b2 chore: run typedocs before vuepress 2022-06-13 00:48:48 +02:00
bcakmakoglu e4202b01c9 chore: update pnpm-lock.yaml 2022-06-13 00:48:48 +02:00
bcakmakoglu be5df65cc2 docs: integrate TypeDocs into vuepress output
# What's changed?

* create sidebar from typedoc output
* use plugin markdown to generate typedoc as markdown
2022-06-13 00:48:48 +02:00
bcakmakoglu 669f9a075c docs: use mutation observer to check dark mode class 2022-06-10 21:41:12 +02:00
Braks 62dda36165 chore: Update CHANGELOG.md 2022-06-10 21:24:26 +02:00
bcakmakoglu 59b64242d5 chore: bump version 2022-06-10 21:23:03 +02:00
Braks fbcd00b588 chore: Update CHANGELOG.md 2022-06-10 21:16:36 +02:00
bcakmakoglu 7fe511fefd chore: bump version 2022-06-10 21:15:42 +02:00
bcakmakoglu fd6c34ce6c chore(vue-flow): commit all files on postpublish 2022-06-10 21:14:49 +02:00
bcakmakoglu 62c45d3982 chore(vue-flow): commit version bump on postpublish 2022-06-10 21:11:10 +02:00
bcakmakoglu 7de3509bd2 chore(vue-flow): remove NodeProps generic from node label type 2022-06-10 21:11:10 +02:00
bcakmakoglu 8fd5505eec docs: use mutation observer to check dark mode class 2022-06-10 21:11:10 +02:00
bcakmakoglu 9a4c4d6c02 docs: remove unnecessary div 2022-06-10 21:11:10 +02:00
bcakmakoglu 2e1b2db26b docs: update Basic.vue class and style functions 2022-06-10 21:11:10 +02:00
bcakmakoglu 37fd017e37 refactor(nodes,edges): Remove BaseElement type
# What's changed?

* Remove `BaseElement` type
* Merge base element props into `Node` and `Edge` types
* Allow `ClassFunc` and `StyleFunc` types to specify what element type is used in callback
2022-06-10 21:11:10 +02:00
bcakmakoglu 9d94dfd7b7 chore(vue-flow): bump version 2022-06-10 15:59:48 +02:00
bcakmakoglu 7597c0c542 revert(#181,edges): filter old edge on update 2022-06-10 15:54:40 +02:00
bcakmakoglu 7fe5171f63 fix(#181,edges): bind edge mouse events to correct names 2022-06-10 15:54:40 +02:00
bcakmakoglu 3668caa3a1 docs: update intro lightmode styles 2022-06-10 15:54:40 +02:00
bcakmakoglu 650606ec76 docs: update deps 2022-06-10 15:54:40 +02:00
bcakmakoglu fb8356e15a revert: set emits explicitly 2022-06-10 15:54:40 +02:00
bcakmakoglu e54f7b56d0 chore: move BaseEdgeProps to types 2022-06-10 15:54:40 +02:00
bcakmakoglu 699e252935 chore: update README.md links 2022-06-10 15:54:40 +02:00
bcakmakoglu ac9389480d feat(edges): export BaseEdgeProps 2022-06-10 15:54:40 +02:00
bcakmakoglu fdc6f40c3c chore: use type import for emit definition 2022-06-10 15:54:40 +02:00
bcakmakoglu f94f72d31e docs: add typedoc.json file 2022-06-10 15:54:40 +02:00
bcakmakoglu c289e7e3cc docs: update typedoc to use src/index.ts as entry
# What's changed?

* use src/index.ts as entry for typedocs instead of dist/index.d.ts (otherwise crashes with new vue-tsc version)
* update tsconfigs
* update turbo config and skip building d.ts files for typedocs
2022-06-10 15:54:40 +02:00
bcakmakoglu 77b441b1c6 chore: update lock file 2022-06-10 15:54:40 +02:00