@reactflow/core
Advanced tools
Comparing version 11.7.3 to 11.7.4
@@ -6,3 +6,3 @@ import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react'; | ||
id: string | null; | ||
type: HandleType; | ||
type: HandleType | null; | ||
nodeId: string; | ||
@@ -14,4 +14,10 @@ x: number; | ||
export declare function getHandles(node: Node, handleBounds: NodeHandleBounds, type: HandleType, currentHandle: string): ConnectionHandle[]; | ||
export declare function getClosestHandle(pos: XYPosition, connectionRadius: number, handles: ConnectionHandle[], validator: (handle: ConnectionHandle) => Result): { | ||
handle: ConnectionHandle; | ||
export declare function getClosestHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, doc: Document | ShadowRoot, pos: XYPosition, connectionRadius: number, handles: ConnectionHandle[], validator: (handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'>) => Result): { | ||
handle: { | ||
id: string | null; | ||
type: HandleType | null; | ||
nodeId: string; | ||
x: number; | ||
y: number; | ||
}; | ||
validHandleResult: Result; | ||
@@ -28,3 +34,3 @@ } | { | ||
}; | ||
export declare function isValidHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'> | null, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: HandleType, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): { | ||
export declare function isValidHandle(handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'>, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: HandleType, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): { | ||
handleDomNode: Element | null; | ||
@@ -31,0 +37,0 @@ isValid: boolean; |
@@ -6,3 +6,3 @@ import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react'; | ||
id: string | null; | ||
type: HandleType; | ||
type: HandleType | null; | ||
nodeId: string; | ||
@@ -14,4 +14,10 @@ x: number; | ||
export declare function getHandles(node: Node, handleBounds: NodeHandleBounds, type: HandleType, currentHandle: string): ConnectionHandle[]; | ||
export declare function getClosestHandle(pos: XYPosition, connectionRadius: number, handles: ConnectionHandle[], validator: (handle: ConnectionHandle) => Result): { | ||
handle: ConnectionHandle; | ||
export declare function getClosestHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, doc: Document | ShadowRoot, pos: XYPosition, connectionRadius: number, handles: ConnectionHandle[], validator: (handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'>) => Result): { | ||
handle: { | ||
id: string | null; | ||
type: HandleType | null; | ||
nodeId: string; | ||
x: number; | ||
y: number; | ||
}; | ||
validHandleResult: Result; | ||
@@ -28,3 +34,3 @@ } | { | ||
}; | ||
export declare function isValidHandle(event: MouseEvent | TouchEvent | ReactMouseEvent | ReactTouchEvent, handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'> | null, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: HandleType, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): { | ||
export declare function isValidHandle(handle: Pick<ConnectionHandle, 'nodeId' | 'id' | 'type'>, connectionMode: ConnectionMode, fromNodeId: string, fromHandleId: string | null, fromType: HandleType, isValidConnection: ValidConnectionFunc, doc: Document | ShadowRoot): { | ||
handleDomNode: Element | null; | ||
@@ -31,0 +37,0 @@ isValid: boolean; |
{ | ||
"name": "@reactflow/core", | ||
"version": "11.7.3", | ||
"version": "11.7.4", | ||
"description": "Core components and util functions of React Flow.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
636594
8046