Export event types and use pointer events wherever possible

This commit is contained in:
peterkogo
2025-01-14 13:15:40 +01:00
parent fbbe4e2529
commit ce6fcc7a82
4 changed files with 22 additions and 21 deletions
@@ -60,7 +60,7 @@ export type SvelteFlowProps = NodeEvents &
* }
* ]);
*/
nodes: Node[];
nodes?: Node[];
/** An array of edges to render in a controlled flow.
* @example
* const edges = $state.raw([
@@ -71,7 +71,7 @@ export type SvelteFlowProps = NodeEvents &
* }
* ]);
*/
edges: Edge[];
edges?: Edge[];
/** Custom node types to be available in a flow.
*
* Svelte Flow matches a node's type to a component in the nodeTypes object.