@texturehq/edges 5.11.3 → 5.12.1
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-B7iUqDUu.d.ts → colors-BzmRlUsO.d.ts} +26 -1
- package/dist/{colors-DyB9mRDa.d.cts → colors-DygBw3Bm.d.cts} +26 -1
- package/dist/index.cjs +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +12 -9
- 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 -3
- package/package.json +1 -1
|
@@ -1871,6 +1871,15 @@ interface VectorLayerSpec extends BaseLayerSpec {
|
|
|
1871
1871
|
* color-by-property (`style.color = { by, mapping }`) does not require it.
|
|
1872
1872
|
*/
|
|
1873
1873
|
promoteId?: string | Record<string, string>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Anchor this layer's paint order beneath an existing layer id, independent
|
|
1876
|
+
* of mount order. Without it, stacking comes purely from z-sorted mount
|
|
1877
|
+
* order — which breaks for specs that mount into an already-built style
|
|
1878
|
+
* (e.g. a selection halo created on demand would otherwise paint on top of
|
|
1879
|
+
* the chip it should ring). react-map-gl retries insertion until the target
|
|
1880
|
+
* layer exists, so a spec may name a sibling that mounts in the same pass.
|
|
1881
|
+
*/
|
|
1882
|
+
beforeId?: string;
|
|
1874
1883
|
/** How to render the geometry */
|
|
1875
1884
|
renderAs: RenderType;
|
|
1876
1885
|
/** Visual styling */
|
|
@@ -2585,6 +2594,22 @@ interface StaticMapProps {
|
|
|
2585
2594
|
* @default true
|
|
2586
2595
|
*/
|
|
2587
2596
|
showMarker?: boolean;
|
|
2597
|
+
/**
|
|
2598
|
+
* Vertical pixel offset for the center marker. Positive moves it DOWN.
|
|
2599
|
+
*
|
|
2600
|
+
* The marker is anchored at its tip (`anchor="bottom"`), so the tip sits on
|
|
2601
|
+
* the exact center of the map and the whole glyph stands above it. That is
|
|
2602
|
+
* correct for a map you can read the geography of, but in a small thumbnail
|
|
2603
|
+
* with no surrounding context the pin reads as floating near the top edge.
|
|
2604
|
+
* Offsetting by roughly half the marker height moves the glyph's visual mass
|
|
2605
|
+
* onto the optical center.
|
|
2606
|
+
*
|
|
2607
|
+
* Presentational only — it shifts the marker, not the viewport, so the map
|
|
2608
|
+
* stays centered on the real coordinate. Use it on decorative thumbnails,
|
|
2609
|
+
* NOT where a reader is meant to trust the tip as the precise location.
|
|
2610
|
+
* @default 0
|
|
2611
|
+
*/
|
|
2612
|
+
markerOffsetY?: number;
|
|
2588
2613
|
/**
|
|
2589
2614
|
* Show Mapbox attribution control
|
|
2590
2615
|
* @default false
|
|
@@ -2633,7 +2658,7 @@ interface StaticMapProps {
|
|
|
2633
2658
|
*
|
|
2634
2659
|
* Automatically adapts to light/dark mode using the global ColorModeProvider.
|
|
2635
2660
|
*/
|
|
2636
|
-
declare function StaticMap({ width, height, initialViewState, isLoading, mapType, mapStyleUrl, layers, mapboxAccessToken, showMarker, showAttribution, onLoad, className, showExpandToggle, expandedMapTitle, expandedMapAddressLabel, schematicPlaceholder, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
2661
|
+
declare function StaticMap({ width, height, initialViewState, isLoading, mapType, mapStyleUrl, layers, mapboxAccessToken, showMarker, markerOffsetY, showAttribution, onLoad, className, showExpandToggle, expandedMapTitle, expandedMapAddressLabel, schematicPlaceholder, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
2637
2662
|
|
|
2638
2663
|
/**
|
|
2639
2664
|
* Represents a geographic point with coordinates
|
|
@@ -1871,6 +1871,15 @@ interface VectorLayerSpec extends BaseLayerSpec {
|
|
|
1871
1871
|
* color-by-property (`style.color = { by, mapping }`) does not require it.
|
|
1872
1872
|
*/
|
|
1873
1873
|
promoteId?: string | Record<string, string>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Anchor this layer's paint order beneath an existing layer id, independent
|
|
1876
|
+
* of mount order. Without it, stacking comes purely from z-sorted mount
|
|
1877
|
+
* order — which breaks for specs that mount into an already-built style
|
|
1878
|
+
* (e.g. a selection halo created on demand would otherwise paint on top of
|
|
1879
|
+
* the chip it should ring). react-map-gl retries insertion until the target
|
|
1880
|
+
* layer exists, so a spec may name a sibling that mounts in the same pass.
|
|
1881
|
+
*/
|
|
1882
|
+
beforeId?: string;
|
|
1874
1883
|
/** How to render the geometry */
|
|
1875
1884
|
renderAs: RenderType;
|
|
1876
1885
|
/** Visual styling */
|
|
@@ -2585,6 +2594,22 @@ interface StaticMapProps {
|
|
|
2585
2594
|
* @default true
|
|
2586
2595
|
*/
|
|
2587
2596
|
showMarker?: boolean;
|
|
2597
|
+
/**
|
|
2598
|
+
* Vertical pixel offset for the center marker. Positive moves it DOWN.
|
|
2599
|
+
*
|
|
2600
|
+
* The marker is anchored at its tip (`anchor="bottom"`), so the tip sits on
|
|
2601
|
+
* the exact center of the map and the whole glyph stands above it. That is
|
|
2602
|
+
* correct for a map you can read the geography of, but in a small thumbnail
|
|
2603
|
+
* with no surrounding context the pin reads as floating near the top edge.
|
|
2604
|
+
* Offsetting by roughly half the marker height moves the glyph's visual mass
|
|
2605
|
+
* onto the optical center.
|
|
2606
|
+
*
|
|
2607
|
+
* Presentational only — it shifts the marker, not the viewport, so the map
|
|
2608
|
+
* stays centered on the real coordinate. Use it on decorative thumbnails,
|
|
2609
|
+
* NOT where a reader is meant to trust the tip as the precise location.
|
|
2610
|
+
* @default 0
|
|
2611
|
+
*/
|
|
2612
|
+
markerOffsetY?: number;
|
|
2588
2613
|
/**
|
|
2589
2614
|
* Show Mapbox attribution control
|
|
2590
2615
|
* @default false
|
|
@@ -2633,7 +2658,7 @@ interface StaticMapProps {
|
|
|
2633
2658
|
*
|
|
2634
2659
|
* Automatically adapts to light/dark mode using the global ColorModeProvider.
|
|
2635
2660
|
*/
|
|
2636
|
-
declare function StaticMap({ width, height, initialViewState, isLoading, mapType, mapStyleUrl, layers, mapboxAccessToken, showMarker, showAttribution, onLoad, className, showExpandToggle, expandedMapTitle, expandedMapAddressLabel, schematicPlaceholder, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
2661
|
+
declare function StaticMap({ width, height, initialViewState, isLoading, mapType, mapStyleUrl, layers, mapboxAccessToken, showMarker, markerOffsetY, showAttribution, onLoad, className, showExpandToggle, expandedMapTitle, expandedMapAddressLabel, schematicPlaceholder, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
2637
2662
|
|
|
2638
2663
|
/**
|
|
2639
2664
|
* Represents a geographic point with coordinates
|