{#if mirror} {#each groupedPoints as p, i (i)} {@const x = 100 - p[0]} {@const y = p[1]} {/each} {/if} {#each groupedPoints as p, i (i)} {/each}