mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Prettified Code!
This commit is contained in:
1 parent
e6fe546bb2
commit
6a6c1bf049
2 files changed
+2
-3
No files matched your search
@@ -14,7 +14,6 @@ import SceneNode from '../../SceneNode';
|
|||||||
import { WebSocketContext } from '../WebSocket/WebSocket';
|
import { WebSocketContext } from '../WebSocket/WebSocket';
|
||||||
import { subscribe_to_changes } from '../../subscriber';
|
import { subscribe_to_changes } from '../../subscriber';
|
||||||
|
|
||||||
|
|
||||||
const msgpack = require('msgpack-lite');
|
const msgpack = require('msgpack-lite');
|
||||||
|
|
||||||
const SCENE_BOUNDS_NAME = 'Scene Bounds';
|
const SCENE_BOUNDS_NAME = 'Scene Bounds';
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export default function CameraPanel(props) {
|
|||||||
// draw the cameras
|
// draw the cameras
|
||||||
|
|
||||||
const labels = Array.from(document.getElementsByClassName('label'));
|
const labels = Array.from(document.getElementsByClassName('label'));
|
||||||
labels.forEach(label => {
|
labels.forEach((label) => {
|
||||||
label.remove();
|
label.remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ export default function CameraPanel(props) {
|
|||||||
const labelDiv = document.createElement('div');
|
const labelDiv = document.createElement('div');
|
||||||
labelDiv.className = 'label';
|
labelDiv.className = 'label';
|
||||||
labelDiv.textContent = i;
|
labelDiv.textContent = i;
|
||||||
labelDiv.style.color = "black";
|
labelDiv.style.color = 'black';
|
||||||
const camera_label = new CSS2DObject(labelDiv);
|
const camera_label = new CSS2DObject(labelDiv);
|
||||||
camera_label.position.set(0, -0.1, -0.1);
|
camera_label.position.set(0, -0.1, -0.1);
|
||||||
camera_helper.add(camera_label);
|
camera_helper.add(camera_label);
|
||||||
|
|||||||
Reference in new issue
Block a user