responsive links hehehe

This commit is contained in:
1ilit 2023-09-19 15:47:11 +03:00
parent 7dd588378b
commit 45963eafdb
2 changed files with 2 additions and 1 deletions

View File

@ -122,6 +122,7 @@ export default function Canvas(props) {
{props.rectangles.map((rectangle) => ( {props.rectangles.map((rectangle) => (
<Rect <Rect
key={rectangle.id} key={rectangle.id}
id={rectangle.id}
x={rectangle.x} x={rectangle.x}
y={rectangle.y} y={rectangle.y}
label={rectangle.label} label={rectangle.label}

View File

@ -65,7 +65,7 @@ const Rect = (props) => {
props.setLinks([ props.setLinks([
...props.links, ...props.links,
{ {
rect: `${props.id}`, rect: props.id,
node: Node.LEFT, node: Node.LEFT,
x: props.x, x: props.x,
y: props.y + props.height / 2, y: props.y + props.height / 2,