(dragInPanel = false)}> deselectAllLayers()} on:dragover={updateInsertLine} on:dragend={drop} on:drop={drop} > {#each layers as listing, index} {@const selected = fakeHighlightOfNotYetSelectedLayerBeingDragged !== undefined ? fakeHighlightOfNotYetSelectedLayerBeingDragged === listing.entry.id : listing.entry.selected} draggable && dragStart(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.name === "Artboard"} {/if} onEditLayerName(listing)}> onEditLayerNameDeselect(listing)} on:keydown={(e) => e.key === "Escape" && onEditLayerNameDeselect(listing)} on:keydown={(e) => e.key === "Enter" && onEditLayerNameChange(listing, e)} 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"} tooltip={(listing.entry.unlocked ? "Lock" : "Unlock") + (!listing.entry.parentsUnlocked ? "\n(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"} tooltip={(listing.entry.visible ? "Hide" : "Show") + (!listing.entry.parentsVisible ? "\n(A parent of this layer is hidden and that status is being inherited)" : "")} />
{/each}
{#if draggingData && !draggingData.highlightFolder && dragInPanel}
{/if}