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

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
vertices
number[][]

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

Properties

PropertyTypeClass
number[] | null
type
readonly
"draw-complete"
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
"draw-complete"

The type of the event.

vertices

Property
Type
number[][]

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

Methods

MethodSignatureClass
preventDefault(): void

preventDefault

Method
Signature
preventDefault (): void

Prevents event propagation bubbling up the event chain.

Returns
void