diff options
author | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-02-06 19:41:25 -0500 |
---|---|---|
committer | brynnchernosky <56202540+brynnchernosky@users.noreply.github.com> | 2023-02-06 19:41:25 -0500 |
commit | 728db020856e3ff5c11e7eabbb4fe48f10a9a490 (patch) | |
tree | 6c6dafca266d15e07ed3084741401c92d5704668 /src/client/views/nodes/PhysicsSimulationApp.tsx | |
parent | e73ee7676183bb91687130ba9147e74a5f55420c (diff) |
code compiles and runs
Diffstat (limited to 'src/client/views/nodes/PhysicsSimulationApp.tsx')
-rw-r--r-- | src/client/views/nodes/PhysicsSimulationApp.tsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/client/views/nodes/PhysicsSimulationApp.tsx b/src/client/views/nodes/PhysicsSimulationApp.tsx index 0536d0679..1dfa04a31 100644 --- a/src/client/views/nodes/PhysicsSimulationApp.tsx +++ b/src/client/views/nodes/PhysicsSimulationApp.tsx @@ -3,8 +3,6 @@ import "./PhysicsSimulationBox.scss"; import Weight, { IForce } from "./PhysicsSimulationWeight"; import Wall, { IWallProps } from "./PhysicsSimulationWall" import Wedge from "./PhysicsSimulationWedge" -import { props, any } from 'bluebird'; -import { render } from 'react-dom'; interface PhysicsVectorTemplate { top: number; @@ -70,8 +68,8 @@ export default class App extends React.Component<{}, IState> { }; xMin = 0; yMin = 0; - xMax = window.innerWidth * 0.7; - yMax = window.innerHeight * 0.8; + xMax = 300; + yMax = 300; color = `rgba(0,0,0,0.5)`; radius = 50 @@ -461,7 +459,7 @@ export default class App extends React.Component<{}, IState> { </div> ); })} */} - {/* {this.state.weight && ( + {this.state.weight && ( <Weight adjustPendulumAngle={this.state.adjustPendulumAngle} color={"red"} @@ -506,7 +504,7 @@ export default class App extends React.Component<{}, IState> { wedgeWidth={this.state.wedgeWidth} coefficientOfKineticFriction={this.state.coefficientOfKineticFriction} /> - )} */} + )} {this.state.wedge && ( <Wedge startWidth={this.state.wedgeWidth} |