-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
478 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,12 +26,9 @@ jobs: | |
|
||
- name: Install | ||
run: npm install | ||
|
||
- name: lint | ||
run: npm run lint | ||
|
||
- name: Unit Tests | ||
run: npm run test | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>dedi-web</title> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>dedi-web</title> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
</html> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
import { Box, Stack, } from "@mui/material"; | ||
import { Box, Stack } from "@mui/material"; | ||
import DataSideBar from "./components/dataSideBar"; | ||
import ResultsBar from "./components/resultsBar"; | ||
import CentrePlot from "./components/centrePlot"; | ||
import LegendBar from "./components/legendBar"; | ||
|
||
|
||
export default function App(): JSX.Element { | ||
|
||
return ( | ||
<Box margin={1} > | ||
<Stack direction={'row'} spacing={1}> | ||
<DataSideBar /> | ||
<Stack direction={'column'} spacing={1} flexGrow={1}> | ||
<Stack direction={'row'} spacing={1}> | ||
<Box margin={1}> | ||
<Stack direction={"row"} spacing={1}> | ||
<Box maxWidth={"40vw"} maxHeight={"92vh"}> | ||
<DataSideBar /> | ||
</Box> | ||
<Stack direction={"column"} spacing={1} flexGrow={1}> | ||
<Stack direction={"row"} spacing={1}> | ||
<CentrePlot /> | ||
<LegendBar /> | ||
<Box flexGrow={1}> | ||
<LegendBar /> | ||
</Box> | ||
</Stack> | ||
<ResultsBar /> | ||
</Stack> | ||
</Stack> | ||
</Box > | ||
|
||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ import { Vector2 } from "three"; | |
export interface CircularDevice { | ||
centre: Vector2; | ||
diameter: number; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
import * as React from "react"; | ||
import AppBar from '@mui/material/AppBar'; | ||
import Box from '@mui/material/Box'; | ||
import Toolbar from '@mui/material/Toolbar'; | ||
import Typography from '@mui/material/Typography'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import MenuIcon from '@mui/icons-material/Menu'; | ||
import AppBar from "@mui/material/AppBar"; | ||
import Box from "@mui/material/Box"; | ||
import Toolbar from "@mui/material/Toolbar"; | ||
import Typography from "@mui/material/Typography"; | ||
import IconButton from "@mui/material/IconButton"; | ||
import MenuIcon from "@mui/icons-material/Menu"; | ||
import { Drawer } from "@mui/material"; | ||
import SideMenu from "./sideMenu"; | ||
|
||
export default function BasicAppBar(): JSX.Element { | ||
const [state, setState] = React.useState({ menuOpen: false }); | ||
const toggleDrawer = (open: boolean) => () => { | ||
setState({ menuOpen: open }); | ||
}; | ||
return ( | ||
<Box sx={{ flexGrow: 2 }}> | ||
<AppBar position="static"> | ||
<Toolbar> | ||
<React.Fragment> | ||
<IconButton | ||
size="large" | ||
edge="start" | ||
color="inherit" | ||
aria-label="menu" | ||
sx={{ mr: 2 }} | ||
onClick={toggleDrawer(true)} | ||
> | ||
<MenuIcon /> | ||
</IconButton> | ||
<Drawer | ||
anchor="left" | ||
open={state.menuOpen} | ||
onClose={toggleDrawer(false)} | ||
> | ||
<Box | ||
sx={{ width: 250 }} | ||
role="presentation" | ||
onClick={toggleDrawer(false)} | ||
> | ||
{<SideMenu />} | ||
</Box> | ||
</Drawer> | ||
</React.Fragment> | ||
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}> | ||
Dedi Web | ||
</Typography> | ||
</Toolbar> | ||
</AppBar> | ||
</Box> | ||
); | ||
} | ||
const [state, setState] = React.useState({ menuOpen: false }); | ||
const toggleDrawer = (open: boolean) => () => { | ||
setState({ menuOpen: open }); | ||
}; | ||
return ( | ||
<Box sx={{ flexGrow: 2 }}> | ||
<AppBar position="static"> | ||
<Toolbar> | ||
<React.Fragment> | ||
<IconButton | ||
size="large" | ||
edge="start" | ||
color="inherit" | ||
aria-label="menu" | ||
sx={{ mr: 2 }} | ||
onClick={toggleDrawer(true)} | ||
> | ||
<MenuIcon /> | ||
</IconButton> | ||
<Drawer | ||
anchor="left" | ||
open={state.menuOpen} | ||
onClose={toggleDrawer(false)} | ||
> | ||
<Box | ||
sx={{ width: 250 }} | ||
role="presentation" | ||
onClick={toggleDrawer(false)} | ||
> | ||
{<SideMenu />} | ||
</Box> | ||
</Drawer> | ||
</React.Fragment> | ||
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}> | ||
Dedi Web | ||
</Typography> | ||
</Toolbar> | ||
</AppBar> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,33 @@ | ||
import { Box, Card, CardContent } from "@mui/material"; | ||
import { VisCanvas, Pan, Zoom } from '@h5web/lib'; | ||
import { VisCanvas, Pan, Zoom } from "@h5web/lib"; | ||
|
||
export default function CentrePlot(): JSX.Element { | ||
return ( | ||
<Box> | ||
<Card> | ||
<CardContent> | ||
<div style={{ display: "grid", height: "60vh", width: "50vw" }}> | ||
<VisCanvas | ||
abscissaConfig={{ | ||
isIndexAxis: true, | ||
showGrid: true, | ||
visDomain: [ | ||
50, | ||
100 | ||
] | ||
}} | ||
aspect={{}} | ||
ordinateConfig={{ | ||
isIndexAxis: true, | ||
showGrid: true, | ||
visDomain: [ | ||
50, | ||
100 | ||
] | ||
}} | ||
showAxes={true} | ||
> | ||
<Pan | ||
button={[ | ||
0 | ||
]} | ||
modifierKey={[]} | ||
/> | ||
<Zoom /> | ||
{/*<f />*/} | ||
</VisCanvas> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
</Box >) | ||
} | ||
return ( | ||
<Box> | ||
<Card> | ||
<CardContent> | ||
<div style={{ display: "grid", height: "60vh", width: "50vw" }}> | ||
<VisCanvas | ||
abscissaConfig={{ | ||
isIndexAxis: true, | ||
showGrid: true, | ||
visDomain: [50, 100], | ||
}} | ||
aspect={{}} | ||
ordinateConfig={{ | ||
isIndexAxis: true, | ||
showGrid: true, | ||
visDomain: [50, 100], | ||
}} | ||
showAxes={true} | ||
> | ||
<Pan button={[0]} modifierKey={[]} /> | ||
<Zoom /> | ||
{/*<f />*/} | ||
</VisCanvas> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
</Box> | ||
); | ||
} |
Oops, something went wrong.