spatial-monorepo / wayfinding/src / AStarOptions
Interface: AStarOptions
Defined in: packages/wayfinding/src/astar.ts:64
Properties
accessible?
optionalaccessible?:boolean
Defined in: packages/wayfinding/src/astar.ts:68
Edges whose verticalCategory is stairs or escalator get weight Infinity.
avoidanceMultipliers?
optionalavoidanceMultipliers?:Map`<string,number>`
Defined in: packages/wayfinding/src/astar.ts:74
Map from nodeId → cost multiplier. When an edge's target node is in this map, the edge weight is multiplied by the corresponding factor before being used in the cost calculation.
excludedEdgeIds?
optionalexcludedEdgeIds?:Set`<string>`
Defined in: packages/wayfinding/src/astar.ts:66
Edge IDs to exclude.
hardBlockedNodeIds?
optionalhardBlockedNodeIds?:ReadonlySet`<string>`
Defined in: packages/wayfinding/src/astar.ts:83
Node ids that are entirely impassable (issue #473 — AvoidanceZone.blockMode: 'hard'): any edge whose target is in this set is skipped outright, the same way an excludedEdgeIds/inaccessible edge is skipped — unless the target is destinationId itself, so a hard-blocked room can still be arrived at (it just cannot be routed through). Distinct from avoidanceMultipliers, which only makes an edge more expensive.
