Translation

Translation co-ordinates

{#if points.length > 0} {/if}
{#if points.length > 0}

Original Points

{#each points as point (point.id)} {/each}
Delete x y
{point.x} {point.y}

Translation Points

{#each translatedPointsArray.x as _, i} {/each}
x y
{translatedPointsArray.x[i]} {translatedPointsArray.y[i]}
{/if}