supervision-js
Preparing search index...
Editing
AnnotationEditingEngine
Interface AnnotationEditingEngine
interface
AnnotationEditingEngine
{
beginHandleDrag
(
detection
:
Detection
,
handle
:
AnnotationHandleDefinition
,
input
:
AnnotationPointerInput
,
)
:
void
;
cancel
()
:
void
;
deleteVertex
(
detection
:
Detection
,
vertexIndex
:
number
)
:
Detection
|
null
;
getState
()
:
AnnotationEditingState
;
hasCreationTool
()
:
boolean
;
keyDown
(
key
:
string
)
:
void
;
pointerDown
(
input
:
AnnotationPointerInput
,
pick
?:
DetectionPickResult
|
null
,
)
:
void
;
pointerMove
(
input
:
AnnotationPointerInput
)
:
void
;
pointerUp
(
input
:
AnnotationPointerInput
)
:
void
;
setCreationTool
(
tool
:
AnnotationCreationTool
|
null
)
:
void
;
subscribe
(
listener
:
(
state
:
AnnotationEditingState
)
=>
void
)
:
()
=>
void
;
subscribeFastTranslate
(
listener
:
(
id
:
string
|
number
,
dx
:
number
,
dy
:
number
)
=>
void
,
)
:
()
=>
void
;
}
Index
Methods
begin
Handle
Drag
cancel
delete
Vertex
get
State
has
Creation
Tool
key
Down
pointer
Down
pointer
Move
pointer
Up
set
Creation
Tool
subscribe
subscribe
Fast
Translate
Methods
begin
Handle
Drag
beginHandleDrag
(
detection
:
Detection
,
handle
:
AnnotationHandleDefinition
,
input
:
AnnotationPointerInput
,
)
:
void
Parameters
detection
:
Detection
handle
:
AnnotationHandleDefinition
input
:
AnnotationPointerInput
Returns
void
cancel
cancel
()
:
void
Returns
void
delete
Vertex
deleteVertex
(
detection
:
Detection
,
vertexIndex
:
number
)
:
Detection
|
null
Parameters
detection
:
Detection
vertexIndex
:
number
Returns
Detection
|
null
get
State
getState
()
:
AnnotationEditingState
Returns
AnnotationEditingState
has
Creation
Tool
hasCreationTool
()
:
boolean
Returns
boolean
key
Down
keyDown
(
key
:
string
)
:
void
Parameters
key
:
string
Returns
void
pointer
Down
pointerDown
(
input
:
AnnotationPointerInput
,
pick
?:
DetectionPickResult
|
null
,
)
:
void
Parameters
input
:
AnnotationPointerInput
Optional
pick
:
DetectionPickResult
|
null
Returns
void
pointer
Move
pointerMove
(
input
:
AnnotationPointerInput
)
:
void
Parameters
input
:
AnnotationPointerInput
Returns
void
pointer
Up
pointerUp
(
input
:
AnnotationPointerInput
)
:
void
Parameters
input
:
AnnotationPointerInput
Returns
void
set
Creation
Tool
setCreationTool
(
tool
:
AnnotationCreationTool
|
null
)
:
void
Parameters
tool
:
AnnotationCreationTool
|
null
Returns
void
subscribe
subscribe
(
listener
:
(
state
:
AnnotationEditingState
)
=>
void
)
:
()
=>
void
Parameters
listener
:
(
state
:
AnnotationEditingState
)
=>
void
Returns
()
=>
void
subscribe
Fast
Translate
subscribeFastTranslate
(
listener
:
(
id
:
string
|
number
,
dx
:
number
,
dy
:
number
)
=>
void
,
)
:
()
=>
void
Parameters
listener
:
(
id
:
string
|
number
,
dx
:
number
,
dy
:
number
)
=>
void
Returns
()
=>
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
begin
Handle
Drag
cancel
delete
Vertex
get
State
has
Creation
Tool
key
Down
pointer
Down
pointer
Move
pointer
Up
set
Creation
Tool
subscribe
subscribe
Fast
Translate
supervision-js
Loading...