Update app.py
Browse files
app.py
CHANGED
@@ -1125,17 +1125,11 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
1125 |
<canvas id='cnv_out'></canvas>
|
1126 |
<a href='#' id='fullscreen' onclick='
|
1127 |
const model = document.getElementById(\"model3D\");
|
1128 |
-
if (model.
|
1129 |
-
|
1130 |
-
model.
|
1131 |
-
model.style.position = \"fixed\";
|
1132 |
} else {
|
1133 |
-
model.
|
1134 |
-
model.style.height = \"initial\";
|
1135 |
-
model.style.position = \"initial\";
|
1136 |
-
}
|
1137 |
-
if (BABYLON) {
|
1138 |
-
BABYLON.Engine.resize();
|
1139 |
}'>[+]</a><br/>
|
1140 |
<div id='compass_box'><div id='compass'><b style='color:blue;'>◅</b>𝍠<b style='color:red;'>▻</b></div></div>
|
1141 |
""")
|
|
|
1125 |
<canvas id='cnv_out'></canvas>
|
1126 |
<a href='#' id='fullscreen' onclick='
|
1127 |
const model = document.getElementById(\"model3D\");
|
1128 |
+
if (model.parentNode != document.body) {
|
1129 |
+
window.modelContainer = model.parentNode;
|
1130 |
+
model.parentNode = document.body;
|
|
|
1131 |
} else {
|
1132 |
+
model.parentNode = window.modelContainer;
|
|
|
|
|
|
|
|
|
|
|
1133 |
}'>[+]</a><br/>
|
1134 |
<div id='compass_box'><div id='compass'><b style='color:blue;'>◅</b>𝍠<b style='color:red;'>▻</b></div></div>
|
1135 |
""")
|