Commit Graph
100 Commits
Author SHA1 Message Date
Braks 540b3efb2d v0.4.0-18 2022-04-04 21:42:48 +02:00
Braks 57f8428a35 feat: Add publish script 2022-04-04 21:42:48 +02:00
Braks cd817b7f53 feat: implement workspaces 2022-04-04 21:42:48 +02:00
Braks cc96739c38 update: rename typedocs out dir to typedocs 2022-04-04 21:42:48 +02:00
Braks 1fe8fd334b chore(docs): update README.md 2022-04-04 21:42:48 +02:00
Braks 2899719ffa v0.4.0-17 2022-04-04 21:42:48 +02:00
Braks 6d9f198737 chore: update auto-imports.d.ts 2022-04-04 21:42:48 +02:00
Braks 9a875430ec fix(flow): set default prop as undefined for connectOnClick 2022-04-04 21:42:48 +02:00
Braks 25d769d553 chore(handle): remove setting elementBelow style onClick
* intended for hover
2022-04-04 21:42:48 +02:00
Braks da5b8bf867 v0.4.0-16 2022-04-04 21:42:48 +02:00
Braks a5a918a39b regression(nodes,edges): use computed to get current node/edge 2022-04-04 21:42:48 +02:00
Braks 202773144f fix(handle): prevent onClick from creating edges inside same node 2022-04-04 21:42:48 +02:00
Braks 5ba7170242 v0.4.0-15 2022-04-04 21:42:48 +02:00
Braks 0d6bc39e49 fix(nodes,edges): try to resolve component before falling back to default 2022-04-04 21:42:48 +02:00
Braks 897f662c29 v0.4.0-14 2022-04-04 21:42:48 +02:00
Braks e136c28f0e fix(flow): check if scope exists before accessing id
* add internal injection type
* move id getter to storage class
2022-04-04 21:42:48 +02:00
Braks 9b940142a7 fix(edges): use empty string instead of null when source-/target-handle is not present 2022-04-04 21:42:48 +02:00
Braks c955d19263 update(store): rename update to updates (to fit arr type) 2022-04-04 21:42:48 +02:00
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
Braks cd6b03d4ae fix(edges): destructure useHandle 2022-04-04 21:42:48 +02:00
Braks 66a166dea9 fix: connection line style prop
* remove slot
2022-04-04 21:42:48 +02:00
Braks b42c1b02de feat(handle): Add onClick handler
* for touch enabled connections
2022-04-04 21:42:48 +02:00
Braks 728046505c refactor(store): use null instead of undefined for optional state properties
* remove setConnectionNodeId action
2022-04-04 21:42:48 +02:00
Braks 188156dd0b fix(store): setting store state after init 2022-04-04 21:42:48 +02:00
Braks 4644af5736 fix(nodes): expand nodes correctly when prop enabled 2022-04-04 21:42:48 +02:00
Braks 266678d6a8 fix(nodes): pass parentNode id instead of parentNode to components 2022-04-04 21:42:48 +02:00
Braks c818a5863c fix(nodes): pass all required props to node components 2022-04-04 21:42:48 +02:00
Braks 7d4a5fdead refactor(store): shorten setState 2022-04-04 21:42:48 +02:00
Braks 0093df43a9 feat(nodes, edges, store): Add updateNodeDimensions actions
* Returns new changes for updating node dimensions
* Add expandParent prop to nodes when parents should be expanded to fit the new child in them
*
2022-04-04 21:42:48 +02:00
Braks 5cc0da29c0 refactor: shorten watcher 2022-03-24 16:56:31 +01:00
Braks 3539937752 refactor(store): shorten default state setter function 2022-03-24 16:52:52 +01:00
Braks 9a8caf444c feat(store): Enable using a parentNode / parentNodeId to add child nodes 2022-03-23 17:43:27 +01:00
Braks 6a2c1b00d7 feat: Enable passing components as node/edge-types
* Instead of using slots (re)-enable passing components for node/edge-types
2022-03-23 15:49:00 +01:00
Braks f3b3062970 v0.4.0-8 2022-03-23 13:03:05 +01:00
Braks f7c939e683 fix(edges): edges not connecting when mixed with top/btm & left/right 2022-03-23 06:47:57 +01:00
Braks ea93d553b8 fix(background): use rect only if bgColor is present 2022-03-23 06:47:57 +01:00
Braks c43b94c932 chore: merge shims into single file 2022-03-23 06:47:57 +01:00
Braks 3f5c7ea186 update: return vueFlow even if scope doesnt exist 2022-03-23 06:47:57 +01:00
Braks 8dcbb9704a chore: remove log 2022-03-23 06:47:57 +01:00
Braks d9c67bef60 update(background): use bgColor on extra rect 2022-03-23 06:47:57 +01:00
Braks 65d079db20 feat: use a storage class to map flow instances
* improves cleanup of instances
2022-03-23 06:47:57 +01:00
Braks 11da181d0f v0.4.0-7 2022-03-16 16:08:01 +01:00
Braks dcd2ec471e update: Remove useWindow export 2022-03-16 16:06:42 +01:00
Braks 05929299d3 refactor(zoom): Move paneReady event to transformation pane mounted hook
* await dimensions in fitView function
2022-03-16 16:02:26 +01:00
Braks 93e3d8b84f v0.4.0-6 2022-03-14 21:28:27 +01:00
Braks 6729588504 update: remove exports field 2022-03-14 21:25:32 +01:00
Braks 79bac64cc9 v0.4.0-5 2022-03-14 20:43:07 +01:00
Braks c70c816f4b chore: update auto-imports.d.ts 2022-03-14 20:42:30 +01:00
Braks ac9f380d15 update: fix export order 2022-03-14 20:23:35 +01:00
Braks f3b1c5e79a v0.4.0-4 2022-03-14 18:28:40 +01:00
Braks c21ac7dca4 feat(docs): Add comments to types 2022-03-14 18:20:58 +01:00