e.stopPropagation()} onmousedown={(e) => e.stopPropagation()} onclick={(e) => e.stopPropagation()} ondblclick={(e) => e.stopPropagation()} onpointerleave={onPanelLeave} onpointermovecapture={onPanelMove} > {#if SHOW_CLOSE_BTN} {/if}
{#if !hasDock}
No Region Box node in the graph
{/if}
{ e.preventDefault(); e.stopPropagation(); const rb = dockedNode || getActiveRegionBox(); const w = rb?.widgets?.find((x) => x.name === "width")?.value; const h = rb?.widgets?.find((x) => x.name === "height")?.value; if (!w || !h) return; const bodyH = bodyEl?.offsetHeight || panelEl?.offsetHeight || 300; panelWidth = clampPanelWidth(Math.round(bodyH * (w / h))); if (node.properties) node.properties.pcrRegionPanelWidth = panelWidth; }} >