fix: 120 type errors
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 2m47s
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 2m47s
This commit is contained in:
@@ -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]}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user