Braks
e2fd3b44ef
refactor(edges): defer grouping to next tick
2022-04-24 13:34:22 +02:00
Braks
f5d245322b
feat: Add emits property to store
...
# What's changed?
* For easier access (and shorter syntax) of event emitters add emits property to store
* Change instance, zoom, hooks, emits and onEvent triggers to readonly
2022-04-24 13:34:22 +02:00
Braks
b6848e37c8
refactor(nodes,edges): Pass type component as prop
...
# What's changed?
* Pass component as prop
* Reduce watcher and computed
* Add reactivity transform macros to examples
2022-04-24 13:34:22 +02:00
Braks
6d1fb963b3
chore: correct watcher
2022-04-24 13:34:22 +02:00
Braks
dc1d71d0bd
refactor: Destructure props with reactivity transform
2022-04-24 13:34:22 +02:00
Braks
e722f49e6e
refactor(types,flow)!: Use reactivity transform and remove store property
...
# What's changed?
* Remove store property from usevueflow return value
* All previously available properties are still there, just not nested inside an additional store object to avoid confusion + duplicates
* use reactivity transform to get rid of .value calls
2022-04-24 13:34:22 +02:00
Braks
3bc972a1d1
chore: reorganize edgewrapper
2022-04-24 13:34:22 +02:00
Braks
8d33014291
refactor(nodes,edges): change defaults to functional components
...
# What's changed?
* Change default node/edge components to functional components
2022-04-24 13:34:22 +02:00
Braks
0519bd0f25
chore: Remove casting node/edge to null on unmount
2022-04-24 13:34:22 +02:00
Braks
b6d8b57859
chore: Performance optimizations
...
# What's changed?
* Remove keys
* Stabilize props
* Force reset store on unmount
2022-04-24 13:34:22 +02:00
Braks
0a21f3c068
chore(nodes,edges): Remove duplicate keys on nodes/edges
2022-04-21 10:47:53 +02:00
Braks
ee38f4af9b
fix(edges): Remove orphaned edges
...
# What's changed?
* Remove source/targetNode properties from GraphEdge type, the source/target will be fetched with getters if necessary
* Remove edges when they have no existing source or target nodes that can be found in the state
* Add nodes to custom edge test
2022-04-21 10:47:53 +02:00
Braks
88f808711a
feat: Allow node/edge template per element
...
* Allow templates to be overwritten per element with template option
2022-04-11 11:30:10 +02:00
Braks
b206ff160f
fix(nodes,edges): Cast styles to css properties
2022-04-11 11:30:10 +02:00
Braks
5f6a805baa
refactor(edges): use computed properties for class and styles
2022-04-11 11:30:10 +02:00
Braks
bc88e18f22
update(edges): Use proper handle bounds
2022-04-11 11:30:10 +02:00
Braks
158be8a515
feat: Assign default handle id and allow for actual loose connections
...
* When set to loose allow connections from all handles, this requires ids on handles so a default will be set if none provided
2022-04-11 11:30:10 +02:00
Braks
af23f733c0
chore(nodes,edges): remove v-bind
2022-04-04 21:42:48 +02:00
Braks
546dd4baaf
fix(nodes,edges): compute type in wrapper
2022-04-04 21:42:48 +02:00
Braks
444bf0a879
chore: add useStyle to wrappers
2022-04-04 21:42:48 +02:00
Braks
a50101bfd3
feat(nodes,edges): Allow class or styles to be bound with function
...
* function param is current node
* makes it easier to add classes / styles if specific node is selected etc.
2022-04-04 21:42:48 +02:00
Braks
528cac5d33
regression(nodes,edges): removing nodes/edges breaks renderer
2022-04-04 21:42:48 +02:00
Braks
70646c5f95
update(edges): support fragments as edge slots
2022-04-04 21:42:48 +02:00
Braks
3f15983f3e
feat(edges): Use slot injection for custom edges
2022-04-04 21:42:48 +02:00
Braks
cd817b7f53
feat: implement workspaces
2022-04-04 21:42:48 +02:00