Export camera path (#398)

* export button working

* view changes

* adding copy to clipboard feature

* camera choice dropdown

* going to add script saving next

* copy paste working. need to add aspect ratio

* aspect overlay kind of working

* lint

* aspect ratio fixed. version specified

* merge

* openrelay back
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-09-13 11:33:58 -07:00
1 parent f21375ff1b
commit 9bc39d895c
21 files changed
+676 -196

No files matched your search

+11 -13
View File
@@ -1,37 +1,35 @@
import React from 'react';
import { CssBaseline, ThemeProvider } from '@mui/material';
import { appTheme } from './themes/theme.ts';
import { BasicTabs } from './modules/SidePanel/SidePanel';
import React from 'react';
import {
SceneTreeWebSocketListener,
get_scene_tree,
} from './modules/Scene/Scene';
import { RenderControls } from './modules/ConfigPanel/ConfigPanel';
import ViewerWindow from './modules/ViewerWindow/ViewerWindow';
import Banner from './modules/Banner';
import { BasicTabs } from './modules/SidePanel/SidePanel';
import ViewerWindow from './modules/ViewerWindow/ViewerWindow';
import { appTheme } from './themes/theme.ts';
export default function App() {
// The scene tree won't rerender but it will listener to changes
// The scene tree won't rerender but it will listen to changes
// from the redux store and draw three.js objects.
// In particular, it listens to changes to 'sceneState' coming over the websocket.
const sceneTree = get_scene_tree();
return (
<ThemeProvider theme={appTheme}>
<CssBaseline enableColorScheme />
<div className="App">
{/*
Code that listens for websocket 'write' messages and updates the redux store.
*/}
{/* Listens for websocket 'write' messages and updates the redux store. */}
<SceneTreeWebSocketListener />
{/* ----- */}
{/* The banner at the top of the page. */}
<Banner />
<div className="App-body">
{/* Order matters here. The viewer window must be rendered first. */}
<ViewerWindow sceneTree={sceneTree} />
<div className="SidePanel">
<BasicTabs sceneTree={sceneTree} />
</div>
<RenderControls />
<ViewerWindow sceneTree={sceneTree} scene={sceneTree.object} />
</div>
</div>
</ThemeProvider>