Skip to content

Remove connection line when right clicking#3

Open
linusbohwalli wants to merge 4 commits into
silverbeak:masterfrom
linusbohwalli:onRightClickConnection
Open

Remove connection line when right clicking#3
linusbohwalli wants to merge 4 commits into
silverbeak:masterfrom
linusbohwalli:onRightClickConnection

Conversation

@linusbohwalli

Copy link
Copy Markdown

Added support for being able to right click a connection line to remove it.
It will remove the line from the flowboard connectionLineData.

In order to rerender the svg lines, also added a useEffect to manage the connectionLinesData state in useConnectionDrag().

Aswell as a updating the useEffect() in useConnectionDraw() to update the svgConnectionLines properly, making sure we rerender the lines on the canvas.

Changed some css styling for the connectionpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant