@texturehq/edges 5.12.1 → 5.13.0
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-DygBw3Bm.d.cts → colors-Dccs-164.d.cts} +10 -0
- package/dist/{colors-BzmRlUsO.d.ts → colors-aSE98RKK.d.ts} +10 -0
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +10 -10
- 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
|
@@ -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
|