Braks
9b604e7628
fix: pass props to store state
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 20:04:00 +01:00
Braks
808c6b17e0
fix: remove force-update from node
...
* update dimensions directly, not on next tick
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 20:00:09 +01:00
Braks
93730a7b98
update: count store id gradually up instead of "randomizing" one
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 19:59:44 +01:00
Braks
e1e656ccf2
update: export default nodes and edges
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 19:04:35 +01:00
Braks
6c2bdcdae6
fix(types): remove sourceX/Y, targetX/Y attributes from edge type
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 17:55:14 +01:00
Braks
413c7ac688
update(types!): Merge EdgeProps into Edge type
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 17:45:01 +01:00
Braks
a58d952e9f
fix: disable inherting attrs on nodes/edges to avoid warnings
...
* disable context warnings for non-dev environments
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 16:01:44 +01:00
Braks
4fb55aba68
fix: cancel keypress for input dom nodes
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 13:34:21 +01:00
Braks
476a5aa09b
fix: type in usehooks
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 13:06:54 +01:00
Braks
490983bebe
fix: todo in useHandle
...
* edge update end only emits the mouse event, not the edge
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 13:04:55 +01:00
Braks
7c66cf5d9b
update!: Remove update node internals composable
...
* It's practically useless as vue doesn't need the trigger to catch a re-render
* Remove unused types
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 12:58:16 +01:00
Braks
d1dab4cda8
feat: Extend options to pass custom nodes / edges
...
* Accept either a Record<string, Component | boolean> or string[] as nodetypes option
* If bool / string is used a slot will be expected, otherwise no node/edge will be rendered
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-16 09:43:17 +01:00
Braks
ffdadda051
update!: Rename Flow container to VueFlow
...
* Export renamed to VueFlow
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-15 20:34:02 +01:00
Braks
dec2774145
update(edge): hide edge if source/target pos are NaN-ish
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-15 14:31:54 +01:00
Braks
d6ee5f8868
fix: wrong watch source in nodes
...
* causes console warnings
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-15 12:50:03 +01:00
Braks
9c3eeef5eb
fix: warnings when NaN values are passed to svg transformations
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-15 12:44:09 +01:00
Braks
3705a39fa8
refactor: perfomance optimisations through less dependency tracking
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-15 11:22:56 +01:00
Braks
066155b9f7
feat: copy default theme css file separately to dist
...
* to enable overwriting the default theme export it separately
* add rollup plugin copy for copying the css file
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-06 15:42:05 +01:00
Braks
ea7db92b6e
fix: draggable not updating on nodes
...
* remove alias for dagre
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-06 09:43:31 +01:00
Braks
aaf5f608f5
feat: add path alias for src
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-06 09:38:02 +01:00
Braks
5437d48325
fix: custom node example not fitting view
...
* fit view can't work (for the onLoad event) for elements assigned after the host has mounted (onMounted hook) as we can't calculate a rect of elements that don't exist at flow creation
* in this case just trigger fit view __after__ elements have been created/passed to the flow
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-06 08:54:35 +01:00
Braks
a8f7cc2389
fix: zoom pane not scaling
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-06 08:54:35 +01:00
Braks
3931a59524
fix(docs): dedupe and add alias for vue
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-06 08:54:35 +01:00
Braks
ae0772b6d4
update(docs): fix view height
2021-11-06 08:54:35 +01:00
Braks
e99dfc3dd2
update(docs): Add all examples
2021-11-06 08:54:35 +01:00
Braks
61779638ac
update(dist): Remove rollup and use vite to build lib
...
* Remove custom tsconfig paths to avoid resolving issues on published package
2021-11-06 08:54:35 +01:00
Braks
64df75d405
feat(docs): Initial commit for docs in nuxt 3
2021-11-06 08:54:35 +01:00
Braks
6ec8258f33
fix: typings
2021-10-22 14:29:27 +02:00
Braks
cb96b1ab00
fix: missing node id in node components/slots
2021-10-22 13:04:33 +02:00
Braks
ee07affa89
fix: missing bgcolor in background
2021-10-22 13:03:25 +02:00
Braks
babcbd0e1f
update: Flow instance provides update node internals func
...
* Rename onLoadParams to FlowInstance
* Pass update node internals to instance
2021-10-22 12:39:55 +02:00
Braks
3ee3843af6
fix: Edge updates not triggering properly
...
update(types): Add FlowEvents type
2021-10-22 10:46:12 +02:00
Braks
3f863ef71c
update(examples): Add Save & Restore example
...
* add localforage to dev deps
2021-10-22 10:00:21 +02:00
Braks
0a45e09c32
feat: Add node/edge types id
...
* ID can be used to switch between different types of nodes/edges
* Add example
2021-10-22 08:49:53 +02:00
Braks
26b3901bd5
fix: node not updating handlebounds when handle pos changes
...
* watch source & target pos and update node dimensions on next tick
2021-10-22 08:16:32 +02:00
Braks
9532615cfd
chore(deps): Downgrade draggale to 0.2.5 due to transformation issue with current version
2021-10-21 18:03:06 +02:00
Braks
20e9d1d396
update: fix names
2021-10-21 17:42:33 +02:00
Braks
cd02dd0444
fix: node type change not triggering recalculation of node dimensions
2021-10-21 16:23:23 +02:00
Braks
636eeff9fe
feat: use v-html for node labels
...
* add span tag as wrapper for node labels
feat(examples):
* Add overview example
2021-10-21 15:29:17 +02:00
Braks
e11fddf70a
fix: valid connection func in handle
2021-10-21 15:10:42 +02:00
Braks
6d197d7f2a
update: remove nodes selection props
2021-10-21 14:38:27 +02:00
Braks
0e79718720
update: Add validConnectFunc as prop to handle
2021-10-21 14:28:11 +02:00
Braks
24316e1386
update: background properties
2021-10-21 13:57:20 +02:00
Braks
ca2901bc01
fix: zoom pan helper not being initialized timely
2021-10-21 13:46:15 +02:00
Braks
c062601874
fix: nodeposdiff not updating correctly on node selection
2021-10-21 12:49:11 +02:00
Braks
77d2e01fc0
update: types
...
* Add elements to flowoptions type
* add window interface to custom shims
2021-10-21 00:24:59 +02:00
Braks
31c896edb5
update: replace vue version when rolling bundle
...
* remove vue jsx
2021-10-21 00:09:23 +02:00
Braks
5f500bca18
fix: store actions blocking main thread
...
* map function overwriting nodes causes main thread to be blocked
* instead use splice
2021-10-20 23:46:47 +02:00
Braks
ff7ee5c7fe
fix: label type in edges
2021-10-20 23:09:36 +02:00
Braks
2bfecf7148
update: change name to vue flow
...
* Add gif to readme
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-10-20 22:39:54 +02:00