aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx4
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
index 21cef297a..91627687a 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
@@ -1298,7 +1298,7 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
</div>
</div>
<div className="mechanicsSimulationElements">
- <Weight
+ {/* <Weight
dataDoc={this.dataDoc}
layoutDoc={this.layoutDoc}
adjustPendulumAngle={this.dataDoc.adjustPendulumAngle}
@@ -1345,7 +1345,7 @@ export default class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<Fi
xMin={this.xMin}
yMax={this.yMax}
yMin={this.yMin}
- />
+ /> */}
{this.dataDoc.simulationType == "Pulley" && (
<Weight
dataDoc={this.dataDoc}
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
index 3b2c2e270..c25cb9985 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
@@ -109,12 +109,12 @@ export default class Weight extends React.Component<IWeightProps, IState> {
}
// Constants
- const draggable =
+ draggable =
this.props.dataDoc['simulationType'] != "Inclined Plane" &&
this.props.dataDoc['simulationType'] != "Pendulum" &&
this.props.dataDoc['mode'] == "Freeform";
- const epsilon = 0.0001;
- const labelBackgroundColor = `rgba(255,255,255,0.5)`;
+ epsilon = 0.0001;
+ labelBackgroundColor = `rgba(255,255,255,0.5)`;
// Variables
weightStyle = {
@@ -1516,7 +1516,7 @@ export default class Weight extends React.Component<IWeightProps, IState> {
</div>
);
})}
- {!this.state.dragging &&
+ {/* {!this.state.dragging &&
this.props.showForces && this.props.updatedForces &&
this.props.updatedForces.map((force, index) => {
if (force.magnitude < this.epsilon) {
@@ -1625,7 +1625,7 @@ export default class Weight extends React.Component<IWeightProps, IState> {
</div>
</div>
);
- })}
+ })} */}
</div>
)}
};