drawBorder = (data) => {
if (showBounds) {
return svg`<rect
x=${marginX} y=${marginY}
width=${size} height=${size}
fill="none"
stroke=${palette.fg}
stroke-width=${strokeWidth}></rect>`;
}
return svg`<line x1=${marginX} y1=${marginY}
x2=${marginX + size} y2=${marginY}
stroke-width=${strokeWidth}
stroke=${palette.fg}
stroke-linecap="round"
></line>
<line x1=${marginX} y1=${marginY + size}
x2=${marginX + size} y2=${marginY + size}
stroke-width=${strokeWidth}
stroke=${palette.fg}
stroke-linecap="round"
></line>`;
}