fix: 120 type errors
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 2m47s

This commit is contained in:
Max Richter
2025-11-24 00:10:38 +01:00
parent 0fa1b64d49
commit d64877666b
31 changed files with 584 additions and 467 deletions

View File

@@ -23,8 +23,6 @@
invalidate();
});
$effect(() => console.log({ nodes }));
const graphState = getGraphState();
const isNodeInView = getContext<(n: NodeType) => boolean>("isNodeInView");
@@ -50,8 +48,6 @@
}),
);
const nodeArray = $derived(Array.from(nodes.values()));
onMount(() => {
for (const node of nodes.values()) {
if (node?.tmp?.ref) {
@@ -86,9 +82,9 @@
style:transform={`scale(${cameraPosition[2] * 0.1})`}
class:hovering-sockets={graphState.activeSocket}
>
{#each nodeArray as node, i (node.id)}
{#each nodes.values() as node (node.id)}
<Node
bind:node={nodeArray[i]}
{node}
inView={cameraPosition && isNodeInView(node)}
z={cameraPosition[2]}
/>