@mapbox/mapbox-gl-style-spec 14.3.0 → 14.4.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.
@@ -1,6 +1,7 @@
1
1
  // @flow
2
2
 
3
3
  import type {Type} from './types.js';
4
+ import type {Class} from '../../types/class.js';
4
5
  import type ParsingContext from './parsing_context.js';
5
6
  import type EvaluationContext from './evaluation_context.js';
6
7
 
@@ -114,6 +114,6 @@ declare module "gl-matrix" {
114
114
  rotateX<T: Quat>(T, Quat, number): T,
115
115
  rotateY<T: Quat>(T, Quat, number): T,
116
116
  rotateZ<T: Quat>(T, Quat, number): T,
117
- rotationTo<T:Quat>(T, Quat, Quat): T
117
+ rotationTo<T:Quat>(T, Quat, Quat): T
118
118
  }
119
119
  }
@@ -0,0 +1,82 @@
1
+ // @flow
2
+
3
+ declare module 'tracked_parameters_proxy' {
4
+ declare type Description = any;
5
+
6
+ declare function registerParameter(
7
+ containerObject: any,
8
+ scope: Array<string>,
9
+ name: string,
10
+ description?: Description | null,
11
+ changeValueCallback?: any | null
12
+ ): void;
13
+
14
+ declare function registerButton(
15
+ scope: Array<string>,
16
+ buttonTitle: string,
17
+ onClick: any
18
+ ): void;
19
+
20
+ declare function registerBinding(
21
+ containerObject: any,
22
+ scope: Array<string>,
23
+ name: string,
24
+ description?: Object,
25
+ ): void;
26
+
27
+ declare function refreshUI(): void;
28
+
29
+ declare interface ITrackedParameters {
30
+ constructor(map: any): void;
31
+
32
+ registerParameter(
33
+ containerObject: any,
34
+ scope: Array<string>,
35
+ name: string,
36
+ description?: Description | null,
37
+ changeValueCallback?: any | null
38
+ ): void;
39
+
40
+ registerButton(
41
+ scope: Array<string>,
42
+ buttonTitle: string,
43
+ onClick: any
44
+ ): void;
45
+
46
+ registerBinding(
47
+ containerObject: any,
48
+ scope: Array<string>,
49
+ name: string,
50
+ description?: Object,
51
+ ): void;
52
+
53
+ refreshUI(): void;
54
+ }
55
+
56
+ declare class TrackedParameters implements ITrackedParameters {
57
+ constructor(map: any): void;
58
+
59
+ registerParameter(
60
+ containerObject: any,
61
+ scope: Array<string>,
62
+ name: string,
63
+ description?: Description | null,
64
+ changeValueCallback?: any | null
65
+ ): void;
66
+
67
+ registerButton(
68
+ scope: Array<string>,
69
+ buttonTitle: string,
70
+ onClick: any
71
+ ): void;
72
+
73
+ registerBinding(
74
+ containerObject: any,
75
+ scope: Array<string>,
76
+ name: string,
77
+ description?: Object,
78
+ ): void;
79
+
80
+ refreshUI(): void;
81
+ }
82
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapbox/mapbox-gl-style-spec",
3
3
  "description": "a specification for mapbox gl styles",
4
- "version": "14.3.0",
4
+ "version": "14.4.0",
5
5
  "author": "Mapbox",
6
6
  "keywords": [
7
7
  "mapbox",
package/reference/v8.json CHANGED
@@ -948,6 +948,11 @@
948
948
  "default": 18,
949
949
  "doc": "Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."
950
950
  },
951
+ "minzoom": {
952
+ "type": "number",
953
+ "default": 0,
954
+ "doc": "Minimum zoom level at which to create vector tiles"
955
+ },
951
956
  "attribution": {
952
957
  "type": "string",
953
958
  "doc": "Contains an attribution to be displayed when the map is shown to a user."
@@ -999,11 +1004,21 @@
999
1004
  "generateId": {
1000
1005
  "type": "boolean",
1001
1006
  "default": false,
1002
- "doc": "Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."
1007
+ "doc": "Whether to generate ids for the GeoJSON features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."
1003
1008
  },
1004
1009
  "promoteId": {
1005
1010
  "type": "promoteId",
1006
1011
  "doc": "A property to use as a feature id (for feature state). Either a property name, or an object of the form `{<sourceLayer>: <propertyName>}`."
1012
+ },
1013
+ "dynamic": {
1014
+ "type": "boolean",
1015
+ "default": false,
1016
+ "doc": "Whether to optimize this source for frequent data updates (e.g. animating features).",
1017
+ "sdk-support": {
1018
+ "basic functionality": {
1019
+ "js": "3.4.0"
1020
+ }
1021
+ }
1007
1022
  }
1008
1023
  },
1009
1024
  "source_video": {
@@ -1178,10 +1193,9 @@
1178
1193
  "doc": "Particle animation driven by textures such as wind maps.",
1179
1194
  "sdk-support": {
1180
1195
  "basic functionality": {
1181
- "js": "0.10.0",
1182
- "android": "2.0.1",
1183
- "ios": "2.0.0",
1184
- "macos": "0.1.0"
1196
+ "js": "3.3.0",
1197
+ "android": "11.4.0",
1198
+ "ios": "11.4.0"
1185
1199
  }
1186
1200
  }
1187
1201
  },
@@ -1391,7 +1405,7 @@
1391
1405
  "model-id": {
1392
1406
  "type": "string",
1393
1407
  "default": "",
1394
- "doc": "Model to render.",
1408
+ "doc": "Model to render. It can be either a string referencing an element to the models root property or an internal or external URL",
1395
1409
  "property-type": "data-driven",
1396
1410
  "expression": {
1397
1411
  "interpolated": false,
@@ -1664,6 +1678,9 @@
1664
1678
  },
1665
1679
  "miter": {
1666
1680
  "doc": "A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."
1681
+ },
1682
+ "none": {
1683
+ "doc": "Line segments are not joined together, each one creates a separate line. Useful in combination with line-pattern. Line-cap property is not respected. Can't be used with data-driven styling."
1667
1684
  }
1668
1685
  },
1669
1686
  "default": "miter",
@@ -1678,6 +1695,11 @@
1678
1695
  "js": "0.40.0",
1679
1696
  "android": "5.2.0",
1680
1697
  "ios": "3.7.0"
1698
+ },
1699
+ "`none` value": {
1700
+ "js": "3.4.0",
1701
+ "android": "11.5.0",
1702
+ "ios": "11.5.0"
1681
1703
  }
1682
1704
  },
1683
1705
  "expression": {
@@ -3229,14 +3251,14 @@
3229
3251
  "doc": "Whether this layer is displayed.",
3230
3252
  "sdk-support": {
3231
3253
  "basic functionality": {
3232
- "js": "0.10.0",
3233
- "android": "2.0.1",
3234
- "ios": "2.0.0"
3254
+ "js": "3.3.0",
3255
+ "android": "11.4.0",
3256
+ "ios": "11.4.0"
3235
3257
  },
3236
3258
  "expressions support": {
3237
- "js": "3.0.0",
3238
- "android": "11.0.0",
3239
- "ios": "11.0.0"
3259
+ "js": "3.3.0",
3260
+ "android": "11.4.0",
3261
+ "ios": "11.4.0"
3240
3262
  }
3241
3263
  },
3242
3264
  "expression": {
@@ -4543,8 +4565,8 @@
4543
4565
  "sdk-support": {
4544
4566
  "basic functionality": {
4545
4567
  "js": "3.3.0",
4546
- "android": "",
4547
- "ios": ""
4568
+ "android": "11.4.0",
4569
+ "ios": "11.4.0"
4548
4570
  }
4549
4571
  }
4550
4572
  },
@@ -7329,12 +7351,11 @@
7329
7351
  },
7330
7352
  "icon-color-saturation": {
7331
7353
  "type": "number",
7332
- "default": 1,
7333
- "minimum": 0,
7354
+ "default": 0,
7355
+ "minimum": -1,
7334
7356
  "maximum": 1,
7335
- "transition": true,
7336
- "units": "intensity",
7337
- "doc": "Controls saturation level of the symbol icon. With the default value of 1 the icon color is preserved while with a value of 0 it is fully desaturated and looks black and white.",
7357
+ "transition": false,
7358
+ "doc": "Increase or reduce the saturation of the symbol icon.",
7338
7359
  "sdk-support": {
7339
7360
  "basic functionality": {
7340
7361
  "js": "3.1.0",
@@ -7346,6 +7367,63 @@
7346
7367
  "interpolated": false
7347
7368
  },
7348
7369
  "property-type": "data-constant"
7370
+ },
7371
+ "icon-color-contrast": {
7372
+ "type": "number",
7373
+ "default": 0,
7374
+ "minimum": -1,
7375
+ "maximum": 1,
7376
+ "transition": false,
7377
+ "doc": "Increase or reduce the contrast of the symbol icon.",
7378
+ "sdk-support": {
7379
+ "basic functionality": {
7380
+ "js": "3.5.0",
7381
+ "android": "11.5.0",
7382
+ "ios": "11.5.0"
7383
+ }
7384
+ },
7385
+ "expression": {
7386
+ "interpolated": false
7387
+ },
7388
+ "property-type": "data-constant"
7389
+ },
7390
+ "icon-color-brightness-min": {
7391
+ "type": "number",
7392
+ "doc": "Increase or reduce the brightness of the symbols. The value is the minimum brightness.",
7393
+ "default": 0,
7394
+ "minimum": 0,
7395
+ "maximum": 1,
7396
+ "transition": false,
7397
+ "sdk-support": {
7398
+ "basic functionality": {
7399
+ "js": "3.5.0",
7400
+ "android": "11.5.0",
7401
+ "ios": "11.5.0"
7402
+ }
7403
+ },
7404
+ "expression": {
7405
+ "interpolated": false
7406
+ },
7407
+ "property-type": "data-constant"
7408
+ },
7409
+ "icon-color-brightness-max": {
7410
+ "type": "number",
7411
+ "doc": "Increase or reduce the brightness of the symbols. The value is the maximum brightness.",
7412
+ "default": 1,
7413
+ "minimum": 0,
7414
+ "maximum": 1,
7415
+ "transition": false,
7416
+ "sdk-support": {
7417
+ "basic functionality": {
7418
+ "js": "3.5.0",
7419
+ "android": "11.5.0",
7420
+ "ios": "11.5.0"
7421
+ }
7422
+ },
7423
+ "expression": {
7424
+ "interpolated": false
7425
+ },
7426
+ "property-type": "data-constant"
7349
7427
  }
7350
7428
  },
7351
7429
  "paint_raster": {
@@ -7689,12 +7767,12 @@
7689
7767
  "property-type": "data-constant",
7690
7768
  "transition": false,
7691
7769
  "doc": "Displayed band of raster array source layer",
7692
- "example": "band-name",
7770
+ "example": "\"1713348000\"",
7693
7771
  "sdk-support": {
7694
7772
  "basic functionality": {
7695
- "js": "",
7696
- "android": "",
7697
- "ios": ""
7773
+ "js": "3.3.0",
7774
+ "android": "11.4.0",
7775
+ "ios": "11.4.0"
7698
7776
  }
7699
7777
  }
7700
7778
  },
@@ -7706,9 +7784,9 @@
7706
7784
  "transition": false,
7707
7785
  "sdk-support": {
7708
7786
  "basic functionality": {
7709
- "js": "",
7710
- "android": "",
7711
- "ios": ""
7787
+ "js": "3.3.0",
7788
+ "android": "11.4.0",
7789
+ "ios": "11.4.0"
7712
7790
  }
7713
7791
  },
7714
7792
  "property-type": "data-constant"
@@ -7719,9 +7797,9 @@
7719
7797
  "transition": false,
7720
7798
  "sdk-support": {
7721
7799
  "basic functionality": {
7722
- "js": "",
7723
- "android": "",
7724
- "ios": ""
7800
+ "js": "3.3.0",
7801
+ "android": "11.4.0",
7802
+ "ios": "11.4.0"
7725
7803
  },
7726
7804
  "data-driven styling": {}
7727
7805
  },
@@ -7741,9 +7819,9 @@
7741
7819
  "transition": false,
7742
7820
  "sdk-support": {
7743
7821
  "basic functionality": {
7744
- "js": "",
7745
- "android": "",
7746
- "ios": ""
7822
+ "js": "3.3.0",
7823
+ "android": "11.4.0",
7824
+ "ios": "11.4.0"
7747
7825
  }
7748
7826
  },
7749
7827
  "property-type": "data-constant"
@@ -7757,9 +7835,9 @@
7757
7835
  "transition": true,
7758
7836
  "sdk-support": {
7759
7837
  "basic functionality": {
7760
- "js": "",
7761
- "android": "",
7762
- "ios": ""
7838
+ "js": "3.3.0",
7839
+ "android": "11.4.0",
7840
+ "ios": "11.4.0"
7763
7841
  }
7764
7842
  },
7765
7843
  "expression": {
@@ -7779,9 +7857,9 @@
7779
7857
  "transition": true,
7780
7858
  "sdk-support": {
7781
7859
  "basic functionality": {
7782
- "js": "",
7783
- "android": "",
7784
- "ios": ""
7860
+ "js": "3.3.0",
7861
+ "android": "11.4.0",
7862
+ "ios": "11.4.0"
7785
7863
  }
7786
7864
  },
7787
7865
  "expression": {
@@ -7801,9 +7879,9 @@
7801
7879
  "transition": false,
7802
7880
  "sdk-support": {
7803
7881
  "basic functionality": {
7804
- "js": "",
7805
- "android": "",
7806
- "ios": ""
7882
+ "js": "3.3.0",
7883
+ "android": "11.4.0",
7884
+ "ios": "11.4.0"
7807
7885
  }
7808
7886
  },
7809
7887
  "property-type": "data-constant"
@@ -8623,6 +8701,29 @@
8623
8701
  }
8624
8702
  },
8625
8703
  "property-type": "data-constant"
8704
+ },
8705
+ "model-front-cutoff": {
8706
+ "type": "array",
8707
+ "private": true,
8708
+ "value": "number",
8709
+ "property-type": "data-constant",
8710
+ "transition": false,
8711
+ "expression": {
8712
+ "interpolated": true,
8713
+ "parameters": ["zoom"]
8714
+ },
8715
+ "length": 3,
8716
+ "default": [0.0, 0.0, 1.0],
8717
+ "minimum": [0.0, 0.0, 0.0],
8718
+ "maximum": [1.0, 1.0, 1.0],
8719
+ "doc": "An array for configuring the fade-out effect for the front cutoff of content on pitched map views. It contains three values: start, range and final opacity. The start parameter defines the point at which the fade-out effect begins, with smaller values causing the effect to start earlier. The range parameter specifies how long the fade-out effect will last. A value of 0.0 for range makes content disappear immediately without a fade-out effect. The final opacity determines content opacity at the end of the fade-out effect. A value of 1.0 for final opacity means that the cutoff is completely disabled.",
8720
+ "sdk-support": {
8721
+ "basic functionality": {
8722
+ "js": "3.5.0",
8723
+ "android": "11.5.0",
8724
+ "ios": "11.5.0"
8725
+ }
8726
+ }
8626
8727
  }
8627
8728
  },
8628
8729
  "transition": {
package/rollup.config.js CHANGED
@@ -44,6 +44,7 @@ const config = [{
44
44
  replace({
45
45
  include: /\/jsonlint-lines-primitives\/lib\/jsonlint.js/,
46
46
  delimiters: ['', ''],
47
+ preventAssignment: true,
47
48
  values: {
48
49
  '_token_stack:': ''
49
50
  }