@mapcatch/util 2.0.5-b → 2.0.6

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.
Files changed (54) hide show
  1. package/dist/catchUtil.min.esm.js +4 -4
  2. package/dist/catchUtil.min.js +1 -1
  3. package/package.json +1 -21
  4. package/src/constants/crs.js +42098 -42098
  5. package/src/event/event.js +4 -5
  6. package/src/gl-operations/constants.js +9 -9
  7. package/src/gl-operations/default_options.js +97 -97
  8. package/src/gl-operations/index.js +532 -532
  9. package/src/gl-operations/reglCommands/contours.js +27 -27
  10. package/src/gl-operations/reglCommands/default.js +45 -45
  11. package/src/gl-operations/reglCommands/hillshading.js +340 -340
  12. package/src/gl-operations/reglCommands/index.js +6 -6
  13. package/src/gl-operations/reglCommands/multiLayers.js +303 -303
  14. package/src/gl-operations/reglCommands/transitions.js +111 -111
  15. package/src/gl-operations/reglCommands/util.js +71 -71
  16. package/src/gl-operations/renderer.js +209 -209
  17. package/src/gl-operations/shaders/fragment/convertDem.js +25 -25
  18. package/src/gl-operations/shaders/fragment/convolutionSmooth.js +54 -54
  19. package/src/gl-operations/shaders/fragment/diffCalc.js +33 -33
  20. package/src/gl-operations/shaders/fragment/drawResult.js +46 -46
  21. package/src/gl-operations/shaders/fragment/hillshading/hsAdvAmbientShadows.js +78 -78
  22. package/src/gl-operations/shaders/fragment/hillshading/hsAdvDirect.js +59 -59
  23. package/src/gl-operations/shaders/fragment/hillshading/hsAdvFinalBaselayer.js +30 -30
  24. package/src/gl-operations/shaders/fragment/hillshading/hsAdvFinalColorscale.js +60 -60
  25. package/src/gl-operations/shaders/fragment/hillshading/hsAdvMergeAndScaleTiles.js +26 -26
  26. package/src/gl-operations/shaders/fragment/hillshading/hsAdvNormals.js +25 -25
  27. package/src/gl-operations/shaders/fragment/hillshading/hsAdvSmooth.js +53 -53
  28. package/src/gl-operations/shaders/fragment/hillshading/hsAdvSoftShadows.js +80 -80
  29. package/src/gl-operations/shaders/fragment/hillshading/hsPregen.js +54 -54
  30. package/src/gl-operations/shaders/fragment/interpolateColor.js +65 -65
  31. package/src/gl-operations/shaders/fragment/interpolateColorOnly.js +49 -49
  32. package/src/gl-operations/shaders/fragment/interpolateValue.js +136 -136
  33. package/src/gl-operations/shaders/fragment/multiAnalyze1Calc.js +35 -35
  34. package/src/gl-operations/shaders/fragment/multiAnalyze2Calc.js +45 -45
  35. package/src/gl-operations/shaders/fragment/multiAnalyze3Calc.js +53 -53
  36. package/src/gl-operations/shaders/fragment/multiAnalyze4Calc.js +61 -61
  37. package/src/gl-operations/shaders/fragment/multiAnalyze5Calc.js +69 -69
  38. package/src/gl-operations/shaders/fragment/multiAnalyze6Calc.js +77 -77
  39. package/src/gl-operations/shaders/fragment/single.js +93 -93
  40. package/src/gl-operations/shaders/transform.js +21 -21
  41. package/src/gl-operations/shaders/util/computeColor.glsl +85 -85
  42. package/src/gl-operations/shaders/util/getTexelValue.glsl +10 -10
  43. package/src/gl-operations/shaders/util/isCloseEnough.glsl +9 -9
  44. package/src/gl-operations/shaders/util/rgbaToFloat.glsl +17 -17
  45. package/src/gl-operations/shaders/vertex/double.js +16 -16
  46. package/src/gl-operations/shaders/vertex/multi3.js +19 -19
  47. package/src/gl-operations/shaders/vertex/multi4.js +22 -22
  48. package/src/gl-operations/shaders/vertex/multi5.js +25 -25
  49. package/src/gl-operations/shaders/vertex/multi6.js +28 -28
  50. package/src/gl-operations/shaders/vertex/single.js +13 -13
  51. package/src/gl-operations/shaders/vertex/singleNotTransformed.js +11 -11
  52. package/src/gl-operations/texture_manager.js +141 -141
  53. package/src/gl-operations/util.js +336 -336
  54. package/README.md +0 -44
@@ -55867,6 +55867,10 @@ function _addEventListener(t, o, R) {
55867
55867
  }
55868
55868
  function _removeEventListener(t, o, R) {
55869
55869
  if (R && R[t]) {
55870
+ if (!o) {
55871
+ delete R[t];
55872
+ return;
55873
+ }
55870
55874
  const c = R[t].indexOf(o);
55871
55875
  c !== -1 && R[t].splice(c, 1);
55872
55876
  }
@@ -55879,10 +55883,6 @@ class Event$1 {
55879
55883
  return this._listeners = this._listeners || {}, _addEventListener(o, R, this._listeners), this;
55880
55884
  }
55881
55885
  off(o, R) {
55882
- if (!R) {
55883
- this._listeners = {}, this._oneTimeListeners = {};
55884
- return;
55885
- }
55886
55886
  return _removeEventListener(o, R, this._listeners), _removeEventListener(o, R, this._oneTimeListeners), this;
55887
55887
  }
55888
55888
  once(o, R) {