Events

viewer2d.markerdragend

Invoked when the user stops moving the marker.

Example



Usage

JS
jQuery


Parameters

onMarkerDragComplete

JS
jQuery

Function called when the user stops moving the marker.

Type

(event: Object) => Void

event

Name

Type

Description

marker

Object

The dragged marker

srcEvent

Object

Original DOM event

marker

The marker the user dragged.

Name

Type

Description

color

String

Color of the marker

data

Object

Data included with the marker when added

id

String

Id of the marker

text

String

Optional text label displayed alongside the marker

x

Number

X coordinate of the marker in pixels

y

Number

Y coordinate of the marker in pixels