Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/vtt
index
GridController
Class GridController
Index
Constructors
constructor
Methods
add
get
Info
on
Change
remove
sync
Context
update
Constructors
constructor
new
GridController
(
deps
:
GridControllerDeps
)
:
GridController
Parameters
deps
:
GridControllerDeps
Returns
GridController
Methods
add
add
(
input
:
{
cellSize
?:
number
;
gridType
?:
"square"
|
"hex"
;
hexOrientation
?:
"flat"
|
"pointy"
;
opacity
?:
number
;
strokeColor
?:
string
;
strokeWidth
?:
number
;
}
,
)
:
string
Parameters
input
:
{
cellSize
?:
number
;
gridType
?:
"square"
|
"hex"
;
hexOrientation
?:
"flat"
|
"pointy"
;
opacity
?:
number
;
strokeColor
?:
string
;
strokeWidth
?:
number
;
}
Returns
string
get
Info
getInfo
()
:
GridInfo
|
null
Returns
GridInfo
|
null
on
Change
onChange
(
listener
:
(
info
:
GridInfo
|
null
)
=>
void
)
:
()
=>
void
Parameters
listener
:
(
info
:
GridInfo
|
null
)
=>
void
Returns
()
=>
void
remove
remove
()
:
void
Returns
void
sync
Context
syncContext
()
:
void
Returns
void
update
update
(
updates
:
Partial
<
Pick
<
GridElement
,
|
"gridType"
|
"hexOrientation"
|
"cellSize"
|
"strokeColor"
|
"strokeWidth"
|
"opacity"
,
>
,
>
,
)
:
void
Parameters
updates
:
Partial
<
Pick
<
GridElement
,
|
"gridType"
|
"hexOrientation"
|
"cellSize"
|
"strokeColor"
|
"strokeWidth"
|
"opacity"
,
>
,
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
get
Info
on
Change
remove
sync
Context
update
Field Notes home
Docs
Playground
Field Notes
Loading...