(dragInPanel = false)}> {#if layersPanelControlBarLeftLayout?.length > 0 && layersPanelControlBarRightLayout?.length > 0} {/if} deselectAllLayers()} on:dragover={fileDragOver} on:drop={fileDrop} > {#each layers as listing, index} {@const selected = fakeHighlightOfNotYetSelectedLayerBeingDragged !== undefined ? fakeHighlightOfNotYetSelectedLayerBeingDragged === listing.entry.id : listing.entry.selected} layerPointerDown(e, listing)} on:click={(e) => selectLayerWithModifiers(e, listing)} > {#if listing.entry.childrenAllowed} {:else}
{/if} {#if listing.entry.clipped} {/if}
{#if $nodeGraph.thumbnails.has(listing.entry.id)} {@html $nodeGraph.thumbnails.get(listing.entry.id)} {/if}
{#if listing.entry.iconName} {/if} onEditLayerName(listing)}> onEditLayerNameDeselect(listing)} on:keydown={(e) => { if (e.key === "Escape") { onEditLayerNameDeselect(listing); } else if (e.key === "Enter") { onEditLayerNameChange(listing, e); } else if (e.key === "Tab") { e.preventDefault(); navigateToLayer(listing, e.shiftKey ? "Up" : "Down"); } else if (e.key === "ArrowUp") { e.preventDefault(); navigateToLayer(listing, "Up"); } else if (e.key === "ArrowDown") { e.preventDefault(); navigateToLayer(listing, "Down"); } }} on:change={(e) => onEditLayerNameChange(listing, e)} /> {#if !listing.entry.unlocked || !listing.entry.parentsUnlocked} (toggleLayerLock(listing.entry.id), e?.stopPropagation())} size={24} icon={listing.entry.unlocked ? "PadlockUnlocked" : "PadlockLocked"} hoverIcon={listing.entry.unlocked ? "PadlockLocked" : "PadlockUnlocked"} tooltipLabel={listing.entry.unlocked ? "Lock" : "Unlock"} tooltipDescription={!listing.entry.parentsUnlocked ? "A parent of this layer is locked and that status is being inherited." : ""} /> {/if} (toggleNodeVisibilityLayerPanel(listing.entry.id), e?.stopPropagation())} size={24} icon={listing.entry.visible ? "EyeVisible" : "EyeHidden"} hoverIcon={listing.entry.visible ? "EyeHide" : "EyeShow"} tooltipLabel={listing.entry.visible ? "Hide" : "Show"} tooltipDescription={!listing.entry.parentsVisible ? "A parent of this layer is hidden and that status is being inherited." : ""} />
{/each}
{#if draggingData && !draggingData.highlightFolder && dragInPanel}
{/if}