@loaders.gl/3d-tiles 4.0.0-beta.1 → 4.0.0-beta.3

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 (264) hide show
  1. package/dist/3d-tiles-archive/3d-tiles-archive-archive.d.ts +3 -4
  2. package/dist/3d-tiles-archive/3d-tiles-archive-archive.d.ts.map +1 -1
  3. package/dist/{esm/3d-tiles-archive → 3d-tiles-archive}/3d-tiles-archive-archive.js +12 -12
  4. package/dist/3d-tiles-archive/3d-tiles-archive-archive.js.map +1 -0
  5. package/dist/3d-tiles-archive/3d-tiles-archive-parser.d.ts.map +1 -1
  6. package/dist/{esm/3d-tiles-archive → 3d-tiles-archive}/3d-tiles-archive-parser.js +8 -10
  7. package/dist/3d-tiles-archive/3d-tiles-archive-parser.js.map +1 -0
  8. package/dist/{esm/3d-tiles-archive-loader.js → 3d-tiles-archive-loader.js} +2 -2
  9. package/dist/3d-tiles-archive-loader.js.map +1 -0
  10. package/dist/{esm/cesium-ion-loader.js → cesium-ion-loader.js} +2 -2
  11. package/dist/cesium-ion-loader.js.map +1 -0
  12. package/dist/{dist.min.js → dist.dev.js} +17589 -18674
  13. package/dist/index.cjs +2837 -0
  14. package/dist/index.js +11 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/lib/classes/helpers/tile-3d-accessor-utils.js.map +1 -0
  17. package/dist/{esm/lib → lib}/classes/tile-3d-batch-table-hierarchy.js +1 -1
  18. package/dist/lib/classes/tile-3d-batch-table-hierarchy.js.map +1 -0
  19. package/dist/{esm/lib → lib}/classes/tile-3d-batch-table.js +12 -13
  20. package/dist/lib/classes/tile-3d-batch-table.js.map +1 -0
  21. package/dist/{esm/lib → lib}/classes/tile-3d-feature-table.js +4 -5
  22. package/dist/lib/classes/tile-3d-feature-table.js.map +1 -0
  23. package/dist/lib/constants.js.map +1 -0
  24. package/dist/{esm/lib → lib}/encoders/encode-3d-tile-batched-model.js +2 -2
  25. package/dist/lib/encoders/encode-3d-tile-batched-model.js.map +1 -0
  26. package/dist/{esm/lib → lib}/encoders/encode-3d-tile-composite.js +2 -2
  27. package/dist/lib/encoders/encode-3d-tile-composite.js.map +1 -0
  28. package/dist/{esm/lib → lib}/encoders/encode-3d-tile-instanced-model.js +2 -2
  29. package/dist/lib/encoders/encode-3d-tile-instanced-model.js.map +1 -0
  30. package/dist/{esm/lib → lib}/encoders/encode-3d-tile-point-cloud.js +2 -2
  31. package/dist/lib/encoders/encode-3d-tile-point-cloud.js.map +1 -0
  32. package/dist/{esm/lib → lib}/encoders/encode-3d-tile.js +5 -5
  33. package/dist/lib/encoders/encode-3d-tile.js.map +1 -0
  34. package/dist/lib/encoders/helpers/encode-3d-tile-header.js.map +1 -0
  35. package/dist/lib/filesystems/tiles-3d-archive-file-system.d.ts +3 -3
  36. package/dist/lib/filesystems/tiles-3d-archive-file-system.d.ts.map +1 -1
  37. package/dist/{esm/lib → lib}/filesystems/tiles-3d-archive-file-system.js +13 -14
  38. package/dist/lib/filesystems/tiles-3d-archive-file-system.js.map +1 -0
  39. package/dist/{esm/lib → lib}/ion/ion.js +6 -6
  40. package/dist/lib/ion/ion.js.map +1 -0
  41. package/dist/lib/parsers/helpers/normalize-3d-tile-colors.js.map +1 -0
  42. package/dist/lib/parsers/helpers/normalize-3d-tile-normals.js.map +1 -0
  43. package/dist/lib/parsers/helpers/normalize-3d-tile-positions.js.map +1 -0
  44. package/dist/{esm/lib → lib}/parsers/helpers/parse-3d-implicit-tiles.js +8 -8
  45. package/dist/lib/parsers/helpers/parse-3d-implicit-tiles.js.map +1 -0
  46. package/dist/{esm/lib → lib}/parsers/helpers/parse-3d-tile-gltf-view.js +1 -1
  47. package/dist/lib/parsers/helpers/parse-3d-tile-gltf-view.js.map +1 -0
  48. package/dist/{esm/lib → lib}/parsers/helpers/parse-3d-tile-header.js +1 -1
  49. package/dist/lib/parsers/helpers/parse-3d-tile-header.js.map +1 -0
  50. package/dist/{esm/lib → lib}/parsers/helpers/parse-3d-tile-subtree.js +1 -1
  51. package/dist/lib/parsers/helpers/parse-3d-tile-subtree.js.map +1 -0
  52. package/dist/{esm/lib → lib}/parsers/helpers/parse-3d-tile-tables.js +1 -1
  53. package/dist/lib/parsers/helpers/parse-3d-tile-tables.js.map +1 -0
  54. package/dist/{esm/lib → lib}/parsers/helpers/parse-utils.js +5 -1
  55. package/dist/lib/parsers/helpers/parse-utils.js.map +1 -0
  56. package/dist/{esm/lib → lib}/parsers/parse-3d-tile-batched-model.js +4 -4
  57. package/dist/lib/parsers/parse-3d-tile-batched-model.js.map +1 -0
  58. package/dist/{esm/lib → lib}/parsers/parse-3d-tile-composite.js +1 -1
  59. package/dist/lib/parsers/parse-3d-tile-composite.js.map +1 -0
  60. package/dist/lib/parsers/parse-3d-tile-gltf.js.map +1 -0
  61. package/dist/{esm/lib → lib}/parsers/parse-3d-tile-header.js +5 -5
  62. package/dist/lib/parsers/parse-3d-tile-header.js.map +1 -0
  63. package/dist/{esm/lib → lib}/parsers/parse-3d-tile-instanced-model.js +6 -6
  64. package/dist/{es5/lib → lib}/parsers/parse-3d-tile-instanced-model.js.map +1 -1
  65. package/dist/{esm/lib → lib}/parsers/parse-3d-tile-point-cloud.js +7 -7
  66. package/dist/lib/parsers/parse-3d-tile-point-cloud.js.map +1 -0
  67. package/dist/{esm/lib → lib}/parsers/parse-3d-tile.js +8 -8
  68. package/dist/lib/parsers/parse-3d-tile.js.map +1 -0
  69. package/dist/{esm/lib → lib}/utils/obb/s2-corners-to-obb.js +2 -2
  70. package/dist/lib/utils/obb/s2-corners-to-obb.js.map +1 -0
  71. package/dist/{esm/lib → lib}/utils/s2/converters/s2-to-boundary.js +1 -1
  72. package/dist/lib/utils/s2/converters/s2-to-boundary.js.map +1 -0
  73. package/dist/{esm/lib → lib}/utils/s2/converters/s2-to-obb-points.js +2 -2
  74. package/dist/lib/utils/s2/converters/s2-to-obb-points.js.map +1 -0
  75. package/dist/{esm/lib → lib}/utils/s2/converters/s2-to-region.js +3 -3
  76. package/dist/lib/utils/s2/converters/s2-to-region.js.map +1 -0
  77. package/dist/lib/utils/s2/index.js +7 -0
  78. package/dist/lib/utils/s2/index.js.map +1 -0
  79. package/dist/lib/utils/s2/s2-geometry-functions.js +12 -0
  80. package/dist/lib/utils/s2/s2-geometry-functions.js.map +1 -0
  81. package/dist/lib/utils/s2/s2-token-functions.js.map +1 -0
  82. package/dist/{esm/lib → lib}/utils/s2/s2geometry/s2-cell-utils.js +2 -2
  83. package/dist/lib/utils/s2/s2geometry/s2-cell-utils.js.map +1 -0
  84. package/dist/{esm/lib → lib}/utils/s2/s2geometry/s2-geometry.js +5 -5
  85. package/dist/lib/utils/s2/s2geometry/s2-geometry.js.map +1 -0
  86. package/dist/lib/utils/version.js +2 -0
  87. package/dist/lib/utils/version.js.map +1 -0
  88. package/dist/{esm/tile-3d-subtree-loader.js → tile-3d-subtree-loader.js} +2 -2
  89. package/dist/tile-3d-subtree-loader.js.map +1 -0
  90. package/dist/{esm/tile-3d-writer.js → tile-3d-writer.js} +2 -2
  91. package/dist/tile-3d-writer.js.map +1 -0
  92. package/dist/{esm/tiles-3d-loader.js → tiles-3d-loader.js} +3 -3
  93. package/dist/tiles-3d-loader.js.map +1 -0
  94. package/dist/types.d.ts +4 -4
  95. package/dist/types.d.ts.map +1 -1
  96. package/dist/types.js.map +1 -0
  97. package/package.json +22 -14
  98. package/src/3d-tiles-archive/3d-tiles-archive-archive.ts +12 -11
  99. package/src/3d-tiles-archive/3d-tiles-archive-parser.ts +11 -11
  100. package/src/lib/filesystems/tiles-3d-archive-file-system.ts +11 -12
  101. package/src/types.ts +4 -4
  102. package/dist/bundle.d.ts +0 -2
  103. package/dist/bundle.d.ts.map +0 -1
  104. package/dist/es5/3d-tiles-archive/3d-tiles-archive-archive.js +0 -126
  105. package/dist/es5/3d-tiles-archive/3d-tiles-archive-archive.js.map +0 -1
  106. package/dist/es5/3d-tiles-archive/3d-tiles-archive-parser.js +0 -69
  107. package/dist/es5/3d-tiles-archive/3d-tiles-archive-parser.js.map +0 -1
  108. package/dist/es5/3d-tiles-archive-loader.js +0 -50
  109. package/dist/es5/3d-tiles-archive-loader.js.map +0 -1
  110. package/dist/es5/bundle.js +0 -6
  111. package/dist/es5/bundle.js.map +0 -1
  112. package/dist/es5/cesium-ion-loader.js +0 -77
  113. package/dist/es5/cesium-ion-loader.js.map +0 -1
  114. package/dist/es5/index.js +0 -77
  115. package/dist/es5/index.js.map +0 -1
  116. package/dist/es5/lib/classes/helpers/tile-3d-accessor-utils.js +0 -114
  117. package/dist/es5/lib/classes/helpers/tile-3d-accessor-utils.js.map +0 -1
  118. package/dist/es5/lib/classes/tile-3d-batch-table-hierarchy.js +0 -180
  119. package/dist/es5/lib/classes/tile-3d-batch-table-hierarchy.js.map +0 -1
  120. package/dist/es5/lib/classes/tile-3d-batch-table.js +0 -285
  121. package/dist/es5/lib/classes/tile-3d-batch-table.js.map +0 -1
  122. package/dist/es5/lib/classes/tile-3d-feature-table.js +0 -97
  123. package/dist/es5/lib/classes/tile-3d-feature-table.js.map +0 -1
  124. package/dist/es5/lib/constants.js +0 -32
  125. package/dist/es5/lib/constants.js.map +0 -1
  126. package/dist/es5/lib/encoders/encode-3d-tile-batched-model.js +0 -49
  127. package/dist/es5/lib/encoders/encode-3d-tile-batched-model.js.map +0 -1
  128. package/dist/es5/lib/encoders/encode-3d-tile-composite.js +0 -30
  129. package/dist/es5/lib/encoders/encode-3d-tile-composite.js.map +0 -1
  130. package/dist/es5/lib/encoders/encode-3d-tile-instanced-model.js +0 -47
  131. package/dist/es5/lib/encoders/encode-3d-tile-instanced-model.js.map +0 -1
  132. package/dist/es5/lib/encoders/encode-3d-tile-point-cloud.js +0 -48
  133. package/dist/es5/lib/encoders/encode-3d-tile-point-cloud.js.map +0 -1
  134. package/dist/es5/lib/encoders/encode-3d-tile.js +0 -35
  135. package/dist/es5/lib/encoders/encode-3d-tile.js.map +0 -1
  136. package/dist/es5/lib/encoders/helpers/encode-3d-tile-header.js +0 -35
  137. package/dist/es5/lib/encoders/helpers/encode-3d-tile-header.js.map +0 -1
  138. package/dist/es5/lib/filesystems/tiles-3d-archive-file-system.js +0 -151
  139. package/dist/es5/lib/filesystems/tiles-3d-archive-file-system.js.map +0 -1
  140. package/dist/es5/lib/ion/ion.js +0 -164
  141. package/dist/es5/lib/ion/ion.js.map +0 -1
  142. package/dist/es5/lib/parsers/helpers/normalize-3d-tile-colors.js +0 -65
  143. package/dist/es5/lib/parsers/helpers/normalize-3d-tile-colors.js.map +0 -1
  144. package/dist/es5/lib/parsers/helpers/normalize-3d-tile-normals.js +0 -32
  145. package/dist/es5/lib/parsers/helpers/normalize-3d-tile-normals.js.map +0 -1
  146. package/dist/es5/lib/parsers/helpers/normalize-3d-tile-positions.js +0 -32
  147. package/dist/es5/lib/parsers/helpers/normalize-3d-tile-positions.js.map +0 -1
  148. package/dist/es5/lib/parsers/helpers/parse-3d-implicit-tiles.js +0 -305
  149. package/dist/es5/lib/parsers/helpers/parse-3d-implicit-tiles.js.map +0 -1
  150. package/dist/es5/lib/parsers/helpers/parse-3d-tile-gltf-view.js +0 -110
  151. package/dist/es5/lib/parsers/helpers/parse-3d-tile-gltf-view.js.map +0 -1
  152. package/dist/es5/lib/parsers/helpers/parse-3d-tile-header.js +0 -22
  153. package/dist/es5/lib/parsers/helpers/parse-3d-tile-header.js.map +0 -1
  154. package/dist/es5/lib/parsers/helpers/parse-3d-tile-subtree.js +0 -160
  155. package/dist/es5/lib/parsers/helpers/parse-3d-tile-subtree.js.map +0 -1
  156. package/dist/es5/lib/parsers/helpers/parse-3d-tile-tables.js +0 -85
  157. package/dist/es5/lib/parsers/helpers/parse-3d-tile-tables.js.map +0 -1
  158. package/dist/es5/lib/parsers/helpers/parse-utils.js +0 -28
  159. package/dist/es5/lib/parsers/helpers/parse-utils.js.map +0 -1
  160. package/dist/es5/lib/parsers/parse-3d-tile-batched-model.js +0 -51
  161. package/dist/es5/lib/parsers/parse-3d-tile-batched-model.js.map +0 -1
  162. package/dist/es5/lib/parsers/parse-3d-tile-composite.js +0 -50
  163. package/dist/es5/lib/parsers/parse-3d-tile-composite.js.map +0 -1
  164. package/dist/es5/lib/parsers/parse-3d-tile-gltf.js +0 -54
  165. package/dist/es5/lib/parsers/parse-3d-tile-gltf.js.map +0 -1
  166. package/dist/es5/lib/parsers/parse-3d-tile-header.js +0 -291
  167. package/dist/es5/lib/parsers/parse-3d-tile-header.js.map +0 -1
  168. package/dist/es5/lib/parsers/parse-3d-tile-instanced-model.js +0 -163
  169. package/dist/es5/lib/parsers/parse-3d-tile-point-cloud.js +0 -295
  170. package/dist/es5/lib/parsers/parse-3d-tile-point-cloud.js.map +0 -1
  171. package/dist/es5/lib/parsers/parse-3d-tile.js +0 -76
  172. package/dist/es5/lib/parsers/parse-3d-tile.js.map +0 -1
  173. package/dist/es5/lib/utils/obb/s2-corners-to-obb.js +0 -30
  174. package/dist/es5/lib/utils/obb/s2-corners-to-obb.js.map +0 -1
  175. package/dist/es5/lib/utils/s2/converters/s2-to-boundary.js +0 -44
  176. package/dist/es5/lib/utils/s2/converters/s2-to-boundary.js.map +0 -1
  177. package/dist/es5/lib/utils/s2/converters/s2-to-obb-points.js +0 -30
  178. package/dist/es5/lib/utils/s2/converters/s2-to-obb-points.js.map +0 -1
  179. package/dist/es5/lib/utils/s2/converters/s2-to-region.js +0 -52
  180. package/dist/es5/lib/utils/s2/converters/s2-to-region.js.map +0 -1
  181. package/dist/es5/lib/utils/s2/index.js +0 -90
  182. package/dist/es5/lib/utils/s2/index.js.map +0 -1
  183. package/dist/es5/lib/utils/s2/s2-geometry-functions.js +0 -19
  184. package/dist/es5/lib/utils/s2/s2-geometry-functions.js.map +0 -1
  185. package/dist/es5/lib/utils/s2/s2-token-functions.js +0 -41
  186. package/dist/es5/lib/utils/s2/s2-token-functions.js.map +0 -1
  187. package/dist/es5/lib/utils/s2/s2geometry/s2-cell-utils.js +0 -22
  188. package/dist/es5/lib/utils/s2/s2geometry/s2-cell-utils.js.map +0 -1
  189. package/dist/es5/lib/utils/s2/s2geometry/s2-geometry.js +0 -207
  190. package/dist/es5/lib/utils/s2/s2geometry/s2-geometry.js.map +0 -1
  191. package/dist/es5/lib/utils/version.js +0 -9
  192. package/dist/es5/lib/utils/version.js.map +0 -1
  193. package/dist/es5/tile-3d-subtree-loader.js +0 -22
  194. package/dist/es5/tile-3d-subtree-loader.js.map +0 -1
  195. package/dist/es5/tile-3d-writer.js +0 -26
  196. package/dist/es5/tile-3d-writer.js.map +0 -1
  197. package/dist/es5/tiles-3d-loader.js +0 -135
  198. package/dist/es5/tiles-3d-loader.js.map +0 -1
  199. package/dist/es5/types.js +0 -2
  200. package/dist/es5/types.js.map +0 -1
  201. package/dist/esm/3d-tiles-archive/3d-tiles-archive-archive.js.map +0 -1
  202. package/dist/esm/3d-tiles-archive/3d-tiles-archive-parser.js.map +0 -1
  203. package/dist/esm/3d-tiles-archive-loader.js.map +0 -1
  204. package/dist/esm/bundle.js +0 -4
  205. package/dist/esm/bundle.js.map +0 -1
  206. package/dist/esm/cesium-ion-loader.js.map +0 -1
  207. package/dist/esm/index.js +0 -11
  208. package/dist/esm/index.js.map +0 -1
  209. package/dist/esm/lib/classes/helpers/tile-3d-accessor-utils.js.map +0 -1
  210. package/dist/esm/lib/classes/tile-3d-batch-table-hierarchy.js.map +0 -1
  211. package/dist/esm/lib/classes/tile-3d-batch-table.js.map +0 -1
  212. package/dist/esm/lib/classes/tile-3d-feature-table.js.map +0 -1
  213. package/dist/esm/lib/constants.js.map +0 -1
  214. package/dist/esm/lib/encoders/encode-3d-tile-batched-model.js.map +0 -1
  215. package/dist/esm/lib/encoders/encode-3d-tile-composite.js.map +0 -1
  216. package/dist/esm/lib/encoders/encode-3d-tile-instanced-model.js.map +0 -1
  217. package/dist/esm/lib/encoders/encode-3d-tile-point-cloud.js.map +0 -1
  218. package/dist/esm/lib/encoders/encode-3d-tile.js.map +0 -1
  219. package/dist/esm/lib/encoders/helpers/encode-3d-tile-header.js.map +0 -1
  220. package/dist/esm/lib/filesystems/tiles-3d-archive-file-system.js.map +0 -1
  221. package/dist/esm/lib/ion/ion.js.map +0 -1
  222. package/dist/esm/lib/parsers/helpers/normalize-3d-tile-colors.js.map +0 -1
  223. package/dist/esm/lib/parsers/helpers/normalize-3d-tile-normals.js.map +0 -1
  224. package/dist/esm/lib/parsers/helpers/normalize-3d-tile-positions.js.map +0 -1
  225. package/dist/esm/lib/parsers/helpers/parse-3d-implicit-tiles.js.map +0 -1
  226. package/dist/esm/lib/parsers/helpers/parse-3d-tile-gltf-view.js.map +0 -1
  227. package/dist/esm/lib/parsers/helpers/parse-3d-tile-header.js.map +0 -1
  228. package/dist/esm/lib/parsers/helpers/parse-3d-tile-subtree.js.map +0 -1
  229. package/dist/esm/lib/parsers/helpers/parse-3d-tile-tables.js.map +0 -1
  230. package/dist/esm/lib/parsers/helpers/parse-utils.js.map +0 -1
  231. package/dist/esm/lib/parsers/parse-3d-tile-batched-model.js.map +0 -1
  232. package/dist/esm/lib/parsers/parse-3d-tile-composite.js.map +0 -1
  233. package/dist/esm/lib/parsers/parse-3d-tile-gltf.js.map +0 -1
  234. package/dist/esm/lib/parsers/parse-3d-tile-header.js.map +0 -1
  235. package/dist/esm/lib/parsers/parse-3d-tile-instanced-model.js.map +0 -1
  236. package/dist/esm/lib/parsers/parse-3d-tile-point-cloud.js.map +0 -1
  237. package/dist/esm/lib/parsers/parse-3d-tile.js.map +0 -1
  238. package/dist/esm/lib/utils/obb/s2-corners-to-obb.js.map +0 -1
  239. package/dist/esm/lib/utils/s2/converters/s2-to-boundary.js.map +0 -1
  240. package/dist/esm/lib/utils/s2/converters/s2-to-obb-points.js.map +0 -1
  241. package/dist/esm/lib/utils/s2/converters/s2-to-region.js.map +0 -1
  242. package/dist/esm/lib/utils/s2/index.js +0 -7
  243. package/dist/esm/lib/utils/s2/index.js.map +0 -1
  244. package/dist/esm/lib/utils/s2/s2-geometry-functions.js +0 -12
  245. package/dist/esm/lib/utils/s2/s2-geometry-functions.js.map +0 -1
  246. package/dist/esm/lib/utils/s2/s2-token-functions.js.map +0 -1
  247. package/dist/esm/lib/utils/s2/s2geometry/s2-cell-utils.js.map +0 -1
  248. package/dist/esm/lib/utils/s2/s2geometry/s2-geometry.js.map +0 -1
  249. package/dist/esm/lib/utils/version.js +0 -2
  250. package/dist/esm/lib/utils/version.js.map +0 -1
  251. package/dist/esm/tile-3d-subtree-loader.js.map +0 -1
  252. package/dist/esm/tile-3d-writer.js.map +0 -1
  253. package/dist/esm/tiles-3d-loader.js.map +0 -1
  254. package/dist/esm/types.js.map +0 -1
  255. package/src/bundle.ts +0 -4
  256. /package/dist/{esm/lib → lib}/classes/helpers/tile-3d-accessor-utils.js +0 -0
  257. /package/dist/{esm/lib → lib}/constants.js +0 -0
  258. /package/dist/{esm/lib → lib}/encoders/helpers/encode-3d-tile-header.js +0 -0
  259. /package/dist/{esm/lib → lib}/parsers/helpers/normalize-3d-tile-colors.js +0 -0
  260. /package/dist/{esm/lib → lib}/parsers/helpers/normalize-3d-tile-normals.js +0 -0
  261. /package/dist/{esm/lib → lib}/parsers/helpers/normalize-3d-tile-positions.js +0 -0
  262. /package/dist/{esm/lib → lib}/parsers/parse-3d-tile-gltf.js +0 -0
  263. /package/dist/{esm/lib → lib}/utils/s2/s2-token-functions.js +0 -0
  264. /package/dist/{esm/types.js → types.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../src/types.ts"],"sourcesContent":["import type {GLTFPostprocessed, FeatureTableJson} from '@loaders.gl/gltf';\nexport type {FeatureTableJson};\n\nimport {LoaderWithParser} from '@loaders.gl/loader-utils';\nimport {Matrix4, Vector3} from '@math.gl/core';\nimport {TILESET_TYPE, LOD_METRIC_TYPE, TILE_TYPE, TILE_REFINEMENT} from '@loaders.gl/tiles';\n\nexport type B3DMContent = {\n batchTableJson?: FeatureTableJson;\n byteLength: number;\n byteOffset: number;\n cartesianModelMatrix: Matrix4;\n cartesianOrigin: Vector3;\n cartographicModelMatrix: Matrix4;\n cartographicOrigin: Vector3;\n featureIds?: number[] | null;\n featureTableBinary?: Uint8Array;\n featureTableJson?: FeatureTableJson;\n gltf?: GLTFPostprocessed;\n gltfUpAxis: string;\n header: GLTFHeader;\n magic: number;\n modelMatrix: Matrix4;\n rotateYtoZ: boolean;\n rtcCenter: [number, number, number];\n type: string;\n version: number;\n};\n\nexport type GLTFHeader = {\n batchLength?: number;\n batchTableBinaryByteLength: number;\n batchTableJsonByteLength: number;\n featureTableBinaryByteLength: number;\n featureTableJsonByteLength: number;\n};\n\n/**\n * A 3D Tiles tileset JSON\n * https://github.com/CesiumGS/3d-tiles/tree/main/specification#property-reference\n */\nexport type Tiles3DTilesetJSON = {\n shape: 'tileset3d';\n /** Metadata about the entire tileset.\n * https://github.com/CesiumGS/3d-tiles/tree/main/specification#asset\n */\n asset: {\n /** The 3D Tiles version. The version defines the JSON schema for the tileset JSON and the base set of tile formats. */\n version: string;\n /** Application-specific version of this tileset, e.g., for when an existing tileset is updated. */\n tilesetVersion?: string;\n /** Dictionary object with extension-specific objects. */\n extensions?: object;\n /** Application-specific data. */\n extras?: any;\n /** Not mentioned in 1.0 spec but some tilesets contain this option */\n gltfUpAxis?: string;\n };\n /** A dictionary object of metadata about per-feature properties. */\n properties?: Record<string, TilesetProperty>;\n /** The error, in meters, introduced if this tileset is not rendered. At runtime, the geometric error is used to compute screen space error (SSE), i.e., the error measured in pixels. */\n geometricError: number;\n /** A tile in a 3D Tiles tileset. */\n root: Tiles3DTileJSON;\n /** Names of 3D Tiles extensions used somewhere in this tileset. */\n extensionsUsed?: string[];\n /** Names of 3D Tiles extensions required to properly load this tileset. */\n extensionsRequired?: string[];\n /** Dictionary object with extension-specific objects. */\n extensions?: object;\n /** Application-specific data. */\n extras?: any;\n};\n\n/** TilesetJSON postprocessed by Tiles3DLoader */\nexport type Tiles3DTilesetJSONPostprocessed = Omit<Tiles3DTilesetJSON, 'root'> & {\n /**\n * Loader used\n * @deprecated\n */\n loader: LoaderWithParser;\n /** URL used to load a tileset resource */\n url: string;\n /** HTTP request query string */\n queryString: string;\n /** base path that non-absolute paths in tileset are relative to. */\n basePath: string;\n /** tileset type */\n type: TILESET_TYPE.TILES3D;\n /** LOD metric type */\n lodMetricType: LOD_METRIC_TYPE.GEOMETRIC_ERROR;\n /** LOD metric value */\n lodMetricValue: number;\n /** Postprocessed root */\n root: Tiles3DTileJSONPostprocessed;\n};\n\n/**\n * A tile in a 3D Tiles tileset.\n * https://github.com/CesiumGS/3d-tiles/tree/main/specification#tile\n */\nexport type Tiles3DTileJSON = {\n /** A bounding volume that encloses a tile or its content. */\n boundingVolume: Tile3DBoundingVolume;\n /** A bounding volume that encloses a tile or its content. */\n viewerRequestVolume?: object;\n /** The error, in meters, introduced if this tile is rendered and its children are not. At runtime, the geometric error is used to compute screen space error (SSE), i.e., the error measured in pixels. */\n geometricError: number;\n /**\n * Specifies if additive or replacement refinement is used when traversing the tileset for rendering. This property is required for the root tile of a tileset; it is optional for all other tiles.\n * The default is to inherit from the parent tile.\n */\n refine?: string;\n /** A floating-point 4x4 affine transformation matrix, stored in column-major order, that transforms the tile's content */\n transform?: number[];\n /** Metadata about the tile's content and a link to the content. */\n content?: Tiles3DTileContentJSON;\n /** An array of objects that define child tiles. */\n children: Tiles3DTileJSON[];\n /** Dictionary object with extension-specific objects. */\n extensions?: object;\n /** Application-specific data. */\n extras?: any;\n\n /** 3DTiles v1.1 properties\n * https://github.com/CesiumGS/3d-tiles/blob/draft-1.1/specification/schema/tile.schema.json\n */\n /** This object allows a tile to be implicitly subdivided. Tile and content availability and metadata is stored in subtrees which are referenced externally. */\n implicitTiling?: ImplicitTilingData;\n};\n\nexport type Tiles3DTileJSONPostprocessed = Omit<Tiles3DTileJSON, 'refine' | 'children'> & {\n /** Unique ID */\n id?: string;\n /** Content full URL */\n contentUrl?: string;\n /** LOD metric type */\n lodMetricType?: LOD_METRIC_TYPE.GEOMETRIC_ERROR;\n /** LOD metric value */\n lodMetricValue?: number;\n /** Duplicate of transform */\n transformMatrix?: number[];\n /** Type of tile */\n type?: TILE_TYPE | string;\n /**\n * Specifies if additive or replacement refinement is used when traversing the tileset for rendering. This property is required for the root tile of a tileset; it is optional for all other tiles.\n * The default is to inherit from the parent tile.\n */\n refine?: TILE_REFINEMENT | string;\n /** An array of objects that define child tiles. */\n children: Tiles3DTileJSONPostprocessed[];\n};\n\n/** Metadata about the tile's content and a link to the content. */\nexport type Tiles3DTileContentJSON = {\n /** A uri that points to the tile's content. When the uri is relative, it is relative to the referring tileset JSON file. */\n uri: string;\n /** url doesn't allign the spec but we support it same way as uri */\n url?: string;\n /** A bounding volume that encloses a tile or its content. At least one bounding volume property is required. Bounding volumes include box, region, or sphere. */\n boundingVolume?: Tile3DBoundingVolume;\n /** Dictionary object with extension-specific objects. */\n extensions?: object;\n /** Application-specific data. */\n extras?: any;\n};\n\n/** A bounding volume that encloses a tile or its content.\n * https://github.com/CesiumGS/3d-tiles/tree/main/specification#bounding-volume\n */\nexport type Tile3DBoundingVolume = {\n /** An array of 12 numbers that define an oriented bounding box. The first three elements define the x, y, and z values for the center of the box.\n * The next three elements (with indices 3, 4, and 5) define the x axis direction and half-length. The next three elements (indices 6, 7, and 8) define\n * the y axis direction and half-length. The last three elements (indices 9, 10, and 11) define the z axis direction and half-length. */\n box?: number[];\n /** An array of four numbers that define a bounding sphere. The first three elements define the x, y, and z values for the center of the sphere.\n * The last element (with index 3) defines the radius in meters. */\n sphere?: number[];\n /** An array of six numbers that define a bounding geographic region in EPSG:4979 coordinates with the order [west, south, east, north, minimum height, maximum height].\n * Longitudes and latitudes are in radians, and heights are in meters above (or below) the WGS84 ellipsoid. */\n region?: number[];\n /** Dictionary object with extension-specific objects. */\n extensions?: object;\n /** Application-specific data. */\n extras?: any;\n};\n\n/**\n * A dictionary object of metadata about per-feature properties.\n * https://github.com/CesiumGS/3d-tiles/tree/main/specification#properties\n */\nexport type TilesetProperty = {\n /** The maximum value of this property of all the features in the tileset. */\n maximum: number;\n /** The minimum value of this property of all the features in the tileset. */\n minimum: number;\n /** Dictionary object with extension-specific objects. */\n extensions?: object;\n /** Application-specific data. */\n extras?: any;\n};\n\nexport type Tiles3DTileContent = {\n shape: 'tile3d';\n\n /** Common properties */\n byteOffset?: number;\n type?: string;\n featureIds?: null;\n\n /** 3DTile header */\n magic?: number;\n version?: number;\n byteLength?: number;\n\n /** 3DTile tables header */\n header?: {\n featureTableJsonByteLength?: number;\n featureTableBinaryByteLength?: number;\n batchTableJsonByteLength?: number;\n batchTableBinaryByteLength?: number;\n batchLength?: number;\n };\n\n /** 3DTile tables */\n featureTableJson?:\n | {\n BATCH_LENGTH?: number;\n }\n | Record<string, any>;\n featureTableBinary?: Uint8Array;\n batchTableJson?: Record<string, (string | number)[]>;\n batchTableBinary?: Uint8Array;\n rtcCenter?: number[];\n\n /** 3DTile glTF */\n gltfArrayBuffer?: ArrayBuffer;\n gltfByteOffset?: number;\n gltfByteLength?: number;\n rotateYtoZ?: boolean;\n gltfUpAxis?: 'x' | 'X' | 'y' | 'Y' | 'z' | 'Z';\n gltfUrl?: string;\n gpuMemoryUsageInBytes?: number;\n gltf?: GLTFPostprocessed;\n\n /** For Composite tiles */\n tilesLength?: number;\n tiles?: Tiles3DTileContent[];\n\n /** For Instances model and Pointcloud tiles */\n featuresLength?: number;\n\n /** For Instanced model tiles */\n gltfFormat?: number;\n eastNorthUp?: boolean;\n normalUp?: number[];\n normalRight?: number[];\n hasCustomOrientation?: boolean;\n octNormalUp?: number[];\n octNormalRight?: number[];\n instances?: {\n modelMatrix: Matrix4;\n batchId: number;\n }[];\n\n /** For Pointcloud tiles */\n attributes?: {\n positions: null | number[];\n colors:\n | null\n | number[]\n | {type: number; value: Uint8ClampedArray; size: number; normalized: boolean};\n normals: null | number[] | {type: number; size: number; value: Float32Array};\n batchIds: null | number[];\n };\n constantRGBA?: number[];\n isQuantized?: boolean;\n isTranslucent?: boolean;\n isRGB565?: boolean;\n isOctEncoded16P?: boolean;\n pointsLength?: number;\n pointCount?: number;\n batchIds?: number[];\n hasPositions?: boolean;\n hasColors?: boolean;\n hasNormals?: boolean;\n hasBatchIds?: boolean;\n quantizedVolumeScale?: Vector3;\n quantizedVolumeOffset?: Vector3;\n quantizedRange?: number;\n isQuantizedDraco?: boolean;\n octEncodedRange?: number;\n isOctEncodedDraco?: boolean;\n};\n\n/**\n * 3DTILES_implicit_tiling types\n * Spec - https://github.com/CesiumGS/3d-tiles/tree/main/extensions/3DTILES_implicit_tiling\n * JSON Schema v1.1 https://github.com/CesiumGS/3d-tiles/blob/8e5e67e078850cc8ce15bd1873fe54f11bbee02f/specification/schema/Subtree/subtree.schema.json\n * JSON Schema vNext https://github.com/CesiumGS/3d-tiles/blob/8e5e67e078850cc8ce15bd1873fe54f11bbee02f/extensions/3DTILES_implicit_tiling/schema/subtree/subtree.schema.json\n */\nexport type Subtree = {\n /** An array of buffers. */\n buffers: Buffer[];\n /** An array of buffer views. */\n bufferViews: BufferView[];\n /** The availability of tiles in the subtree. The availability bitstream is a 1D boolean array where tiles are ordered by their level in the subtree and Morton index\n * within that level. A tile's availability is determined by a single bit, 1 meaning a tile exists at that spatial index, and 0 meaning it does not.\n * The number of elements in the array is `(N^subtreeLevels - 1)/(N - 1)` where N is 4 for subdivision scheme `QUADTREE` and 8 for `OCTREE`.\n * Availability may be stored in a buffer view or as a constant value that applies to all tiles. If a non-root tile's availability is 1 its parent\n * tile's availability shall also be 1. `tileAvailability.constant: 0` is disallowed, as subtrees shall have at least one tile.\n */\n tileAvailability: Availability;\n /** It is array by spec but there are tiles that has a single object\n * An array of content availability objects. If the tile has a single content this array will have one element; if the tile has multiple contents -\n * as supported by 3DTILES_multiple_contents and 3D Tiles 1.1 - this array will have multiple elements.\n */\n contentAvailability: Availability | Availability[];\n /** The availability of children subtrees. The availability bitstream is a 1D boolean array where subtrees are ordered by their Morton index in the level of the tree\n * immediately below the bottom row of the subtree. A child subtree's availability is determined by a single bit, 1 meaning a subtree exists at that spatial index,\n * and 0 meaning it does not. The number of elements in the array is `N^subtreeLevels` where N is 4 for subdivision scheme `QUADTREE` and 8 for `OCTREE`.\n * Availability may be stored in a buffer view or as a constant value that applies to all child subtrees. If availability is 0 for all child subtrees,\n * then the tileset does not subdivide further.\n */\n childSubtreeAvailability: Availability;\n // TODO: These are unused properties. Improve types when they are required\n propertyTables: unknown;\n tileMetadata: unknown;\n contentMetadata: unknown;\n subtreeMetadata: unknown;\n};\n\nexport type Availability = {\n /** Integer indicating whether all of the elements are available (1) or all are unavailable (0). */\n constant?: 0 | 1;\n /** Index of a buffer view that indicates whether each element is available. The bitstream conforms to the boolean array encoding described\n * in the 3D Metadata specification. If an element is available, its bit is 1, and if it is unavailable, its bit is 0. */\n bitstream?: number;\n /**\n * v1.1 https://github.com/CesiumGS/3d-tiles/blob/8e5e67e078850cc8ce15bd1873fe54f11bbee02f/specification/schema/Subtree/availability.schema.json\n * vNext https://github.com/CesiumGS/3d-tiles/blob/8e5e67e078850cc8ce15bd1873fe54f11bbee02f/extensions/3DTILES_implicit_tiling/schema/subtree/availability.schema.json\n * The schemas of vNext and 1.1 are same but there are tiles with `bufferView` property instead of `bitstream`\n */\n bufferView?: number;\n /**\n * Postprocessing property\n * contain availability bits loaded from the bufferView\n */\n explicitBitstream?: ExplicitBitstream;\n};\n\nexport type ExplicitBitstream = Uint8Array;\n\n/**\n * Spec - https://github.com/CesiumGS/3d-tiles/tree/main/extensions/3DTILES_implicit_tiling#subdivision-scheme\n */\nexport type SubdivisionScheme = 'QUADTREE' | 'OCTREE';\n\ntype Buffer = {\n name: string;\n uri?: string;\n byteLength: number;\n};\n\n/** Subtree buffer view */\nexport type BufferView = {\n buffer: number;\n byteOffset: number;\n byteLength: number;\n};\n\n/**\n * Spec - https://github.com/CesiumGS/3d-tiles/tree/main/extensions/3DTILES_implicit_tiling\n */\nexport type ImplicitTilingExensionData = ImplicitTilingData & {\n /** This property is not part of the schema\n * https://github.com/CesiumGS/3d-tiles/blob/main/extensions/3DTILES_implicit_tiling/schema/tile.3DTILES_implicit_tiling.schema.json\n * But it can be seen in some test datasets. It is handled as substitute of `availableLevels`\n */\n maximumLevel?: number;\n};\n\n/** 3DTiles v1.1 types */\n\n/**\n * This object allows a tile to be implicitly subdivided. Tile and content availability and metadata is stored in subtrees which are referenced externally.\n * https://github.com/CesiumGS/3d-tiles/blob/draft-1.1/specification/schema/tile.implicitTiling.schema.json\n * */\ntype ImplicitTilingData = {\n /** A string describing the subdivision scheme used within the tileset. */\n subdivisionScheme: 'QUADTREE' | 'OCTREE' | string;\n /** The number of distinct levels in each subtree. For example, a quadtree with `subtreeLevels = 2` will have subtrees with 5 nodes (one root and 4 children). */\n subtreeLevels: number;\n /** The numbers of the levels in the tree with available tiles. */\n availableLevels: number;\n /** An object describing the location of subtree files. */\n subtrees: {\n /** A template URI pointing to subtree files. A subtree is a fixed-depth (defined by `subtreeLevels`) portion of the tree to keep memory use bounded.\n * The URI of each file is substituted with the subtree root's global level, x, and y. For subdivision scheme `OCTREE`, z shall also be given. Relative paths are relative to the tileset JSON. */\n uri: string;\n };\n};\n"],"mappings":""}
package/src/bundle.ts DELETED
@@ -1,4 +0,0 @@
1
- // @ts-nocheck
2
- const moduleExports = require('./index');
3
- globalThis.loaders = globalThis.loaders || {};
4
- module.exports = Object.assign(globalThis.loaders, moduleExports);
File without changes
File without changes