geotiff 3.0.0 → 3.0.2

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 (160) hide show
  1. package/dist-browser/geotiff.js +3 -2
  2. package/dist-browser/geotiff.js.map +1 -1
  3. package/dist-module/compression/basedecoder.d.ts +4 -0
  4. package/dist-module/compression/basedecoder.d.ts.map +1 -1
  5. package/dist-module/compression/basedecoder.js +6 -0
  6. package/dist-module/compression/index.d.ts +4 -4
  7. package/dist-module/compression/index.d.ts.map +1 -1
  8. package/dist-module/compression/index.js +4 -4
  9. package/dist-module/compression/jpeg.d.ts +6 -1
  10. package/dist-module/compression/jpeg.d.ts.map +1 -1
  11. package/dist-module/compression/jpeg.js +50 -5
  12. package/dist-module/compression/lzw.js +1 -1
  13. package/dist-module/compression/webimage.d.ts +1 -1
  14. package/dist-module/compression/webimage.d.ts.map +1 -1
  15. package/dist-module/compression/webimage.js +1 -1
  16. package/dist-module/dataslice.d.ts.map +1 -1
  17. package/dist-module/dataslice.js +2 -2
  18. package/dist-module/dataview64.d.ts +2 -2
  19. package/dist-module/dataview64.d.ts.map +1 -1
  20. package/dist-module/dataview64.js +4 -4
  21. package/dist-module/geotiff.d.ts +171 -45
  22. package/dist-module/geotiff.d.ts.map +1 -1
  23. package/dist-module/geotiff.js +119 -20
  24. package/dist-module/geotiffimage.d.ts +79 -112
  25. package/dist-module/geotiffimage.d.ts.map +1 -1
  26. package/dist-module/geotiffimage.js +99 -71
  27. package/dist-module/geotiffwriter.js +2 -2
  28. package/dist-module/globals.d.ts +48 -40
  29. package/dist-module/globals.d.ts.map +1 -1
  30. package/dist-module/globals.js +14 -10
  31. package/dist-module/imagefiledirectory.d.ts +2 -2
  32. package/dist-module/imagefiledirectory.d.ts.map +1 -1
  33. package/dist-module/imagefiledirectory.js +23 -12
  34. package/dist-module/logging.js +7 -7
  35. package/dist-module/pool.js +1 -1
  36. package/dist-module/predictor.js +1 -1
  37. package/dist-module/resample.d.ts +18 -18
  38. package/dist-module/resample.d.ts.map +1 -1
  39. package/dist-module/resample.js +12 -12
  40. package/dist-module/source/basesource.d.ts +7 -7
  41. package/dist-module/source/basesource.d.ts.map +1 -1
  42. package/dist-module/source/basesource.js +7 -7
  43. package/dist-module/source/blockedsource.d.ts +10 -10
  44. package/dist-module/source/blockedsource.d.ts.map +1 -1
  45. package/dist-module/source/blockedsource.js +12 -9
  46. package/dist-module/source/client/base.d.ts +8 -10
  47. package/dist-module/source/client/base.d.ts.map +1 -1
  48. package/dist-module/source/client/base.js +4 -3
  49. package/dist-module/source/client/fetch.d.ts +2 -7
  50. package/dist-module/source/client/fetch.d.ts.map +1 -1
  51. package/dist-module/source/client/fetch.js +7 -2
  52. package/dist-module/source/client/http.d.ts +4 -1
  53. package/dist-module/source/client/http.d.ts.map +1 -1
  54. package/dist-module/source/client/http.js +4 -4
  55. package/dist-module/source/client/xhr.d.ts +4 -1
  56. package/dist-module/source/client/xhr.d.ts.map +1 -1
  57. package/dist-module/source/client/xhr.js +1 -1
  58. package/dist-module/source/file.js +4 -4
  59. package/dist-module/source/filereader.js +1 -1
  60. package/dist-module/source/httputils.d.ts +14 -6
  61. package/dist-module/source/httputils.d.ts.map +1 -1
  62. package/dist-module/source/httputils.js +13 -12
  63. package/dist-module/source/remote.d.ts +31 -22
  64. package/dist-module/source/remote.d.ts.map +1 -1
  65. package/dist-module/source/remote.js +37 -13
  66. package/dist-module/utils.d.ts +7 -1
  67. package/dist-module/utils.d.ts.map +1 -1
  68. package/dist-module/utils.js +6 -0
  69. package/dist-module/worker/create.js +1 -1
  70. package/dist-node/compression/basedecoder.d.ts +4 -0
  71. package/dist-node/compression/basedecoder.d.ts.map +1 -1
  72. package/dist-node/compression/basedecoder.js +6 -0
  73. package/dist-node/compression/basedecoder.js.map +1 -1
  74. package/dist-node/compression/index.d.ts +4 -4
  75. package/dist-node/compression/index.d.ts.map +1 -1
  76. package/dist-node/compression/index.js +4 -4
  77. package/dist-node/compression/jpeg.d.ts +6 -1
  78. package/dist-node/compression/jpeg.d.ts.map +1 -1
  79. package/dist-node/compression/jpeg.js +50 -5
  80. package/dist-node/compression/jpeg.js.map +1 -1
  81. package/dist-node/compression/lzw.js +1 -1
  82. package/dist-node/compression/lzw.js.map +1 -1
  83. package/dist-node/compression/webimage.js +1 -1
  84. package/dist-node/compression/webimage.js.map +1 -1
  85. package/dist-node/dataslice.js +2 -2
  86. package/dist-node/dataslice.js.map +1 -1
  87. package/dist-node/dataview64.d.ts +2 -2
  88. package/dist-node/dataview64.d.ts.map +1 -1
  89. package/dist-node/dataview64.js +4 -4
  90. package/dist-node/dataview64.js.map +1 -1
  91. package/dist-node/geotiff.d.ts +171 -45
  92. package/dist-node/geotiff.d.ts.map +1 -1
  93. package/dist-node/geotiff.js +118 -20
  94. package/dist-node/geotiff.js.map +1 -1
  95. package/dist-node/geotiffimage.d.ts +80 -113
  96. package/dist-node/geotiffimage.d.ts.map +1 -1
  97. package/dist-node/geotiffimage.js +99 -71
  98. package/dist-node/geotiffimage.js.map +1 -1
  99. package/dist-node/geotiffwriter.js +2 -2
  100. package/dist-node/geotiffwriter.js.map +1 -1
  101. package/dist-node/globals.d.ts +48 -40
  102. package/dist-node/globals.d.ts.map +1 -1
  103. package/dist-node/globals.js +14 -10
  104. package/dist-node/globals.js.map +1 -1
  105. package/dist-node/imagefiledirectory.d.ts +2 -2
  106. package/dist-node/imagefiledirectory.d.ts.map +1 -1
  107. package/dist-node/imagefiledirectory.js +23 -12
  108. package/dist-node/imagefiledirectory.js.map +1 -1
  109. package/dist-node/logging.js +7 -7
  110. package/dist-node/logging.js.map +1 -1
  111. package/dist-node/pool.js +1 -1
  112. package/dist-node/pool.js.map +1 -1
  113. package/dist-node/predictor.js +1 -1
  114. package/dist-node/predictor.js.map +1 -1
  115. package/dist-node/resample.d.ts +18 -18
  116. package/dist-node/resample.d.ts.map +1 -1
  117. package/dist-node/resample.js +12 -12
  118. package/dist-node/source/basesource.d.ts +7 -7
  119. package/dist-node/source/basesource.d.ts.map +1 -1
  120. package/dist-node/source/basesource.js +7 -7
  121. package/dist-node/source/basesource.js.map +1 -1
  122. package/dist-node/source/blockedsource.d.ts +10 -10
  123. package/dist-node/source/blockedsource.d.ts.map +1 -1
  124. package/dist-node/source/blockedsource.js +12 -9
  125. package/dist-node/source/blockedsource.js.map +1 -1
  126. package/dist-node/source/client/base.d.ts +8 -10
  127. package/dist-node/source/client/base.d.ts.map +1 -1
  128. package/dist-node/source/client/base.js +4 -3
  129. package/dist-node/source/client/base.js.map +1 -1
  130. package/dist-node/source/client/fetch.d.ts +2 -6
  131. package/dist-node/source/client/fetch.d.ts.map +1 -1
  132. package/dist-node/source/client/fetch.js +7 -2
  133. package/dist-node/source/client/fetch.js.map +1 -1
  134. package/dist-node/source/client/http.d.ts +4 -1
  135. package/dist-node/source/client/http.d.ts.map +1 -1
  136. package/dist-node/source/client/http.js +4 -4
  137. package/dist-node/source/client/http.js.map +1 -1
  138. package/dist-node/source/client/xhr.d.ts +4 -1
  139. package/dist-node/source/client/xhr.d.ts.map +1 -1
  140. package/dist-node/source/client/xhr.js +1 -1
  141. package/dist-node/source/client/xhr.js.map +1 -1
  142. package/dist-node/source/file.js +4 -4
  143. package/dist-node/source/file.js.map +1 -1
  144. package/dist-node/source/filereader.js +1 -1
  145. package/dist-node/source/filereader.js.map +1 -1
  146. package/dist-node/source/httputils.d.ts +14 -6
  147. package/dist-node/source/httputils.d.ts.map +1 -1
  148. package/dist-node/source/httputils.js +13 -12
  149. package/dist-node/source/httputils.js.map +1 -1
  150. package/dist-node/source/remote.d.ts +31 -22
  151. package/dist-node/source/remote.d.ts.map +1 -1
  152. package/dist-node/source/remote.js +37 -13
  153. package/dist-node/source/remote.js.map +1 -1
  154. package/dist-node/utils.d.ts +7 -1
  155. package/dist-node/utils.d.ts.map +1 -1
  156. package/dist-node/utils.js +6 -0
  157. package/dist-node/utils.js.map +1 -1
  158. package/dist-node/worker/create.js +1 -1
  159. package/dist-node/worker/create.js.map +1 -1
  160. package/package.json +3 -54
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.js"],"names":[],"mappings":"AAAA,uDAMC;AAED,2DAWC;AAED,oEAMC;AAED,wDAKC;AAED,wCASC;AAED,wCAMC;AAED,uDAMC;AAED,8CAOC;AAED,oDAKC;AAGD;;;;;;;;;;SAsCC;AAKD,sDAEC;AAED,6CAIC;AA4BD,uDAQC;AAED,qDAQC;AAED,sDAQC;AArDD;IACE,yBAUC;CACF;AAED;IACE,uCAKC;IAHC,YAAoB;IACpB,aAAsB;CAGzB;AAED,yDAAmD"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.js"],"names":[],"mappings":"AAAA,uDAMC;AAED,2DAWC;AAED,oEAMC;AAED,wDAKC;AAED,wCASC;AAED,wCAMC;AAED,uDAMC;AAED,8CAOC;AAED,oDAKC;AAGD;;;;;;;;;;SAsCC;AAKD,sDAEC;AAED;;;;;GAKG;AACH,oBALa,CAAC,EAAC,CAAC,KACL,QAAQ,CAAC,CAAC,CAAC,KACX,QAAQ,CAAC,CAAC,CAAC,GACT,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAMzB;AA4BD,uDAQC;AAED,qDAQC;AAED,sDAQC;AArDD;IACE,yBAUC;CACF;AAED;IACE,uCAKC;IAHC,YAAoB;IACpB,aAAsB;CAGzB;AAED,yDAAmD"}
@@ -108,6 +108,12 @@ export function parseContentRange(headerValue) {
108
108
  export async function wait(milliseconds) {
109
109
  return new Promise((resolve) => setTimeout(resolve, milliseconds));
110
110
  }
111
+ /**
112
+ * @template T,U
113
+ * @param {Iterable<T>} a
114
+ * @param {Iterable<U>} b
115
+ * @returns {Array<[T, U]>}
116
+ */
111
117
  export function zip(a, b) {
112
118
  const A = Array.isArray(a) ? a : Array.from(a);
113
119
  const B = Array.isArray(b) ? b : Array.from(b);