feat: Enhance arrow and trigger connection handling with backend updates and improved event management

This commit is contained in:
2025-07-08 10:12:16 +05:30
parent 5af0ba303e
commit 7f51ce1d58
2 changed files with 81 additions and 54 deletions

View File

@@ -503,15 +503,15 @@ function TriggerConnector() {
dashed={toolMode === '3D-Delete' && hoveredLineKey === connection.id ? false : true}
dashSize={0.75}
dashScale={20}
onPointerOver={() => setHoveredLineKey(connection.id)}
onPointerOut={() => setHoveredLineKey(null)}
onClick={() => {
if (toolMode === '3D-Delete') {
setHoveredLineKey(null);
setCurrentLine(null);
removeConnection(connection);
}
}}
// onPointerOver={() => setHoveredLineKey(connection.id)}
// onPointerOut={() => setHoveredLineKey(null)}
// onClick={() => {
// if (toolMode === '3D-Delete') {
// setHoveredLineKey(null);
// setCurrentLine(null);
// removeConnection(connection);
// }
// }}
userData={connection.trigger}
/>
);