responsive links hehehe
This commit is contained in:
parent
7dd588378b
commit
45963eafdb
@ -122,6 +122,7 @@ export default function Canvas(props) {
|
||||
{props.rectangles.map((rectangle) => (
|
||||
<Rect
|
||||
key={rectangle.id}
|
||||
id={rectangle.id}
|
||||
x={rectangle.x}
|
||||
y={rectangle.y}
|
||||
label={rectangle.label}
|
||||
|
@ -65,7 +65,7 @@ const Rect = (props) => {
|
||||
props.setLinks([
|
||||
...props.links,
|
||||
{
|
||||
rect: `${props.id}`,
|
||||
rect: props.id,
|
||||
node: Node.LEFT,
|
||||
x: props.x,
|
||||
y: props.y + props.height / 2,
|
||||
|
Loading…
Reference in New Issue
Block a user