{ if (mouseAction === undefined || mouseAction === 'link') { hover = true; } }} onmouseleave={() => { if (hover) { hover = false; } }} >
{#if node.permission === 0} {:else} {node.name} {/if}
{#if node.permission === 0 && !linkMode} {/if}
{#if hover && linkMode} {#each { length: node.width } as _, i} {@const adjust = grid_size / 2 + grid_size * i - connectionPointSize / 2} {/each} {#each { length: node.width } as _, i} {@const adjust = grid_size / 2 + grid_size * i - connectionPointSize / 2} {/each} {#each { length: node.height } as _, i} {@const adjust = grid_size / 2 + grid_size * i - connectionPointSize / 2} {/each} {#each { length: node.height } as _, i} {@const adjust = grid_size / 2 + grid_size * i - connectionPointSize / 2} {/each} {/if}
{ node.icon = text; window.requestAnimationFrame(() => { save(); }); }} />