Spaces:
Sleeping
Sleeping
Commit ·
0663aa4
1
Parent(s): b856ea5
Preserve camera zoom/orientation on opacity change via uirevision
Browse files- gcode_viewer.py +1 -0
gcode_viewer.py
CHANGED
|
@@ -157,6 +157,7 @@ def build_toolpath_figure(
|
|
| 157 |
|
| 158 |
(x_min, y_min, z_min), (x_max, y_max, z_max) = parsed["bounds"]
|
| 159 |
fig.update_layout(
|
|
|
|
| 160 |
scene=dict(
|
| 161 |
xaxis_title="X (mm)",
|
| 162 |
yaxis_title="Y (mm)",
|
|
|
|
| 157 |
|
| 158 |
(x_min, y_min, z_min), (x_max, y_max, z_max) = parsed["bounds"]
|
| 159 |
fig.update_layout(
|
| 160 |
+
uirevision="toolpath",
|
| 161 |
scene=dict(
|
| 162 |
xaxis_title="X (mm)",
|
| 163 |
yaxis_title="Y (mm)",
|