feat: Enhance arrow and trigger connection handling with backend updates and improved event management
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user