Improved the logic for syncing the viewer and grapher.
Synced viewer from CMU-CREATE-Lab/timemachine-viewer@d1af55f556901c9b2079151c6e5650aa4887ca47