small changes

This commit is contained in:
Joeri Exelmans 2025-10-16 17:21:29 +02:00
parent d4930eb13d
commit 9401c02800
5 changed files with 11 additions and 17 deletions

View file

@ -33,5 +33,11 @@ export function DiamondSVG(props: { diamond: Diamond; selected: string[]; highli
<DiamondShape size={minSize} extraAttrs={extraAttrs}/>
<RectHelper uid={props.diamond.uid} size={minSize} highlight={props.highlight} selected={props.selected} />
<text x={minSize.x/2} y={minSize.y/2}
className="uid"
textAnchor="middle"
data-uid={props.diamond.uid}>{props.diamond.uid}</text>
</g>;
}