▾
import ValueOptions from "@arcgis/core/views/interactive/options/ValueOptions.js";const ValueOptions = await $arcgis.import("@arcgis/core/views/interactive/options/ValueOptions.js");- Inheritance
- ValueOptions→
Accessor
- Subclasses
- SketchValueOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Configures numerical values and constraints for Sketch and Editor and their view models only.
Set these options through the Sketch component's valueOptions, Sketch.valueOptions, Editor.valueOptions, SketchViewModel.valueOptions, or EditorViewModel.valueOptions.
To configure displayUnits and inputUnits on the view for supported components, view models, and analyses, use
ViewOptions.displayUnits and
ViewOptions.inputUnits instead.
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 |
|---|---|---|
| readonly inherited | ||
| | ||
| | ||
| |
directionMode
Property
- Type
- DirectionMode
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"