Commit Graph
2047 Commits
Author SHA1 Message Date
Braks b46445e204 chore(nodes): Move watcher and computed to bottom 2022-04-04 21:42:48 +02:00
Braks cb3e1232b2 fix(flow): change modelValue/node-/edge-prop when elements are added to state 2022-04-04 21:42:48 +02:00
Braks 544a62ecc4 update(flow): try fetching instance when out of scope 2022-04-04 21:42:48 +02:00
Braks fa6c7b736c fix: check if window exists before binding event listener for keypress 2022-04-04 21:42:48 +02:00
Braks 47646eac84 v0.4.0-13 2022-04-04 21:42:48 +02:00
Braks 88a8ecbdeb feat(examples): Add ResizableNode to Basic example 2022-04-04 21:42:48 +02:00
Braks 0e48b77e14 regression: calculate handle bounds regardless of update 2022-04-04 21:42:48 +02:00
Braks 9a47c15662 regression: add slot to connection line 2022-04-04 21:42:48 +02:00
Braks ae2867976c chore: fix lint issues 2022-04-04 21:42:48 +02:00
Braks 7623ad4715 chore(docs): Add comments 2022-04-04 21:42:48 +02:00
Braks aaba123bbc refactor: remove background variant none 2022-04-04 21:42:48 +02:00
Braks 874684de15 v0.4.0-12 2022-04-04 21:42:48 +02:00
Braks fddebb9393 fix(flow): cleanup of state 2022-04-04 21:42:48 +02:00
Braks 8b213dfee8 chore(docs): add comments to flow props 2022-04-04 21:42:48 +02:00
Braks 0a079afcee refactor(nodes)!: Change children API to parentNode API
* instead of passing a children arr, pass a parentNode id
* allows for easier adding of new child nodes in options api
2022-04-04 21:42:48 +02:00
Braks 0d0ac9d2e6 fix(flow): check for scope before trying injection 2022-04-04 21:42:48 +02:00
Braks 095afc63ab chore: remove unused var 2022-04-04 21:42:48 +02:00
Braks c3c86c6179 v0.4.0-11 2022-04-04 21:42:48 +02:00
Braks 37382881af chore: remove unused var 2022-04-04 21:42:48 +02:00
Braks 43692aa8ef fix: add no pan class name to nodes selection 2022-04-04 21:42:48 +02:00
Braks 271d793327 fix: edges not selected on user selection 2022-04-04 21:42:48 +02:00
Braks da2e95a517 refactor(store): rename selectionActive to userSelectionActive 2022-04-04 21:42:48 +02:00
Braks 024a434918 update: move mounted hooks up
* remove mounted hook from selection pane
2022-04-04 21:42:48 +02:00
Braks 7747456771 feat(nodes): Add dimensions to nodeprops 2022-04-04 21:42:48 +02:00
Braks aa44fc300d v0.4.0-10 2022-04-04 21:42:48 +02:00
Braks 70a349f7e1 fix(zoom): prevent scroll when zoom on scroll is false 2022-04-04 21:42:48 +02:00
Braks de534e9a5f fix(edges): missing source/target node props on smoothstep edges 2022-04-04 21:42:48 +02:00
Braks f72e7dced3 v0.4.0-9 2022-04-04 21:42:48 +02:00
Braks f30288da78 fix(nodes): check if prop label exists before using dynamic component 2022-04-04 21:42:48 +02:00
Braks 66743501af fix(edges): use correct vars for center in straight edge 2022-04-04 21:42:48 +02:00
Braks 3acb43d000 fix(edges): use correct functions for center/path in simple bezier edge 2022-04-04 21:42:48 +02:00
Braks 2b2aad8cdc fix: default prop value for zoomActivationKeyCode 2022-04-04 21:42:48 +02:00
Braks afdf0b1d99 chore: remove logs 2022-04-04 21:42:48 +02:00
Braks 38b910ba3b chore: fix lint issues 2022-04-04 21:42:48 +02:00
Braks 56f7e3b0c2 feat: Add SimpleBezierEdge
* Implement base edge
2022-04-04 21:42:48 +02:00
Braks 7d91aa28c2 refactor(zoom): make zoomActivationKeyCode non-optional again 2022-04-04 21:42:48 +02:00
Braks a5e853cdc3 feat(zoom): Add d3zoom event to hooks 2022-04-04 21:42:48 +02:00
Braks 4af0ee02c1 refactor(zoom): make zoomActivationKeyCode non-optional again
* defaults to Meta
* handle pan by checking if zoomkey is *not* pressed
2022-04-04 21:42:48 +02:00
Braks 0bb54d6d36 refactor(zoom): Rename paneMovable to panOnDrag 2022-04-04 21:42:48 +02:00
Braks c544a02344 feat(zoom): Add noPanClassName, noWheelClassName & noDragClassName
* For more flexible zoom behavior
2022-04-04 21:42:48 +02:00
Braks 9a8bf69848 feat: Add default edge options 2022-04-04 21:42:48 +02:00
Braks aba67a4852 feat(edges): Add base edge 2022-04-04 21:42:48 +02:00
Braks e5f6b4593c refactor(edges): Remove scaling from edge text 2022-04-04 21:42:48 +02:00
Braks 2b4dbba737 update: add edge text to exports 2022-04-04 21:42:48 +02:00
Braks 18758facbd feat(edges): Add & export bezierCenter function 2022-04-04 21:42:48 +02:00
Braks e9f4b5f022 fix(edges): source/targetHandle type 2022-04-04 21:42:48 +02:00
Braks c75f00a744 refactor: remove node and edges export 2022-04-04 21:42:48 +02:00
Braks af5b048391 update(context): remove typecast 2022-04-04 21:42:48 +02:00
Braks 833cf5e489 update(store): set vueFlow var to null on scope dispose 2022-04-04 21:42:48 +02:00
Braks 35f3d89240 refactor(nodes): Reduce node props
* Reduced node props down to essential and necessary props for custom nodes
2022-04-04 21:42:48 +02:00