spatial-monorepo / wayfinding/src / getPathNetworkGraphForLevel
Function: getPathNetworkGraphForLevel()
getPathNetworkGraphForLevel(
archive,levelId):PathNetworkGraph|null
Defined in: packages/wayfinding/src/path-network.ts:158
Returns the cached path-network graph for levelId (building and caching it on first use), or null when the level has no authored path-network LineStrings — the signal grid-multifloor.ts's routeLevelSegment uses to fall back to the grid engine (issue #478 AC2). Keyed by archive object identity, same invalidation contract as the grid engine's per-level caches (getBaseOccupancyGridForLevel/getFloorConnectivityGraph): construct a new IMDFArchive object on IMDF mutation, or call invalidatePathNetworkGraphCache explicitly.
Parameters
archive
levelId
string
Returns
PathNetworkGraph | null
