@loaders.gl/tile-converter 3.2.0-alpha.1 → 3.2.0-alpha.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 (170) hide show
  1. package/dist/3d-tiles-attributes-worker.d.ts +28 -0
  2. package/dist/3d-tiles-attributes-worker.d.ts.map +1 -0
  3. package/dist/3d-tiles-attributes-worker.js +4 -0
  4. package/dist/3d-tiles-attributes-worker.js.map +7 -0
  5. package/dist/3d-tiles-converter/3d-tiles-converter.d.ts +4 -0
  6. package/dist/3d-tiles-converter/3d-tiles-converter.d.ts.map +1 -1
  7. package/dist/3d-tiles-converter/3d-tiles-converter.js +29 -3
  8. package/dist/3d-tiles-converter/helpers/b3dm-converter.d.ts +5 -4
  9. package/dist/3d-tiles-converter/helpers/b3dm-converter.d.ts.map +1 -1
  10. package/dist/3d-tiles-converter/helpers/b3dm-converter.js +10 -10
  11. package/dist/converter.min.js +20 -20
  12. package/dist/dist.min.js +789 -645
  13. package/dist/es5/3d-tiles-attributes-worker.js +29 -0
  14. package/dist/es5/3d-tiles-attributes-worker.js.map +1 -0
  15. package/dist/es5/3d-tiles-converter/3d-tiles-converter.js +102 -43
  16. package/dist/es5/3d-tiles-converter/3d-tiles-converter.js.map +1 -1
  17. package/dist/es5/3d-tiles-converter/helpers/b3dm-converter.js +21 -23
  18. package/dist/es5/3d-tiles-converter/helpers/b3dm-converter.js.map +1 -1
  19. package/dist/es5/i3s-attributes-worker.js +29 -0
  20. package/dist/es5/i3s-attributes-worker.js.map +1 -0
  21. package/dist/es5/i3s-converter/helpers/coordinate-converter.js +19 -11
  22. package/dist/es5/i3s-converter/helpers/coordinate-converter.js.map +1 -1
  23. package/dist/es5/i3s-converter/helpers/geometry-attributes.js +2 -2
  24. package/dist/es5/i3s-converter/helpers/geometry-attributes.js.map +1 -1
  25. package/dist/es5/i3s-converter/helpers/geometry-converter.js +267 -178
  26. package/dist/es5/i3s-converter/helpers/geometry-converter.js.map +1 -1
  27. package/dist/es5/i3s-converter/helpers/gltf-attributes.js +71 -0
  28. package/dist/es5/i3s-converter/helpers/gltf-attributes.js.map +1 -0
  29. package/dist/es5/i3s-converter/helpers/node-pages.js +47 -99
  30. package/dist/es5/i3s-converter/helpers/node-pages.js.map +1 -1
  31. package/dist/es5/i3s-converter/i3s-converter.js +230 -195
  32. package/dist/es5/i3s-converter/i3s-converter.js.map +1 -1
  33. package/dist/es5/index.js +8 -0
  34. package/dist/es5/index.js.map +1 -1
  35. package/dist/es5/lib/utils/compress-util.js +14 -17
  36. package/dist/es5/lib/utils/compress-util.js.map +1 -1
  37. package/dist/es5/lib/utils/file-utils.js +39 -14
  38. package/dist/es5/lib/utils/file-utils.js.map +1 -1
  39. package/dist/es5/lib/utils/lod-conversion-utils.js.map +1 -1
  40. package/dist/es5/lib/utils/queue.js +61 -0
  41. package/dist/es5/lib/utils/queue.js.map +1 -0
  42. package/dist/es5/lib/utils/statistic-utills.js.map +1 -1
  43. package/dist/es5/lib/utils/write-queue.js +225 -0
  44. package/dist/es5/lib/utils/write-queue.js.map +1 -0
  45. package/dist/es5/pgm-loader.js +1 -1
  46. package/dist/es5/workers/3d-tiles-attributes-worker.js +37 -0
  47. package/dist/es5/workers/3d-tiles-attributes-worker.js.map +1 -0
  48. package/dist/es5/workers/i3s-attributes-worker.js +40 -0
  49. package/dist/es5/workers/i3s-attributes-worker.js.map +1 -0
  50. package/dist/esm/3d-tiles-attributes-worker.js +16 -0
  51. package/dist/esm/3d-tiles-attributes-worker.js.map +1 -0
  52. package/dist/esm/3d-tiles-converter/3d-tiles-converter.js +30 -4
  53. package/dist/esm/3d-tiles-converter/3d-tiles-converter.js.map +1 -1
  54. package/dist/esm/3d-tiles-converter/helpers/b3dm-converter.js +16 -18
  55. package/dist/esm/3d-tiles-converter/helpers/b3dm-converter.js.map +1 -1
  56. package/dist/esm/i3s-attributes-worker.js +16 -0
  57. package/dist/esm/i3s-attributes-worker.js.map +1 -0
  58. package/dist/esm/i3s-converter/helpers/coordinate-converter.js +19 -11
  59. package/dist/esm/i3s-converter/helpers/coordinate-converter.js.map +1 -1
  60. package/dist/esm/i3s-converter/helpers/geometry-attributes.js +2 -2
  61. package/dist/esm/i3s-converter/helpers/geometry-attributes.js.map +1 -1
  62. package/dist/esm/i3s-converter/helpers/geometry-converter.js +117 -58
  63. package/dist/esm/i3s-converter/helpers/geometry-converter.js.map +1 -1
  64. package/dist/esm/i3s-converter/helpers/gltf-attributes.js +54 -0
  65. package/dist/esm/i3s-converter/helpers/gltf-attributes.js.map +1 -0
  66. package/dist/esm/i3s-converter/helpers/node-pages.js +12 -4
  67. package/dist/esm/i3s-converter/helpers/node-pages.js.map +1 -1
  68. package/dist/esm/i3s-converter/i3s-converter.js +105 -28
  69. package/dist/esm/i3s-converter/i3s-converter.js.map +1 -1
  70. package/dist/esm/index.js +1 -0
  71. package/dist/esm/index.js.map +1 -1
  72. package/dist/esm/lib/utils/compress-util.js +6 -8
  73. package/dist/esm/lib/utils/compress-util.js.map +1 -1
  74. package/dist/esm/lib/utils/file-utils.js +11 -1
  75. package/dist/esm/lib/utils/file-utils.js.map +1 -1
  76. package/dist/esm/lib/utils/lod-conversion-utils.js.map +1 -1
  77. package/dist/esm/lib/utils/queue.js +19 -0
  78. package/dist/esm/lib/utils/queue.js.map +1 -0
  79. package/dist/esm/lib/utils/statistic-utills.js.map +1 -1
  80. package/dist/esm/lib/utils/write-queue.js +88 -0
  81. package/dist/esm/lib/utils/write-queue.js.map +1 -0
  82. package/dist/esm/pgm-loader.js +1 -1
  83. package/dist/esm/workers/3d-tiles-attributes-worker.js +5 -0
  84. package/dist/esm/workers/3d-tiles-attributes-worker.js.map +1 -0
  85. package/dist/esm/workers/i3s-attributes-worker.js +4 -0
  86. package/dist/esm/workers/i3s-attributes-worker.js.map +1 -0
  87. package/dist/i3s-attributes-worker.d.ts +33 -0
  88. package/dist/i3s-attributes-worker.d.ts.map +1 -0
  89. package/dist/i3s-attributes-worker.js +10 -0
  90. package/dist/i3s-attributes-worker.js.map +7 -0
  91. package/dist/i3s-converter/helpers/coordinate-converter.d.ts +7 -7
  92. package/dist/i3s-converter/helpers/coordinate-converter.d.ts.map +1 -1
  93. package/dist/i3s-converter/helpers/coordinate-converter.js +25 -21
  94. package/dist/i3s-converter/helpers/geometry-attributes.d.ts +2 -2
  95. package/dist/i3s-converter/helpers/geometry-attributes.d.ts.map +1 -1
  96. package/dist/i3s-converter/helpers/geometry-attributes.js +2 -1
  97. package/dist/i3s-converter/helpers/geometry-converter.d.ts +28 -11
  98. package/dist/i3s-converter/helpers/geometry-converter.d.ts.map +1 -1
  99. package/dist/i3s-converter/helpers/geometry-converter.js +220 -110
  100. package/dist/i3s-converter/helpers/gltf-attributes.d.ts +9 -0
  101. package/dist/i3s-converter/helpers/gltf-attributes.d.ts.map +1 -0
  102. package/dist/i3s-converter/helpers/gltf-attributes.js +56 -0
  103. package/dist/i3s-converter/helpers/node-pages.d.ts +6 -5
  104. package/dist/i3s-converter/helpers/node-pages.d.ts.map +1 -1
  105. package/dist/i3s-converter/helpers/node-pages.js +13 -8
  106. package/dist/i3s-converter/i3s-converter.d.ts +7 -3
  107. package/dist/i3s-converter/i3s-converter.d.ts.map +1 -1
  108. package/dist/i3s-converter/i3s-converter.js +88 -26
  109. package/dist/i3s-converter/types.d.ts +83 -8
  110. package/dist/i3s-converter/types.d.ts.map +1 -1
  111. package/dist/index.d.ts +1 -0
  112. package/dist/index.d.ts.map +1 -1
  113. package/dist/index.js +3 -1
  114. package/dist/lib/utils/compress-util.d.ts +44 -5
  115. package/dist/lib/utils/compress-util.d.ts.map +1 -1
  116. package/dist/lib/utils/compress-util.js +73 -6
  117. package/dist/lib/utils/file-utils.d.ts +34 -5
  118. package/dist/lib/utils/file-utils.d.ts.map +1 -1
  119. package/dist/lib/utils/file-utils.js +40 -1
  120. package/dist/lib/utils/lod-conversion-utils.d.ts +25 -4
  121. package/dist/lib/utils/lod-conversion-utils.d.ts.map +1 -1
  122. package/dist/lib/utils/lod-conversion-utils.js +21 -2
  123. package/dist/lib/utils/queue.d.ts +7 -0
  124. package/dist/lib/utils/queue.d.ts.map +1 -0
  125. package/dist/lib/utils/queue.js +18 -0
  126. package/dist/lib/utils/statistic-utills.d.ts +2 -2
  127. package/dist/lib/utils/statistic-utills.d.ts.map +1 -1
  128. package/dist/lib/utils/write-queue.d.ts +22 -0
  129. package/dist/lib/utils/write-queue.d.ts.map +1 -0
  130. package/dist/lib/utils/write-queue.js +62 -0
  131. package/dist/workers/3d-tiles-attributes-worker.d.ts +2 -0
  132. package/dist/workers/3d-tiles-attributes-worker.d.ts.map +1 -0
  133. package/dist/workers/3d-tiles-attributes-worker.js +9 -0
  134. package/dist/workers/i3s-attributes-worker.d.ts +2 -0
  135. package/dist/workers/i3s-attributes-worker.d.ts.map +1 -0
  136. package/dist/workers/i3s-attributes-worker.js +5 -0
  137. package/package.json +20 -17
  138. package/src/3d-tiles-attributes-worker.ts +43 -0
  139. package/src/3d-tiles-converter/3d-tiles-converter.ts +44 -4
  140. package/src/3d-tiles-converter/helpers/b3dm-converter.ts +15 -13
  141. package/src/i3s-attributes-worker.ts +46 -0
  142. package/src/i3s-converter/helpers/coordinate-converter.ts +29 -24
  143. package/src/i3s-converter/helpers/geometry-attributes.ts +4 -3
  144. package/src/i3s-converter/helpers/{geometry-converter.js → geometry-converter.ts} +421 -175
  145. package/src/i3s-converter/helpers/gltf-attributes.ts +68 -0
  146. package/src/i3s-converter/helpers/node-pages.ts +25 -17
  147. package/src/i3s-converter/i3s-converter.ts +112 -69
  148. package/src/i3s-converter/types.ts +90 -8
  149. package/src/index.ts +1 -0
  150. package/src/lib/utils/{compress-util.js → compress-util.ts} +105 -18
  151. package/src/lib/utils/file-utils.ts +84 -0
  152. package/src/lib/utils/{lod-conversion-utils.js → lod-conversion-utils.ts} +27 -5
  153. package/src/lib/utils/queue.ts +17 -0
  154. package/src/lib/utils/{statistic-utills.js → statistic-utills.ts} +0 -0
  155. package/src/lib/utils/write-queue.ts +75 -0
  156. package/src/workers/3d-tiles-attributes-worker.ts +6 -0
  157. package/src/workers/i3s-attributes-worker.ts +6 -0
  158. package/dist/es5/i3s-converter/helpers/geometry-converter.d.ts +0 -44
  159. package/dist/es5/lib/utils/compress-util.d.ts +0 -53
  160. package/dist/es5/lib/utils/file-utils.d.ts +0 -43
  161. package/dist/es5/lib/utils/lod-conversion-utils.d.ts +0 -32
  162. package/dist/esm/i3s-converter/helpers/geometry-converter.d.ts +0 -44
  163. package/dist/esm/lib/utils/compress-util.d.ts +0 -53
  164. package/dist/esm/lib/utils/file-utils.d.ts +0 -43
  165. package/dist/esm/lib/utils/lod-conversion-utils.d.ts +0 -32
  166. package/src/i3s-converter/helpers/geometry-converter.d.ts +0 -44
  167. package/src/lib/utils/compress-util.d.ts +0 -53
  168. package/src/lib/utils/file-utils.d.ts +0 -43
  169. package/src/lib/utils/file-utils.js +0 -38
  170. package/src/lib/utils/lod-conversion-utils.d.ts +0 -32
@@ -1,6 +1,45 @@
1
- export function compressFileWithGzip(pathFile: any): Promise<any>;
2
- export function compressFilesWithZip(fileMap: any, outputFile: any, level?: number): Promise<any>;
3
- export function compressWithChildProcess(...args: any[]): Promise<void>;
4
- export function generateHash128FromZip(inputZipFile: any, outputFile: any): Promise<any>;
5
- export function addFileToZip(inputFolder: any, fileName: any, zipFile: any, sevenZipExe: any): Promise<void>;
1
+ /**
2
+ * Compress file to gzip file
3
+ *
4
+ * @param pathFile - the path to the file
5
+ * @return the path to the gzip file
6
+ */
7
+ export declare function compressFileWithGzip(pathFile: string): Promise<string>;
8
+ /**
9
+ * Compress files from map into slpk file
10
+ *
11
+ * @param fileMap - map with file paths (key: output path, value: input path)
12
+ * @param outputFile - output slpk file
13
+ * @param level - compression level
14
+ */
15
+ export declare function compressFilesWithZip(fileMap: {
16
+ [key: string]: string;
17
+ }, outputFile: string, level?: number): Promise<unknown>;
18
+ /**
19
+ * Compress files using external tool 'zip'/'7z'
20
+ *
21
+ * @param inputFolder - folder to archive - for cwd option
22
+ * @param outputFile - output slpk file
23
+ * @param level - compression level
24
+ * @param inputFiles - input files path to pass to the executable as option
25
+ * @param sevenZipExe - path to 7z.exe executable
26
+ */
27
+ export declare function compressWithChildProcess(inputFolder: string, outputFile: string, level: number, inputFiles: string, sevenZipExe: string): Promise<void>;
28
+ /**
29
+ * Generate hash file from zip archive
30
+ * https://github.com/Esri/i3s-spec/blob/master/docs/1.7/slpk_hashtable.cmn.md
31
+ *
32
+ * @param inputZipFile
33
+ * @param outputFile
34
+ */
35
+ export declare function generateHash128FromZip(inputZipFile: string, outputFile: string): Promise<unknown>;
36
+ /**
37
+ * Add file to zip archive
38
+ *
39
+ * @param inputFile
40
+ * @param fileName
41
+ * @param zipFile
42
+ * @param sevenZipExe
43
+ */
44
+ export declare function addFileToZip(inputFolder: string, fileName: string, zipFile: string, sevenZipExe: string): Promise<void>;
6
45
  //# sourceMappingURL=compress-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compress-util.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/compress-util.js"],"names":[],"mappings":"AAWA,kEAiBC;AAED,kGAoDC;AAED,wEAOC;AA0CD,yFA6CC;AASD,6GAGC"}
1
+ {"version":3,"file":"compress-util.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/compress-util.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAiBtE;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,EAChC,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,MAAU,oBAqDlB;AAED;;;;;;;;GAQG;AACH,wBAAsB,wBAAwB,CAC5C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,iBAQpB;AAgED;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBA6CpF;AAeD;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAChC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,iBAIpB"}
@@ -14,6 +14,12 @@ const jszip_1 = __importDefault(require("jszip"));
14
14
  const crypto_1 = require("@loaders.gl/crypto");
15
15
  const crypt_1 = __importDefault(require("crypt"));
16
16
  const file_utils_2 = require("./file-utils");
17
+ /**
18
+ * Compress file to gzip file
19
+ *
20
+ * @param pathFile - the path to the file
21
+ * @return the path to the gzip file
22
+ */
17
23
  function compressFileWithGzip(pathFile) {
18
24
  const compressedPathFile = `${pathFile}.gz`;
19
25
  const gzip = (0, zlib_1.createGzip)();
@@ -32,6 +38,13 @@ function compressFileWithGzip(pathFile) {
32
38
  });
33
39
  }
34
40
  exports.compressFileWithGzip = compressFileWithGzip;
41
+ /**
42
+ * Compress files from map into slpk file
43
+ *
44
+ * @param fileMap - map with file paths (key: output path, value: input path)
45
+ * @param outputFile - output slpk file
46
+ * @param level - compression level
47
+ */
35
48
  async function compressFilesWithZip(fileMap, outputFile, level = 0) {
36
49
  // Before creating a new file, we need to delete the old file
37
50
  try {
@@ -79,16 +92,33 @@ async function compressFilesWithZip(fileMap, outputFile, level = 0) {
79
92
  });
80
93
  }
81
94
  exports.compressFilesWithZip = compressFilesWithZip;
82
- async function compressWithChildProcess() {
95
+ /**
96
+ * Compress files using external tool 'zip'/'7z'
97
+ *
98
+ * @param inputFolder - folder to archive - for cwd option
99
+ * @param outputFile - output slpk file
100
+ * @param level - compression level
101
+ * @param inputFiles - input files path to pass to the executable as option
102
+ * @param sevenZipExe - path to 7z.exe executable
103
+ */
104
+ async function compressWithChildProcess(inputFolder, outputFile, level, inputFiles, sevenZipExe) {
83
105
  // eslint-disable-next-line no-undef
84
106
  if (process.platform === 'win32') {
85
- await compressWithChildProcessWindows(...arguments);
107
+ await compressWithChildProcessWindows(inputFolder, outputFile, level, inputFiles, sevenZipExe);
86
108
  }
87
109
  else {
88
- await compressWithChildProcessUnix(...arguments);
110
+ await compressWithChildProcessUnix(inputFolder, outputFile, level, inputFiles);
89
111
  }
90
112
  }
91
113
  exports.compressWithChildProcess = compressWithChildProcess;
114
+ /**
115
+ * Compress files using external linux tool 'zip'
116
+ *
117
+ * @param inputFolder - folder to archive - for cwd option
118
+ * @param outputFile - output slpk file
119
+ * @param level - compression level
120
+ * @param inputFiles - input files path to pass to the executable as option
121
+ */
92
122
  async function compressWithChildProcessUnix(inputFolder, outputFile, level = 0, inputFiles = '.') {
93
123
  const fullOutputFile = (0, file_utils_2.getAbsoluteFilePath)(outputFile);
94
124
  const args = [`-${level}`, '-r', fullOutputFile, inputFiles];
@@ -102,6 +132,15 @@ async function compressWithChildProcessUnix(inputFolder, outputFile, level = 0,
102
132
  wait: 0
103
133
  });
104
134
  }
135
+ /**
136
+ * Compress files using windows external tool '7z'
137
+ *
138
+ * @param inputFolder - folder to archive - for cwd option
139
+ * @param outputFile - output slpk file
140
+ * @param level - compression level
141
+ * @param inputFiles - input files path to pass to the executable as option
142
+ * @param sevenZipExe - path to 7z.exe executable
143
+ */
105
144
  async function compressWithChildProcessWindows(inputFolder, outputFile, level = 0, inputFiles = (0, path_1.join)('.', '*'), sevenZipExe) {
106
145
  // Workaround for @listfile issue. In 7z.exe @-leading files are handled as listfiles
107
146
  // https://sevenzip.osdn.jp/chm/cmdline/syntax.htm
@@ -120,6 +159,13 @@ async function compressWithChildProcessWindows(inputFolder, outputFile, level =
120
159
  wait: 0
121
160
  });
122
161
  }
162
+ /**
163
+ * Generate hash file from zip archive
164
+ * https://github.com/Esri/i3s-spec/blob/master/docs/1.7/slpk_hashtable.cmn.md
165
+ *
166
+ * @param inputZipFile
167
+ * @param outputFile
168
+ */
123
169
  async function generateHash128FromZip(inputZipFile, outputFile) {
124
170
  const input = await fs_1.promises.readFile(inputZipFile);
125
171
  const zip = await jszip_1.default.loadAsync(input);
@@ -157,7 +203,7 @@ async function generateHash128FromZip(inputZipFile, outputFile) {
157
203
  });
158
204
  for (const key in hashTable) {
159
205
  const item = hashTable[key];
160
- const value = _longToByteArray(item.value);
206
+ const value = longToByteArray(item.value);
161
207
  // TODO: perhaps you need to wait for the 'drain' event if the write returns 'false'
162
208
  // eslint-disable-next-line no-undef
163
209
  output.write(Buffer.from(crypt_1.default.hexToBytes(item.key).concat(value)));
@@ -166,17 +212,38 @@ async function generateHash128FromZip(inputZipFile, outputFile) {
166
212
  });
167
213
  }
168
214
  exports.generateHash128FromZip = generateHash128FromZip;
169
- function _longToByteArray(long) {
215
+ /**
216
+ * Encode 64 bit value to byte array
217
+ *
218
+ * @param long - stringified number
219
+ * @returns
220
+ */
221
+ function longToByteArray(long) {
170
222
  const buffer = new ArrayBuffer(8); // JS numbers are 8 bytes long, or 64 bits
171
223
  const longNum = new Float64Array(buffer); // so equivalent to Float64
172
- longNum[0] = long;
224
+ longNum[0] = parseInt(long);
173
225
  return Array.from(new Uint8Array(buffer)).reverse(); // reverse to get little endian
174
226
  }
227
+ /**
228
+ * Add file to zip archive
229
+ *
230
+ * @param inputFile
231
+ * @param fileName
232
+ * @param zipFile
233
+ * @param sevenZipExe
234
+ */
175
235
  async function addFileToZip(inputFolder, fileName, zipFile, sevenZipExe) {
176
236
  await compressWithChildProcess(inputFolder, zipFile, 0, fileName, sevenZipExe);
177
237
  console.log(`${fileName} added to ${zipFile}.`); // eslint-disable-line
178
238
  }
179
239
  exports.addFileToZip = addFileToZip;
240
+ /**
241
+ *
242
+ * @param archive zip archive instance
243
+ * @param subFileName file path inside archive
244
+ * @param subFileData source file path
245
+ * @returns
246
+ */
180
247
  function appendFileToArchive(archive, subFileName, subFileData) {
181
248
  return new Promise((resolve) => {
182
249
  const fileStream = (0, fs_1.createReadStream)(subFileData);
@@ -1,6 +1,35 @@
1
- export function writeFile(path: any, data: any, fileName?: string): Promise<string>;
2
- export function writeFileForSlpk(path: any, data: any, fileName?: string, compress?: boolean): Promise<string>;
3
- export function removeDir(path: any): Promise<void>;
4
- export function removeFile(path: any): Promise<void>;
5
- export function getAbsoluteFilePath(filePath: any): any;
1
+ /**
2
+ * Write a file with data and name fileName to path
3
+ *
4
+ * @param path - output path
5
+ * @param data - file content
6
+ * @param fileName - name of output file (default: index.json)
7
+ */
8
+ export declare function writeFile(path: string, data: string | Uint8Array | ArrayBuffer | Promise<ArrayBuffer>, fileName?: string): Promise<string>;
9
+ /**
10
+ * Write a file with data and name fileName to path - specific one for further packaging into slpk
11
+ *
12
+ * @param path - output path
13
+ * @param data - file content
14
+ * @param fileName - name of output file (default: index.json)
15
+ * @param compress - if need to compress file with gzip (default: true)
16
+ */
17
+ export declare function writeFileForSlpk(path: string, data: string | Uint8Array | ArrayBuffer | Promise<ArrayBuffer>, fileName?: string, compress?: boolean): Promise<string>;
18
+ /**
19
+ * Remove dir with path
20
+ *
21
+ * @param path
22
+ */
23
+ export declare function removeDir(path: string): Promise<void>;
24
+ /**
25
+ * Remove file with path
26
+ *
27
+ * @param path
28
+ */
29
+ export declare function removeFile(path: string): Promise<void>;
30
+ /**
31
+ * Generates absolute file path
32
+ * @param filePath
33
+ */
34
+ export declare function getAbsoluteFilePath(filePath: string): string;
6
35
  //# sourceMappingURL=file-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/file-utils.js"],"names":[],"mappings":"AAIA,oFAUC;AAED,+GASC;AAED,oDAEC;AAED,qDAEC;AAED,wDAEC"}
1
+ {"version":3,"file":"file-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/file-utils.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,EAC9D,QAAQ,GAAE,MAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAkBjB;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,EAC9D,QAAQ,GAAE,MAAqB,EAC/B,QAAQ,GAAE,OAAc,GACvB,OAAO,CAAC,MAAM,CAAC,CASjB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,iBAErC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,iBAEtC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,UAEnD"}
@@ -4,11 +4,28 @@ exports.getAbsoluteFilePath = exports.removeFile = exports.removeDir = exports.w
4
4
  const fs_1 = require("fs");
5
5
  const path_1 = require("path");
6
6
  const compress_util_1 = require("./compress-util");
7
+ /**
8
+ * Write a file with data and name fileName to path
9
+ *
10
+ * @param path - output path
11
+ * @param data - file content
12
+ * @param fileName - name of output file (default: index.json)
13
+ */
7
14
  async function writeFile(path, data, fileName = 'index.json') {
15
+ let toWriteData;
16
+ if (data instanceof Promise) {
17
+ toWriteData = new Uint8Array(await data);
18
+ }
19
+ else if (data instanceof ArrayBuffer) {
20
+ toWriteData = new Uint8Array(data);
21
+ }
22
+ else {
23
+ toWriteData = data;
24
+ }
8
25
  await fs_1.promises.mkdir(path, { recursive: true });
9
26
  const pathFile = (0, path_1.join)(path, fileName);
10
27
  try {
11
- await fs_1.promises.writeFile(pathFile, data);
28
+ await fs_1.promises.writeFile(pathFile, toWriteData);
12
29
  }
13
30
  catch (err) {
14
31
  throw err;
@@ -17,6 +34,14 @@ async function writeFile(path, data, fileName = 'index.json') {
17
34
  return pathFile;
18
35
  }
19
36
  exports.writeFile = writeFile;
37
+ /**
38
+ * Write a file with data and name fileName to path - specific one for further packaging into slpk
39
+ *
40
+ * @param path - output path
41
+ * @param data - file content
42
+ * @param fileName - name of output file (default: index.json)
43
+ * @param compress - if need to compress file with gzip (default: true)
44
+ */
20
45
  async function writeFileForSlpk(path, data, fileName = 'index.json', compress = true) {
21
46
  const pathFile = await writeFile(path, data, fileName);
22
47
  if (compress) {
@@ -28,14 +53,28 @@ async function writeFileForSlpk(path, data, fileName = 'index.json', compress =
28
53
  return pathFile;
29
54
  }
30
55
  exports.writeFileForSlpk = writeFileForSlpk;
56
+ /**
57
+ * Remove dir with path
58
+ *
59
+ * @param path
60
+ */
31
61
  function removeDir(path) {
32
62
  return fs_1.promises.rmdir(path, { recursive: true });
33
63
  }
34
64
  exports.removeDir = removeDir;
65
+ /**
66
+ * Remove file with path
67
+ *
68
+ * @param path
69
+ */
35
70
  function removeFile(path) {
36
71
  return fs_1.promises.unlink(path);
37
72
  }
38
73
  exports.removeFile = removeFile;
74
+ /**
75
+ * Generates absolute file path
76
+ * @param filePath
77
+ */
39
78
  function getAbsoluteFilePath(filePath) {
40
79
  return (0, path_1.isAbsolute)(filePath) ? filePath : (0, path_1.join)(process.cwd(), filePath); // eslint-disable-line no-undef
41
80
  }
@@ -1,7 +1,8 @@
1
+ import { BoundingVolumes } from '@loaders.gl/i3s';
2
+ import { Tile3D } from '@loaders.gl/tiles';
1
3
  /**
2
4
  * Do conversion from geometric error to screen threshold
3
- * @param {Object} tile
4
- * @param {Object} coordinates
5
+ *
5
6
  * In 3DTiles we have HLOD logic and parent tile also has bigger lodMetric value then its children.
6
7
  * In I3s we have reverse logic related to maxError. Parent has lower maxError than its child.
7
8
  * In nodes where are no children tile.lodMetricValue is 0. This is because of logic of HLOD in 3DTiles
@@ -11,10 +12,30 @@
11
12
  * https://github.com/Esri/i3s-spec/blob/master/docs/1.7/lodSelection.cmn.md
12
13
  * To avoid infinity values when we do calculations of maxError we shold replace 0 with value which allows us
13
14
  * to make child maxError bigger than his parent maxError.
15
+ *
16
+ * @param tile - 3d-tiles tile Object
17
+ * @param coordinates - node converted coordinates
18
+ * @returns An array of LOD metrics in format compatible with i3s 3DNodeIndexDocument.lodSelection
19
+ * @example
20
+ * [
21
+ {
22
+ "metricType": "maxScreenThresholdSQ",
23
+ "maxError": 870638.071285568
24
+ },
25
+ {
26
+ "metricType": "maxScreenThreshold",
27
+ "maxError": 1052.8679031638949
28
+ }
29
+ ]
14
30
  */
15
- export function convertGeometricErrorToScreenThreshold(tile: any, coordinates: any): {
31
+ export declare function convertGeometricErrorToScreenThreshold(tile: Tile3D, coordinates: BoundingVolumes): {
16
32
  metricType: string;
17
33
  maxError: number;
18
34
  }[];
19
- export function convertScreenThresholdToGeometricError(node: any): number;
35
+ /**
36
+ * Convert LOD metric from "Screen Threshold" to "Screen Space Error"
37
+ * @param node - i3s node data
38
+ * @returns lod metric in 3d-tiles format
39
+ */
40
+ export declare function convertScreenThresholdToGeometricError(node: Tile3D): number;
20
41
  //# sourceMappingURL=lod-conversion-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lod-conversion-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/lod-conversion-utils.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH;;;IAsBC;AAED,0EAeC"}
1
+ {"version":3,"file":"lod-conversion-utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/lod-conversion-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe;gBAC9D,MAAM;cAAY,MAAM;IAqB1D;AAED;;;;GAIG;AACH,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAe3E"}
@@ -5,8 +5,7 @@ exports.convertScreenThresholdToGeometricError = exports.convertGeometricErrorTo
5
5
  const DEFAULT_MAXIMUM_SCREEN_SPACE_ERROR = 16;
6
6
  /**
7
7
  * Do conversion from geometric error to screen threshold
8
- * @param {Object} tile
9
- * @param {Object} coordinates
8
+ *
10
9
  * In 3DTiles we have HLOD logic and parent tile also has bigger lodMetric value then its children.
11
10
  * In I3s we have reverse logic related to maxError. Parent has lower maxError than its child.
12
11
  * In nodes where are no children tile.lodMetricValue is 0. This is because of logic of HLOD in 3DTiles
@@ -16,6 +15,21 @@ const DEFAULT_MAXIMUM_SCREEN_SPACE_ERROR = 16;
16
15
  * https://github.com/Esri/i3s-spec/blob/master/docs/1.7/lodSelection.cmn.md
17
16
  * To avoid infinity values when we do calculations of maxError we shold replace 0 with value which allows us
18
17
  * to make child maxError bigger than his parent maxError.
18
+ *
19
+ * @param tile - 3d-tiles tile Object
20
+ * @param coordinates - node converted coordinates
21
+ * @returns An array of LOD metrics in format compatible with i3s 3DNodeIndexDocument.lodSelection
22
+ * @example
23
+ * [
24
+ {
25
+ "metricType": "maxScreenThresholdSQ",
26
+ "maxError": 870638.071285568
27
+ },
28
+ {
29
+ "metricType": "maxScreenThreshold",
30
+ "maxError": 1052.8679031638949
31
+ }
32
+ ]
19
33
  */
20
34
  function convertGeometricErrorToScreenThreshold(tile, coordinates) {
21
35
  const lodSelection = [];
@@ -40,6 +54,11 @@ function convertGeometricErrorToScreenThreshold(tile, coordinates) {
40
54
  return lodSelection;
41
55
  }
42
56
  exports.convertGeometricErrorToScreenThreshold = convertGeometricErrorToScreenThreshold;
57
+ /**
58
+ * Convert LOD metric from "Screen Threshold" to "Screen Space Error"
59
+ * @param node - i3s node data
60
+ * @returns lod metric in 3d-tiles format
61
+ */
43
62
  function convertScreenThresholdToGeometricError(node) {
44
63
  const metricData = node.header.lodSelection.maxScreenThreshold || {};
45
64
  let maxError = metricData.maxError;
@@ -0,0 +1,7 @@
1
+ export declare class Queue<T> extends Array<T> {
2
+ enqueue(val: T): void;
3
+ dequeue(): T | undefined;
4
+ peek(): T;
5
+ isEmpty(): boolean;
6
+ }
7
+ //# sourceMappingURL=queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/queue.ts"],"names":[],"mappings":"AAAA,qBAAa,KAAK,CAAC,CAAC,CAAE,SAAQ,KAAK,CAAC,CAAC,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,CAAC;IAId,OAAO,IAAI,CAAC,GAAG,SAAS;IAIxB,IAAI,IAAI,CAAC;IAIT,OAAO;CAGR"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Queue = void 0;
4
+ class Queue extends Array {
5
+ enqueue(val) {
6
+ this.push(val);
7
+ }
8
+ dequeue() {
9
+ return this.shift();
10
+ }
11
+ peek() {
12
+ return this[0];
13
+ }
14
+ isEmpty() {
15
+ return this.length === 0;
16
+ }
17
+ }
18
+ exports.Queue = Queue;
@@ -1,3 +1,3 @@
1
- export function timeConverter(time: any): string;
2
- export function calculateFilesSize(params: any): Promise<number | null>;
1
+ export declare function timeConverter(time: any): string;
2
+ export declare function calculateFilesSize(params: any): Promise<number | null>;
3
3
  //# sourceMappingURL=statistic-utills.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"statistic-utills.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/statistic-utills.js"],"names":[],"mappings":"AAIA,iDA4BC;AAED,wEAkBC"}
1
+ {"version":3,"file":"statistic-utills.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/statistic-utills.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,CAAC,IAAI,KAAA,UA4BjC;AAED,wBAAsB,kBAAkB,CAAC,MAAM,KAAA,0BAkB9C"}
@@ -0,0 +1,22 @@
1
+ import { Queue } from './queue';
2
+ export declare type WriteQueueItem = {
3
+ archiveKey?: string;
4
+ writePromise: Promise<string>;
5
+ };
6
+ export default class WriteQueue<T extends WriteQueueItem> extends Queue<T> {
7
+ private intervalId?;
8
+ writePromise: Promise<void> | null;
9
+ fileMap: {
10
+ [key: string]: string;
11
+ };
12
+ listeningInterval: number;
13
+ writeConcurrency: number;
14
+ constructor(listeningInterval?: number, writeConcurrency?: number);
15
+ startListening(): void;
16
+ stopListening(): void;
17
+ startWrite(): Promise<void>;
18
+ finalize(): Promise<void>;
19
+ private doWrite;
20
+ private updateFileMap;
21
+ }
22
+ //# sourceMappingURL=write-queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-queue.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/write-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,oBAAY,cAAc,GAAG;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,UAAU,CAAC,CAAC,SAAS,cAAc,CAAE,SAAQ,KAAK,CAAC,CAAC,CAAC;IACxE,OAAO,CAAC,UAAU,CAAC,CAAiB;IAC7B,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAQ;IAC1C,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAM;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;gBAEpB,iBAAiB,GAAE,MAAa,EAAE,gBAAgB,GAAE,MAAY;IAM5E,cAAc;IAId,aAAa;IAMP,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAW3B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YAKjB,OAAO;IAmBrB,OAAO,CAAC,aAAa;CAStB"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const queue_1 = require("./queue");
4
+ class WriteQueue extends queue_1.Queue {
5
+ constructor(listeningInterval = 2000, writeConcurrency = 400) {
6
+ super();
7
+ this.writePromise = null;
8
+ this.fileMap = {};
9
+ this.listeningInterval = listeningInterval;
10
+ this.writeConcurrency = writeConcurrency;
11
+ }
12
+ startListening() {
13
+ this.intervalId = setInterval(this.startWrite.bind(this), this.listeningInterval);
14
+ }
15
+ stopListening() {
16
+ if (this.intervalId) {
17
+ clearInterval(this.intervalId);
18
+ }
19
+ }
20
+ async startWrite() {
21
+ if (this.writePromise) {
22
+ await this.writePromise;
23
+ this.writePromise = null;
24
+ return;
25
+ }
26
+ this.writePromise = this.doWrite();
27
+ await this.writePromise;
28
+ this.writePromise = null;
29
+ }
30
+ async finalize() {
31
+ this.stopListening();
32
+ await this.startWrite();
33
+ }
34
+ async doWrite() {
35
+ while (this.length) {
36
+ const promises = [];
37
+ const archiveKeys = [];
38
+ for (let i = 0; i < this.writeConcurrency; i++) {
39
+ const item = this.dequeue();
40
+ if (!item) {
41
+ break;
42
+ }
43
+ const { archiveKey, writePromise } = item;
44
+ archiveKeys.push(archiveKey);
45
+ promises.push(writePromise);
46
+ }
47
+ const writeResults = await Promise.all(promises);
48
+ this.updateFileMap(archiveKeys, writeResults);
49
+ }
50
+ this.writePromise = null;
51
+ }
52
+ updateFileMap(archiveKeys, writeResults) {
53
+ for (let i = 0; i < archiveKeys.length; i++) {
54
+ const archiveKey = archiveKeys[i];
55
+ if (!archiveKey) {
56
+ continue;
57
+ }
58
+ this.fileMap[archiveKey] = writeResults[i];
59
+ }
60
+ }
61
+ }
62
+ exports.default = WriteQueue;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=3d-tiles-attributes-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"3d-tiles-attributes-worker.d.ts","sourceRoot":"","sources":["../../src/workers/3d-tiles-attributes-worker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const worker_utils_1 = require("@loaders.gl/worker-utils");
7
+ const b3dm_converter_1 = __importDefault(require("../3d-tiles-converter/helpers/b3dm-converter"));
8
+ const b3dmConverter = new b3dm_converter_1.default();
9
+ (0, worker_utils_1.createWorker)(async (data, options = {}) => b3dmConverter.convert(data, options.attributes));
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=i3s-attributes-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i3s-attributes-worker.d.ts","sourceRoot":"","sources":["../../src/workers/i3s-attributes-worker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const worker_utils_1 = require("@loaders.gl/worker-utils");
4
+ const geometry_converter_1 = require("../i3s-converter/helpers/geometry-converter");
5
+ (0, worker_utils_1.createWorker)(async (data, options = {}) => await (0, geometry_converter_1.convertAttributes)(data, options.useCartesianPositions));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/tile-converter",
3
- "version": "3.2.0-alpha.1",
3
+ "version": "3.2.0-alpha.2",
4
4
  "description": "Converter",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -33,24 +33,27 @@
33
33
  "fs": false
34
34
  },
35
35
  "scripts": {
36
- "pre-build": "npm run build-bundle && npm run build-converter-bundle",
36
+ "pre-build": "npm run build-bundle && npm run build-converter-bundle && npm run build-i3s-attributes-worker && npm run build-3d-tiles-attributes-worker",
37
37
  "build-bundle": "esbuild ./src/index.ts --bundle --outfile=dist/dist.min.js --platform=node",
38
38
  "build-converter-bundle": "webpack --display errors-only --config ./converter-webpack/bundle.js",
39
- "build-bin": "BABEL_ENV=es5 babel scripts --config-file ../../babel.config.js --out-dir dist/scripts"
39
+ "build-bin": "BABEL_ENV=es5 babel scripts --config-file ../../babel.config.js --out-dir dist/scripts",
40
+ "build-i3s-attributes-worker": "esbuild src/workers/i3s-attributes-worker.ts --outfile=dist/i3s-attributes-worker.js --platform=node --target=esnext,node12 --minify --bundle --sourcemap --define:__VERSION__=\\\"$npm_package_version\\\"",
41
+ "build-3d-tiles-attributes-worker": "esbuild src/workers/3d-tiles-attributes-worker.ts --outfile=dist/3d-tiles-attributes-worker.js --platform=node --target=esnext,node12 --minify --bundle --sourcemap --define:__VERSION__=\\\"$npm_package_version\\\""
40
42
  },
41
43
  "dependencies": {
42
- "@loaders.gl/3d-tiles": "3.2.0-alpha.1",
43
- "@loaders.gl/crypto": "3.2.0-alpha.1",
44
- "@loaders.gl/draco": "3.2.0-alpha.1",
45
- "@loaders.gl/gltf": "3.2.0-alpha.1",
46
- "@loaders.gl/i3s": "3.2.0-alpha.1",
47
- "@loaders.gl/images": "3.2.0-alpha.1",
48
- "@loaders.gl/loader-utils": "3.2.0-alpha.1",
49
- "@loaders.gl/polyfills": "3.2.0-alpha.1",
50
- "@loaders.gl/textures": "3.2.0-alpha.1",
51
- "@loaders.gl/tiles": "3.2.0-alpha.1",
52
- "@loaders.gl/worker-utils": "3.2.0-alpha.1",
53
- "@loaders.gl/zip": "3.2.0-alpha.1",
44
+ "@loaders.gl/3d-tiles": "3.2.0-alpha.2",
45
+ "@loaders.gl/crypto": "3.2.0-alpha.2",
46
+ "@loaders.gl/draco": "3.2.0-alpha.2",
47
+ "@loaders.gl/gltf": "3.2.0-alpha.2",
48
+ "@loaders.gl/i3s": "3.2.0-alpha.2",
49
+ "@loaders.gl/images": "3.2.0-alpha.2",
50
+ "@loaders.gl/loader-utils": "3.2.0-alpha.2",
51
+ "@loaders.gl/polyfills": "3.2.0-alpha.2",
52
+ "@loaders.gl/schema": "3.2.0-alpha.2",
53
+ "@loaders.gl/textures": "3.2.0-alpha.2",
54
+ "@loaders.gl/tiles": "3.2.0-alpha.2",
55
+ "@loaders.gl/worker-utils": "3.2.0-alpha.2",
56
+ "@loaders.gl/zip": "3.2.0-alpha.2",
54
57
  "@luma.gl/engine": "^8.5.4",
55
58
  "@math.gl/core": "^3.5.1",
56
59
  "@math.gl/culling": "^3.5.1",
@@ -68,7 +71,7 @@
68
71
  "uuid": "^8.1.0"
69
72
  },
70
73
  "peerDependencies": {
71
- "@loaders.gl/core": "4.0.0-alpha.4"
74
+ "@loaders.gl/core": "3.2.0-alpha.1"
72
75
  },
73
- "gitHead": "423a2815092b08dcf93ad5b7dc2940b167305afe"
76
+ "gitHead": "52a602739cbfce60fc314f474efc984d199dff78"
74
77
  }