diff --git a/.changeset/fifty-jobs-train.md b/.changeset/fifty-jobs-train.md new file mode 100644 index 00000000..7d615ef2 --- /dev/null +++ b/.changeset/fifty-jobs-train.md @@ -0,0 +1,18 @@ +--- +'@vue-flow/core': minor +--- + +Add autopan options. Pans viewport on node drag and/or when drawing a connection line. + +### Usage + +```ts +useVueFlow({ + autoPanOnNodeDrag: true, + autoPanOnConnect: true, +}) +``` + +```vue + +``` diff --git a/.changeset/tall-lizards-care.md b/.changeset/tall-lizards-care.md new file mode 100644 index 00000000..52c8ebe3 --- /dev/null +++ b/.changeset/tall-lizards-care.md @@ -0,0 +1,5 @@ +--- +'@vue-flow/core': patch +--- + +Throw warning if viewport dimensions are 0