docs: update examples
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import { templateRef } from '@vueuse/core'
|
||||
import type { Elements, FlowInstance } from '@braks/vue-flow'
|
||||
import type { Elements, VueFlowStore } from '@braks/vue-flow'
|
||||
import { VueFlow } from '@braks/vue-flow'
|
||||
import RGBNode from './RGBNode.vue'
|
||||
import RGBOutputNode from './RGBOutputNode.vue'
|
||||
@@ -22,7 +22,7 @@ const elements = ref<Elements>([
|
||||
|
||||
const el = templateRef<HTMLDivElement>('page', null)
|
||||
|
||||
const onLoad = (flowInstance: FlowInstance) => {
|
||||
const onLoad = (flowInstance: VueFlowStore) => {
|
||||
flowInstance.fitView({ padding: 1 })
|
||||
}
|
||||
const color = ref<Colors>({
|
||||
|
||||
Reference in New Issue
Block a user