mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 10:55:57 +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";
|
||||
})();
|
||||
let params = {
|
||||
switch: false
|
||||
switch: false,
|
||||
};
|
||||
// add controls
|
||||
this.state.gui
|
||||
@@ -191,12 +191,13 @@ export class Viewer extends Component {
|
||||
.onChange((value) => {
|
||||
this.send_output_type_over_websocket(value);
|
||||
});
|
||||
this.state.gui.add(params, "switch")
|
||||
this.state.gui
|
||||
.add(params, "switch")
|
||||
.name("Pause Training?")
|
||||
.listen()
|
||||
.onChange((value)=>{
|
||||
.onChange((value) => {
|
||||
this.send_training_state_over_websocket(value);
|
||||
});
|
||||
});
|
||||
}
|
||||
this.created_controls = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user