@arcgis/common-components 5.1.0-next.60 → 5.1.0-next.62
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.
- package/dist/cdn/{SW77BUCP.js → 3B5FXQSX.js} +1 -1
- package/dist/cdn/{WOLQO3JI.js → 7OF5SF2A.js} +1 -1
- package/dist/cdn/{DYZ3HBS2.js → AQWVYBZF.js} +1 -1
- package/dist/cdn/{DWXXQFPQ.js → HYLC5GEB.js} +1 -1
- package/dist/cdn/{DLNJ7OOB.js → IQXW4J56.js} +1 -1
- package/dist/cdn/{V5Y3VGWN.js → IRXTWEQW.js} +1 -1
- package/dist/cdn/MPLWDVLG.js +2 -0
- package/dist/cdn/{5EKB3CUO.js → NHRIURQU.js} +1 -1
- package/dist/cdn/{W2DRQHS5.js → QH2547O7.js} +1 -1
- package/dist/cdn/{SDI7RS6X.js → QLSLMEU5.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-slider/customElement.d.ts +12 -15
- package/dist/components/arcgis-slider/customElement.js +292 -286
- package/dist/components/arcgis-ticks/customElement.d.ts +10 -9
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +3 -4
- package/dist/cdn/MIIXLLQJ.js +0 -2
|
@@ -8,7 +8,7 @@ import type { Layout, TickMode, TickValues } from "./types.js";
|
|
|
8
8
|
* slider’s range and make more precise selections.
|
|
9
9
|
*
|
|
10
10
|
* Tick placement is controlled by the [mode](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#mode), which defines how the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) are parsed and translated into positions along the
|
|
11
|
-
* line. Tick positions are derived from the component’s [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#max) range, with optional
|
|
11
|
+
* line. Tick positions are derived from the component’s [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#max) range, with optional non-linear scaling via
|
|
12
12
|
* [interpolationExponent](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#interpolationExponent). Ticks can be displayed in vertical or horizontal [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#layout), with optional [showLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#showLabels) and a [showBaseline](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#showBaseline).
|
|
13
13
|
* The component can also be made [interactive](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#interactive) to respond to user clicks on individual ticks. The [labelFormatter](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#labelFormatter) property allows customization of tick label formatting.
|
|
14
14
|
*
|
|
@@ -17,8 +17,8 @@ import type { Layout, TickMode, TickValues } from "./types.js";
|
|
|
17
17
|
* @cssproperty [--arcgis-ticks-gap] - Specifies the gap between the ticks and labels.
|
|
18
18
|
* @since 5.0
|
|
19
19
|
* @example
|
|
20
|
-
* The following example creates a vertical slider
|
|
21
|
-
* The ticks are
|
|
20
|
+
* The following example creates a vertical slider and ticks.
|
|
21
|
+
* The ticks are positioned at the end of the slider and displayed every 10 units from 0 to 100.
|
|
22
22
|
* ```html
|
|
23
23
|
* <arcgis-slider id="sliderComponent" min="0" max="100" show-range-labels values="50" layout="vertical">
|
|
24
24
|
* <arcgis-ticks slot="content-end" style="flex:1;"
|
|
@@ -34,7 +34,7 @@ import type { Layout, TickMode, TickValues } from "./types.js";
|
|
|
34
34
|
*/
|
|
35
35
|
export abstract class ArcgisTicks extends LitElement {
|
|
36
36
|
/**
|
|
37
|
-
* When `true`, ticks are clickable and the component emits
|
|
37
|
+
* When `true`, ticks are clickable and the component emits [@arcgisTickClick](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#event-arcgisTickClick) when the user selects a tick.
|
|
38
38
|
*
|
|
39
39
|
* @default false
|
|
40
40
|
* @see [@arcgisTickClick](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#event-arcgisTickClick)
|
|
@@ -98,10 +98,11 @@ export abstract class ArcgisTicks extends LitElement {
|
|
|
98
98
|
*/
|
|
99
99
|
accessor mirrored: boolean;
|
|
100
100
|
/**
|
|
101
|
-
* The
|
|
102
|
-
*
|
|
103
|
-
* - `
|
|
104
|
-
* - `
|
|
101
|
+
* The manner in which ticks are positioned along the component. It determines how [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted.
|
|
102
|
+
*
|
|
103
|
+
* - `count`: Places a fixed number of ticks (specified in [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values)) at equal intervals.
|
|
104
|
+
* - `percent`: Interprets [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) as percentages. If it's a single number, that number is the interval between ticks; if it's an array, the array specifies the percentage positions for ticks.
|
|
105
|
+
* - `value`: Places ticks only at the values listed in [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values).
|
|
105
106
|
*
|
|
106
107
|
* @default "count"
|
|
107
108
|
* @example
|
|
@@ -118,7 +119,7 @@ export abstract class ArcgisTicks extends LitElement {
|
|
|
118
119
|
* </arcgis-slider>
|
|
119
120
|
* ```
|
|
120
121
|
* @example
|
|
121
|
-
* In count mode, values
|
|
122
|
+
* In count mode, values specifies the number of ticks to render (not a list of tick values).
|
|
122
123
|
* For example, use `11` ticks to show 0–100 in steps of 10 (0, 10, 20, ..., 100).
|
|
123
124
|
* ```html
|
|
124
125
|
* <!-- 11 ticks from 0 to 100 -->
|