Search
Preparing search index...
The search index is not available
@motor/core
Options
All
Public
Public/Protected
All
Inherited
Menu
@motor/core
default
CommentEditor
Class CommentEditor
Hierarchy
CommentEditor
CommentEditor
Index
Constructors
constructor
Properties
color
comment
Type
font
Style
input
Map
line
Width
viewer
Methods
begin
destroy
end
export
Image
is
Destroyed
key
Down
Callback
key
UpCallback
on
Left
Down
on
Left
Up
on
Mouse
Move
register
remove
Apply
Type
set
Apply
Type
set
Drawing
Type
set
Text
Constructors
constructor
new
Comment
Editor
(
viewer
:
Viewer
)
:
CommentEditor
Parameters
viewer:
Viewer
Returns
CommentEditor
Properties
color
color
:
Color
comment
Type
comment
Type
:
CommentType
font
Style
font
Style
:
string
input
Map
input
Map
:
undefined
|
InputMap
line
Width
line
Width
:
number
viewer
viewer
:
Viewer
Methods
begin
begin
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
destroy
destroy
(
)
:
undefined
Returns
undefined
end
end
(
)
:
void
Returns
void
export
Image
export
Image
(
)
:
string
Returns
string
is
Destroyed
is
Destroyed
(
)
:
boolean
Returns
boolean
key
Down
Callback
key
Down
Callback
(
evt
:
KeyboardEvent
)
:
void
Parameters
evt:
KeyboardEvent
Returns
void
key
UpCallback
key
UpCallback
(
evt
:
KeyboardEvent
)
:
void
Parameters
evt:
KeyboardEvent
Returns
void
on
Left
Down
on
Left
Down
(
movement
:
Vector2
)
:
void
Parameters
movement:
Vector2
Returns
void
on
Left
Up
on
Left
Up
(
)
:
void
Returns
void
on
Mouse
Move
on
Mouse
Move
(
movement
:
Vector2
)
:
void
Parameters
movement:
Vector2
Returns
void
register
register
(
)
:
void
Returns
void
remove
Apply
Type
remove
Apply
Type
(
apply
:
ControlApplyType
)
:
void
Parameters
apply:
ControlApplyType
Returns
void
set
Apply
Type
set
Apply
Type
(
apply
:
ControlApplyType
, downAction
:
(
windowPosition
:
undefined
|
number
|
Vector2
|
PitchPosition
)
=>
void
, upAction
:
(
windowPosition
:
undefined
|
number
|
Vector2
|
PitchPosition
)
=>
void
)
:
void
Parameters
apply:
ControlApplyType
downAction:
(
windowPosition
:
undefined
|
number
|
Vector2
|
PitchPosition
)
=>
void
(
windowPosition
:
undefined
|
number
|
Vector2
|
PitchPosition
)
:
void
Parameters
windowPosition:
undefined
|
number
|
Vector2
|
PitchPosition
Returns
void
upAction:
(
windowPosition
:
undefined
|
number
|
Vector2
|
PitchPosition
)
=>
void
(
windowPosition
:
undefined
|
number
|
Vector2
|
PitchPosition
)
:
void
Parameters
windowPosition:
undefined
|
number
|
Vector2
|
PitchPosition
Returns
void
Returns
void
set
Drawing
Type
set
Drawing
Type
(
type
:
CommentType
)
:
void
Parameters
type:
CommentType
Returns
void
set
Text
set
Text
(
position
:
Vector2
, text
:
string
)
:
void
Parameters
position:
Vector2
text:
string
Returns
void
Exports
default
default.
Motor
Core
Comment
Editor
constructor
color
comment
Type
font
Style
input
Map
line
Width
viewer
begin
destroy
end
export
Image
is
Destroyed
key
Down
Callback
key
UpCallback
on
Left
Down
on
Left
Up
on
Mouse
Move
register
remove
Apply
Type
set
Apply
Type
set
Drawing
Type
set
Text