@loaders.gl/tile-converter 4.1.1 → 4.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 (55) hide show
  1. package/dist/3d-tiles-converter/3d-tiles-converter.d.ts +11 -0
  2. package/dist/3d-tiles-converter/3d-tiles-converter.d.ts.map +1 -1
  3. package/dist/3d-tiles-converter/3d-tiles-converter.js +77 -27
  4. package/dist/3d-tiles-converter/3d-tiles-converter.js.map +1 -1
  5. package/dist/3d-tiles-converter/helpers/load-i3s.d.ts +22 -1
  6. package/dist/3d-tiles-converter/helpers/load-i3s.d.ts.map +1 -1
  7. package/dist/3d-tiles-converter/helpers/load-i3s.js +49 -4
  8. package/dist/3d-tiles-converter/helpers/load-i3s.js.map +1 -1
  9. package/dist/converter-cli.js +2 -1
  10. package/dist/converter-cli.js.map +1 -1
  11. package/dist/converter.min.cjs +137 -130
  12. package/dist/deps-installer/deps-installer.js +1 -1
  13. package/dist/deps-installer/deps-installer.js.map +1 -1
  14. package/dist/i3s-converter/helpers/attribute-metadata-info.d.ts +10 -0
  15. package/dist/i3s-converter/helpers/attribute-metadata-info.d.ts.map +1 -1
  16. package/dist/i3s-converter/helpers/attribute-metadata-info.js +5 -0
  17. package/dist/i3s-converter/helpers/attribute-metadata-info.js.map +1 -1
  18. package/dist/i3s-converter/helpers/load-3d-tiles.d.ts.map +1 -1
  19. package/dist/i3s-converter/helpers/load-3d-tiles.js +22 -2
  20. package/dist/i3s-converter/helpers/load-3d-tiles.js.map +1 -1
  21. package/dist/i3s-converter/helpers/node-index-document.d.ts +2 -1
  22. package/dist/i3s-converter/helpers/node-index-document.d.ts.map +1 -1
  23. package/dist/i3s-converter/helpers/node-index-document.js +6 -8
  24. package/dist/i3s-converter/helpers/node-index-document.js.map +1 -1
  25. package/dist/i3s-converter/i3s-converter.d.ts +18 -0
  26. package/dist/i3s-converter/i3s-converter.d.ts.map +1 -1
  27. package/dist/i3s-converter/i3s-converter.js +121 -24
  28. package/dist/i3s-converter/i3s-converter.js.map +1 -1
  29. package/dist/i3s-server/bin/i3s-server.min.cjs +86 -86
  30. package/dist/index.cjs +792 -101
  31. package/dist/lib/json-schemas/conversion-dump-json-schema.d.ts +463 -0
  32. package/dist/lib/json-schemas/conversion-dump-json-schema.d.ts.map +1 -0
  33. package/dist/lib/json-schemas/conversion-dump-json-schema.js +463 -0
  34. package/dist/lib/json-schemas/conversion-dump-json-schema.js.map +1 -0
  35. package/dist/lib/utils/conversion-dump.d.ts +65 -8
  36. package/dist/lib/utils/conversion-dump.d.ts.map +1 -1
  37. package/dist/lib/utils/conversion-dump.js +98 -18
  38. package/dist/lib/utils/conversion-dump.js.map +1 -1
  39. package/dist/lib/utils/file-utils.d.ts +6 -0
  40. package/dist/lib/utils/file-utils.d.ts.map +1 -1
  41. package/dist/lib/utils/file-utils.js +7 -0
  42. package/dist/lib/utils/file-utils.js.map +1 -1
  43. package/dist/pgm-loader.js +1 -1
  44. package/dist/pgm-loader.js.map +1 -1
  45. package/package.json +15 -14
  46. package/src/3d-tiles-converter/3d-tiles-converter.ts +104 -31
  47. package/src/3d-tiles-converter/helpers/load-i3s.ts +86 -7
  48. package/src/converter-cli.ts +2 -1
  49. package/src/i3s-converter/helpers/attribute-metadata-info.ts +16 -0
  50. package/src/i3s-converter/helpers/load-3d-tiles.ts +52 -2
  51. package/src/i3s-converter/helpers/node-index-document.ts +18 -8
  52. package/src/i3s-converter/i3s-converter.ts +198 -41
  53. package/src/lib/json-schemas/conversion-dump-json-schema.ts +285 -0
  54. package/src/lib/utils/conversion-dump.ts +200 -26
  55. package/src/lib/utils/file-utils.ts +13 -0
@@ -0,0 +1,463 @@
1
+ export declare const dumpJsonSchema: {
2
+ type: string;
3
+ properties: {
4
+ options: {
5
+ type: string;
6
+ properties: {
7
+ inputUrl: {
8
+ type: string;
9
+ };
10
+ outputPath: {
11
+ type: string;
12
+ };
13
+ tilesetName: {
14
+ type: string;
15
+ };
16
+ maxDepth: {
17
+ type: string;
18
+ };
19
+ slpk: {
20
+ type: string;
21
+ };
22
+ egmFilePath: {
23
+ type: string;
24
+ };
25
+ token: {
26
+ type: string;
27
+ };
28
+ draco: {
29
+ type: string;
30
+ };
31
+ mergeMaterials: {
32
+ type: string;
33
+ };
34
+ generateTextures: {
35
+ type: string;
36
+ };
37
+ generateBoundingVolumes: {
38
+ type: string;
39
+ };
40
+ metadataClass: {
41
+ type: string;
42
+ };
43
+ analyze: {
44
+ type: string;
45
+ };
46
+ };
47
+ required: string[];
48
+ };
49
+ tilesConverted: {
50
+ type: string;
51
+ patternProperties: {
52
+ '.*': {
53
+ type: string;
54
+ properties: {
55
+ nodes: {
56
+ type: string;
57
+ items: {
58
+ type: string;
59
+ properties: {
60
+ nodeId: {
61
+ type: string[];
62
+ };
63
+ done: {
64
+ type: string;
65
+ };
66
+ progress: {
67
+ type: string;
68
+ patternProperties: {
69
+ '.*': {
70
+ type: string;
71
+ };
72
+ };
73
+ };
74
+ dumpMetadata: {
75
+ type: string;
76
+ properties: {
77
+ boundingVolumes: {
78
+ type: string[];
79
+ properties: {
80
+ mbs: {
81
+ type: string;
82
+ minItems: number;
83
+ maxItems: number;
84
+ items: {
85
+ type: string;
86
+ };
87
+ };
88
+ obb: {
89
+ type: string;
90
+ properties: {
91
+ center: {
92
+ type: string;
93
+ minItems: number;
94
+ maxItems: number;
95
+ items: {
96
+ type: string;
97
+ };
98
+ };
99
+ halfSize: {
100
+ type: string;
101
+ minItems: number;
102
+ maxItems: number;
103
+ items: {
104
+ type: string;
105
+ };
106
+ };
107
+ quaternion: {
108
+ type: string;
109
+ minItems: number;
110
+ maxItems: number;
111
+ items: {
112
+ type: string;
113
+ };
114
+ };
115
+ };
116
+ required: string[];
117
+ };
118
+ };
119
+ required: string[];
120
+ };
121
+ attributesCount: {
122
+ type: string;
123
+ };
124
+ featureCount: {
125
+ type: string;
126
+ };
127
+ geometry: {
128
+ type: string;
129
+ };
130
+ hasUvRegions: {
131
+ type: string;
132
+ };
133
+ materialId: {
134
+ type: string;
135
+ };
136
+ texelCountHint: {
137
+ type: string;
138
+ };
139
+ vertexCount: {
140
+ type: string;
141
+ };
142
+ };
143
+ required: string[];
144
+ };
145
+ };
146
+ required: string[];
147
+ };
148
+ };
149
+ };
150
+ required: string[];
151
+ };
152
+ };
153
+ };
154
+ textureSetDefinitions: {
155
+ type: string;
156
+ items: {
157
+ type: string;
158
+ properties: {
159
+ formats: {
160
+ type: string;
161
+ items: {
162
+ type: string;
163
+ properties: {
164
+ name: {
165
+ type: string;
166
+ };
167
+ format: {
168
+ enum: string[];
169
+ };
170
+ };
171
+ required: string[];
172
+ };
173
+ };
174
+ atlas: {
175
+ type: string;
176
+ };
177
+ };
178
+ required: string[];
179
+ };
180
+ };
181
+ attributeMetadataInfo: {
182
+ type: string;
183
+ properties: {
184
+ attributeStorageInfo: {
185
+ type: string;
186
+ items: {
187
+ type: string;
188
+ properties: {
189
+ key: {
190
+ type: string;
191
+ };
192
+ name: {
193
+ type: string;
194
+ };
195
+ header: {
196
+ type: string;
197
+ items: {
198
+ type: string;
199
+ properties: {
200
+ property: {
201
+ type: string;
202
+ };
203
+ valueType: {
204
+ type: string;
205
+ };
206
+ };
207
+ required: string[];
208
+ };
209
+ };
210
+ ordering: {
211
+ type: string;
212
+ items: {
213
+ type: string;
214
+ };
215
+ };
216
+ attributeValues: {
217
+ $ref: string;
218
+ };
219
+ attributeByteCounts: {
220
+ $ref: string;
221
+ };
222
+ objectIds: {
223
+ $ref: string;
224
+ };
225
+ };
226
+ required: string[];
227
+ };
228
+ };
229
+ fields: {
230
+ type: string;
231
+ items: {
232
+ type: string;
233
+ properties: {
234
+ name: {
235
+ type: string;
236
+ };
237
+ type: {
238
+ $ref: string;
239
+ };
240
+ alias: {
241
+ type: string;
242
+ };
243
+ domain: {
244
+ $ref: string;
245
+ };
246
+ };
247
+ required: string[];
248
+ };
249
+ };
250
+ popupInfo: {
251
+ type: string;
252
+ properties: {
253
+ title: {
254
+ type: string;
255
+ };
256
+ description: {
257
+ type: string;
258
+ };
259
+ expressionInfos: {
260
+ type: string;
261
+ items: {};
262
+ };
263
+ fieldInfos: {
264
+ type: string;
265
+ items: {
266
+ $ref: string;
267
+ };
268
+ };
269
+ mediaInfos: {
270
+ type: string;
271
+ items: {};
272
+ };
273
+ popupElements: {
274
+ type: string;
275
+ items: {
276
+ type: string;
277
+ properties: {
278
+ text: {
279
+ type: string;
280
+ };
281
+ type: {
282
+ type: string;
283
+ };
284
+ fieldInfos: {
285
+ type: string;
286
+ items: {
287
+ $ref: string;
288
+ };
289
+ };
290
+ };
291
+ };
292
+ };
293
+ };
294
+ };
295
+ };
296
+ required: string[];
297
+ };
298
+ materialDefinitions: {
299
+ type: string;
300
+ items: {
301
+ type: string;
302
+ properties: {
303
+ pbrMetallicRoughness: {
304
+ type: string;
305
+ properties: {
306
+ baseColorFactor: {
307
+ type: string;
308
+ minItems: number;
309
+ maxItems: number;
310
+ items: {
311
+ type: string;
312
+ };
313
+ };
314
+ baseColorTexture: {
315
+ $ref: string;
316
+ };
317
+ metallicFactor: {
318
+ type: string;
319
+ };
320
+ roughnessFactor: {
321
+ type: string;
322
+ };
323
+ metallicRoughnessTexture: {
324
+ $ref: string;
325
+ };
326
+ };
327
+ required: string[];
328
+ };
329
+ normalTexture: {
330
+ $ref: string;
331
+ };
332
+ occlusionTexture: {
333
+ $ref: string;
334
+ };
335
+ emissiveTexture: {
336
+ $ref: string;
337
+ };
338
+ emissiveFactor: {
339
+ type: string;
340
+ minItems: number;
341
+ maxItems: number;
342
+ items: {
343
+ type: string;
344
+ };
345
+ };
346
+ alphaMode: {
347
+ enum: string[];
348
+ };
349
+ alphaCutoff: {
350
+ type: string;
351
+ };
352
+ doubleSided: {
353
+ type: string;
354
+ };
355
+ cullFace: {
356
+ enum: string[];
357
+ };
358
+ };
359
+ required: string[];
360
+ };
361
+ };
362
+ };
363
+ required: string[];
364
+ $defs: {
365
+ AttributeValue: {
366
+ type: string;
367
+ properties: {
368
+ valueType: {
369
+ type: string;
370
+ };
371
+ encoding: {
372
+ type: string;
373
+ };
374
+ valuesPerElement: {
375
+ type: string;
376
+ };
377
+ };
378
+ required: string[];
379
+ };
380
+ ESRIField: {
381
+ enum: string[];
382
+ };
383
+ Domain: {
384
+ type: string;
385
+ properties: {
386
+ type: {
387
+ type: string;
388
+ };
389
+ name: {
390
+ type: string;
391
+ };
392
+ description: {
393
+ type: string;
394
+ };
395
+ fieldType: {
396
+ type: string;
397
+ };
398
+ range: {
399
+ type: string;
400
+ items: {
401
+ type: string;
402
+ };
403
+ };
404
+ codedValues: {
405
+ type: string;
406
+ items: {
407
+ type: string;
408
+ properties: {
409
+ name: {
410
+ type: string;
411
+ };
412
+ code: {
413
+ type: string[];
414
+ };
415
+ };
416
+ required: string[];
417
+ };
418
+ };
419
+ mergePolicy: {
420
+ type: string;
421
+ };
422
+ splitPolicy: {
423
+ type: string;
424
+ };
425
+ };
426
+ required: string[];
427
+ };
428
+ FieldInfo: {
429
+ type: string;
430
+ properties: {
431
+ fieldName: {
432
+ type: string;
433
+ };
434
+ visible: {
435
+ type: string;
436
+ };
437
+ isEditable: {
438
+ type: string;
439
+ };
440
+ label: {
441
+ type: string;
442
+ };
443
+ };
444
+ required: string[];
445
+ };
446
+ I3SMaterialTexture: {
447
+ type: string;
448
+ properties: {
449
+ textureSetDefinitionId: {
450
+ type: string;
451
+ };
452
+ texCoord: {
453
+ type: string;
454
+ };
455
+ factor: {
456
+ type: string;
457
+ };
458
+ };
459
+ required: string[];
460
+ };
461
+ };
462
+ };
463
+ //# sourceMappingURL=conversion-dump-json-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion-dump-json-schema.d.ts","sourceRoot":"","sources":["../../../src/lib/json-schemas/conversion-dump-json-schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4R1B,CAAC"}