Add "change" event in embed mode with specific changes made to the diagram. #4321
tyagirajat200
started this conversation in
General
Replies: 2 comments 2 replies
-
Hi, Is any event like this available in the embed mode of draw.io? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Duplicate of #2491 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Yes, Explained below.
Describe the solution you'd like
I am seeking a solution to implement real-time collaboration using Firebase Realtime Database with Draw.io in embedded mode. Currently, I am able to capture the "autosave" event which provides the entire XML of the current diagram view when changes occur. However, I aim to optimize this by capturing and transmitting only the specific changes made to the diagram, rather than the entire XML, to Firebase. This would involve detecting and transmitting the delta changes (i.e., the difference between the previous state and the updated state) to ensure efficient synchronization among users. Upon receiving these changes at other users' ends, a "merge" event would be triggered to integrate the new changes seamlessly into the existing context.
Describe alternatives you've considered
The current approach involves saving and transmitting the complete XML each time a change occurs, followed by a full reload of the diagram at the receiving end using the updated XML. However, this method disrupts the user experience by resetting the layout and focus of the diagram, causing the user's view to jump to the beginning of the diagram. Therefore, I am exploring alternative methods that enable capturing and transmitting only the incremental changes (delta) to minimize disruption and maintain user focus and layout continuity during collaboration sessions.
Additional context
NA
Beta Was this translation helpful? Give feedback.
All reactions