aboutsummaryrefslogtreecommitdiff
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
parent2845498ef0aa41b7a21866062b3d6583d760879e (diff)
debugging
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx20
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx2
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx4
3 files changed, 13 insertions, 13 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);
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx
index f3491fbd6..1125e6020 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationInputField.tsx
@@ -29,7 +29,7 @@ interface IState {
margin: string;
}
-export default class InputField extends React.Component<IInputProps, , IState> {
+export default class InputField extends React.Component<IInputProps, IState> {
constructor(props: any) {
super(props)
this.state = {
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
index 06db9b4ce..8b7d4ed30 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
@@ -891,7 +891,7 @@ export default class Weight extends React.Component<IWeightProps, IState> {
// Render weight, spring, rod(s), vectors
render () {
- return
+ return (
<div style={{ zIndex: -1000 }}>
<div
className="weightContainer"
@@ -1628,5 +1628,5 @@ export default class Weight extends React.Component<IWeightProps, IState> {
);
})}
</div>
- }
+ )}
};