Skip to content
import CursorUpdateEvent from "@arcgis/core/views/draw/CursorUpdateEvent.js";
Since
ArcGIS Maps SDK for JavaScript 5.0

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
view
vertexIndex
vertices
number[][]
mapPoint

Properties

PropertyTypeClass
number[] | null
type
readonly
"cursor-update"
number[][]

coordinates

Property
Type
number[] | null

An array of numbers representing an x,y coordinate pair in the spatial reference of the view.

defaultPrevented

Property
Type
boolean

Set to true when preventDefault() is called.

Default value
false

type

readonly Property
Type
"cursor-update"

The type of the event.

vertexIndex

Property
Type
number | null | undefined

Index of the cursor-vertex within the list of the cursor update event (is null if cursor can not be projected onto the map)

vertices

Property
Type
number[][]

Two-dimensional array of numbers representing the coordinates of each vertex that comprises the drawn geometry.

Methods

MethodSignatureClass
preventDefault(): void

preventDefault

Method
Signature
preventDefault (): void

Prevents event propagation bubbling up the event chain.

Returns
void