Skip to content

Commit 109d760

Browse files
committed
Adjust 3d graph node spacing for better spatial distribution
1 parent 943b83d commit 109d760

File tree

3 files changed

+6
-27
lines changed

3 files changed

+6
-27
lines changed

src/components/NodeInfoPanel.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ const formatSize = (bytes?: number): string => {
4040
return `${bytes} Bytes`;
4141
}
4242
};
43-
// 1 Kilobyte (KB) = 1,024 Bytes
44-
// 1 Megabyte (MB) = 1,024 KB = 1,048,576 Bytes (1024*1024)
45-
// 1 Gigabyte (GB) = 1,024 MB = 1,073,741,824 Bytes (1024*1024*1024)
4643

4744
// convert the date format
4845
const dateCoverter = (date?: string): string => {

src/modules/universe/NeuroJsonGraph.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const NeuroJsonGraph: React.FC<{
179179
.graphData(graphData)
180180
.nodeRelSize(1)
181181
.nodeColor((node) => (node as NodeObject).color)
182-
.linkWidth(1)
182+
.linkWidth(0.5)
183183
.backgroundColor("rgba(0,0,0,0)")
184184
.nodeLabel("name")
185185
.onNodeHover((node) => {
@@ -284,7 +284,6 @@ const NeuroJsonGraph: React.FC<{
284284
ref={graphRef}
285285
style={{
286286
width: "100%",
287-
marginLeft: "5%",
288287
maxHeight: "99%",
289288
backgroundColor: "transparent",
290289
position: "relative",

src/pages/Home.tsx

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import {
77
CircularProgress,
88
} from "@mui/material";
99
import NodeInfoPanel from "components/NodeInfoPanel";
10-
// import KeywordFilter from "components/NodesFilter/KeywordFilter";
11-
// import ModalitiesFilter from "components/NodesFilter/ModalitiesFilter";
1210
import FilterMenu from "components/NodesFilter/FilterMenu";
1311
import { Colors } from "design/theme";
1412
import { useAppDispatch } from "hooks/useAppDispatch";
@@ -90,25 +88,10 @@ const Home: React.FC = () => {
9088
overflow: "hidden",
9189
position: "relative",
9290
minHeight: "500px", // make sure the view databases card won't be cut when no nodes showing
91+
// display: "flex",
92+
// flexDirection: "column",
9393
}}
9494
>
95-
{/* <Box sx={{ position: "absolute", top: 20, right: 20, zIndex: 10 }}>
96-
<KeywordFilter onFilter={(query: string) => setFilterKeyword(query)} />
97-
</Box>
98-
<Box
99-
sx={{
100-
position: "absolute",
101-
top: 100,
102-
right: 20,
103-
zIndex: 10,
104-
backgroundColor: "white",
105-
p: 2,
106-
borderRadius: 2,
107-
}}
108-
>
109-
<ModalitiesFilter onFilter={handleModalitiesFilter} />
110-
</Box> */}
111-
11295
{/* Filter Menu Button */}
11396
<Box sx={{ position: "absolute", top: 20, right: 20, zIndex: 10 }}>
11497
<FilterMenu
@@ -148,14 +131,14 @@ const Home: React.FC = () => {
148131
sx={{
149132
overflow: "hidden",
150133
maxWidth: "35%",
134+
// border: "2px yellow solid",
135+
// width: "100%",
151136
zIndex: "3",
152137
position: "absolute",
153-
top: "6%",
138+
top: "10%",
154139
left: "1%",
155140
backgroundColor: "rgba(97, 109, 243, 0.4)",
156141
// backgroundColor: "rgba(160, 165, 194, 0.4)",
157-
// backgroundColor: Colors.primary.dark,
158-
159142
backdropFilter: "blur(10px)",
160143
// boxShadow: `2px 2px 5px ${Colors.lightGray}`,
161144
padding: "1.5rem",

0 commit comments

Comments
 (0)