@mapbox/mapbox-gl-style-spec 14.32.0 → 14.33.0-rc.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/index.cjs CHANGED
@@ -7257,7 +7257,7 @@
7257
7257
  "default": 1,
7258
7258
  minimum: 0,
7259
7259
  maximum: 1,
7260
- doc: "The opacity of the entire procedural buildings layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",
7260
+ doc: "The opacity of the entire procedural buildings layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available. When consecutive `fill-extrusion` and `building` layers are semi-transparent, they are rendered together: they occlude each other and are only transparent against other layers. If another layer type is placed between them, each layer is blended separately and later layers are visible through earlier ones.",
7261
7261
  transition: true,
7262
7262
  "private": true,
7263
7263
  "sdk-support": {
@@ -11413,7 +11413,7 @@
11413
11413
  "default": 1,
11414
11414
  minimum: 0,
11415
11415
  maximum: 1,
11416
- doc: "The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",
11416
+ doc: "The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available. When consecutive `fill-extrusion` and `building` layers are semi-transparent, they are rendered together: they occlude each other and are only transparent against other layers. If another layer type is placed between them, each layer is blended separately and later layers are visible through earlier ones.",
11417
11417
  transition: true,
11418
11418
  "sdk-support": {
11419
11419
  "basic functionality": {
@@ -15050,7 +15050,10 @@
15050
15050
 
15051
15051
  const FQIDSeparator = "";
15052
15052
  function makeConfigFQID(id, ownScope, contextScope) {
15053
- return [id, ownScope, contextScope].filter(Boolean).join(FQIDSeparator);
15053
+ let fqid = id || "";
15054
+ if (ownScope) fqid = fqid ? fqid + FQIDSeparator + ownScope : ownScope;
15055
+ if (contextScope) fqid = fqid ? fqid + FQIDSeparator + contextScope : contextScope;
15056
+ return fqid;
15054
15057
  }
15055
15058
  function coerceValue(type, value) {
15056
15059
  switch (type) {
@@ -15131,7 +15134,9 @@
15131
15134
  let result = defaultValue;
15132
15135
  if (value) {
15133
15136
  const originalScope = ctx.scope;
15134
- ctx.scope = (originalScope || "").split(FQIDSeparator).slice(1).join(FQIDSeparator);
15137
+ const scope = originalScope || "";
15138
+ const sep = scope.indexOf(FQIDSeparator);
15139
+ ctx.scope = sep >= 0 ? scope.slice(sep + 1) : "";
15135
15140
  result = value.evaluate(ctx);
15136
15141
  ctx.scope = originalScope;
15137
15142
  }