0 ? $portfolio.documents.map(() => "Document") : ["Welcome"]} tabCloseButtons={true} tabMinWidths={true} tabLabels={documentTabLabels} emptySpaceAction={() => editor.newDocumentDialog()} clickAction={(tabIndex) => editor.selectDocument($portfolio.documents[tabIndex].id)} closeAction={(tabIndex) => editor.closeDocumentWithConfirmation($portfolio.documents[tabIndex].id)} reorderAction={(oldIndex, newIndex) => editor.reorderDocument($portfolio.documents[oldIndex].id, newIndex)} tabActiveIndex={$portfolio.activeDocumentIndex} bind:this={documentPanel} /> {#if dataGroup.tabs.length > 0} resizePanel(e)} on:dblclick={(e) => resetPanelSizes(e)} /> ({ name }))} tabActiveIndex={dataGroup.activeTabIndex} clickAction={(tabIndex) => editor.setPanelGroupActiveTab("DataGroup", tabIndex)} reorderAction={(oldIndex, newIndex) => editor.reorderPanelGroupTab("DataGroup", oldIndex, newIndex)} crossPanelDropAction={crossPanelDrop} /> {/if} {#if propertiesGroup.tabs.length > 0 || layersGroup.tabs.length > 0} resizePanel(e)} on:dblclick={(e) => resetPanelSizes(e)} /> {#if propertiesGroup.tabs.length > 0} ({ name }))} tabActiveIndex={propertiesGroup.activeTabIndex} clickAction={(tabIndex) => editor.setPanelGroupActiveTab("PropertiesGroup", tabIndex)} reorderAction={(oldIndex, newIndex) => editor.reorderPanelGroupTab("PropertiesGroup", oldIndex, newIndex)} crossPanelDropAction={crossPanelDrop} /> {/if} {#if propertiesGroup.tabs.length > 0 && layersGroup.tabs.length > 0} resizePanel(e)} on:dblclick={(e) => resetPanelSizes(e)} /> {/if} {#if layersGroup.tabs.length > 0} ({ name }))} tabActiveIndex={layersGroup.activeTabIndex} clickAction={(tabIndex) => editor.setPanelGroupActiveTab("LayersGroup", tabIndex)} reorderAction={(oldIndex, newIndex) => editor.reorderPanelGroupTab("LayersGroup", oldIndex, newIndex)} crossPanelDropAction={crossPanelDrop} /> {/if} {/if}