Skip to content

Commit

Permalink
chore(examples): cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: braks <[email protected]>
  • Loading branch information
bcakmakoglu committed Jan 7, 2025
1 parent bb3ef1e commit 7a6e6d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/vite/src/Layouting/ProcessNode.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script setup lang="ts">
import type { NodeProps } from '@vue-flow/core'
import { Handle, useHandleConnections } from '@vue-flow/core'
import { Handle, useNodeConnections } from '@vue-flow/core'
import type { ProcessNodeData } from './types'
const props = defineProps<NodeProps<ProcessNodeData>>()
const sourceConnections = useHandleConnections({
const sourceConnections = useNodeConnections({
type: 'target',
})
const targetConnections = useHandleConnections({
const targetConnections = useNodeConnections({
type: 'source',
})
Expand Down
4 changes: 2 additions & 2 deletions examples/vite/src/Math/ResultNode.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script setup lang="ts">
import type { GraphNode } from '@vue-flow/core'
import { Handle, Position, useHandleConnections, useNodeConnections, useNodesData } from '@vue-flow/core'
import { Handle, Position, useNodeConnections, useNodesData } from '@vue-flow/core'
import type { OperatorNodeData, ValueNodeData } from './types'
import { mathFunctions } from './utils'
defineProps<{ id: string }>()
// Get the source connections of the result node. In this example it's only one operator node.
const sourceConnections = useHandleConnections({
const sourceConnections = useNodeConnections({
// type target means all connections where *this* node is the target
// that means we go backwards in the graph to find the source of the connection(s)
type: 'target',
Expand Down

0 comments on commit 7a6e6d4

Please sign in to comment.