chore(docs): cleanup
This commit is contained in:
@@ -22,7 +22,7 @@ const downloadCountTransitioned = useTransition(downloadCount, {
|
|||||||
})
|
})
|
||||||
|
|
||||||
starGazersCount.value = 3000
|
starGazersCount.value = 3000
|
||||||
downloadCount.value = 50000
|
downloadCount.value = 150000
|
||||||
|
|
||||||
Promise.all([
|
Promise.all([
|
||||||
$fetch('https://api.github.com/repos/bcakmakoglu/vue-flow?page=$i&per_page=100').then((data) => {
|
$fetch('https://api.github.com/repos/bcakmakoglu/vue-flow?page=$i&per_page=100').then((data) => {
|
||||||
|
|||||||
@@ -79,8 +79,6 @@ function logEvent(name, data) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
# Introduction to Edges
|
|
||||||
|
|
||||||
Edges are the links connecting your nodes, forming a map.
|
Edges are the links connecting your nodes, forming a map.
|
||||||
Each edge runs from one handle to another, and can be customized to your liking.
|
Each edge runs from one handle to another, and can be customized to your liking.
|
||||||
|
|
||||||
|
|||||||
@@ -50,8 +50,6 @@ function logEvent(name, data) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
# Introduction to Nodes
|
|
||||||
|
|
||||||
Nodes are the underlying components of your graph.
|
Nodes are the underlying components of your graph.
|
||||||
They can be any kind of data you want to visualize in your graph, existing independently and being interconnected
|
They can be any kind of data you want to visualize in your graph, existing independently and being interconnected
|
||||||
through edges to create a data map.
|
through edges to create a data map.
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
# State
|
# State
|
||||||
|
|
||||||
## Introduction
|
|
||||||
|
|
||||||
Under the hood Vue Flow uses [Provide/Inject](https://v3.vuejs.org/guide/component-provide-inject)
|
Under the hood Vue Flow uses [Provide/Inject](https://v3.vuejs.org/guide/component-provide-inject)
|
||||||
to pass around it's state between components.
|
to pass around it's state between components.
|
||||||
You can access the internal state through the [`useVueFlow`](/guide/composables#usevueflow/) composable.
|
You can access the internal state through the [`useVueFlow`](/guide/composables#usevueflow/) composable.
|
||||||
@@ -12,13 +10,11 @@ an already existing store from the current context.
|
|||||||
Internal state can be manipulated, for example by adding new elements to the state. The
|
Internal state can be manipulated, for example by adding new elements to the state. The
|
||||||
state is reactive and changes will be reflected on the graph.
|
state is reactive and changes will be reflected on the graph.
|
||||||
|
|
||||||
```vue{4-6}
|
```vue
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useVueFlow } from '@vue-flow/core'
|
import { useVueFlow } from '@vue-flow/core'
|
||||||
|
|
||||||
const { getNodes, onPaneReady } = useVueFlow({
|
const { getNodes, onPaneReady } = useVueFlow()
|
||||||
... // you can pass any VueFlowProp to the composable as a static option
|
|
||||||
})
|
|
||||||
|
|
||||||
// event handler
|
// event handler
|
||||||
onPaneReady((i) => i.fitView())
|
onPaneReady((i) => i.fitView())
|
||||||
|
|||||||
Reference in New Issue
Block a user