refactor(additional-components): move additional components into separate pkg
This commit is contained in:
@@ -3,14 +3,16 @@ import { Handle, Position, getNodesInside, useVueFlow } from '@vue-flow/core'
|
||||
import type { NodeProps } from '@vue-flow/core'
|
||||
|
||||
const props = defineProps<NodeProps>()
|
||||
|
||||
const { onNodeDragStop, getNodes, viewport } = useVueFlow()
|
||||
|
||||
onNodeDragStop(({ node }) => {
|
||||
const nodes = getNodesInside(
|
||||
getNodes.value,
|
||||
{
|
||||
...props.dimensions,
|
||||
x: props.computedPosition.x,
|
||||
y: props.computedPosition.y,
|
||||
x: props.position.x,
|
||||
y: props.position.y,
|
||||
},
|
||||
viewport.value,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user