Types
import type { DrawOptions, DrawingMode } from "@arcgis/core/views/draw/types.js";

Type definitions

DrawOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

mode

Property
Type
"hybrid" | "freehand" | "click" | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The drawing mode. The drawing mode applies only when creating polygon, polyline, segment draw actions.

Possible Values

ValueDescription
hybridVertices are added while the pointer is clicked or dragged. Applies to and is the default for polygon and polyline draw actions.
freehandVertices are added while the pointer is dragged. Applies to polygon, polyline and segment draw actions. Default for segment draw actions.
clickVertices are added when the pointer is clicked.

DrawingMode

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"click" | "freehand" | "hybrid"