@texturehq/edges 1.30.4 → 1.30.5
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-DHfY2j71.d.ts → colors-67HNJviq.d.ts} +16 -0
- package/dist/{colors-CLaHvP41.d.cts → colors-DIRyY7OV.d.cts} +16 -0
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -4
- package/dist/index.d.ts +61 -4
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1030,6 +1030,22 @@ interface ClusteredVectorLayerSpec extends Omit<BaseLayerSpec, "tooltip"> {
|
|
|
1030
1030
|
borderWidth?: number;
|
|
1031
1031
|
/** Border color */
|
|
1032
1032
|
borderColor?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* Render points as a Mapbox icon symbol instead of a circle.
|
|
1035
|
+
*
|
|
1036
|
+
* `name` must match an image registered on the map (e.g. via
|
|
1037
|
+
* `registerPhosphorIcon` from `@texturehq/edges`). When set, the renderer
|
|
1038
|
+
* emits a `symbol` sub-layer with `icon-image: name` instead of the
|
|
1039
|
+
* default `circle` sub-layer. The selected-point sub-layer follows
|
|
1040
|
+
* the same swap.
|
|
1041
|
+
*
|
|
1042
|
+
* Pass an expression (Mapbox `["match", …]`) to dispatch by feature
|
|
1043
|
+
* property — e.g. for per-device-type icons keyed on `["get", "type"]`.
|
|
1044
|
+
*/
|
|
1045
|
+
icon?: {
|
|
1046
|
+
name: string | unknown[];
|
|
1047
|
+
size?: number;
|
|
1048
|
+
};
|
|
1033
1049
|
};
|
|
1034
1050
|
/** Style overrides for selected point (optional, uses design system defaults) */
|
|
1035
1051
|
selectedStyle?: {
|
|
@@ -1030,6 +1030,22 @@ interface ClusteredVectorLayerSpec extends Omit<BaseLayerSpec, "tooltip"> {
|
|
|
1030
1030
|
borderWidth?: number;
|
|
1031
1031
|
/** Border color */
|
|
1032
1032
|
borderColor?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* Render points as a Mapbox icon symbol instead of a circle.
|
|
1035
|
+
*
|
|
1036
|
+
* `name` must match an image registered on the map (e.g. via
|
|
1037
|
+
* `registerPhosphorIcon` from `@texturehq/edges`). When set, the renderer
|
|
1038
|
+
* emits a `symbol` sub-layer with `icon-image: name` instead of the
|
|
1039
|
+
* default `circle` sub-layer. The selected-point sub-layer follows
|
|
1040
|
+
* the same swap.
|
|
1041
|
+
*
|
|
1042
|
+
* Pass an expression (Mapbox `["match", …]`) to dispatch by feature
|
|
1043
|
+
* property — e.g. for per-device-type icons keyed on `["get", "type"]`.
|
|
1044
|
+
*/
|
|
1045
|
+
icon?: {
|
|
1046
|
+
name: string | unknown[];
|
|
1047
|
+
size?: number;
|
|
1048
|
+
};
|
|
1033
1049
|
};
|
|
1034
1050
|
/** Style overrides for selected point (optional, uses design system defaults) */
|
|
1035
1051
|
selectedStyle?: {
|