import SketchValueOptions from "@arcgis/core/views/interactive/sketch/SketchValueOptions.js";const SketchValueOptions = await $arcgis.import("@arcgis/core/views/interactive/sketch/SketchValueOptions.js");- Inheritance:
- SketchValueOptions→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.29
The SketchValueOptions allows users to configure how numerical values and
constraints behave while sketching and editing.
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
See the properties table for a list of all the
properties that may be passed into the constructor.
Properties
Any properties can be set, retrieved or listened to. See the
Watch for changes
topic.
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
| | ||
| |
directionMode
Property
- Type
- TooltipDirectionMode
How direction values are displayed and, in case of input, how they are interpreted.
- When set to "relative", the direction (also called deflection) is measured relative to the previous segment.
Positive values are measured in a clockwise direction. Negative values are measured in a counterclockwise direction. - When set to "absolute", the direction is measured clockwise from the main axis of the map (typically north).
The direction mode can be toggled in the tooltip's UI, provided the input mode is active.
- Default value
- "relative"