Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / GridPathResult

Interface: GridPathResult

Defined in: packages/wayfinding/src/grid-types.ts:137

Properties

cells

cells: GridCell[]

Defined in: packages/wayfinding/src/grid-types.ts:146

Dense cell-by-cell path (inclusive of start & end). Empty when found is false.


found

found: boolean

Defined in: packages/wayfinding/src/grid-types.ts:144

False for a genuine no-path result. The pathfinding library's raw JPS returns an empty array both when no path exists AND when origin === destination ("already there") — findGridPath disambiguates the latter before calling into the library, so found: false here always means "no path exists".

Released under commercial licensing.