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) => (
|
{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}
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user