plannerjs - v0.4.1
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Dijkstra
Instance
constructor
query
Path
remove
Break
Point
set
Break
Point
set
Use
Weighted
Cost
Hierarchy
DijkstraInstance
Implements
IShortestPathInstance
Index
Constructors
constructor
Methods
query
Path
remove
Break
Point
set
Break
Point
set
Use
Weighted
Cost
Constructors
constructor
new
Dijkstra
Instance
(
graph
:
PathfindingGraph
)
:
DijkstraInstance
Parameters
graph:
PathfindingGraph
Returns
DijkstraInstance
Methods
query
Path
query
Path
(
from
:
string
, to
:
string
, maxDistance
?:
number
)
:
Promise
<
any
[]
>
Parameters
from:
string
to:
string
Default value
maxDistance:
number
= Infinity
Returns
Promise
<
any
[]
>
remove
Break
Point
remove
Break
Point
(
on
:
string
)
:
void
Parameters
on:
string
Returns
void
set
Break
Point
set
Break
Point
(
on
:
string
, callback
:
function
)
:
void
Parameters
on:
string
callback:
function
(
on
:
string
)
:
Promise
<
void
>
Parameters
on:
string
Returns
Promise
<
void
>
Returns
void
set
Use
Weighted
Cost
set
Use
Weighted
Cost
(
useWeightedCost
:
boolean
)
:
void
Parameters
useWeightedCost:
boolean
Returns
void
Generated using
TypeDoc