import Units from "@arcgis/core/views/interactive/sketch/Units.js";
Inheritance
Units→Units→Accessor
Since
ArcGIS Maps SDK for JavaScript 5.0
beta

Units used for displaying or interpreting values in the UI.

Constructors

Constructor

Constructor
Since
ArcGIS Maps SDK for JavaScript 5.2

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.

area

inherited Property
Type
SystemOrAreaUnit | null | undefined
Inherited from: Units
Since
ArcGIS Maps SDK for JavaScript 5.2

Area units.

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.

length

inherited Property
Type
SystemOrLengthUnit | null | undefined
Inherited from: Units
Since
ArcGIS Maps SDK for JavaScript 5.2

Length units.

verticalLength

inherited Property
Type
SystemOrLengthUnit | null | undefined
Inherited from: Units
Since
ArcGIS Maps SDK for JavaScript 5.2

Vertical length units.

volume

inherited Property
Type
SystemOrVolumeUnit | null | undefined
Inherited from: Units
Since
ArcGIS Maps SDK for JavaScript 5.2

Volume units.