various tweaks and now trying to build heatmaps in two different ways
This commit is contained in:
parent
6f6a062106
commit
61aa93aabd
12 changed files with 932 additions and 244 deletions
|
|
@ -9,12 +9,13 @@ interface Props {
|
|||
cableData: CableData[]
|
||||
nodeData: NodeData[]
|
||||
bin: Bin
|
||||
binCenter: Vector3
|
||||
binCenter: Vector3,
|
||||
renderOrder?: number,
|
||||
onNodeClick?: (node: NodeData, cable: CableData) => void
|
||||
}
|
||||
|
||||
export default function BinCables(props: Props){
|
||||
const {bin, binCenter, cableData, nodeData, onNodeClick} = props
|
||||
const {bin, binCenter, cableData, nodeData, onNodeClick, renderOrder} = props
|
||||
return (
|
||||
<React.Fragment>
|
||||
{cableData.map((cable, i) => {
|
||||
|
|
@ -32,6 +33,7 @@ export default function BinCables(props: Props){
|
|||
onNodeClick(node, cable)
|
||||
}
|
||||
}}
|
||||
renderOrder={renderOrder}
|
||||
/>
|
||||
)}
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue