▾
import SketchValueOptions from "@arcgis/core/views/interactive/sketch/SketchValueOptions.js";const SketchValueOptions = await $arcgis.import("@arcgis/core/views/interactive/sketch/SketchValueOptions.js");- Inheritance
- SketchValueOptions→
ValueOptions→ 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.
Properties that autocast to this class also accept instances of ValueOptions.
Autocasting plain objects still creates instances of SketchValueOptions.
Constructors
Constructor
Constructor
- Since
- ArcGIS Maps SDK for JavaScript 5.2
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 |
|---|---|---|
| readonly inherited | ||
| inherited | ||
| inherited | ||
| inherited |
directionMode
inherited Property
- Type
- DirectionMode
Inherited from: ValueOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.2
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"
displayUnits
- Type
- Units
Inherited from: ValueOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Units used for displaying values in the UI.
inputUnits
- Type
- Units
Inherited from: ValueOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Units used for interpreting input values.