add only render visible nodes & edges

This commit is contained in:
peterkogo
2024-12-19 20:43:01 +01:00
parent 6349290722
commit 848434c419
11 changed files with 191 additions and 191 deletions
@@ -52,7 +52,7 @@ export type SvelteFlowProps = NodeEvents &
id?: string;
/** An array of nodes to render in a controlled flow.
* @example
* const nodes = writable([
* const nodes = $state.raw([
* {
* id: 'node-1',
* type: 'input',
@@ -64,7 +64,7 @@ export type SvelteFlowProps = NodeEvents &
nodes: Node[];
/** An array of edges to render in a controlled flow.
* @example
* const edges = writable([
* const edges = $state.raw([
* {
* id: 'edge-1-2',
* source: 'node-1',