From b59dd6a7256a1f0eb51beb7ea581383089b5e0d4 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 1 Feb 2023 23:07:51 +0100 Subject: [PATCH] chore: add changesets Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- .changeset/fifty-jobs-train.md | 18 ++++++++++++++++++ .changeset/tall-lizards-care.md | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 .changeset/fifty-jobs-train.md create mode 100644 .changeset/tall-lizards-care.md 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