started work on the bin summary part of the new bin page, built the framework and the new 3d visualizer, still doing some work on the camera to create an overlay with a reset button
This commit is contained in:
parent
b3cf5b5e83
commit
4b2c67dfd9
11 changed files with 974 additions and 220 deletions
|
|
@ -11,11 +11,13 @@ interface Props {
|
|||
bin: Bin
|
||||
binCenter: Vector3,
|
||||
renderOrder?: number,
|
||||
displayTemp?: boolean,
|
||||
displayMoisture?: boolean,
|
||||
onNodeClick?: (node: NodeData, cable: CableData) => void
|
||||
}
|
||||
|
||||
export default function BinCables(props: Props){
|
||||
const {bin, binCenter, cableData, nodeData, onNodeClick, renderOrder} = props
|
||||
const {bin, binCenter, cableData, nodeData, onNodeClick, renderOrder, displayTemp, displayMoisture} = props
|
||||
return (
|
||||
<React.Fragment>
|
||||
{cableData.map((cable, i) => {
|
||||
|
|
@ -28,6 +30,8 @@ export default function BinCables(props: Props){
|
|||
nodes={cableNodes}
|
||||
bin={bin}
|
||||
binCenter={binCenter}
|
||||
displayTemp={displayTemp}
|
||||
displayMoisture={displayMoisture}
|
||||
onNodeClick={(node) => {
|
||||
if(onNodeClick){
|
||||
onNodeClick(node, cable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue