Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/core
TextTool
Class TextTool
Implements
Tool
Index
Constructors
constructor
Properties
name
Methods
get
Options
on
Activate
on
Deactivate
on
Options
Change
on
Pointer
Cancel
on
Pointer
Down
on
Pointer
Move
on
Pointer
Up
set
Options
Constructors
constructor
new
TextTool
(
options
?:
TextToolOptions
)
:
TextTool
Parameters
options
:
TextToolOptions
= {}
Returns
TextTool
Properties
Readonly
name
name
:
"text"
= 'text'
Methods
get
Options
getOptions
()
:
TextToolOptions
Returns
TextToolOptions
on
Activate
onActivate
(
ctx
:
ToolContext
)
:
void
Parameters
ctx
:
ToolContext
Returns
void
on
Deactivate
onDeactivate
(
ctx
:
ToolContext
)
:
void
Parameters
ctx
:
ToolContext
Returns
void
on
Options
Change
onOptionsChange
(
listener
:
()
=>
void
)
:
()
=>
void
Parameters
listener
:
()
=>
void
Returns
()
=>
void
on
Pointer
Cancel
onPointerCancel
(
_state
:
PointerState
,
_ctx
:
ToolContext
)
:
void
Placement happens on pointer up; a cancelled gesture must not place anything.
Parameters
_state
:
PointerState
_ctx
:
ToolContext
Returns
void
on
Pointer
Down
onPointerDown
(
_state
:
PointerState
,
_ctx
:
ToolContext
)
:
void
Parameters
_state
:
PointerState
_ctx
:
ToolContext
Returns
void
on
Pointer
Move
onPointerMove
(
_state
:
PointerState
,
_ctx
:
ToolContext
)
:
void
Parameters
_state
:
PointerState
_ctx
:
ToolContext
Returns
void
on
Pointer
Up
onPointerUp
(
state
:
PointerState
,
ctx
:
ToolContext
)
:
void
Parameters
state
:
PointerState
ctx
:
ToolContext
Returns
void
set
Options
setOptions
(
options
:
TextToolOptions
)
:
void
Parameters
options
:
TextToolOptions
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
name
Methods
get
Options
on
Activate
on
Deactivate
on
Options
Change
on
Pointer
Cancel
on
Pointer
Down
on
Pointer
Move
on
Pointer
Up
set
Options
Field Notes home
Docs
Playground
Field Notes
Loading...
Placement happens on pointer up; a cancelled gesture must not place anything.