aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
diff options
context:
space:
mode:
authorbrynnchernosky <56202540+brynnchernosky@users.noreply.github.com>2023-05-01 19:53:29 -0400
committerbrynnchernosky <56202540+brynnchernosky@users.noreply.github.com>2023-05-01 19:53:29 -0400
commitc4239e9bb5fb6389e3ceac281af8c8c683019a0c (patch)
treee4cf4de22b2872427eab0fe34ec9508d287d601e /src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
parent2845498ef0aa41b7a21866062b3d6583d760879e (diff)
debugging
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
index b7bc81f38..671466261 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
@@ -32,7 +32,7 @@ import {
} from "@mui/material";
import Typography from "@mui/material/Typography";
import "./PhysicsSimulationBox.scss";
-import { InputField } from "./PhysicsSimulationInputField";
+import InputField from "./PhysicsSimulationInputField";
import questions from "./PhysicsSimulationQuestions.json";
import tutorials from "./PhysicsSimulationTutorial.json";
import Wall from "./PhysicsSimulationWall";
@@ -86,13 +86,13 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
}
// Constants
- const xMin = 0;
- const yMin = 0;
- const xMax = 100;
- const yMax = 100;
- const color = `rgba(0,0,0,0.5)`;
- const radius = 50;
- const wallPositions: IWallProps[] = [];
+ xMin = 0;
+ yMin = 0;
+ xMax = 100;
+ yMax = 100;
+ color = `rgba(0,0,0,0.5)`;
+ radius = 50;
+ wallPositions: IWallProps[] = [];
componentDidMount() {
this.wallPositions.push({ length: 70, xPos: 0, yPos: 0, angleInDegrees: 0 });
@@ -1254,7 +1254,7 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
style={{
position: "fixed",
top: 1 + "em",
- left: xMin + 12 + "px",
+ left: this.xMin + 12 + "px",
}}
>
<div className="dropdownMenu">
@@ -1427,7 +1427,7 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
</Stack>
<div className="dropdownMenu">
<select
- value={mode}
+ value={this.dataDoc.mode}
onChange={(event) => {
this.dataDoc.mode = (event.target.value);