changed the orbital camera to allow for an offset without messing with the rotation, added a moisture heatmap, updated the bin3dvisualizer to look cleaner, re-implemented a new version of the dialog box that pops up when clicking a node
This commit is contained in:
parent
619f9b7bf4
commit
f54d4b5375
15 changed files with 1349 additions and 214 deletions
|
|
@ -65,10 +65,20 @@ export function stringToComponentId(componentIDString: string): quack.ComponentI
|
|||
return componentID;
|
||||
}
|
||||
|
||||
const componentIDFragments = componentIDString.split("-", 3);
|
||||
//first split on a colon to get the mux line seperated
|
||||
const componentSplit = componentIDString.split(":", 2);
|
||||
if(componentSplit[1]){
|
||||
componentID.muxLine = Number(componentSplit[1])
|
||||
}
|
||||
|
||||
const componentIDFragments = componentIDString.split("-", 4);
|
||||
let type: string = quack.ComponentType[Number(componentIDFragments[0])];
|
||||
let addressType: string = quack.AddressType[Number(componentIDFragments[1])];
|
||||
let address: number = Number(componentIDFragments[2]);
|
||||
if(componentIDFragments[3]){
|
||||
componentID.expansionLine = Number(componentIDFragments[3])
|
||||
}
|
||||
|
||||
componentID.type = quack.ComponentType[type as keyof typeof quack.ComponentType];
|
||||
componentID.addressType = quack.AddressType[addressType as keyof typeof quack.AddressType];
|
||||
componentID.address = address;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue