can draw history states

This commit is contained in:
Joeri Exelmans 2025-10-17 13:31:02 +02:00
parent e8fda9bdf0
commit 28071eb1f3
8 changed files with 166 additions and 63 deletions

View file

@ -28,6 +28,8 @@ export function RountangleSVG(props: { rountangle: Rountangle; selected: string[
{...extraAttrs}
/>
<text x={10} y={20} className="uid">{props.rountangle.uid}</text>
{(props.errors.length > 0) &&
<text className="error" x={10} y={40} data-uid={uid} data-parts="left top right bottom">{props.errors.join(' ')}</text>}
@ -35,9 +37,6 @@ export function RountangleSVG(props: { rountangle: Rountangle; selected: string[
selected={props.selected}
highlight={props.highlight} />
<text x={10} y={20}
className="uid"
data-uid={props.rountangle.uid}>{props.rountangle.uid}</text>
</g>;
}