{ e.preventDefault(); e.stopPropagation(); if (naturalWidth && naturalHeight) { const container = panelEl?.querySelector(".pcr-image-container"); const h = container?.offsetHeight || panelEl?.offsetHeight || 300; panelWidth = clampPanelWidth(Math.round(h * (naturalWidth / naturalHeight))); if (node.properties) node.properties.pcrImagePanelWidth = panelWidth; } }} >
e.stopPropagation()} onmousedown={(e) => e.stopPropagation()} onclick={(e) => e.stopPropagation()} ondblclick={(e) => e.stopPropagation()} >
{filenameDisplay}
{ e.stopPropagation(); resetZoom(true); }} > {#if currentImageUrl && isVideoUrl} {:else if currentImageUrl} {/if} {#if !imageLoaded || !currentImageUrl}
{imageError ? "Image not found" : "No image"}
{/if}
{#if showProgress}
{#if !progressIndeterminate} {progressValue}/{progressMax} {/if}
{:else} {infoText} {/if}