@mapbox/mapbox-gl-style-spec 14.17.0-beta.1 → 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
@@ -524,9 +524,6 @@ type VectorSourceSpecification = {
524
524
  number,
525
525
  number
526
526
  ];
527
- /**
528
- * @experimental This property is experimental and subject to change in future versions.
529
- */
530
527
  "extra_bounds"?: Array<[
531
528
  number,
532
529
  number,
@@ -551,9 +548,6 @@ type RasterSourceSpecification = {
551
548
  number,
552
549
  number
553
550
  ];
554
- /**
555
- * @experimental This property is experimental and subject to change in future versions.
556
- */
557
551
  "extra_bounds"?: Array<[
558
552
  number,
559
553
  number,
@@ -578,9 +572,6 @@ type RasterDEMSourceSpecification = {
578
572
  number,
579
573
  number
580
574
  ];
581
- /**
582
- * @experimental This property is experimental and subject to change in future versions.
583
- */
584
575
  "extra_bounds"?: Array<[
585
576
  number,
586
577
  number,
@@ -605,9 +596,6 @@ type RasterArraySourceSpecification = {
605
596
  number,
606
597
  number
607
598
  ];
608
- /**
609
- * @experimental This property is experimental and subject to change in future versions.
610
- */
611
599
  "extra_bounds"?: Array<[
612
600
  number,
613
601
  number,
@@ -895,7 +883,7 @@ type LineLayerSpecification = {
895
883
  "line-trim-color"?: PropertyValueSpecification<ColorSpecification>;
896
884
  "line-trim-color-transition"?: TransitionSpecification;
897
885
  "line-trim-color-use-theme"?: PropertyValueSpecification<string>;
898
- "line-emissive-strength"?: PropertyValueSpecification<number>;
886
+ "line-emissive-strength"?: DataDrivenPropertyValueSpecification<number>;
899
887
  "line-emissive-strength-transition"?: TransitionSpecification;
900
888
  "line-border-width"?: DataDrivenPropertyValueSpecification<number>;
901
889
  "line-border-width-transition"?: TransitionSpecification;
@@ -1255,118 +1243,49 @@ type BuildingLayerSpecification = {
1255
1243
  "filter"?: FilterSpecification;
1256
1244
  "layout"?: {
1257
1245
  "visibility"?: "visible" | "none" | ExpressionSpecification;
1258
- /**
1259
- * @experimental This property is experimental and subject to change in future versions.
1260
- */
1261
1246
  "building-facade"?: DataDrivenPropertyValueSpecification<boolean>;
1262
- /**
1263
- * @experimental This property is experimental and subject to change in future versions.
1264
- */
1265
1247
  "building-facade-floors"?: DataDrivenPropertyValueSpecification<number>;
1266
- /**
1267
- * @experimental This property is experimental and subject to change in future versions.
1268
- */
1269
1248
  "building-facade-unit-width"?: DataDrivenPropertyValueSpecification<number>;
1270
- /**
1271
- * @experimental This property is experimental and subject to change in future versions.
1272
- */
1273
1249
  "building-facade-window"?: DataDrivenPropertyValueSpecification<[
1274
1250
  number,
1275
1251
  number
1276
1252
  ]>;
1277
- /**
1278
- * @experimental This property is experimental and subject to change in future versions.
1279
- */
1280
1253
  "building-roof-shape"?: DataDrivenPropertyValueSpecification<"flat" | "hipped" | "gabled" | "parapet" | "mansard" | "skillion" | "pyramidal">;
1281
- /**
1282
- * @experimental This property is experimental and subject to change in future versions.
1283
- */
1284
1254
  "building-height"?: DataDrivenPropertyValueSpecification<number>;
1285
1255
  "building-height-transition"?: TransitionSpecification;
1286
- /**
1287
- * @experimental This property is experimental and subject to change in future versions.
1288
- */
1289
1256
  "building-base"?: DataDrivenPropertyValueSpecification<number>;
1290
1257
  "building-base-transition"?: TransitionSpecification;
1291
- /**
1292
- * @experimental This property is experimental and subject to change in future versions.
1293
- */
1294
1258
  "building-flood-light-wall-radius"?: DataDrivenPropertyValueSpecification<number>;
1295
1259
  "building-flood-light-wall-radius-transition"?: TransitionSpecification;
1296
- /**
1297
- * @experimental This property is experimental and subject to change in future versions.
1298
- */
1299
1260
  "building-flood-light-ground-radius"?: DataDrivenPropertyValueSpecification<number>;
1300
1261
  "building-flood-light-ground-radius-transition"?: TransitionSpecification;
1301
- /**
1302
- * @experimental This property is experimental and subject to change in future versions.
1303
- */
1304
1262
  "building-flip-roof-orientation"?: DataDrivenPropertyValueSpecification<boolean>;
1305
1263
  "building-flip-roof-orientation-transition"?: TransitionSpecification;
1306
1264
  };
1307
1265
  "paint"?: {
1308
- /**
1309
- * @experimental This property is experimental and subject to change in future versions.
1310
- */
1311
1266
  "building-opacity"?: PropertyValueSpecification<number>;
1312
1267
  "building-opacity-transition"?: TransitionSpecification;
1313
- /**
1314
- * @experimental This property is experimental and subject to change in future versions.
1315
- */
1316
1268
  "building-ambient-occlusion-intensity"?: ExpressionSpecification;
1317
1269
  "building-ambient-occlusion-intensity-transition"?: TransitionSpecification;
1318
- /**
1319
- * @experimental This property is experimental and subject to change in future versions.
1320
- */
1321
1270
  "building-ambient-occlusion-ground-intensity"?: PropertyValueSpecification<number>;
1322
1271
  "building-ambient-occlusion-ground-intensity-transition"?: TransitionSpecification;
1323
- /**
1324
- * @experimental This property is experimental and subject to change in future versions.
1325
- */
1326
1272
  "building-ambient-occlusion-ground-radius"?: PropertyValueSpecification<number>;
1327
1273
  "building-ambient-occlusion-ground-radius-transition"?: TransitionSpecification;
1328
- /**
1329
- * @experimental This property is experimental and subject to change in future versions.
1330
- */
1331
1274
  "building-ambient-occlusion-ground-attenuation"?: PropertyValueSpecification<number>;
1332
1275
  "building-ambient-occlusion-ground-attenuation-transition"?: TransitionSpecification;
1333
- /**
1334
- * @experimental This property is experimental and subject to change in future versions.
1335
- */
1336
1276
  "building-vertical-scale"?: PropertyValueSpecification<number>;
1337
1277
  "building-vertical-scale-transition"?: TransitionSpecification;
1338
- /**
1339
- * @experimental This property is experimental and subject to change in future versions.
1340
- */
1341
1278
  "building-cast-shadows"?: boolean;
1342
- /**
1343
- * @experimental This property is experimental and subject to change in future versions.
1344
- */
1345
1279
  "building-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
1346
1280
  "building-color-use-theme"?: PropertyValueSpecification<string>;
1347
- /**
1348
- * @experimental This property is experimental and subject to change in future versions.
1349
- */
1350
1281
  "building-emissive-strength"?: DataDrivenPropertyValueSpecification<number>;
1351
- /**
1352
- * @experimental This property is experimental and subject to change in future versions.
1353
- */
1354
1282
  "building-facade-emissive-chance"?: PropertyValueSpecification<number>;
1355
1283
  "building-cutoff-fade-range"?: ExpressionSpecification;
1356
- /**
1357
- * @experimental This property is experimental and subject to change in future versions.
1358
- */
1359
1284
  "building-flood-light-color"?: PropertyValueSpecification<ColorSpecification>;
1360
1285
  "building-flood-light-color-transition"?: TransitionSpecification;
1361
1286
  "building-flood-light-color-use-theme"?: PropertyValueSpecification<string>;
1362
- /**
1363
- * @experimental This property is experimental and subject to change in future versions.
1364
- */
1365
1287
  "building-flood-light-intensity"?: PropertyValueSpecification<number>;
1366
1288
  "building-flood-light-intensity-transition"?: TransitionSpecification;
1367
- /**
1368
- * @experimental This property is experimental and subject to change in future versions.
1369
- */
1370
1289
  "building-flood-light-ground-attenuation"?: PropertyValueSpecification<number>;
1371
1290
  "building-flood-light-ground-attenuation-transition"?: TransitionSpecification;
1372
1291
  };
@@ -1895,11 +1814,14 @@ declare class ImageId {
1895
1814
  type StringifiedImageVariant = Brand<string, "ImageVariant">;
1896
1815
  type RasterizationOptions = {
1897
1816
  params?: Record<string, Color>;
1898
- transform?: DOMMatrix;
1817
+ sx?: number;
1818
+ sy?: number;
1899
1819
  };
1900
- declare class ImageVariant {
1820
+ declare class ImageVariant implements RasterizationOptions {
1901
1821
  id: ImageId;
1902
- options: RasterizationOptions;
1822
+ params?: Record<string, Color>;
1823
+ sx: number;
1824
+ sy: number;
1903
1825
  constructor(id: string | ImageIdSpec, options?: RasterizationOptions);
1904
1826
  toString(): StringifiedImageVariant;
1905
1827
  static parse(str: StringifiedImageVariant): ImageVariant | null;
@@ -2228,7 +2150,7 @@ declare function createFunction(parameters: any, propertySpec: any): {
2228
2150
  interpolationType: {
2229
2151
  name: string;
2230
2152
  };
2231
- interpolationFactor: any;
2153
+ interpolationFactor: (input: number, lower: number, upper: number) => number;
2232
2154
  zoomStops: any[];
2233
2155
  evaluate({ zoom }: {
2234
2156
  zoom: any;
@@ -2239,7 +2161,7 @@ declare function createFunction(parameters: any, propertySpec: any): {
2239
2161
  name: string;
2240
2162
  base: any;
2241
2163
  };
2242
- interpolationFactor: any;
2164
+ interpolationFactor: (input: number, lower: number, upper: number) => number;
2243
2165
  zoomStops: any;
2244
2166
  evaluate: ({ zoom }: {
2245
2167
  zoom: any;
package/dist/index.es.js CHANGED
@@ -800,7 +800,6 @@ var source_vector = {
800
800
  length: 4,
801
801
  doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
802
802
  },
803
- experimental: true,
804
803
  doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
805
804
  },
806
805
  scheme: {
@@ -890,7 +889,6 @@ var source_raster = {
890
889
  length: 4,
891
890
  doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
892
891
  },
893
- experimental: true,
894
892
  doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
895
893
  },
896
894
  minzoom: {
@@ -982,7 +980,6 @@ var source_raster_dem = {
982
980
  length: 4,
983
981
  doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
984
982
  },
985
- experimental: true,
986
983
  doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
987
984
  },
988
985
  minzoom: {
@@ -1075,7 +1072,6 @@ var source_raster_array = {
1075
1072
  length: 4,
1076
1073
  doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
1077
1074
  },
1078
- experimental: true,
1079
1075
  doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
1080
1076
  },
1081
1077
  minzoom: {
@@ -1499,7 +1495,6 @@ var layer = {
1499
1495
  android: "11.16.0",
1500
1496
  ios: "11.16.0"
1501
1497
  },
1502
- experimental: true,
1503
1498
  "private": true
1504
1499
  },
1505
1500
  raster: {
@@ -2092,6 +2087,7 @@ var layout_building = {
2092
2087
  },
2093
2088
  "default": "visible",
2094
2089
  doc: "Whether this layer is displayed.",
2090
+ "private": true,
2095
2091
  "sdk-support": {
2096
2092
  "basic functionality": {
2097
2093
  js: "3.16.0",
@@ -2108,7 +2104,6 @@ var layout_building = {
2108
2104
  type: "boolean",
2109
2105
  "default": false,
2110
2106
  doc: "Whether to render facade details on the buildings.",
2111
- experimental: true,
2112
2107
  "private": true,
2113
2108
  "sdk-support": {
2114
2109
  "basic functionality": {
@@ -2136,7 +2131,7 @@ var layout_building = {
2136
2131
  maximum: 200,
2137
2132
  "default": 3,
2138
2133
  doc: "Number of floors created when building-facade is enabled.",
2139
- experimental: true,
2134
+ "private": true,
2140
2135
  "property-type": "data-driven",
2141
2136
  "sdk-support": {
2142
2137
  "basic functionality": {
@@ -2166,7 +2161,7 @@ var layout_building = {
2166
2161
  maximum: 20,
2167
2162
  "default": 3.1,
2168
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).",
2169
- experimental: true,
2164
+ "private": true,
2170
2165
  "property-type": "data-driven",
2171
2166
  "sdk-support": {
2172
2167
  "basic functionality": {
@@ -2201,7 +2196,7 @@ var layout_building = {
2201
2196
  0.9
2202
2197
  ],
2203
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`.",
2204
- experimental: true,
2199
+ "private": true,
2205
2200
  "property-type": "data-driven",
2206
2201
  "sdk-support": {
2207
2202
  "basic functionality": {
@@ -2252,7 +2247,6 @@ var layout_building = {
2252
2247
  },
2253
2248
  "default": "flat",
2254
2249
  doc: "Roof type to use for the procedural buildings.",
2255
- experimental: true,
2256
2250
  "private": true,
2257
2251
  "sdk-support": {
2258
2252
  "basic functionality": {
@@ -2281,7 +2275,6 @@ var layout_building = {
2281
2275
  units: "meters",
2282
2276
  doc: "The height of the procedural buildings.",
2283
2277
  transition: true,
2284
- experimental: true,
2285
2278
  "private": true,
2286
2279
  "sdk-support": {
2287
2280
  "basic functionality": {
@@ -2310,7 +2303,6 @@ var layout_building = {
2310
2303
  requires: [
2311
2304
  "building-height"
2312
2305
  ],
2313
- experimental: true,
2314
2306
  "private": true,
2315
2307
  "sdk-support": {
2316
2308
  "basic functionality": {
@@ -2332,7 +2324,7 @@ var layout_building = {
2332
2324
  "building-flood-light-wall-radius": {
2333
2325
  "property-type": "data-driven",
2334
2326
  type: "number",
2335
- experimental: true,
2327
+ "private": true,
2336
2328
  units: "meters",
2337
2329
  "default": 0,
2338
2330
  minimum: 0,
@@ -2364,7 +2356,7 @@ var layout_building = {
2364
2356
  "building-flood-light-ground-radius": {
2365
2357
  "property-type": "data-driven",
2366
2358
  type: "number",
2367
- experimental: true,
2359
+ "private": true,
2368
2360
  units: "meters",
2369
2361
  "default": 0,
2370
2362
  doc: "The extent of the flood light effect on the ground beneath the buildings in meters.",
@@ -2395,7 +2387,7 @@ var layout_building = {
2395
2387
  "building-flip-roof-orientation": {
2396
2388
  "property-type": "data-driven",
2397
2389
  type: "boolean",
2398
- experimental: true,
2390
+ "private": true,
2399
2391
  units: "meters",
2400
2392
  "default": false,
2401
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.",
@@ -3554,6 +3546,7 @@ var layout_symbol = {
3554
3546
  requires: [
3555
3547
  "text-field"
3556
3548
  ],
3549
+ appearance: true,
3557
3550
  "sdk-support": {
3558
3551
  "basic functionality": {
3559
3552
  js: "0.10.0",
@@ -3957,6 +3950,7 @@ var layout_symbol = {
3957
3950
  requires: [
3958
3951
  "text-field"
3959
3952
  ],
3953
+ appearance: true,
3960
3954
  "sdk-support": {
3961
3955
  "basic functionality": {
3962
3956
  js: "0.10.0",
@@ -4088,6 +4082,7 @@ var layout_symbol = {
4088
4082
  "!": "text-radial-offset"
4089
4083
  }
4090
4084
  ],
4085
+ appearance: true,
4091
4086
  "sdk-support": {
4092
4087
  "basic functionality": {
4093
4088
  js: "0.10.0",
@@ -7109,7 +7104,6 @@ var paint_building = {
7109
7104
  maximum: 1,
7110
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.",
7111
7106
  transition: true,
7112
- experimental: true,
7113
7107
  "private": true,
7114
7108
  "sdk-support": {
7115
7109
  "basic functionality": {
@@ -7132,7 +7126,6 @@ var paint_building = {
7132
7126
  "default": 0,
7133
7127
  minimum: 0,
7134
7128
  maximum: 1,
7135
- experimental: true,
7136
7129
  "private": true,
7137
7130
  expression: {
7138
7131
  interpolated: false,
@@ -7155,7 +7148,6 @@ var paint_building = {
7155
7148
  "default": 0,
7156
7149
  minimum: 0,
7157
7150
  maximum: 1,
7158
- experimental: true,
7159
7151
  "private": true,
7160
7152
  expression: {
7161
7153
  interpolated: true,
@@ -7176,7 +7168,6 @@ var paint_building = {
7176
7168
  "building-ambient-occlusion-ground-radius": {
7177
7169
  "property-type": "data-constant",
7178
7170
  type: "number",
7179
- experimental: true,
7180
7171
  "private": true,
7181
7172
  "default": 3,
7182
7173
  minimum: 0,
@@ -7199,7 +7190,6 @@ var paint_building = {
7199
7190
  "building-ambient-occlusion-ground-attenuation": {
7200
7191
  "property-type": "data-constant",
7201
7192
  type: "number",
7202
- experimental: true,
7203
7193
  "private": true,
7204
7194
  "default": 0.69,
7205
7195
  minimum: 0,
@@ -7223,7 +7213,6 @@ var paint_building = {
7223
7213
  "building-vertical-scale": {
7224
7214
  "property-type": "data-constant",
7225
7215
  type: "number",
7226
- experimental: true,
7227
7216
  "private": true,
7228
7217
  "default": 1,
7229
7218
  minimum: 0,
@@ -7248,7 +7237,6 @@ var paint_building = {
7248
7237
  "default": true,
7249
7238
  doc: "Enable/Disable shadow casting for this layer",
7250
7239
  transition: false,
7251
- experimental: true,
7252
7240
  "private": true,
7253
7241
  "sdk-support": {
7254
7242
  "basic functionality": {
@@ -7263,7 +7251,6 @@ var paint_building = {
7263
7251
  type: "color",
7264
7252
  "default": "rgba(193, 154, 127, 1)",
7265
7253
  doc: "Color buildings. This can be styled using different building parts (e.g. window, wall, roof).",
7266
- experimental: true,
7267
7254
  "private": true,
7268
7255
  "use-theme": true,
7269
7256
  transition: false,
@@ -7296,7 +7283,6 @@ var paint_building = {
7296
7283
  maximum: 5,
7297
7284
  units: "intensity",
7298
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).",
7299
- experimental: true,
7300
7286
  "private": true,
7301
7287
  "sdk-support": {
7302
7288
  "basic functionality": {
@@ -7326,7 +7312,7 @@ var paint_building = {
7326
7312
  minimum: 0,
7327
7313
  maximum: 1,
7328
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.",
7329
- experimental: true,
7315
+ "private": true,
7330
7316
  "property-type": "data-constant",
7331
7317
  "sdk-support": {
7332
7318
  "basic functionality": {
@@ -7345,6 +7331,7 @@ var paint_building = {
7345
7331
  },
7346
7332
  "building-cutoff-fade-range": {
7347
7333
  type: "number",
7334
+ "private": true,
7348
7335
  "default": 0,
7349
7336
  minimum: 0,
7350
7337
  maximum: 1,
@@ -7365,7 +7352,7 @@ var paint_building = {
7365
7352
  "building-flood-light-color": {
7366
7353
  "property-type": "data-constant",
7367
7354
  type: "color",
7368
- experimental: true,
7355
+ "private": true,
7369
7356
  "default": "#ffffff",
7370
7357
  doc: "The color of the flood light effect on the walls of the buildings.",
7371
7358
  requires: [
@@ -7391,7 +7378,7 @@ var paint_building = {
7391
7378
  "building-flood-light-intensity": {
7392
7379
  "property-type": "data-constant",
7393
7380
  type: "number",
7394
- experimental: true,
7381
+ "private": true,
7395
7382
  "default": 0,
7396
7383
  minimum: 0,
7397
7384
  maximum: 1,
@@ -7418,7 +7405,7 @@ var paint_building = {
7418
7405
  "building-flood-light-ground-attenuation": {
7419
7406
  "property-type": "data-constant",
7420
7407
  type: "number",
7421
- experimental: true,
7408
+ "private": true,
7422
7409
  "default": 0.69,
7423
7410
  minimum: 0,
7424
7411
  maximum: 1,
@@ -7944,6 +7931,11 @@ var paint_line = {
7944
7931
  js: "3.0.0",
7945
7932
  android: "11.0.0",
7946
7933
  ios: "11.0.0"
7934
+ },
7935
+ "data-driven styling": {
7936
+ js: "3.17.0",
7937
+ android: "11.17.0",
7938
+ ios: "11.17.0"
7947
7939
  }
7948
7940
  },
7949
7941
  expression: {
@@ -7953,7 +7945,7 @@ var paint_line = {
7953
7945
  "measure-light"
7954
7946
  ]
7955
7947
  },
7956
- "property-type": "data-constant"
7948
+ "property-type": "data-driven"
7957
7949
  },
7958
7950
  "line-border-width": {
7959
7951
  type: "number",
@@ -9792,7 +9784,8 @@ var paint_background = {
9792
9784
  expression: {
9793
9785
  interpolated: true,
9794
9786
  parameters: [
9795
- "zoom"
9787
+ "zoom",
9788
+ "measure-light"
9796
9789
  ]
9797
9790
  },
9798
9791
  "property-type": "data-constant"
@@ -13665,72 +13658,31 @@ class ImageId {
13665
13658
  class ImageVariant {
13666
13659
  constructor(id, options = {}) {
13667
13660
  this.id = ImageId.from(id);
13668
- this.options = Object.assign({}, options);
13669
- if (!options.transform) {
13670
- this.options.transform = new DOMMatrix([
13671
- 1,
13672
- 0,
13673
- 0,
13674
- 1,
13675
- 0,
13676
- 0
13677
- ]);
13678
- } else {
13679
- const {a, b, c, d, e, f} = options.transform;
13680
- this.options.transform = new DOMMatrix([
13681
- a,
13682
- b,
13683
- c,
13684
- d,
13685
- e,
13686
- f
13687
- ]);
13688
- }
13661
+ this.params = options.params;
13662
+ this.sx = options.sx || 1;
13663
+ this.sy = options.sy || 1;
13689
13664
  }
13690
13665
  toString() {
13691
- const {a, b, c, d, e, f} = this.options.transform;
13692
- const serialized = {
13693
- name: this.id.name,
13694
- iconsetId: this.id.iconsetId,
13695
- params: this.options.params,
13696
- transform: {
13697
- a,
13698
- b,
13699
- c,
13700
- d,
13701
- e,
13702
- f
13703
- }
13704
- };
13705
- return JSON.stringify(serialized);
13666
+ return JSON.stringify(this);
13706
13667
  }
13707
13668
  static parse(str) {
13708
- let name, iconsetId, params, transform;
13669
+ let id, params, sx, sy;
13709
13670
  try {
13710
- ({name, iconsetId, params, transform} = JSON.parse(str) || {});
13711
- } catch (e2) {
13671
+ ({id, params, sx, sy} = JSON.parse(str) || {});
13672
+ } catch (e) {
13712
13673
  return null;
13713
13674
  }
13714
- if (!name)
13675
+ if (!id)
13715
13676
  return null;
13716
- const {a, b, c, d, e, f} = transform || {};
13717
- return new ImageVariant({
13718
- name,
13719
- iconsetId
13720
- }, {
13677
+ return new ImageVariant(id, {
13721
13678
  params,
13722
- transform: new DOMMatrix([
13723
- a,
13724
- b,
13725
- c,
13726
- d,
13727
- e,
13728
- f
13729
- ])
13679
+ sx,
13680
+ sy
13730
13681
  });
13731
13682
  }
13732
- scaleSelf(factor, yFactor) {
13733
- this.options.transform.scaleSelf(factor, yFactor);
13683
+ scaleSelf(factor, yFactor = factor) {
13684
+ this.sx *= factor;
13685
+ this.sy *= yFactor;
13734
13686
  return this;
13735
13687
  }
13736
13688
  }
@@ -19230,7 +19182,6 @@ function createFunction(parameters, propertySpec) {
19230
19182
  return {
19231
19183
  kind: 'composite',
19232
19184
  interpolationType,
19233
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
19234
19185
  interpolationFactor: Interpolate.interpolationFactor.bind(void 0, interpolationType),
19235
19186
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
19236
19187
  zoomStops: featureFunctionStops.map(s => s[0]),
@@ -19251,7 +19202,6 @@ function createFunction(parameters, propertySpec) {
19251
19202
  return {
19252
19203
  kind: 'camera',
19253
19204
  interpolationType,
19254
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
19255
19205
  interpolationFactor: Interpolate.interpolationFactor.bind(void 0, interpolationType),
19256
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
19257
19207
  zoomStops: parameters.stops.map(s => s[0]),
@@ -19403,10 +19353,11 @@ class StyleExpression {
19403
19353
  }
19404
19354
  return val;
19405
19355
  } catch (e) {
19406
- if (!this._warningHistory[e.message]) {
19407
- this._warningHistory[e.message] = true;
19356
+ const error2 = e;
19357
+ if (!this._warningHistory[error2.message]) {
19358
+ this._warningHistory[error2.message] = true;
19408
19359
  if (typeof console !== 'undefined') {
19409
- 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 }`);
19410
19361
  }
19411
19362
  }
19412
19363
  return this._defaultValue;
@@ -22730,7 +22681,7 @@ var hasRequiredJsonlint;
22730
22681
  function requireJsonlint () {
22731
22682
  if (hasRequiredJsonlint) return jsonlint$1;
22732
22683
  hasRequiredJsonlint = 1;
22733
- (function (exports) {
22684
+ (function (exports$1) {
22734
22685
  /*
22735
22686
  Returns a Parser object of the following structure:
22736
22687
 
@@ -23774,9 +23725,9 @@ function requireJsonlint () {
23774
23725
  return new Parser();
23775
23726
  }());
23776
23727
  if (typeof commonjsRequire !== 'undefined' && 'object' !== 'undefined') {
23777
- exports.parser = parser;
23778
- exports.Parser = parser.Parser;
23779
- exports.parse = function () {
23728
+ exports$1.parser = parser;
23729
+ exports$1.Parser = parser.Parser;
23730
+ exports$1.parse = function () {
23780
23731
  return parser.parse.apply(parser, arguments);
23781
23732
  };
23782
23733
  }