Commit Graph
100 Commits
Author SHA1 Message Date
braks 3f4e071bbf chore(resize-rotate): bump version 2022-08-30 22:22:49 +02:00
Git Cliff 0bf2243d97 chore: update CHANGELOG.md 2022-08-30 20:18:30 +00:00
braks ff51560427 chore: bump version 2022-08-30 22:17:56 +02:00
braks 2beb48d4a5 chore(store): pass vueflow id to scope on each call 2022-08-30 22:16:10 +02:00
braks bd4eb7cc54 feat(edges): hide edge while updating 2022-08-30 22:16:10 +02:00
braks 058fb5ae10 fix(nodes): apply initial node extent 2022-08-30 22:16:10 +02:00
braks 955f683d8b chore: re-apply node extent only if flow is ready 2022-08-30 22:16:10 +02:00
braks be2bcf5a87 refactor: allow ref to be passed to useKeyPress 2022-08-30 22:16:10 +02:00
braks a110cdcd03 chore: cleanup unused vars and remove setState usage 2022-08-30 22:16:10 +02:00
braks 487c287090 fix(nodes): add missing updateNodeInternals event 2022-08-30 22:16:10 +02:00
braks e8a6dc37af fix(nodes): apply global node extent when changed 2022-08-30 22:16:10 +02:00
braks 5f5dd49ed6 refactor(resize-rotate): set fixed styles on resize rotate node 2022-08-30 22:16:10 +02:00
braks dd62165443 feat(resize-rotate): add snappable 2022-08-30 22:16:10 +02:00
braks 9440d4fe85 fix: cast watchable props to ref 2022-08-30 22:16:10 +02:00
braks a204f861b7 fix: watch translate extent separately 2022-08-30 22:16:10 +02:00
braks 18a31d21a3 docs: update node guide 2022-08-30 22:16:10 +02:00
braks d7c7ae152c docs: update yarn install guide 2022-08-30 22:16:10 +02:00
braks b48234ec91 chore(deps): upgrade deps 2022-08-30 22:16:10 +02:00
Git Cliff feb1dd6a36 chore: update CHANGELOG.md 2022-08-09 20:52:24 +00:00
braks 3e398d451a chore: bump version 2022-08-09 22:51:44 +02:00
braks 6221663448 fix(nodes): pass node as prop to wrapper
# What's changed?

* instead of computed getter use prop to pass node
* avoids error when node gets deleting from custom node with `removeNodes`
2022-08-09 22:49:41 +02:00
Git Cliff 3255f95df9 chore: update CHANGELOG.md 2022-08-08 17:21:53 +00:00
braks f1a1321117 chore: bump version 2022-08-08 19:21:14 +02:00
braks 80fd818359 fix(nodes): use flush timing post in NodeWrapper.vue 2022-08-08 19:18:51 +02:00
braks a9dc02df8d chore: add .pnpm-store to .gitignore file 2022-08-08 19:18:51 +02:00
Git Cliff 4683b4af16 chore: update CHANGELOG.md 2022-08-03 14:36:42 +00:00
braks 16b6f429a1 chore: bump version 2022-08-03 16:36:08 +02:00
braks 8b6afd3d07 refactor: move watch flush timing to pre 2022-08-03 16:33:40 +02:00
braks 250965d18f feat(viewpane): block keypress on inputs and .nokey elements
# What's changed?

* revert keypress listener on input elements (except button)
* skip keypress events on elements with `.nokey` classname
2022-08-03 16:33:40 +02:00
braks 3638e598e4 docs: update intro links 2022-08-01 21:25:48 +02:00
Git Cliff a986a6b2c6 chore: update CHANGELOG.md 2022-08-01 19:13:10 +00:00
braks f473dacffe chore: bump version 2022-08-01 21:12:34 +02:00
braks 9031b46b57 fix(store): cleanup default change handlers on watch scope dispose 2022-08-01 21:10:14 +02:00
braks a5d5da54cc chore: remove unused code 2022-08-01 21:10:14 +02:00
braks 10c34bb9fe chore: update pnpm-lock.yaml 2022-08-01 21:10:14 +02:00
braks d077d41d71 docs: update links and headlines 2022-08-01 21:10:14 +02:00
braks 90b3bd0bc3 refactor(store): reset store on unmount and skip re-creating hooks on re-mount 2022-08-01 21:10:14 +02:00
braks 0d10adcbdb fix(nodes): force update clause in updateDimensions 2022-08-01 21:10:14 +02:00
braks 8b02d7d3b3 refactor(store): re-bind hooks on mount and use hooks ref 2022-08-01 21:10:14 +02:00
braks d468fb7f1d refactor(nodes): recreate scope on mount 2022-08-01 21:10:14 +02:00
braks 3f336a12af docs: set prevent scrolling to false 2022-08-01 21:10:14 +02:00
braks c4f9492a4f docs: remove test script 2022-08-01 21:10:14 +02:00
braks f386ea454c docs: replace vuepress specific components 2022-08-01 21:10:14 +02:00
braks af78b52233 docs: fix dead links 2022-08-01 21:10:14 +02:00
braks f2b169145c docs: replace vuepress docs dir with vitepress docs dir 2022-08-01 21:10:14 +02:00
braks 21702daf1e docs: use page layout for example pages 2022-08-01 21:10:14 +02:00
braks 74c329c143 docs: add typedocs to vitepress docs 2022-08-01 21:10:14 +02:00
braks c38787f60b docs: set repl view height 2022-08-01 21:10:14 +02:00
braks bc87e4718f docs: update homepage and styles 2022-08-01 21:10:14 +02:00
braks 4f036e7672 docs: update intro 2022-08-01 21:10:14 +02:00
braks c947d887c8 docs: add social links 2022-08-01 21:10:14 +02:00
braks 586bf5d41d docs: update layout file 2022-08-01 21:10:14 +02:00
braks f17bd16665 docs: update md files 2022-08-01 21:10:14 +02:00
braks e6bef4a9f1 docs: use vitepress 2022-08-01 21:10:14 +02:00
braks bd36253cd0 refactor(viewpane): accept KeyFilter instead of KeyCode
# What's changed?

* accept type of `KeyFilter` instead of `KeyCode` for zoom/select/delete keypress
* don't filter on input dom elements
2022-08-01 21:10:14 +02:00
Git Cliff a095052c84 chore: update CHANGELOG.md 2022-07-30 13:14:07 +00:00
braks dc0ec7a27d chore: bump version 2022-07-30 15:13:29 +02:00
braks 228b9d1753 fix(viewpane): pan on scroll blocks any zoom handling 2022-07-30 15:11:17 +02:00
braks 899d3af4ad fix(nodes): dimensions not properly set on mount 2022-07-30 15:11:17 +02:00
Git Cliff 91fbad4439 chore: update CHANGELOG.md 2022-07-28 21:00:03 +00:00
braks 9aa517285b chore: bump version 2022-07-28 22:59:23 +02:00
braks 6a5625173c chore: update pnpm-lock.yaml 2022-07-28 22:56:54 +02:00
braks 1db74cf8b6 fix(nodes): prevent initial dimensions being emitted twice 2022-07-28 22:54:56 +02:00
braks 5c688030f5 chore: quasar example vue flow version 2022-07-27 22:53:40 +02:00
Git Cliff 5ca61d2fb0 chore: update CHANGELOG.md 2022-07-27 20:52:05 +00:00
braks 4766510a13 chore: bump version 2022-07-27 22:51:25 +02:00
braks 20fead93c4 chore(store): initial $destroy fn 2022-07-27 22:49:00 +02:00
braks 54eef97bde fix(edges): create new effect scope when pane ready is called 2022-07-27 22:49:00 +02:00
braks d62c3304e3 fix(store): only run scope dispose on parent caller
# What's changed?

* Only run scope disposal on parent scopes
    * the uppermost `useVueFlow` call
* Do not reset store on flow unmount
* Fixes issue that flow is broken after a `v-if` toggle
2022-07-27 22:49:00 +02:00
braks 73bf4db829 feat(store): add $destroy action
# What's changed?

* add action to remove store from global storage (thus destroying it)
2022-07-27 22:49:00 +02:00
braks 98ff31154c revert(types): use state viewport zoom to calculate handlebounds 2022-07-27 22:49:00 +02:00
braks 31f0dbafa7 revert(types): explicitly bind emits 2022-07-27 22:49:00 +02:00
braks 953155dea3 feat: bind pane mouse events 2022-07-27 22:49:00 +02:00
braks 8ea21303bd feat(viewpane): add viewpane mouseevents 2022-07-27 22:49:00 +02:00
braks f2321f2626 feat(store): add findNode & findEdge actions
# What's changed?

* deprecate computed getters `getNode` & `getEdge`
* add actions instead
2022-07-27 22:49:00 +02:00
braks 49d51ccf10 chore: update pnpm-lock.yaml 2022-07-27 22:49:00 +02:00
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