(hostWorkspace: WorkspaceData)
| 166 | |
| 167 | // Call from host, pass parsed workspace file |
| 168 | export function updateGuestWorkspace(hostWorkspace: WorkspaceData): void { |
| 169 | if (hostWorkspace) { |
| 170 | guestWorkspace = hostWorkspace; |
| 171 | void rWorkspace?.refresh(); |
| 172 | console.info('[updateGuestWorkspace] Done'); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | // Instead of creating a file, we pass the base64 of the plot image |
| 177 | // to the guest, and read that into an html page |