mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
1 parent
feafc0a314
commit
5f555474be
2 files changed
+4
-4
No files matched your search
@@ -68,23 +68,22 @@ export default function StatusPanel(props: StatusPanelProps) {
|
|||||||
? 'Render Connected'
|
? 'Render Connected'
|
||||||
: 'Render Disconnected';
|
: 'Render Disconnected';
|
||||||
const websocket_connected_color = isWebsocketConnected ? 'success' : 'error';
|
const websocket_connected_color = isWebsocketConnected ? 'success' : 'error';
|
||||||
const webrtc_connected_color = isWebrtcConnected ? 'suceess' : 'error';
|
const webrtc_connected_color = isWebrtcConnected ? 'success' : 'error';
|
||||||
sceneTree.object.visible = value;
|
sceneTree.object.visible = value;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="StatusPanel">
|
<div className="StatusPanel">
|
||||||
<Button // button with view in ar icon
|
<Button
|
||||||
className="StatusPanel-play-button"
|
className="StatusPanel-play-button"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
onClick={handlePlayChange}
|
onClick={handlePlayChange}
|
||||||
disabled={!isWebsocketConnected}
|
disabled={!isWebsocketConnected}
|
||||||
style={{}}
|
|
||||||
startIcon={training_icon}
|
startIcon={training_icon}
|
||||||
>
|
>
|
||||||
{is_training_text}
|
{is_training_text}
|
||||||
</Button>
|
</Button>
|
||||||
<Button // button with view in ar icon
|
<Button
|
||||||
className="StatusPanel-hide-scene-button"
|
className="StatusPanel-hide-scene-button"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
onClick={handleChange}
|
onClick={handleChange}
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ export default function ViewerWindow(props) {
|
|||||||
|
|
||||||
// this is run once
|
// this is run once
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
viewportWidth = getViewportWidth();
|
viewportWidth = getViewportWidth();
|
||||||
viewportHeight = getViewportHeight();
|
viewportHeight = getViewportHeight();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user