1: UI works, receiving location updates

This commit is contained in:
metacryst
2025-10-31 19:51:09 -05:00
commit 152faaecee
13 changed files with 1253 additions and 0 deletions

10
model/Node.js Normal file
View File

@@ -0,0 +1,10 @@
export default function Node(node) {
let traits = [
"labels"
]
for(let i = 0; i < traits.length; i++) {
if(!node[traits[i]]) {
throw new Error(`Node is missing field "${traits[i]}": ${JSON.stringify(node)}`)
}
}
}