@mapbox/mapbox-gl-style-spec 14.17.0-beta.2 → 14.17.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/index.d.ts CHANGED
@@ -1243,118 +1243,49 @@ type BuildingLayerSpecification = {
1243
1243
  "filter"?: FilterSpecification;
1244
1244
  "layout"?: {
1245
1245
  "visibility"?: "visible" | "none" | ExpressionSpecification;
1246
- /**
1247
- * @experimental This property is experimental and subject to change in future versions.
1248
- */
1249
1246
  "building-facade"?: DataDrivenPropertyValueSpecification<boolean>;
1250
- /**
1251
- * @experimental This property is experimental and subject to change in future versions.
1252
- */
1253
1247
  "building-facade-floors"?: DataDrivenPropertyValueSpecification<number>;
1254
- /**
1255
- * @experimental This property is experimental and subject to change in future versions.
1256
- */
1257
1248
  "building-facade-unit-width"?: DataDrivenPropertyValueSpecification<number>;
1258
- /**
1259
- * @experimental This property is experimental and subject to change in future versions.
1260
- */
1261
1249
  "building-facade-window"?: DataDrivenPropertyValueSpecification<[
1262
1250
  number,
1263
1251
  number
1264
1252
  ]>;
1265
- /**
1266
- * @experimental This property is experimental and subject to change in future versions.
1267
- */
1268
1253
  "building-roof-shape"?: DataDrivenPropertyValueSpecification<"flat" | "hipped" | "gabled" | "parapet" | "mansard" | "skillion" | "pyramidal">;
1269
- /**
1270
- * @experimental This property is experimental and subject to change in future versions.
1271
- */
1272
1254
  "building-height"?: DataDrivenPropertyValueSpecification<number>;
1273
1255
  "building-height-transition"?: TransitionSpecification;
1274
- /**
1275
- * @experimental This property is experimental and subject to change in future versions.
1276
- */
1277
1256
  "building-base"?: DataDrivenPropertyValueSpecification<number>;
1278
1257
  "building-base-transition"?: TransitionSpecification;
1279
- /**
1280
- * @experimental This property is experimental and subject to change in future versions.
1281
- */
1282
1258
  "building-flood-light-wall-radius"?: DataDrivenPropertyValueSpecification<number>;
1283
1259
  "building-flood-light-wall-radius-transition"?: TransitionSpecification;
1284
- /**
1285
- * @experimental This property is experimental and subject to change in future versions.
1286
- */
1287
1260
  "building-flood-light-ground-radius"?: DataDrivenPropertyValueSpecification<number>;
1288
1261
  "building-flood-light-ground-radius-transition"?: TransitionSpecification;
1289
- /**
1290
- * @experimental This property is experimental and subject to change in future versions.
1291
- */
1292
1262
  "building-flip-roof-orientation"?: DataDrivenPropertyValueSpecification<boolean>;
1293
1263
  "building-flip-roof-orientation-transition"?: TransitionSpecification;
1294
1264
  };
1295
1265
  "paint"?: {
1296
- /**
1297
- * @experimental This property is experimental and subject to change in future versions.
1298
- */
1299
1266
  "building-opacity"?: PropertyValueSpecification<number>;
1300
1267
  "building-opacity-transition"?: TransitionSpecification;
1301
- /**
1302
- * @experimental This property is experimental and subject to change in future versions.
1303
- */
1304
1268
  "building-ambient-occlusion-intensity"?: ExpressionSpecification;
1305
1269
  "building-ambient-occlusion-intensity-transition"?: TransitionSpecification;
1306
- /**
1307
- * @experimental This property is experimental and subject to change in future versions.
1308
- */
1309
1270
  "building-ambient-occlusion-ground-intensity"?: PropertyValueSpecification<number>;
1310
1271
  "building-ambient-occlusion-ground-intensity-transition"?: TransitionSpecification;
1311
- /**
1312
- * @experimental This property is experimental and subject to change in future versions.
1313
- */
1314
1272
  "building-ambient-occlusion-ground-radius"?: PropertyValueSpecification<number>;
1315
1273
  "building-ambient-occlusion-ground-radius-transition"?: TransitionSpecification;
1316
- /**
1317
- * @experimental This property is experimental and subject to change in future versions.
1318
- */
1319
1274
  "building-ambient-occlusion-ground-attenuation"?: PropertyValueSpecification<number>;
1320
1275
  "building-ambient-occlusion-ground-attenuation-transition"?: TransitionSpecification;
1321
- /**
1322
- * @experimental This property is experimental and subject to change in future versions.
1323
- */
1324
1276
  "building-vertical-scale"?: PropertyValueSpecification<number>;
1325
1277
  "building-vertical-scale-transition"?: TransitionSpecification;
1326
- /**
1327
- * @experimental This property is experimental and subject to change in future versions.
1328
- */
1329
1278
  "building-cast-shadows"?: boolean;
1330
- /**
1331
- * @experimental This property is experimental and subject to change in future versions.
1332
- */
1333
1279
  "building-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
1334
1280
  "building-color-use-theme"?: PropertyValueSpecification<string>;
1335
- /**
1336
- * @experimental This property is experimental and subject to change in future versions.
1337
- */
1338
1281
  "building-emissive-strength"?: DataDrivenPropertyValueSpecification<number>;
1339
- /**
1340
- * @experimental This property is experimental and subject to change in future versions.
1341
- */
1342
1282
  "building-facade-emissive-chance"?: PropertyValueSpecification<number>;
1343
1283
  "building-cutoff-fade-range"?: ExpressionSpecification;
1344
- /**
1345
- * @experimental This property is experimental and subject to change in future versions.
1346
- */
1347
1284
  "building-flood-light-color"?: PropertyValueSpecification<ColorSpecification>;
1348
1285
  "building-flood-light-color-transition"?: TransitionSpecification;
1349
1286
  "building-flood-light-color-use-theme"?: PropertyValueSpecification<string>;
1350
- /**
1351
- * @experimental This property is experimental and subject to change in future versions.
1352
- */
1353
1287
  "building-flood-light-intensity"?: PropertyValueSpecification<number>;
1354
1288
  "building-flood-light-intensity-transition"?: TransitionSpecification;
1355
- /**
1356
- * @experimental This property is experimental and subject to change in future versions.
1357
- */
1358
1289
  "building-flood-light-ground-attenuation"?: PropertyValueSpecification<number>;
1359
1290
  "building-flood-light-ground-attenuation-transition"?: TransitionSpecification;
1360
1291
  };
@@ -2219,7 +2150,7 @@ declare function createFunction(parameters: any, propertySpec: any): {
2219
2150
  interpolationType: {
2220
2151
  name: string;
2221
2152
  };
2222
- interpolationFactor: any;
2153
+ interpolationFactor: (input: number, lower: number, upper: number) => number;
2223
2154
  zoomStops: any[];
2224
2155
  evaluate({ zoom }: {
2225
2156
  zoom: any;
@@ -2230,7 +2161,7 @@ declare function createFunction(parameters: any, propertySpec: any): {
2230
2161
  name: string;
2231
2162
  base: any;
2232
2163
  };
2233
- interpolationFactor: any;
2164
+ interpolationFactor: (input: number, lower: number, upper: number) => number;
2234
2165
  zoomStops: any;
2235
2166
  evaluate: ({ zoom }: {
2236
2167
  zoom: any;
package/dist/index.es.js CHANGED
@@ -1495,7 +1495,6 @@ var layer = {
1495
1495
  android: "11.16.0",
1496
1496
  ios: "11.16.0"
1497
1497
  },
1498
- experimental: true,
1499
1498
  "private": true
1500
1499
  },
1501
1500
  raster: {
@@ -2088,6 +2087,7 @@ var layout_building = {
2088
2087
  },
2089
2088
  "default": "visible",
2090
2089
  doc: "Whether this layer is displayed.",
2090
+ "private": true,
2091
2091
  "sdk-support": {
2092
2092
  "basic functionality": {
2093
2093
  js: "3.16.0",
@@ -2104,7 +2104,6 @@ var layout_building = {
2104
2104
  type: "boolean",
2105
2105
  "default": false,
2106
2106
  doc: "Whether to render facade details on the buildings.",
2107
- experimental: true,
2108
2107
  "private": true,
2109
2108
  "sdk-support": {
2110
2109
  "basic functionality": {
@@ -2132,7 +2131,7 @@ var layout_building = {
2132
2131
  maximum: 200,
2133
2132
  "default": 3,
2134
2133
  doc: "Number of floors created when building-facade is enabled.",
2135
- experimental: true,
2134
+ "private": true,
2136
2135
  "property-type": "data-driven",
2137
2136
  "sdk-support": {
2138
2137
  "basic functionality": {
@@ -2162,7 +2161,7 @@ var layout_building = {
2162
2161
  maximum: 20,
2163
2162
  "default": 3.1,
2164
2163
  doc: "Width of a floor. Think of this as measure how wide each unit should be. This effectively determines the number of units per each floor. Note that this does not affect the ground level facades (i.e. number of windows).",
2165
- experimental: true,
2164
+ "private": true,
2166
2165
  "property-type": "data-driven",
2167
2166
  "sdk-support": {
2168
2167
  "basic functionality": {
@@ -2197,7 +2196,7 @@ var layout_building = {
2197
2196
  0.9
2198
2197
  ],
2199
2198
  doc: "Given as fractions, specifies the percentage of unit area covered by windows when building-facade is enabled. Note that the area of a unit is ultimately determined by `building-facade-unit-width` and `building-facade-floors`.",
2200
- experimental: true,
2199
+ "private": true,
2201
2200
  "property-type": "data-driven",
2202
2201
  "sdk-support": {
2203
2202
  "basic functionality": {
@@ -2248,7 +2247,6 @@ var layout_building = {
2248
2247
  },
2249
2248
  "default": "flat",
2250
2249
  doc: "Roof type to use for the procedural buildings.",
2251
- experimental: true,
2252
2250
  "private": true,
2253
2251
  "sdk-support": {
2254
2252
  "basic functionality": {
@@ -2277,7 +2275,6 @@ var layout_building = {
2277
2275
  units: "meters",
2278
2276
  doc: "The height of the procedural buildings.",
2279
2277
  transition: true,
2280
- experimental: true,
2281
2278
  "private": true,
2282
2279
  "sdk-support": {
2283
2280
  "basic functionality": {
@@ -2306,7 +2303,6 @@ var layout_building = {
2306
2303
  requires: [
2307
2304
  "building-height"
2308
2305
  ],
2309
- experimental: true,
2310
2306
  "private": true,
2311
2307
  "sdk-support": {
2312
2308
  "basic functionality": {
@@ -2328,7 +2324,7 @@ var layout_building = {
2328
2324
  "building-flood-light-wall-radius": {
2329
2325
  "property-type": "data-driven",
2330
2326
  type: "number",
2331
- experimental: true,
2327
+ "private": true,
2332
2328
  units: "meters",
2333
2329
  "default": 0,
2334
2330
  minimum: 0,
@@ -2360,7 +2356,7 @@ var layout_building = {
2360
2356
  "building-flood-light-ground-radius": {
2361
2357
  "property-type": "data-driven",
2362
2358
  type: "number",
2363
- experimental: true,
2359
+ "private": true,
2364
2360
  units: "meters",
2365
2361
  "default": 0,
2366
2362
  doc: "The extent of the flood light effect on the ground beneath the buildings in meters.",
@@ -2391,7 +2387,7 @@ var layout_building = {
2391
2387
  "building-flip-roof-orientation": {
2392
2388
  "property-type": "data-driven",
2393
2389
  type: "boolean",
2394
- experimental: true,
2390
+ "private": true,
2395
2391
  units: "meters",
2396
2392
  "default": false,
2397
2393
  doc: "Flips the orientation of the roofs for the buildings. This only affects simple geometries. Namely buildings whose footprints form a quadrilateral. By default (false), the roof ridge takes the direction of the longer edge of the quadrilateral.",
@@ -7108,7 +7104,6 @@ var paint_building = {
7108
7104
  maximum: 1,
7109
7105
  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.",
7110
7106
  transition: true,
7111
- experimental: true,
7112
7107
  "private": true,
7113
7108
  "sdk-support": {
7114
7109
  "basic functionality": {
@@ -7131,7 +7126,6 @@ var paint_building = {
7131
7126
  "default": 0,
7132
7127
  minimum: 0,
7133
7128
  maximum: 1,
7134
- experimental: true,
7135
7129
  "private": true,
7136
7130
  expression: {
7137
7131
  interpolated: false,
@@ -7154,7 +7148,6 @@ var paint_building = {
7154
7148
  "default": 0,
7155
7149
  minimum: 0,
7156
7150
  maximum: 1,
7157
- experimental: true,
7158
7151
  "private": true,
7159
7152
  expression: {
7160
7153
  interpolated: true,
@@ -7175,7 +7168,6 @@ var paint_building = {
7175
7168
  "building-ambient-occlusion-ground-radius": {
7176
7169
  "property-type": "data-constant",
7177
7170
  type: "number",
7178
- experimental: true,
7179
7171
  "private": true,
7180
7172
  "default": 3,
7181
7173
  minimum: 0,
@@ -7198,7 +7190,6 @@ var paint_building = {
7198
7190
  "building-ambient-occlusion-ground-attenuation": {
7199
7191
  "property-type": "data-constant",
7200
7192
  type: "number",
7201
- experimental: true,
7202
7193
  "private": true,
7203
7194
  "default": 0.69,
7204
7195
  minimum: 0,
@@ -7222,7 +7213,6 @@ var paint_building = {
7222
7213
  "building-vertical-scale": {
7223
7214
  "property-type": "data-constant",
7224
7215
  type: "number",
7225
- experimental: true,
7226
7216
  "private": true,
7227
7217
  "default": 1,
7228
7218
  minimum: 0,
@@ -7247,7 +7237,6 @@ var paint_building = {
7247
7237
  "default": true,
7248
7238
  doc: "Enable/Disable shadow casting for this layer",
7249
7239
  transition: false,
7250
- experimental: true,
7251
7240
  "private": true,
7252
7241
  "sdk-support": {
7253
7242
  "basic functionality": {
@@ -7262,7 +7251,6 @@ var paint_building = {
7262
7251
  type: "color",
7263
7252
  "default": "rgba(193, 154, 127, 1)",
7264
7253
  doc: "Color buildings. This can be styled using different building parts (e.g. window, wall, roof).",
7265
- experimental: true,
7266
7254
  "private": true,
7267
7255
  "use-theme": true,
7268
7256
  transition: false,
@@ -7295,7 +7283,6 @@ var paint_building = {
7295
7283
  maximum: 5,
7296
7284
  units: "intensity",
7297
7285
  doc: "Controls the intensity of light emitted on the source features. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors).",
7298
- experimental: true,
7299
7286
  "private": true,
7300
7287
  "sdk-support": {
7301
7288
  "basic functionality": {
@@ -7325,7 +7312,7 @@ var paint_building = {
7325
7312
  minimum: 0,
7326
7313
  maximum: 1,
7327
7314
  doc: "Given as a fraction specifies the likelihood for the facades to be emissive when building-facade is enabled. A value of 0.0 means the window will never be emissive, while a value of 1.0 means the window will always be emissive. This can be used to create variations on a building where some windows are lit and some are not.",
7328
- experimental: true,
7315
+ "private": true,
7329
7316
  "property-type": "data-constant",
7330
7317
  "sdk-support": {
7331
7318
  "basic functionality": {
@@ -7344,6 +7331,7 @@ var paint_building = {
7344
7331
  },
7345
7332
  "building-cutoff-fade-range": {
7346
7333
  type: "number",
7334
+ "private": true,
7347
7335
  "default": 0,
7348
7336
  minimum: 0,
7349
7337
  maximum: 1,
@@ -7364,7 +7352,7 @@ var paint_building = {
7364
7352
  "building-flood-light-color": {
7365
7353
  "property-type": "data-constant",
7366
7354
  type: "color",
7367
- experimental: true,
7355
+ "private": true,
7368
7356
  "default": "#ffffff",
7369
7357
  doc: "The color of the flood light effect on the walls of the buildings.",
7370
7358
  requires: [
@@ -7390,7 +7378,7 @@ var paint_building = {
7390
7378
  "building-flood-light-intensity": {
7391
7379
  "property-type": "data-constant",
7392
7380
  type: "number",
7393
- experimental: true,
7381
+ "private": true,
7394
7382
  "default": 0,
7395
7383
  minimum: 0,
7396
7384
  maximum: 1,
@@ -7417,7 +7405,7 @@ var paint_building = {
7417
7405
  "building-flood-light-ground-attenuation": {
7418
7406
  "property-type": "data-constant",
7419
7407
  type: "number",
7420
- experimental: true,
7408
+ "private": true,
7421
7409
  "default": 0.69,
7422
7410
  minimum: 0,
7423
7411
  maximum: 1,
@@ -19194,7 +19182,6 @@ function createFunction(parameters, propertySpec) {
19194
19182
  return {
19195
19183
  kind: 'composite',
19196
19184
  interpolationType,
19197
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
19198
19185
  interpolationFactor: Interpolate.interpolationFactor.bind(void 0, interpolationType),
19199
19186
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
19200
19187
  zoomStops: featureFunctionStops.map(s => s[0]),
@@ -19215,7 +19202,6 @@ function createFunction(parameters, propertySpec) {
19215
19202
  return {
19216
19203
  kind: 'camera',
19217
19204
  interpolationType,
19218
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
19219
19205
  interpolationFactor: Interpolate.interpolationFactor.bind(void 0, interpolationType),
19220
19206
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
19221
19207
  zoomStops: parameters.stops.map(s => s[0]),
@@ -19367,10 +19353,11 @@ class StyleExpression {
19367
19353
  }
19368
19354
  return val;
19369
19355
  } catch (e) {
19370
- if (!this._warningHistory[e.message]) {
19371
- this._warningHistory[e.message] = true;
19356
+ const error2 = e;
19357
+ if (!this._warningHistory[error2.message]) {
19358
+ this._warningHistory[error2.message] = true;
19372
19359
  if (typeof console !== 'undefined') {
19373
- console.warn(`Failed to evaluate expression "${ JSON.stringify(this.expression.serialize()) }". ${ e.message }`);
19360
+ console.warn(`Failed to evaluate expression "${ JSON.stringify(this.expression.serialize()) }". ${ error2.message }`);
19374
19361
  }
19375
19362
  }
19376
19363
  return this._defaultValue;