@texturehq/edges 5.12.1 → 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.
@@ -1871,6 +1871,16 @@ 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;
1874
1884
  /**
1875
1885
  * Anchor this layer's paint order beneath an existing layer id, independent
1876
1886
  * of mount order. Without it, stacking comes purely from z-sorted mount
@@ -1871,6 +1871,16 @@ 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;
1874
1884
  /**
1875
1885
  * Anchor this layer's paint order beneath an existing layer id, independent
1876
1886
  * of mount order. Without it, stacking comes purely from z-sorted mount