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
| Value | Description |
|---|---|
| hybrid | Vertices are added while the pointer is clicked or dragged. Applies to and is the default for polygon and polyline draw actions. |
| freehand | Vertices are added while the pointer is dragged. Applies to polygon, polyline and segment draw actions. Default for segment draw actions. |
| click | Vertices are added when the pointer is clicked. |