UNPKG

@vue-flow/core

Version:

[![Vue flow](vue-flow.gif)](https://vueflow.dev/) ![top-language](https://img.shields.io/github/languages/top/bcakmakoglu/vue-flow) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/bcakmakoglu/vue-flow) ![GitHub last commit](

38 lines (36 loc) 1.06 kB
import type { Actions, CoordinateExtent, GraphNode, NodeDragItem, NodeLookup, State, XYPosition } from '../types' export declare function hasSelector(target: Element, selector: string, node: Element): boolean export declare function getDragItems( nodeLookup: NodeLookup, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string, ): NodeDragItem[] export declare function getEventHandlerParams({ id, dragItems, findNode, }: { id?: string dragItems: NodeDragItem[] findNode: Actions['findNode'] }): [GraphNode, GraphNode[]] export declare function getExtent<T extends NodeDragItem | GraphNode>( item: T, triggerError: State['hooks']['error']['trigger'], extent?: State['nodeExtent'], parent?: GraphNode, ): CoordinateExtent export declare function calcNextPosition( node: GraphNode | NodeDragItem, nextPosition: XYPosition, triggerError: State['hooks']['error']['trigger'], nodeExtent?: State['nodeExtent'], parentNode?: GraphNode, ): { position: { x: number y: number } computedPosition: XYPosition }