aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrynnchernosky <56202540+brynnchernosky@users.noreply.github.com>2023-05-02 16:22:26 -0400
committerbrynnchernosky <56202540+brynnchernosky@users.noreply.github.com>2023-05-02 16:22:26 -0400
commitaed2cab6e4898d41a991a7f01a908275465da6ff (patch)
treeca1e8b9403c0e12c304c37749eae698e263f8f35 /src
parentf363260bd8857834176fb5bba215fe5218ec8d87 (diff)
debug
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
index 691f1145c..143ff9896 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
@@ -115,8 +115,8 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
// Used throughout sims
this.layoutDoc._width = 1000;
this.layoutDoc._height = 1000;
- this.xMax = this.layoutDoc._width*0.8 ?? 800;
- this.yMax = this.layoutDoc._height*0.8 ?? 800;
+ this.xMax = this.layoutDoc._width*0.7 ?? 700;
+ this.yMax = this.layoutDoc._height*0.7 ?? 700;
this.radius = 50;
this.dataDoc.reviewCoefficient = this.dataDoc.reviewCoefficient ?? 0;
this.dataDoc.questionVariables = this.dataDoc.questionVariables ?? [];
@@ -372,8 +372,8 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
}
componentDidUpdate() {
- this.xMax = this.layoutDoc._width*0.8 ?? 800;
- this.yMax = this.layoutDoc._height*0.8 ?? 800;
+ this.xMax = this.layoutDoc._width*0.7 ?? 700;
+ this.yMax = this.layoutDoc._height*0.7 ?? 700;
this.radius = 0.05*this.layoutDoc._height ?? 50;
console.log("width: ", this.xMax)
console.log("height: ", this.yMax)