@texturehq/edges 5.12.0 → 5.12.2
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-DyB9mRDa.d.cts → colors-Dccs-164.d.cts} +36 -1
- package/dist/{colors-B7iUqDUu.d.ts → colors-aSE98RKK.d.ts} +36 -1
- package/dist/index.cjs +13 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -3
- package/dist/index.d.ts +22 -3
- package/dist/index.js +13 -10
- 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,25 @@ 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
|
+
* Attach this layer to an existing Mapbox source instead of creating its own
|
|
1876
|
+
* `${id}-source`. Every vector spec normally owns a source, so two specs
|
|
1877
|
+
* reading the same tileset (a base layer and its selection halo) make Mapbox
|
|
1878
|
+
* fetch, parse and buffer every tile twice — and mounting the second spec
|
|
1879
|
+
* refetches tiles the first already has. Name the sibling's source here and
|
|
1880
|
+
* this spec becomes one more `<Layer>` on it; `tileset` and `promoteId` are
|
|
1881
|
+
* ignored. The layer is inserted once the named source exists.
|
|
1882
|
+
*/
|
|
1883
|
+
sourceId?: string;
|
|
1884
|
+
/**
|
|
1885
|
+
* Anchor this layer's paint order beneath an existing layer id, independent
|
|
1886
|
+
* of mount order. Without it, stacking comes purely from z-sorted mount
|
|
1887
|
+
* order — which breaks for specs that mount into an already-built style
|
|
1888
|
+
* (e.g. a selection halo created on demand would otherwise paint on top of
|
|
1889
|
+
* the chip it should ring). react-map-gl retries insertion until the target
|
|
1890
|
+
* layer exists, so a spec may name a sibling that mounts in the same pass.
|
|
1891
|
+
*/
|
|
1892
|
+
beforeId?: string;
|
|
1874
1893
|
/** How to render the geometry */
|
|
1875
1894
|
renderAs: RenderType;
|
|
1876
1895
|
/** Visual styling */
|
|
@@ -2585,6 +2604,22 @@ interface StaticMapProps {
|
|
|
2585
2604
|
* @default true
|
|
2586
2605
|
*/
|
|
2587
2606
|
showMarker?: boolean;
|
|
2607
|
+
/**
|
|
2608
|
+
* Vertical pixel offset for the center marker. Positive moves it DOWN.
|
|
2609
|
+
*
|
|
2610
|
+
* The marker is anchored at its tip (`anchor="bottom"`), so the tip sits on
|
|
2611
|
+
* the exact center of the map and the whole glyph stands above it. That is
|
|
2612
|
+
* correct for a map you can read the geography of, but in a small thumbnail
|
|
2613
|
+
* with no surrounding context the pin reads as floating near the top edge.
|
|
2614
|
+
* Offsetting by roughly half the marker height moves the glyph's visual mass
|
|
2615
|
+
* onto the optical center.
|
|
2616
|
+
*
|
|
2617
|
+
* Presentational only — it shifts the marker, not the viewport, so the map
|
|
2618
|
+
* stays centered on the real coordinate. Use it on decorative thumbnails,
|
|
2619
|
+
* NOT where a reader is meant to trust the tip as the precise location.
|
|
2620
|
+
* @default 0
|
|
2621
|
+
*/
|
|
2622
|
+
markerOffsetY?: number;
|
|
2588
2623
|
/**
|
|
2589
2624
|
* Show Mapbox attribution control
|
|
2590
2625
|
* @default false
|
|
@@ -2633,7 +2668,7 @@ interface StaticMapProps {
|
|
|
2633
2668
|
*
|
|
2634
2669
|
* Automatically adapts to light/dark mode using the global ColorModeProvider.
|
|
2635
2670
|
*/
|
|
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;
|
|
2671
|
+
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
2672
|
|
|
2638
2673
|
/**
|
|
2639
2674
|
* Represents a geographic point with coordinates
|
|
@@ -1871,6 +1871,25 @@ 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
|
+
* Attach this layer to an existing Mapbox source instead of creating its own
|
|
1876
|
+
* `${id}-source`. Every vector spec normally owns a source, so two specs
|
|
1877
|
+
* reading the same tileset (a base layer and its selection halo) make Mapbox
|
|
1878
|
+
* fetch, parse and buffer every tile twice — and mounting the second spec
|
|
1879
|
+
* refetches tiles the first already has. Name the sibling's source here and
|
|
1880
|
+
* this spec becomes one more `<Layer>` on it; `tileset` and `promoteId` are
|
|
1881
|
+
* ignored. The layer is inserted once the named source exists.
|
|
1882
|
+
*/
|
|
1883
|
+
sourceId?: string;
|
|
1884
|
+
/**
|
|
1885
|
+
* Anchor this layer's paint order beneath an existing layer id, independent
|
|
1886
|
+
* of mount order. Without it, stacking comes purely from z-sorted mount
|
|
1887
|
+
* order — which breaks for specs that mount into an already-built style
|
|
1888
|
+
* (e.g. a selection halo created on demand would otherwise paint on top of
|
|
1889
|
+
* the chip it should ring). react-map-gl retries insertion until the target
|
|
1890
|
+
* layer exists, so a spec may name a sibling that mounts in the same pass.
|
|
1891
|
+
*/
|
|
1892
|
+
beforeId?: string;
|
|
1874
1893
|
/** How to render the geometry */
|
|
1875
1894
|
renderAs: RenderType;
|
|
1876
1895
|
/** Visual styling */
|
|
@@ -2585,6 +2604,22 @@ interface StaticMapProps {
|
|
|
2585
2604
|
* @default true
|
|
2586
2605
|
*/
|
|
2587
2606
|
showMarker?: boolean;
|
|
2607
|
+
/**
|
|
2608
|
+
* Vertical pixel offset for the center marker. Positive moves it DOWN.
|
|
2609
|
+
*
|
|
2610
|
+
* The marker is anchored at its tip (`anchor="bottom"`), so the tip sits on
|
|
2611
|
+
* the exact center of the map and the whole glyph stands above it. That is
|
|
2612
|
+
* correct for a map you can read the geography of, but in a small thumbnail
|
|
2613
|
+
* with no surrounding context the pin reads as floating near the top edge.
|
|
2614
|
+
* Offsetting by roughly half the marker height moves the glyph's visual mass
|
|
2615
|
+
* onto the optical center.
|
|
2616
|
+
*
|
|
2617
|
+
* Presentational only — it shifts the marker, not the viewport, so the map
|
|
2618
|
+
* stays centered on the real coordinate. Use it on decorative thumbnails,
|
|
2619
|
+
* NOT where a reader is meant to trust the tip as the precise location.
|
|
2620
|
+
* @default 0
|
|
2621
|
+
*/
|
|
2622
|
+
markerOffsetY?: number;
|
|
2588
2623
|
/**
|
|
2589
2624
|
* Show Mapbox attribution control
|
|
2590
2625
|
* @default false
|
|
@@ -2633,7 +2668,7 @@ interface StaticMapProps {
|
|
|
2633
2668
|
*
|
|
2634
2669
|
* Automatically adapts to light/dark mode using the global ColorModeProvider.
|
|
2635
2670
|
*/
|
|
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;
|
|
2671
|
+
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
2672
|
|
|
2638
2673
|
/**
|
|
2639
2674
|
* Represents a geographic point with coordinates
|