Skip to content
import SketchValueOptions from "@arcgis/core/views/interactive/sketch/SketchValueOptions.js";
Inheritance:
SketchValueOptionsAccessor
Since
ArcGIS Maps SDK for JavaScript 4.29

The SketchValueOptions allows users to configure how numerical values and constraints behave while sketching and editing.

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

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

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"

displayUnits

autocast Property
Type
Units
beta

Units used for displaying values in the UI.

inputUnits

autocast Property
Type
Units
beta

Units used for interpreting input values.