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
e178a3ce44
feat: Add mini map node events
...
# What's changed?
* Add events for mini map node click & dbl click
* Receives event + node as parameters
2022-04-13 22:48:23 +02:00
Braks
e14cf124ff
fix(viewport): emit paneReady when dimensions are ready
...
* Wait for viewport & nodes to have their dimensions established before emitting paneReady
* Avoids getting 0 values for dimensions on paneReady
2022-04-11 11:30:10 +02:00
Braks
aae37a5416
feat(flow): Allow add and set actions to have a setter input
2022-04-11 11:30:10 +02:00
Braks
ea69dc58ee
fix: Return empty arrays if pane isn't ready yet
2022-04-11 11:30:10 +02:00
Braks
fcdbc21d34
refactor(flow!): Change transform to viewport
...
* Change array type to object type and rename transform type to viewport
* Update examples & docs
2022-04-11 11:30:10 +02:00
Braks
c964fb6b7d
refactor(nodes): Remove position func
...
* it's not improving on existing methods, i.e. no real benefit to it
2022-04-11 11:30:10 +02:00
Braks
8c2227132f
fix(flow): await until d3zoom is rdy
2022-04-11 11:30:10 +02:00
Braks
60feb5d661
refactor(flow!): Remove paneReady state value
2022-04-11 11:30:10 +02:00
Braks
1e9cbc0643
feat(nodes): Add PositionFunc as node position type
...
* Allows position to be set relative to another node
2022-04-11 11:30:10 +02:00
Braks
06b0c143b5
chore: add prefix to console messages
2022-04-11 11:30:10 +02:00
Braks
ec0f3ef0e4
fix: Selection not working twice in a row
2022-04-11 11:30:10 +02:00
Braks
bf2c77fb59
feat(flow): Promisify updateNodePosition
...
* helps with selected nodes dragging performance
2022-04-11 11:30:10 +02:00
Braks
d02ade03e9
feat(edges): return new edge from updateEdge utility
2022-04-04 21:42:48 +02:00
Braks
981511c76f
fix(flow): computed getter type
2022-04-04 21:42:48 +02:00
Braks
186b96f87d
update(flow): generic types
2022-04-04 21:42:48 +02:00
Braks
ade61ca2e1
update(types): Remove unnecessary type exports
...
* rename StringFunc for better understanding
2022-04-04 21:42:48 +02:00
Braks
8e6e85a007
fix: use global nodeExtent if node.extent is undefined
2022-04-04 21:42:48 +02:00
Braks
73a9016aff
fix(store): Getter type
2022-04-04 21:42:48 +02:00
Braks
d95a83349b
feat(flow): export apply changes utilities for options api
2022-04-04 21:42:48 +02:00
Braks
95bc46e616
fix(flow): store & usevueflow types
2022-04-04 21:42:48 +02:00
Braks
cd817b7f53
feat: implement workspaces
2022-04-04 21:42:48 +02:00