added useNodeConnections

This commit is contained in:
peterkogo
2025-01-06 11:19:29 +01:00
parent 36329bde9f
commit ed82fd2eda
3 changed files with 133 additions and 0 deletions
+2
View File
@@ -24,6 +24,8 @@ export const errorMessages = {
`Node with id "${id}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,
error013: (lib: string = 'react') =>
`It seems that you haven't loaded the styles. Please import '@xyflow/${lib}/dist/style.css' or base.css to make sure everything is working properly.`,
error014: () =>
'useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.',
};
export const infiniteExtent: CoordinateExtent = [