@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.cjs +16 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -71
- package/dist/index.es.js +16 -29
- package/dist/index.es.js.map +1 -1
- package/expression/index.ts +4 -6
- package/function/index.ts +2 -2
- package/package.json +1 -1
- package/read_style.ts +1 -2
- package/reference/v8.json +12 -24
- package/test.js +1 -2
- package/types.ts +4 -69
package/dist/index.cjs
CHANGED
|
@@ -1501,7 +1501,6 @@
|
|
|
1501
1501
|
android: "11.16.0",
|
|
1502
1502
|
ios: "11.16.0"
|
|
1503
1503
|
},
|
|
1504
|
-
experimental: true,
|
|
1505
1504
|
"private": true
|
|
1506
1505
|
},
|
|
1507
1506
|
raster: {
|
|
@@ -2094,6 +2093,7 @@
|
|
|
2094
2093
|
},
|
|
2095
2094
|
"default": "visible",
|
|
2096
2095
|
doc: "Whether this layer is displayed.",
|
|
2096
|
+
"private": true,
|
|
2097
2097
|
"sdk-support": {
|
|
2098
2098
|
"basic functionality": {
|
|
2099
2099
|
js: "3.16.0",
|
|
@@ -2110,7 +2110,6 @@
|
|
|
2110
2110
|
type: "boolean",
|
|
2111
2111
|
"default": false,
|
|
2112
2112
|
doc: "Whether to render facade details on the buildings.",
|
|
2113
|
-
experimental: true,
|
|
2114
2113
|
"private": true,
|
|
2115
2114
|
"sdk-support": {
|
|
2116
2115
|
"basic functionality": {
|
|
@@ -2138,7 +2137,7 @@
|
|
|
2138
2137
|
maximum: 200,
|
|
2139
2138
|
"default": 3,
|
|
2140
2139
|
doc: "Number of floors created when building-facade is enabled.",
|
|
2141
|
-
|
|
2140
|
+
"private": true,
|
|
2142
2141
|
"property-type": "data-driven",
|
|
2143
2142
|
"sdk-support": {
|
|
2144
2143
|
"basic functionality": {
|
|
@@ -2168,7 +2167,7 @@
|
|
|
2168
2167
|
maximum: 20,
|
|
2169
2168
|
"default": 3.1,
|
|
2170
2169
|
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).",
|
|
2171
|
-
|
|
2170
|
+
"private": true,
|
|
2172
2171
|
"property-type": "data-driven",
|
|
2173
2172
|
"sdk-support": {
|
|
2174
2173
|
"basic functionality": {
|
|
@@ -2203,7 +2202,7 @@
|
|
|
2203
2202
|
0.9
|
|
2204
2203
|
],
|
|
2205
2204
|
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`.",
|
|
2206
|
-
|
|
2205
|
+
"private": true,
|
|
2207
2206
|
"property-type": "data-driven",
|
|
2208
2207
|
"sdk-support": {
|
|
2209
2208
|
"basic functionality": {
|
|
@@ -2254,7 +2253,6 @@
|
|
|
2254
2253
|
},
|
|
2255
2254
|
"default": "flat",
|
|
2256
2255
|
doc: "Roof type to use for the procedural buildings.",
|
|
2257
|
-
experimental: true,
|
|
2258
2256
|
"private": true,
|
|
2259
2257
|
"sdk-support": {
|
|
2260
2258
|
"basic functionality": {
|
|
@@ -2283,7 +2281,6 @@
|
|
|
2283
2281
|
units: "meters",
|
|
2284
2282
|
doc: "The height of the procedural buildings.",
|
|
2285
2283
|
transition: true,
|
|
2286
|
-
experimental: true,
|
|
2287
2284
|
"private": true,
|
|
2288
2285
|
"sdk-support": {
|
|
2289
2286
|
"basic functionality": {
|
|
@@ -2312,7 +2309,6 @@
|
|
|
2312
2309
|
requires: [
|
|
2313
2310
|
"building-height"
|
|
2314
2311
|
],
|
|
2315
|
-
experimental: true,
|
|
2316
2312
|
"private": true,
|
|
2317
2313
|
"sdk-support": {
|
|
2318
2314
|
"basic functionality": {
|
|
@@ -2334,7 +2330,7 @@
|
|
|
2334
2330
|
"building-flood-light-wall-radius": {
|
|
2335
2331
|
"property-type": "data-driven",
|
|
2336
2332
|
type: "number",
|
|
2337
|
-
|
|
2333
|
+
"private": true,
|
|
2338
2334
|
units: "meters",
|
|
2339
2335
|
"default": 0,
|
|
2340
2336
|
minimum: 0,
|
|
@@ -2366,7 +2362,7 @@
|
|
|
2366
2362
|
"building-flood-light-ground-radius": {
|
|
2367
2363
|
"property-type": "data-driven",
|
|
2368
2364
|
type: "number",
|
|
2369
|
-
|
|
2365
|
+
"private": true,
|
|
2370
2366
|
units: "meters",
|
|
2371
2367
|
"default": 0,
|
|
2372
2368
|
doc: "The extent of the flood light effect on the ground beneath the buildings in meters.",
|
|
@@ -2397,7 +2393,7 @@
|
|
|
2397
2393
|
"building-flip-roof-orientation": {
|
|
2398
2394
|
"property-type": "data-driven",
|
|
2399
2395
|
type: "boolean",
|
|
2400
|
-
|
|
2396
|
+
"private": true,
|
|
2401
2397
|
units: "meters",
|
|
2402
2398
|
"default": false,
|
|
2403
2399
|
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.",
|
|
@@ -7114,7 +7110,6 @@
|
|
|
7114
7110
|
maximum: 1,
|
|
7115
7111
|
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.",
|
|
7116
7112
|
transition: true,
|
|
7117
|
-
experimental: true,
|
|
7118
7113
|
"private": true,
|
|
7119
7114
|
"sdk-support": {
|
|
7120
7115
|
"basic functionality": {
|
|
@@ -7137,7 +7132,6 @@
|
|
|
7137
7132
|
"default": 0,
|
|
7138
7133
|
minimum: 0,
|
|
7139
7134
|
maximum: 1,
|
|
7140
|
-
experimental: true,
|
|
7141
7135
|
"private": true,
|
|
7142
7136
|
expression: {
|
|
7143
7137
|
interpolated: false,
|
|
@@ -7160,7 +7154,6 @@
|
|
|
7160
7154
|
"default": 0,
|
|
7161
7155
|
minimum: 0,
|
|
7162
7156
|
maximum: 1,
|
|
7163
|
-
experimental: true,
|
|
7164
7157
|
"private": true,
|
|
7165
7158
|
expression: {
|
|
7166
7159
|
interpolated: true,
|
|
@@ -7181,7 +7174,6 @@
|
|
|
7181
7174
|
"building-ambient-occlusion-ground-radius": {
|
|
7182
7175
|
"property-type": "data-constant",
|
|
7183
7176
|
type: "number",
|
|
7184
|
-
experimental: true,
|
|
7185
7177
|
"private": true,
|
|
7186
7178
|
"default": 3,
|
|
7187
7179
|
minimum: 0,
|
|
@@ -7204,7 +7196,6 @@
|
|
|
7204
7196
|
"building-ambient-occlusion-ground-attenuation": {
|
|
7205
7197
|
"property-type": "data-constant",
|
|
7206
7198
|
type: "number",
|
|
7207
|
-
experimental: true,
|
|
7208
7199
|
"private": true,
|
|
7209
7200
|
"default": 0.69,
|
|
7210
7201
|
minimum: 0,
|
|
@@ -7228,7 +7219,6 @@
|
|
|
7228
7219
|
"building-vertical-scale": {
|
|
7229
7220
|
"property-type": "data-constant",
|
|
7230
7221
|
type: "number",
|
|
7231
|
-
experimental: true,
|
|
7232
7222
|
"private": true,
|
|
7233
7223
|
"default": 1,
|
|
7234
7224
|
minimum: 0,
|
|
@@ -7253,7 +7243,6 @@
|
|
|
7253
7243
|
"default": true,
|
|
7254
7244
|
doc: "Enable/Disable shadow casting for this layer",
|
|
7255
7245
|
transition: false,
|
|
7256
|
-
experimental: true,
|
|
7257
7246
|
"private": true,
|
|
7258
7247
|
"sdk-support": {
|
|
7259
7248
|
"basic functionality": {
|
|
@@ -7268,7 +7257,6 @@
|
|
|
7268
7257
|
type: "color",
|
|
7269
7258
|
"default": "rgba(193, 154, 127, 1)",
|
|
7270
7259
|
doc: "Color buildings. This can be styled using different building parts (e.g. window, wall, roof).",
|
|
7271
|
-
experimental: true,
|
|
7272
7260
|
"private": true,
|
|
7273
7261
|
"use-theme": true,
|
|
7274
7262
|
transition: false,
|
|
@@ -7301,7 +7289,6 @@
|
|
|
7301
7289
|
maximum: 5,
|
|
7302
7290
|
units: "intensity",
|
|
7303
7291
|
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).",
|
|
7304
|
-
experimental: true,
|
|
7305
7292
|
"private": true,
|
|
7306
7293
|
"sdk-support": {
|
|
7307
7294
|
"basic functionality": {
|
|
@@ -7331,7 +7318,7 @@
|
|
|
7331
7318
|
minimum: 0,
|
|
7332
7319
|
maximum: 1,
|
|
7333
7320
|
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.",
|
|
7334
|
-
|
|
7321
|
+
"private": true,
|
|
7335
7322
|
"property-type": "data-constant",
|
|
7336
7323
|
"sdk-support": {
|
|
7337
7324
|
"basic functionality": {
|
|
@@ -7350,6 +7337,7 @@
|
|
|
7350
7337
|
},
|
|
7351
7338
|
"building-cutoff-fade-range": {
|
|
7352
7339
|
type: "number",
|
|
7340
|
+
"private": true,
|
|
7353
7341
|
"default": 0,
|
|
7354
7342
|
minimum: 0,
|
|
7355
7343
|
maximum: 1,
|
|
@@ -7370,7 +7358,7 @@
|
|
|
7370
7358
|
"building-flood-light-color": {
|
|
7371
7359
|
"property-type": "data-constant",
|
|
7372
7360
|
type: "color",
|
|
7373
|
-
|
|
7361
|
+
"private": true,
|
|
7374
7362
|
"default": "#ffffff",
|
|
7375
7363
|
doc: "The color of the flood light effect on the walls of the buildings.",
|
|
7376
7364
|
requires: [
|
|
@@ -7396,7 +7384,7 @@
|
|
|
7396
7384
|
"building-flood-light-intensity": {
|
|
7397
7385
|
"property-type": "data-constant",
|
|
7398
7386
|
type: "number",
|
|
7399
|
-
|
|
7387
|
+
"private": true,
|
|
7400
7388
|
"default": 0,
|
|
7401
7389
|
minimum: 0,
|
|
7402
7390
|
maximum: 1,
|
|
@@ -7423,7 +7411,7 @@
|
|
|
7423
7411
|
"building-flood-light-ground-attenuation": {
|
|
7424
7412
|
"property-type": "data-constant",
|
|
7425
7413
|
type: "number",
|
|
7426
|
-
|
|
7414
|
+
"private": true,
|
|
7427
7415
|
"default": 0.69,
|
|
7428
7416
|
minimum: 0,
|
|
7429
7417
|
maximum: 1,
|
|
@@ -19200,7 +19188,6 @@
|
|
|
19200
19188
|
return {
|
|
19201
19189
|
kind: 'composite',
|
|
19202
19190
|
interpolationType,
|
|
19203
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
19204
19191
|
interpolationFactor: Interpolate.interpolationFactor.bind(void 0, interpolationType),
|
|
19205
19192
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
|
|
19206
19193
|
zoomStops: featureFunctionStops.map(s => s[0]),
|
|
@@ -19221,7 +19208,6 @@
|
|
|
19221
19208
|
return {
|
|
19222
19209
|
kind: 'camera',
|
|
19223
19210
|
interpolationType,
|
|
19224
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
19225
19211
|
interpolationFactor: Interpolate.interpolationFactor.bind(void 0, interpolationType),
|
|
19226
19212
|
// 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
|
|
19227
19213
|
zoomStops: parameters.stops.map(s => s[0]),
|
|
@@ -19373,10 +19359,11 @@
|
|
|
19373
19359
|
}
|
|
19374
19360
|
return val;
|
|
19375
19361
|
} catch (e) {
|
|
19376
|
-
|
|
19377
|
-
|
|
19362
|
+
const error2 = e;
|
|
19363
|
+
if (!this._warningHistory[error2.message]) {
|
|
19364
|
+
this._warningHistory[error2.message] = true;
|
|
19378
19365
|
if (typeof console !== 'undefined') {
|
|
19379
|
-
console.warn(`Failed to evaluate expression "${ JSON.stringify(this.expression.serialize()) }". ${
|
|
19366
|
+
console.warn(`Failed to evaluate expression "${ JSON.stringify(this.expression.serialize()) }". ${ error2.message }`);
|
|
19380
19367
|
}
|
|
19381
19368
|
}
|
|
19382
19369
|
return this._defaultValue;
|