mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
Prettified Code!
This commit is contained in:
1 parent
12c7d41241
commit
af9cc42fd6
1 file changed
+5
-4
@@ -181,7 +181,7 @@ export class Viewer extends Component {
|
|||||||
this.output_options = "default";
|
this.output_options = "default";
|
||||||
})();
|
})();
|
||||||
let params = {
|
let params = {
|
||||||
switch: false
|
switch: false,
|
||||||
};
|
};
|
||||||
// add controls
|
// add controls
|
||||||
this.state.gui
|
this.state.gui
|
||||||
@@ -191,12 +191,13 @@ export class Viewer extends Component {
|
|||||||
.onChange((value) => {
|
.onChange((value) => {
|
||||||
this.send_output_type_over_websocket(value);
|
this.send_output_type_over_websocket(value);
|
||||||
});
|
});
|
||||||
this.state.gui.add(params, "switch")
|
this.state.gui
|
||||||
|
.add(params, "switch")
|
||||||
.name("Pause Training?")
|
.name("Pause Training?")
|
||||||
.listen()
|
.listen()
|
||||||
.onChange((value)=>{
|
.onChange((value) => {
|
||||||
this.send_training_state_over_websocket(value);
|
this.send_training_state_over_websocket(value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.created_controls = true;
|
this.created_controls = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user