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
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
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
9fdac11fd0
chore: bump version
2022-06-25 00:43:43 +02:00
bcakmakoglu
3cb3ada783
refactor: trigger viewport size update on window resize
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
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
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
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
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
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
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
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
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
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
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
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
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
893b35b519
chore: bump version
2022-06-15 19:41:36 +02:00
bcakmakoglu
06420ac6cd
feat(vue-flow,components): export MiniMapNode component
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
59b64242d5
chore: bump version
2022-06-10 21:23:03 +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
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