Skip to content
Types
import type { Layout, TickMode, TickValues } from "@arcgis/common-components/components/arcgis-ticks/types.js";

Type definitions

Layout

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The layout of the arcgis-ticks component, which determines the orientation of the ticks.

Type
"horizontal" | "vertical"

TickMode

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

The mode of positioning ticks along the arcgis-ticks component. It drives how arcgis-ticks.values is interpreted.

  • count: Places a fixed number of ticks (provided in the arcgis-ticks.values property) at equal distances from each other.
  • percent: arcgis-ticks.values is interpreted as percentage. If arcgis-ticks.values is a number, it indicates the interval between ticks. If it is an array, it indicates the percentage values at which to place the ticks.
  • value: Indicates that ticks will only be placed at the values specified in the property.
Type
"count" | "percent" | "value"

TickValues

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates where ticks will be rendered along the arcgis-ticks component.

Type
number[] | number