mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-30 12:59:40 +08:00
1 parent
f34a27511f
commit
bd5967461d
4 files changed
+93
-44
No files matched your search
@@ -225,6 +225,7 @@ export default function CameraPanel(props) {
|
||||
value={slider_value}
|
||||
step={step_size}
|
||||
valueLabelDisplay="on"
|
||||
valueLabelFormat={slider_value.toFixed(2)}
|
||||
marks={marks}
|
||||
min={slider_min}
|
||||
max={slider_max}
|
||||
@@ -282,18 +283,35 @@ export default function CameraPanel(props) {
|
||||
</div>
|
||||
<div className="CameraList-row-time-interval">
|
||||
<TextField
|
||||
id="outlined-number"
|
||||
label="Seconds"
|
||||
type="number"
|
||||
onChange={(e) => setSeconds(Math.max(1, e.target.value))}
|
||||
inputProps={{
|
||||
inputMode: 'numeric',
|
||||
pattern: '[+-]?([0-9]*[.])?[0-9]+',
|
||||
}}
|
||||
size="small"
|
||||
onChange={(e) => {
|
||||
if (e.target.validity.valid) {
|
||||
setSeconds(e.target.value);
|
||||
}
|
||||
}}
|
||||
value={seconds}
|
||||
error={seconds <= 0}
|
||||
helperText={seconds <= 0 ? 'Required' : ''}
|
||||
variant="standard"
|
||||
/>
|
||||
<TextField
|
||||
id="outlined-number"
|
||||
label="FPS"
|
||||
type="number"
|
||||
onChange={(e) => setFps(Math.max(1, e.target.value))}
|
||||
inputProps={{ inputMode: 'numeric', pattern: '[0-9]*' }}
|
||||
size="small"
|
||||
onChange={(e) => {
|
||||
if (e.target.validity.valid) {
|
||||
setFps(e.target.value);
|
||||
}
|
||||
}}
|
||||
value={fps}
|
||||
error={fps <= 0}
|
||||
helperText={fps <= 0 ? 'Required' : ''}
|
||||
variant="standard"
|
||||
/>
|
||||
</div>
|
||||
<div className="CameraList-container">
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as THREE from 'three';
|
||||
|
||||
import React, { useContext, useEffect, useRef } from 'react';
|
||||
|
||||
import { Button } from '@mui/material';
|
||||
import { IconButton } from '@mui/material';
|
||||
import OpenWithIcon from '@mui/icons-material/OpenWith';
|
||||
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
||||
import PublicOffSharpIcon from '@mui/icons-material/PublicOffSharp';
|
||||
@@ -38,33 +38,33 @@ function TransformIcons(props) {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Button
|
||||
className="ViewerWindow-iconbutton"
|
||||
onClick={() => {
|
||||
transform_controls.setMode('translate');
|
||||
}}
|
||||
variant="outlined"
|
||||
>
|
||||
{/* translate */}
|
||||
<OpenWithIcon />
|
||||
</Button>
|
||||
<Button
|
||||
className="ViewerWindow-iconbutton"
|
||||
onClick={() => {
|
||||
transform_controls.setMode('rotate');
|
||||
}}
|
||||
variant="outlined"
|
||||
>
|
||||
{/* rotate */}
|
||||
<SyncOutlinedIcon />
|
||||
</Button>
|
||||
<Button
|
||||
className="ViewerWindow-iconbutton"
|
||||
variant="outlined"
|
||||
onClick={toggleLocal}
|
||||
>
|
||||
{world ? <PublicSharpIcon /> : <PublicOffSharpIcon />}
|
||||
</Button>
|
||||
<div className="ViewerWindow-iconbutton">
|
||||
<IconButton
|
||||
size="large"
|
||||
onClick={() => {
|
||||
transform_controls.setMode('translate');
|
||||
}}
|
||||
>
|
||||
{/* translate */}
|
||||
<OpenWithIcon />
|
||||
</IconButton>
|
||||
</div>
|
||||
<div className="ViewerWindow-iconbutton">
|
||||
<IconButton
|
||||
size="large"
|
||||
onClick={() => {
|
||||
transform_controls.setMode('rotate');
|
||||
}}
|
||||
>
|
||||
{/* rotate */}
|
||||
<SyncOutlinedIcon />
|
||||
</IconButton>
|
||||
</div>
|
||||
<div className="ViewerWindow-iconbutton">
|
||||
<IconButton size="large" onClick={toggleLocal}>
|
||||
{world ? <PublicSharpIcon /> : <PublicOffSharpIcon />}
|
||||
</IconButton>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user