Commit Graph

73 Commits

Author SHA1 Message Date
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
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
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
482a1aa4af fix(examples): Proper events for listeners
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 10:43:58 +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
412a84a898 update(docs): styling of sidebar and header
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>

update(docs): target server generation

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 15:42:05 +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
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
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
8779a58bab update(examples): Add validation and zoom pan helper example 2021-10-22 13:03:14 +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
cd32f14a5a update(examples): Add update node example 2021-10-22 11:05:27 +02:00
Braks
0cc7ef4805 update(examples): Add Unidirectional and updatable edge example 2021-10-22 10:46:54 +02:00
Braks
c23bbfaa4a update(examples): Add switch example 2021-10-22 10:00:38 +02:00
Braks
5611f79ea8 update(examples): Add stress example 2021-10-22 10:00:21 +02:00
Braks
3f863ef71c update(examples): Add Save & Restore example
* add localforage to dev deps
2021-10-22 10:00:21 +02:00
Braks
eb9714b898 update(examples): Add Provider example
* Provider example shows usage of store outside of Flow
2021-10-22 10:00:20 +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
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
a9f187697a update(examples): remove "hack" from layouting example 2021-10-21 15:11:10 +02:00
Braks
0a9c1b0717 update(examples): Add multi flows example 2021-10-21 14:55:19 +02:00
Braks
712cf3ef66 update(examples): Add layouting example 2021-10-21 14:47:32 +02:00
Braks
ca2901bc01 fix: zoom pan helper not being initialized timely 2021-10-21 13:46:15 +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
Braks
64a4b8c418 fix: nodes as fragments
feat: accept vnode as edge text
2021-10-20 22:39:54 +02:00
Braks
b2b1fe822f feat: add useStore and useHooks composables that provide default store/hooks 2021-10-20 22:39:54 +02:00
Braks
61dc9dea33 fix: edges and edge anchors not re-calculating correctly 2021-10-20 22:39:54 +02:00
Braks
7ecbcba7eb fix: edge anchor 2021-10-20 22:39:54 +02:00
Braks
9d9a90e9a7 update: Add slots to CustomConnectionLine.vue, Edge.vue, Node.vue 2021-10-20 22:39:54 +02:00
Braks
6cfe5f6d43 chore(deps): remove unused deps
* update deps
* some ts fixes
2021-10-20 22:39:54 +02:00
Braks
17f2517ab4 fix: too many re-render on edges and nodes 2021-10-20 22:39:54 +02:00
Braks
fede792a37 fix: correct event listeners in examples 2021-10-20 22:39:54 +02:00
Braks
c3fb3cd10a fix: zoom pan helper 2021-10-20 22:39:54 +02:00
Braks
a895853b64 update: Add injection keys 2021-10-20 22:39:54 +02:00
Braks
6b4e7ab3ce fix: Minimap 2021-10-20 22:39:54 +02:00
Braks
29c6df1755 update(examples): Fix examples 2021-10-20 22:39:54 +02:00
Braks
a5ae6a4e48 update(deps): Add unplugin-components
fix: Excessive rerender of edge texts
update(script-setup): Update some examples

* Remove more jsx files
2021-10-20 22:39:54 +02:00
Braks
560bdc203b update(script-setup): Refactor remaining files to script setup style 2021-10-20 22:39:54 +02:00
Braks
77eac0c12a chore(lint): Update eslint rules
* Remove semi
2021-10-20 22:39:54 +02:00
Braks
e0bc7e2c96 update(example): Add measurment (px) to nodes width and font size 2021-08-17 19:47:49 +02:00
Braks
23c5d2415c feat(example): Add interaction demo
* Showcase how to dynamically activate/deactivate different options of the flowchart
2021-08-16 21:51:53 +02:00