|
10 | 10 | from trame.app import TrameApp, asynchronous, file_upload |
11 | 11 | from trame.decorators import change, controller, life_cycle, trigger |
12 | 12 | from trame.ui.vuetify3 import VAppLayout |
13 | | -from trame.widgets import client, dataclass, html, tauri |
| 13 | +from trame.widgets import client, dataclass, html, rca, tauri |
14 | 14 | from trame.widgets import trame as tw |
15 | 15 | from trame.widgets import vuetify3 as v3 |
16 | 16 |
|
|
19 | 19 | from e3sm_quickview.components import css, dialogs, doc, drawers, file_browser, toolbars |
20 | 20 | from e3sm_quickview.pipeline import EAMVisSource |
21 | 21 | from e3sm_quickview.utils import cli, compute |
22 | | -from e3sm_quickview.view_manager import ViewManager |
| 22 | +from e3sm_quickview.view_manager2 import ViewManager |
23 | 23 |
|
24 | 24 | v3.enable_lab() |
25 | 25 |
|
@@ -210,10 +210,17 @@ def _build_ui(self, **_): |
210 | 210 | toolbars.Animation() |
211 | 211 |
|
212 | 212 | # View of all the variables |
213 | | - client.ServerTemplate( |
214 | | - name=("active_layout", "auto_layout"), |
215 | | - v_if="variables_selected.length", |
216 | | - ) |
| 213 | + with rca.ImageStream( |
| 214 | + self.view_manager._render_window, |
| 215 | + encoder="turbo-jpeg", |
| 216 | + ctx_name="view", |
| 217 | + ): |
| 218 | + # To debug vtkRenderWindow content |
| 219 | + # html.Img(src=["image?.src"], height="300px") |
| 220 | + client.ServerTemplate( |
| 221 | + name=("active_layout", "auto_layout"), |
| 222 | + v_if="variables_selected.length", |
| 223 | + ) |
217 | 224 |
|
218 | 225 | # Show documentation when no variable selected |
219 | 226 | with html.Div(v_if="!variables_selected.length"): |
|
0 commit comments