{#if value !== null}
background {#each displayAnnotations as annotation, index} {if (interactive && !inserting) onSelect(event, index)}} /> {/each}
{#if interactive} {#each categories as category} 1) ? Square : Sketch} show_label={categories.length > 1} label={category} size="medium" padded={true} hasPopup={true} highlight={inserting && category === currentCategory} color={colorMap[category] || "white"} on:click={() => { onClickInsertion(category); }} /> {/each} {:else if show_legend && categories.length > 0} {#each categories as category} {/each} {/if} {/if}