maplibre-gl 2.1.2 → 2.1.5

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,4 +1,4 @@
1
- /* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.1.2/LICENSE.txt */
1
+ /* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.1.5/LICENSE.txt */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -1,4 +1,4 @@
1
- /* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.1.2/LICENSE.txt */
1
+ /* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.1.5/LICENSE.txt */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maplibre-gl",
3
3
  "description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
4
- "version": "2.1.2",
4
+ "version": "2.1.5",
5
5
  "main": "dist/maplibre-gl.js",
6
6
  "style": "dist/maplibre-gl.css",
7
7
  "license": "BSD-3-Clause",
@@ -24,7 +24,6 @@
24
24
  "earcut": "^2.2.3",
25
25
  "geojson-vt": "^3.2.1",
26
26
  "gl-matrix": "^3.4.3",
27
- "husky": "^7.0.4",
28
27
  "murmurhash-js": "^1.0.0",
29
28
  "pbf": "^3.2.1",
30
29
  "potpack": "^1.0.2",
@@ -95,6 +94,7 @@
95
94
  "eslint-plugin-react": "^7.28.0",
96
95
  "gl": "^5.0.0",
97
96
  "glob": "^7.2.0",
97
+ "husky": "^7.0.4",
98
98
  "is-builtin-module": "^3.1.0",
99
99
  "jest": "^27.5.1",
100
100
  "jest-canvas-mock": "^2.3.1",
@@ -171,12 +171,12 @@
171
171
  "codegen": "npm run generate-style-code && npm run generate-struct-arrays && npm run generate-style-spec && npm run generate-shaders",
172
172
  "benchmark": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/run-benchmarks.ts",
173
173
  "gl-stats": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/gl-stats.ts",
174
- "postinstall": "npm run codegen && npm run generate-query-test-fixtures",
175
- "prepare": "husky install"
174
+ "postinstall": "node ./postinstall.js"
176
175
  },
177
176
  "files": [
178
177
  "build/",
179
178
  "dist/*",
180
- "src/"
179
+ "src/",
180
+ "postinstall.js"
181
181
  ]
182
182
  }
package/postinstall.js ADDED
@@ -0,0 +1 @@
1
+ // empty in published package
@@ -298,7 +298,7 @@
298
298
  @media (-ms-high-contrast: active) {
299
299
  .maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon,
300
300
  .mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon {
301
- @svg-load ctrl-compass-white url(svg/maplibregl-ctrl-compass.svg) {
301
+ @svg-load ctrl-compass-white url("svg/maplibregl-ctrl-compass.svg") {
302
302
  fill: #fff;
303
303
  #south { fill: #999; }
304
304
  }
@@ -314,53 +314,53 @@
314
314
  }
315
315
  }
316
316
 
317
- @svg-load ctrl-geolocate url(svg/maplibregl-ctrl-geolocate.svg) {
317
+ @svg-load ctrl-geolocate url("svg/maplibregl-ctrl-geolocate.svg") {
318
318
  fill: #333;
319
319
  #stroke { display: none; }
320
320
  }
321
321
 
322
- @svg-load ctrl-geolocate-white url(svg/maplibregl-ctrl-geolocate.svg) {
322
+ @svg-load ctrl-geolocate-white url("svg/maplibregl-ctrl-geolocate.svg") {
323
323
  fill: #fff;
324
324
  #stroke { display: none; }
325
325
  }
326
326
 
327
- @svg-load ctrl-geolocate-black url(svg/maplibregl-ctrl-geolocate.svg) {
327
+ @svg-load ctrl-geolocate-black url("svg/maplibregl-ctrl-geolocate.svg") {
328
328
  fill: #000;
329
329
  #stroke { display: none; }
330
330
  }
331
331
 
332
- @svg-load ctrl-geolocate-disabled url(svg/maplibregl-ctrl-geolocate.svg) {
332
+ @svg-load ctrl-geolocate-disabled url("svg/maplibregl-ctrl-geolocate.svg") {
333
333
  fill: #aaa;
334
334
  #stroke { fill: #f00; }
335
335
  }
336
336
 
337
- @svg-load ctrl-geolocate-disabled-white url(svg/maplibregl-ctrl-geolocate.svg) {
337
+ @svg-load ctrl-geolocate-disabled-white url("svg/maplibregl-ctrl-geolocate.svg") {
338
338
  fill: #999;
339
339
  #stroke { fill: #f00; }
340
340
  }
341
341
 
342
- @svg-load ctrl-geolocate-disabled-black url(svg/maplibregl-ctrl-geolocate.svg) {
342
+ @svg-load ctrl-geolocate-disabled-black url("svg/maplibregl-ctrl-geolocate.svg") {
343
343
  fill: #666;
344
344
  #stroke { fill: #f00; }
345
345
  }
346
346
 
347
- @svg-load ctrl-geolocate-active url(svg/maplibregl-ctrl-geolocate.svg) {
347
+ @svg-load ctrl-geolocate-active url("svg/maplibregl-ctrl-geolocate.svg") {
348
348
  fill: #33b5e5;
349
349
  #stroke { display: none; }
350
350
  }
351
351
 
352
- @svg-load ctrl-geolocate-active-error url(svg/maplibregl-ctrl-geolocate.svg) {
352
+ @svg-load ctrl-geolocate-active-error url("svg/maplibregl-ctrl-geolocate.svg") {
353
353
  fill: #e58978;
354
354
  #stroke { display: none; }
355
355
  }
356
356
 
357
- @svg-load ctrl-geolocate-background url(svg/maplibregl-ctrl-geolocate.svg) {
357
+ @svg-load ctrl-geolocate-background url("svg/maplibregl-ctrl-geolocate.svg") {
358
358
  fill: #33b5e5;
359
359
  #stroke { display: none; }
360
360
  #dot { display: none; }
361
361
  }
362
362
 
363
- @svg-load ctrl-geolocate-background-error url(svg/maplibregl-ctrl-geolocate.svg) {
363
+ @svg-load ctrl-geolocate-background-error url("svg/maplibregl-ctrl-geolocate.svg") {
364
364
  fill: #e54e33;
365
365
  #stroke { display: none; }
366
366
  #dot { display: none; }
@@ -494,7 +494,7 @@ a.mapboxgl-ctrl-logo.mapboxgl-compact {
494
494
  @media (-ms-high-contrast: active) {
495
495
  a.maplibregl-ctrl-logo,
496
496
  a.mapboxgl-ctrl-logo {
497
- @svg-load ctrl-logo-white url(svg/maplibregl-ctrl-logo.svg) {
497
+ @svg-load ctrl-logo-white url("svg/maplibregl-ctrl-logo.svg") {
498
498
  #outline { opacity: 1; }
499
499
  #fill { opacity: 1; }
500
500
  }
@@ -507,7 +507,7 @@ a.mapboxgl-ctrl-logo.mapboxgl-compact {
507
507
  @media (-ms-high-contrast: black-on-white) {
508
508
  a.maplibregl-ctrl-logo,
509
509
  a.mapboxgl-ctrl-logo {
510
- @svg-load ctrl-logo-black url(svg/maplibregl-ctrl-logo.svg) {
510
+ @svg-load ctrl-logo-black url("svg/maplibregl-ctrl-logo.svg") {
511
511
  #outline { opacity: 1; fill: #fff; stroke: #fff; }
512
512
  #fill { opacity: 1; fill: #000; }
513
513
  }