Currently, when saving and loading a diagram, the view state, including scroll position (horizontal and vertical offsets) and zoom level, is not preserved. This results in the diagram resetting to the default position, requiring users to manually navigate back to their previous view. To enhance usability, the system should retain the view state when saving and restore it upon loading. This ensures a seamless user experience, especially for large diagrams, by maintaining the same viewport after reloading.