(spaceDown = false)} />
{#if dirName(doc.path)}{dirName(doc.path).replaceAll('/', ' / ')} /{/if} {displayName(doc.path)}
{ palm.track(e); eraserAt = null; }} oncontextmenu={onContextMenu} >
{#each visible as id (id)} {@const page = doc.pages[id]} {@const rect = doc.rects.get(id)} {#if page && rect} doc.touch()} onactivate={() => (doc.activeId = id)} /> {/if} {/each} {#each ghostSlots as slot (slot.anchor + slot.dir)} {@const r = slotRect(slot)} {#if r} {/if} {/each} {#if tools.placing} {#each placeSlots as slot (slot.anchor + slot.dir)} {@const first = tools.placing.pages[0]} {@const r = slotRect(slot, first)} {#if r} {/if} {/each} {/if}
{#if activeMenuPos && doc.activeId} {/if} {#if eraserAt && tools.tool === 'eraser'}
{/if} {#if tools.placing} {/if}
fitPage(doc.activeId)} onfitall={fitAll} />