Function
setDefault
(
map: Map<string, { top: SidePort[]; bottom: SidePort[] }>,
key: string
)
Source from the content-addressed store, hash-verified
| 595 | } |
| 596 | |
| 597 | function setDefault( |
| 598 | map: Map<string, { top: SidePort[]; bottom: SidePort[] }>, |
| 599 | key: string |
| 600 | ): { top: SidePort[]; bottom: SidePort[] } { |
| 601 | const sides = { top: [], bottom: [] }; |
| 602 | map.set(key, sides); |
| 603 | return sides; |
| 604 | } |
| 605 | |
| 606 | function xOf(nodes: Map<string, MapNodeLayout>, id: string): number { |
| 607 | const node = nodes.get(id); |
Tested by
no test coverage detected