@arcgis/common-components 5.0.0-next.159 → 5.0.0-next.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  /// <reference types="@arcgis/core/interfaces.d.ts" />
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
+ import type { Layout, TickMode, TickValues } from "./types.js";
4
5
 
5
6
  /**
6
7
  * The ticks component displays visual markers along a line to indicate scale, intervals, or specific values. It is often used in conjunction with the
@@ -186,10 +187,4 @@ export abstract class ArcgisTicks extends LitElement {
186
187
  readonly "@eventTypes": {
187
188
  arcgisTickClick: ArcgisTicks["arcgisTickClick"]["detail"];
188
189
  };
189
- }
190
-
191
- export type Layout = "horizontal" | "vertical";
192
-
193
- export type TickMode = "count" | "percent" | "value";
194
-
195
- export type TickValues = number[] | number;
190
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The layout of the [arcgis-ticks](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/) component, which determines the orientation of the ticks.
3
+ *
4
+ * @since 5.0
5
+ */
6
+ export type Layout = "horizontal" | "vertical";
7
+
8
+ /**
9
+ * The mode of positioning ticks along the [arcgis-ticks](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/) component. It drives how [arcgis-ticks.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted.
10
+ * - `count`: Places a fixed number of ticks (provided in the [arcgis-ticks.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) property) at equal distances from each other.
11
+ * - `percent`: [arcgis-ticks.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted as percentage. If [arcgis-ticks.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/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.
12
+ * - `value`: Indicates that ticks will only be placed at the values specified in the property.
13
+ *
14
+ * @since 5.0
15
+ */
16
+ export type TickMode = "count" | "percent" | "value";
17
+
18
+ /**
19
+ * Indicates where ticks will be rendered along the [arcgis-ticks](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/) component.
20
+ *
21
+ * @since 5.0
22
+ */
23
+ export type TickValues = number[] | number;