(outlook: ExpandOutlook)
| 316 | * Aufrufe, denn das Wachstum zaehlt Knoten. Die Knoten gehen vor. |
| 317 | */ |
| 318 | export function expandPastLimit(outlook: ExpandOutlook): { limit: 'nodes' | 'edges'; by: 'calls' | 'growth' } | undefined { |
| 319 | if (!outlook.limits) return undefined; |
| 320 | const calls = outlook.calls ?? 0; |
| 321 | const by = outlook.calls !== undefined && calls >= outlook.estimate ? 'calls' as const : 'growth' as const; |
| 322 | if (outlook.loaded.nodes + Math.max(outlook.estimate, calls) > outlook.limits.nodes) return { limit: 'nodes', by }; |
| 323 | if (outlook.loaded.edges + calls > outlook.limits.edges) return { limit: 'edges', by: 'calls' }; |
| 324 | return undefined; |
| 325 | } |
| 326 | |
| 327 | /** Was die Galaxie zeigt, waehrend ein Scope angeordnet wird: das aktuelle |
| 328 | * Bild, sonst die letzte Anordnung, sonst den ganzen Graphen. Eine Anordnung |
no outgoing calls
no test coverage detected