@texturehq/edges 2.4.5 → 2.4.6
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/{colors-Z6qVFuKf.d.cts → colors-B8z56mNG.d.cts} +18 -0
- package/dist/{colors-B85aftHP.d.ts → colors-BZT1w9MC.d.ts} +18 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/styles.css +3 -0
- package/package.json +1 -1
|
@@ -1226,6 +1226,19 @@ interface BaseLayerSpec {
|
|
|
1226
1226
|
color?: string;
|
|
1227
1227
|
/** Optional grouping for organizing layers in the control */
|
|
1228
1228
|
group?: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* Mutually-exclusive sub-modes, rendered as a dropdown beneath the layer's
|
|
1231
|
+
* checkbox. `selectedId` is a single value rather than a set so "two modes
|
|
1232
|
+
* at once" is unrepresentable, not merely discouraged. Layers without this
|
|
1233
|
+
* render as a plain checkbox.
|
|
1234
|
+
*/
|
|
1235
|
+
variants?: {
|
|
1236
|
+
options: ReadonlyArray<{
|
|
1237
|
+
id: string;
|
|
1238
|
+
label: string;
|
|
1239
|
+
}>;
|
|
1240
|
+
selectedId: string;
|
|
1241
|
+
};
|
|
1229
1242
|
};
|
|
1230
1243
|
/** Event handlers for user interactions */
|
|
1231
1244
|
events?: {
|
|
@@ -1563,6 +1576,11 @@ interface LayersControl extends BaseControl {
|
|
|
1563
1576
|
* Callback to clear all layer selections (hide all layers)
|
|
1564
1577
|
*/
|
|
1565
1578
|
onClearAll?: () => void;
|
|
1579
|
+
/**
|
|
1580
|
+
* Callback when a layer's selected variant changes. Only fires for layers
|
|
1581
|
+
* declaring `legend.variants`.
|
|
1582
|
+
*/
|
|
1583
|
+
onLayerVariantChange?: (layerId: string, variantId: string) => void;
|
|
1566
1584
|
}
|
|
1567
1585
|
/**
|
|
1568
1586
|
* Search control configuration
|
|
@@ -1226,6 +1226,19 @@ interface BaseLayerSpec {
|
|
|
1226
1226
|
color?: string;
|
|
1227
1227
|
/** Optional grouping for organizing layers in the control */
|
|
1228
1228
|
group?: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* Mutually-exclusive sub-modes, rendered as a dropdown beneath the layer's
|
|
1231
|
+
* checkbox. `selectedId` is a single value rather than a set so "two modes
|
|
1232
|
+
* at once" is unrepresentable, not merely discouraged. Layers without this
|
|
1233
|
+
* render as a plain checkbox.
|
|
1234
|
+
*/
|
|
1235
|
+
variants?: {
|
|
1236
|
+
options: ReadonlyArray<{
|
|
1237
|
+
id: string;
|
|
1238
|
+
label: string;
|
|
1239
|
+
}>;
|
|
1240
|
+
selectedId: string;
|
|
1241
|
+
};
|
|
1229
1242
|
};
|
|
1230
1243
|
/** Event handlers for user interactions */
|
|
1231
1244
|
events?: {
|
|
@@ -1563,6 +1576,11 @@ interface LayersControl extends BaseControl {
|
|
|
1563
1576
|
* Callback to clear all layer selections (hide all layers)
|
|
1564
1577
|
*/
|
|
1565
1578
|
onClearAll?: () => void;
|
|
1579
|
+
/**
|
|
1580
|
+
* Callback when a layer's selected variant changes. Only fires for layers
|
|
1581
|
+
* declaring `legend.variants`.
|
|
1582
|
+
*/
|
|
1583
|
+
onLayerVariantChange?: (layerId: string, variantId: string) => void;
|
|
1566
1584
|
}
|
|
1567
1585
|
/**
|
|
1568
1586
|
* Search control configuration
|