ixfx
Preparing search index...
@ixfx/geometry
Grids
Visit
create
Function create
create
(
type
:
VisitorTypes
,
opts
?:
Partial
<
GridVisitorOpts
>
,
)
:
(
grid
:
Grid
,
optionsOverride
?:
Partial
<
GridVisitorOpts
>
,
)
=>
Generator
<
GridCell
,
any
,
any
>
Logic types:
'row': left-to-right, top-to-bottom
'column': top-to-bottom, left-to-right
'neighbours': neighbours surrounding cell (eight)
'breadth`: breadth-first
'depth': depth-first
'random': any random cell in grid
'random-contiguous': any random cell neighbouring an already visited cell
Parameters
type
:
VisitorTypes
opts
:
Partial
<
GridVisitorOpts
>
= {}
Returns
(
grid
:
Grid
,
optionsOverride
?:
Partial
<
GridVisitorOpts
>
,
)
=>
Generator
<
GridCell
,
any
,
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ixfx
Loading...
Logic types: