Types
import type { ScalarQuantity, Length, Area, Volume, Angle } from "@arcgis/core/core/quantity.js";
Since
ArcGIS Maps SDK for JavaScript 4.23

Quantity type used to represent measurements across the JS API.

Type definitions

ScalarQuantity

Type definition

value

readonly Property
Type
number

Scalar value

Length

Type definition
Supertypes
ScalarQuantity

type

readonly Property
Type
"length"

Unit type.

unit

readonly Property
Type
LengthUnit

Any unit which represents length.

Area

Type definition
Supertypes
ScalarQuantity

type

readonly Property
Type
"area"

Unit type.

unit

readonly Property
Type
AreaUnit

Any unit which represents area.

Volume

Type definition
Supertypes
ScalarQuantity

type

readonly Property
Type
"volume"

Unit type.

unit

readonly Property
Type
VolumeUnit

Any unit which represents volume.

Angle

Type definition
Supertypes
ScalarQuantity

type

readonly Property
Type
"angle"

Unit type.

unit

readonly Property
Type
AngleUnit

Any unit which represents an angle.

RotationType

Type definition
Type
"geographic" | "arithmetic"