Skip to content

Commit

Permalink
refactor(flow!): Change transform to viewport
Browse files Browse the repository at this point in the history
* Change array type to object type and rename transform type to viewport
* Update examples & docs
  • Loading branch information
bcakmakoglu committed Apr 9, 2022
1 parent cd62b6b commit 929aacb
Show file tree
Hide file tree
Showing 29 changed files with 255 additions and 633 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "vuepress build src"
},
"dependencies": {
"@braks/vue-flow": "^0.4.2-0",
"@braks/vue-flow": "^0.4.2-3",
"blobity": "^0.1.7"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions docs/src/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ const edges = ref([

- Details:

Trigger fit view when transformation-pane is mounted.
Trigger fit view when viewport is mounted.

## Zoom & Pan Options
## Viewport Options

### zoom-activation-key-code <Badge class="text-white" style="line-height: inherit" text="optional" vertical="top" />

Expand Down Expand Up @@ -475,7 +475,7 @@ const edges = ref([

- Details:

Default zoom pane position on initial load.
Default viewport position on initial load.

### translate-extent <Badge class="text-white" style="line-height: inherit" text="optional" vertical="top" />

Expand All @@ -492,7 +492,7 @@ const edges = ref([

- Details:

The area in which the zoom pane can be moved around.
The area in which the viewport can be moved around.

## Selection Pane Options

Expand Down
2 changes: 1 addition & 1 deletion docs/src/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Introduction
# Introduction

Vue Flow is a library for building node-based applications. These can be simple static diagrams or complex node-based
editors. You can implement custom nodes and edges. It also comes with components like a mini-map, zoom pane controls and
editors. You can implement custom nodes and edges. It also comes with components like a mini-map, viewport controls and
a background.

Check out the [examples](/examples/) if you want to dive directly into the code.
Expand Down
349 changes: 0 additions & 349 deletions docs/src/guide/utilities.md

This file was deleted.

0 comments on commit 929aacb

Please sign in to comment.