I would like to know the exact nature of the event. #2912
Replies: 2 comments
-
Hello james-ep01, This is quite difficult to write out in an organized way, but I will try. The order of execution of these callbacks and events during link dragging is the following:
...while link source/target is dragged:
...after link is dropped: ...option 1: if target is valid:
...option 2: if target is invalid when creating a new link:
...option 3: if target is invalid when reconnecting a link:
|
Beta Was this translation helpful? Give feedback.
-
@james-ep01, what exactly are you trying to achieve? It’s possible that a relevant UI event hasn’t been implemented yet—but if it proves useful, we could consider adding it. Alternatively, you might be approaching the problem from the wrong angle. |
Beta Was this translation helpful? Give feedback.
-
Introduction
I don't know the exact difference between the events below, and when they occur.
Could you please explain?
I don't know the exact difference between the events below, and the time of occurrence. I'm trying to figure out the time and create a code, but it happens repeatedly, and there are times when there is no object, and there is a lot of confusion.
Please explain.
Events and event parameters that occur when dragging from the initial port and connecting to a port. The status of the events and parameters that occur when dragging from a connected port and disconnecting until connecting to another port. Information about the presence or absence of objects in the current link and previous link.
I don't know much about the events that occur for these because there is no information or order. change:source and change:target can also bring in previous objects, and they are not organized.
graph.on('change:source'
graph.on('change:target'
graph.on('remove'
paper.on('link:connect'
paper.on('link:disconnect'
validateConnection
validateMagnet
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS, JointJS+
Beta Was this translation helpful? Give feedback.
All reactions