diff options
author | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-05-01 20:47:33 -0400 |
---|---|---|
committer | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-05-01 20:47:33 -0400 |
commit | cb55cf455ef4b4e2acc0e1e54cb1be99c131b967 (patch) | |
tree | 09e163ff9d6154f034461b692f0bda08bb80341d | |
parent | da534b9792907492e2287fbe4b4f932fde994fa0 (diff) |
something appears
-rw-r--r-- | src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | 4 | ||||
-rw-r--r-- | src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx | 10 |
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> )} }; |