import ValueOptions from "@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.

See also

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
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.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

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"

displayUnits

autocast Property
Type
Units

Units used for displaying values in the UI.

inputUnits

autocast Property
Type
Units

Units used for interpreting input values.