0 ? "Document" : "Welcome"} tabCloseButtons={true} tabMinWidths={true} tabLabels={documentTabLabels} emptySpaceAction={() => editor.handle.newDocumentDialog()} clickAction={(tabIndex) => editor.handle.selectDocument($portfolio.documents[tabIndex].id)} closeAction={(tabIndex) => editor.handle.closeDocumentWithConfirmation($portfolio.documents[tabIndex].id)} tabActiveIndex={$portfolio.activeDocumentIndex} bind:this={documentPanel} /> {#if $portfolio.dataPanelOpen} resizePanel(e)} /> {/if} {#if $portfolio.propertiesPanelOpen || $portfolio.layersPanelOpen} resizePanel(e)} /> {#if $portfolio.propertiesPanelOpen} {/if} {#if $portfolio.propertiesPanelOpen && $portfolio.layersPanelOpen} resizePanel(e)} /> {/if} {#if $portfolio.layersPanelOpen} {/if} {/if}