Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/vtt
index
FogManager
Class FogManager
Index
Constructors
constructor
Methods
apply
Patch
Direct
apply
Region
apply
Tiles
Direct
disable
dispose
get
State
get
View
Mode
initialize
load
State
on
reset
restore
History
State
set
Bounds
set
View
Mode
Constructors
constructor
new
FogManager
(
options
?:
FogManagerOptions
)
:
FogManager
Parameters
options
:
FogManagerOptions
= {}
Returns
FogManager
Methods
apply
Patch
Direct
applyPatchDirect
(
patch
:
FogPatch
,
meta
?:
{
origin
?:
string
}
)
:
void
Parameters
patch
:
FogPatch
Optional
meta
:
{
origin
?:
string
}
Returns
void
apply
Region
applyRegion
(
region
:
FogRegion
,
operation
:
FogOperation
)
:
void
Parameters
region
:
FogRegion
operation
:
FogOperation
Returns
void
apply
Tiles
Direct
applyTilesDirect
(
tiles
:
readonly
FogTileV1
[]
)
:
void
Parameters
tiles
:
readonly
FogTileV1
[]
Returns
void
disable
disable
()
:
void
Returns
void
dispose
dispose
()
:
void
Returns
void
get
State
getState
()
:
FogStateV1
|
null
Returns
FogStateV1
|
null
get
View
Mode
getViewMode
()
:
FogViewMode
Returns
FogViewMode
initialize
initialize
(
options
:
{
base
?:
FogBase
;
bounds
:
Bounds
;
cellSize
?:
number
}
,
)
:
FogStateV1
Parameters
options
:
{
base
?:
FogBase
;
bounds
:
Bounds
;
cellSize
?:
number
}
Returns
FogStateV1
load
State
loadState
(
state
:
FogStateV1
|
null
,
meta
?:
{
origin
?:
string
}
)
:
void
Parameters
state
:
FogStateV1
|
null
Optional
meta
:
{
origin
?:
string
}
Returns
void
on
on
(
event
:
"change"
,
listener
:
ChangeListener
)
:
()
=>
void
Parameters
event
:
"change"
listener
:
ChangeListener
Returns
()
=>
void
on
(
event
:
"view"
,
listener
:
ViewListener
)
:
()
=>
void
Parameters
event
:
"view"
listener
:
ViewListener
Returns
()
=>
void
reset
reset
(
base
:
FogBase
)
:
void
Parameters
base
:
FogBase
Returns
void
restore
History
State
restoreHistoryState
(
state
:
FogStateV1
|
null
)
:
void
Restores a historical visual state without reusing its causal generation id.
Parameters
state
:
FogStateV1
|
null
Returns
void
set
Bounds
setBounds
(
bounds
:
Bounds
)
:
void
Parameters
bounds
:
Bounds
Returns
void
set
View
Mode
setViewMode
(
mode
:
FogViewMode
)
:
void
Parameters
mode
:
FogViewMode
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
apply
Patch
Direct
apply
Region
apply
Tiles
Direct
disable
dispose
get
State
get
View
Mode
initialize
load
State
on
reset
restore
History
State
set
Bounds
set
View
Mode
Field Notes home
Docs
Playground
Field Notes
Loading...
Restores a historical visual state without reusing its causal generation id.