@itwin/core-frontend 5.1.0-dev.9 → 5.2.0-dev.1

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 (721) hide show
  1. package/CHANGELOG.md +92 -1
  2. package/lib/cjs/AccuDraw.js +2 -2
  3. package/lib/cjs/AccuDraw.js.map +1 -1
  4. package/lib/cjs/AccuSnap.d.ts.map +1 -1
  5. package/lib/cjs/AccuSnap.js +15 -6
  6. package/lib/cjs/AccuSnap.js.map +1 -1
  7. package/lib/cjs/AuxCoordSys.js +1 -1
  8. package/lib/cjs/AuxCoordSys.js.map +1 -1
  9. package/lib/cjs/DisplayStyleState.d.ts +37 -0
  10. package/lib/cjs/DisplayStyleState.d.ts.map +1 -1
  11. package/lib/cjs/DisplayStyleState.js +65 -0
  12. package/lib/cjs/DisplayStyleState.js.map +1 -1
  13. package/lib/cjs/DrawingViewState.d.ts.map +1 -1
  14. package/lib/cjs/DrawingViewState.js +1 -0
  15. package/lib/cjs/DrawingViewState.js.map +1 -1
  16. package/lib/cjs/GraphicalEditingScope.d.ts +1 -1
  17. package/lib/cjs/GraphicalEditingScope.d.ts.map +1 -1
  18. package/lib/cjs/GraphicalEditingScope.js +1 -1
  19. package/lib/cjs/GraphicalEditingScope.js.map +1 -1
  20. package/lib/cjs/HitDetail.d.ts +1 -1
  21. package/lib/cjs/HitDetail.d.ts.map +1 -1
  22. package/lib/cjs/HitDetail.js.map +1 -1
  23. package/lib/cjs/IModelApp.d.ts +19 -4
  24. package/lib/cjs/IModelApp.d.ts.map +1 -1
  25. package/lib/cjs/IModelApp.js +21 -2
  26. package/lib/cjs/IModelApp.js.map +1 -1
  27. package/lib/cjs/IModelConnection.d.ts +8 -9
  28. package/lib/cjs/IModelConnection.d.ts.map +1 -1
  29. package/lib/cjs/IModelConnection.js +52 -24
  30. package/lib/cjs/IModelConnection.js.map +1 -1
  31. package/lib/cjs/IpcApp.d.ts +2 -1
  32. package/lib/cjs/IpcApp.d.ts.map +1 -1
  33. package/lib/cjs/IpcApp.js +4 -2
  34. package/lib/cjs/IpcApp.js.map +1 -1
  35. package/lib/cjs/RealityDataSource.d.ts +65 -3
  36. package/lib/cjs/RealityDataSource.d.ts.map +1 -1
  37. package/lib/cjs/RealityDataSource.js +79 -3
  38. package/lib/cjs/RealityDataSource.js.map +1 -1
  39. package/lib/cjs/RealityDataSourceTilesetUrlImpl.js +1 -1
  40. package/lib/cjs/RealityDataSourceTilesetUrlImpl.js.map +1 -1
  41. package/lib/cjs/SelectionSet.d.ts +7 -7
  42. package/lib/cjs/SelectionSet.js +3 -3
  43. package/lib/cjs/SelectionSet.js.map +1 -1
  44. package/lib/cjs/SheetViewState.d.ts +2 -0
  45. package/lib/cjs/SheetViewState.d.ts.map +1 -1
  46. package/lib/cjs/SheetViewState.js +25 -3
  47. package/lib/cjs/SheetViewState.js.map +1 -1
  48. package/lib/cjs/ViewState.d.ts +1 -1
  49. package/lib/cjs/ViewState.js +1 -1
  50. package/lib/cjs/ViewState.js.map +1 -1
  51. package/lib/cjs/Viewport.d.ts +6 -4
  52. package/lib/cjs/Viewport.d.ts.map +1 -1
  53. package/lib/cjs/Viewport.js +23 -3
  54. package/lib/cjs/Viewport.js.map +1 -1
  55. package/lib/cjs/common/gltf/GltfSchema.d.ts +18 -0
  56. package/lib/cjs/common/gltf/GltfSchema.d.ts.map +1 -1
  57. package/lib/cjs/common/gltf/GltfSchema.js +1 -0
  58. package/lib/cjs/common/gltf/GltfSchema.js.map +1 -1
  59. package/lib/cjs/common/imdl/CompactEdges.d.ts +11 -0
  60. package/lib/cjs/common/imdl/CompactEdges.d.ts.map +1 -1
  61. package/lib/cjs/common/imdl/CompactEdges.js +9 -6
  62. package/lib/cjs/common/imdl/CompactEdges.js.map +1 -1
  63. package/lib/cjs/common/imdl/ImdlSchema.d.ts +5 -1
  64. package/lib/cjs/common/imdl/ImdlSchema.d.ts.map +1 -1
  65. package/lib/cjs/common/imdl/ImdlSchema.js +4 -0
  66. package/lib/cjs/common/imdl/ImdlSchema.js.map +1 -1
  67. package/lib/cjs/common/imdl/ParseImdlDocument.d.ts.map +1 -1
  68. package/lib/cjs/common/imdl/ParseImdlDocument.js +11 -9
  69. package/lib/cjs/common/imdl/ParseImdlDocument.js.map +1 -1
  70. package/lib/cjs/common/internal/render/EdgeParams.d.ts +7 -2
  71. package/lib/cjs/common/internal/render/EdgeParams.d.ts.map +1 -1
  72. package/lib/cjs/common/internal/render/EdgeParams.js +30 -8
  73. package/lib/cjs/common/internal/render/EdgeParams.js.map +1 -1
  74. package/lib/cjs/common/internal/render/MeshPrimitives.d.ts +2 -1
  75. package/lib/cjs/common/internal/render/MeshPrimitives.d.ts.map +1 -1
  76. package/lib/cjs/common/internal/render/MeshPrimitives.js +5 -7
  77. package/lib/cjs/common/internal/render/MeshPrimitives.js.map +1 -1
  78. package/lib/cjs/common/internal/render/PolylineParams.d.ts +8 -3
  79. package/lib/cjs/common/internal/render/PolylineParams.d.ts.map +1 -1
  80. package/lib/cjs/common/internal/render/PolylineParams.js +6 -9
  81. package/lib/cjs/common/internal/render/PolylineParams.js.map +1 -1
  82. package/lib/cjs/common/internal/render/VertexTableSplitter.d.ts.map +1 -1
  83. package/lib/cjs/common/internal/render/VertexTableSplitter.js +9 -7
  84. package/lib/cjs/common/internal/render/VertexTableSplitter.js.map +1 -1
  85. package/lib/cjs/core-frontend.d.ts +2 -2
  86. package/lib/cjs/core-frontend.d.ts.map +1 -1
  87. package/lib/cjs/core-frontend.js +1 -1
  88. package/lib/cjs/core-frontend.js.map +1 -1
  89. package/lib/cjs/extension/ExtensionRuntime.js +15 -2
  90. package/lib/cjs/extension/ExtensionRuntime.js.map +1 -1
  91. package/lib/cjs/extension/providers/ExtensionLoadScript.js.map +1 -1
  92. package/lib/cjs/internal/GoogleMapsDecorator.d.ts +53 -0
  93. package/lib/cjs/internal/GoogleMapsDecorator.d.ts.map +1 -0
  94. package/lib/cjs/internal/GoogleMapsDecorator.js +132 -0
  95. package/lib/cjs/internal/GoogleMapsDecorator.js.map +1 -0
  96. package/lib/cjs/internal/RealityDataSourceGoogle3dTilesImpl.d.ts +83 -0
  97. package/lib/cjs/internal/RealityDataSourceGoogle3dTilesImpl.d.ts.map +1 -0
  98. package/lib/cjs/internal/RealityDataSourceGoogle3dTilesImpl.js +201 -0
  99. package/lib/cjs/internal/RealityDataSourceGoogle3dTilesImpl.js.map +1 -0
  100. package/lib/cjs/internal/ScriptUtils.d.ts +5 -0
  101. package/lib/cjs/internal/ScriptUtils.d.ts.map +1 -0
  102. package/lib/cjs/internal/ScriptUtils.js +120 -0
  103. package/lib/cjs/internal/ScriptUtils.js.map +1 -0
  104. package/lib/cjs/internal/cross-package.d.ts +1 -0
  105. package/lib/cjs/internal/cross-package.d.ts.map +1 -1
  106. package/lib/cjs/internal/cross-package.js +4 -1
  107. package/lib/cjs/internal/cross-package.js.map +1 -1
  108. package/lib/cjs/internal/render/webgl/AtmosphereUniforms.d.ts +1 -1
  109. package/lib/cjs/internal/render/webgl/AtmosphereUniforms.d.ts.map +1 -1
  110. package/lib/cjs/internal/render/webgl/AtmosphereUniforms.js +1 -1
  111. package/lib/cjs/internal/render/webgl/AtmosphereUniforms.js.map +1 -1
  112. package/lib/cjs/internal/render/webgl/AttributeBuffers.d.ts +2 -2
  113. package/lib/cjs/internal/render/webgl/AttributeBuffers.d.ts.map +1 -1
  114. package/lib/cjs/internal/render/webgl/AttributeBuffers.js +2 -2
  115. package/lib/cjs/internal/render/webgl/AttributeBuffers.js.map +1 -1
  116. package/lib/cjs/internal/render/webgl/BatchUniforms.js +1 -1
  117. package/lib/cjs/internal/render/webgl/BatchUniforms.js.map +1 -1
  118. package/lib/cjs/internal/render/webgl/BranchStack.d.ts +2 -2
  119. package/lib/cjs/internal/render/webgl/BranchStack.d.ts.map +1 -1
  120. package/lib/cjs/internal/render/webgl/BranchStack.js +3 -2
  121. package/lib/cjs/internal/render/webgl/BranchStack.js.map +1 -1
  122. package/lib/cjs/internal/render/webgl/BranchState.d.ts +4 -2
  123. package/lib/cjs/internal/render/webgl/BranchState.d.ts.map +1 -1
  124. package/lib/cjs/internal/render/webgl/BranchState.js +4 -1
  125. package/lib/cjs/internal/render/webgl/BranchState.js.map +1 -1
  126. package/lib/cjs/internal/render/webgl/BranchUniforms.d.ts +2 -2
  127. package/lib/cjs/internal/render/webgl/BranchUniforms.d.ts.map +1 -1
  128. package/lib/cjs/internal/render/webgl/BranchUniforms.js +2 -2
  129. package/lib/cjs/internal/render/webgl/BranchUniforms.js.map +1 -1
  130. package/lib/cjs/internal/render/webgl/ClippingProgram.d.ts +1 -1
  131. package/lib/cjs/internal/render/webgl/ClippingProgram.d.ts.map +1 -1
  132. package/lib/cjs/internal/render/webgl/ClippingProgram.js +1 -1
  133. package/lib/cjs/internal/render/webgl/ClippingProgram.js.map +1 -1
  134. package/lib/cjs/internal/render/webgl/ContourUniforms.d.ts.map +1 -1
  135. package/lib/cjs/internal/render/webgl/ContourUniforms.js +2 -3
  136. package/lib/cjs/internal/render/webgl/ContourUniforms.js.map +1 -1
  137. package/lib/cjs/internal/render/webgl/Contours.js +8 -8
  138. package/lib/cjs/internal/render/webgl/Contours.js.map +1 -1
  139. package/lib/cjs/internal/render/webgl/EdgeGeometry.d.ts +8 -6
  140. package/lib/cjs/internal/render/webgl/EdgeGeometry.d.ts.map +1 -1
  141. package/lib/cjs/internal/render/webgl/EdgeGeometry.js +21 -7
  142. package/lib/cjs/internal/render/webgl/EdgeGeometry.js.map +1 -1
  143. package/lib/cjs/internal/render/webgl/Graphic.d.ts +2 -1
  144. package/lib/cjs/internal/render/webgl/Graphic.d.ts.map +1 -1
  145. package/lib/cjs/internal/render/webgl/Graphic.js +2 -0
  146. package/lib/cjs/internal/render/webgl/Graphic.js.map +1 -1
  147. package/lib/cjs/internal/render/webgl/IndexedEdgeGeometry.d.ts +6 -1
  148. package/lib/cjs/internal/render/webgl/IndexedEdgeGeometry.d.ts.map +1 -1
  149. package/lib/cjs/internal/render/webgl/IndexedEdgeGeometry.js +19 -4
  150. package/lib/cjs/internal/render/webgl/IndexedEdgeGeometry.js.map +1 -1
  151. package/lib/cjs/internal/render/webgl/Mesh.d.ts +1 -1
  152. package/lib/cjs/internal/render/webgl/Mesh.d.ts.map +1 -1
  153. package/lib/cjs/internal/render/webgl/Mesh.js +13 -6
  154. package/lib/cjs/internal/render/webgl/Mesh.js.map +1 -1
  155. package/lib/cjs/internal/render/webgl/SceneCompositor.js +2 -1
  156. package/lib/cjs/internal/render/webgl/SceneCompositor.js.map +1 -1
  157. package/lib/cjs/internal/render/webgl/ShaderProgram.d.ts +2 -2
  158. package/lib/cjs/internal/render/webgl/ShaderProgram.d.ts.map +1 -1
  159. package/lib/cjs/internal/render/webgl/ShaderProgram.js +2 -2
  160. package/lib/cjs/internal/render/webgl/ShaderProgram.js.map +1 -1
  161. package/lib/cjs/internal/render/webgl/Target.d.ts +2 -1
  162. package/lib/cjs/internal/render/webgl/Target.d.ts.map +1 -1
  163. package/lib/cjs/internal/render/webgl/Target.js +3 -1
  164. package/lib/cjs/internal/render/webgl/Target.js.map +1 -1
  165. package/lib/cjs/internal/render/webgl/Technique.d.ts +3 -3
  166. package/lib/cjs/internal/render/webgl/Technique.d.ts.map +1 -1
  167. package/lib/cjs/internal/render/webgl/Technique.js +3 -3
  168. package/lib/cjs/internal/render/webgl/Technique.js.map +1 -1
  169. package/lib/cjs/internal/tile/ClassifierTileTree.js +3 -1
  170. package/lib/cjs/internal/tile/ClassifierTileTree.js.map +1 -1
  171. package/lib/cjs/internal/tile/IModelTile.d.ts +1 -0
  172. package/lib/cjs/internal/tile/IModelTile.d.ts.map +1 -1
  173. package/lib/cjs/internal/tile/IModelTile.js +4 -0
  174. package/lib/cjs/internal/tile/IModelTile.js.map +1 -1
  175. package/lib/cjs/internal/tile/IModelTileTree.d.ts +4 -2
  176. package/lib/cjs/internal/tile/IModelTileTree.d.ts.map +1 -1
  177. package/lib/cjs/internal/tile/IModelTileTree.js +58 -0
  178. package/lib/cjs/internal/tile/IModelTileTree.js.map +1 -1
  179. package/lib/cjs/internal/tile/LayerTileTreeReferenceHandler.d.ts.map +1 -1
  180. package/lib/cjs/internal/tile/LayerTileTreeReferenceHandler.js +8 -0
  181. package/lib/cjs/internal/tile/LayerTileTreeReferenceHandler.js.map +1 -1
  182. package/lib/cjs/internal/tile/OrbitGtTileTree.d.ts +4 -1
  183. package/lib/cjs/internal/tile/OrbitGtTileTree.d.ts.map +1 -1
  184. package/lib/cjs/internal/tile/OrbitGtTileTree.js +4 -0
  185. package/lib/cjs/internal/tile/OrbitGtTileTree.js.map +1 -1
  186. package/lib/cjs/internal/tile/PrimaryTileTree.d.ts.map +1 -1
  187. package/lib/cjs/internal/tile/PrimaryTileTree.js +5 -4
  188. package/lib/cjs/internal/tile/PrimaryTileTree.js.map +1 -1
  189. package/lib/cjs/internal/tile/RealityModelTileTree.d.ts +26 -7
  190. package/lib/cjs/internal/tile/RealityModelTileTree.d.ts.map +1 -1
  191. package/lib/cjs/internal/tile/RealityModelTileTree.js +48 -21
  192. package/lib/cjs/internal/tile/RealityModelTileTree.js.map +1 -1
  193. package/lib/cjs/internal/tile/RealityTileLoader.d.ts +2 -2
  194. package/lib/cjs/internal/tile/RealityTileLoader.d.ts.map +1 -1
  195. package/lib/cjs/internal/tile/RealityTileLoader.js +10 -2
  196. package/lib/cjs/internal/tile/RealityTileLoader.js.map +1 -1
  197. package/lib/cjs/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts +1 -1
  198. package/lib/cjs/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts.map +1 -1
  199. package/lib/cjs/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js +1 -1
  200. package/lib/cjs/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js.map +1 -1
  201. package/lib/cjs/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.d.ts +1 -1
  202. package/lib/cjs/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.d.ts.map +1 -1
  203. package/lib/cjs/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.js +1 -1
  204. package/lib/cjs/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.js.map +1 -1
  205. package/lib/cjs/internal/tile/map/ImageryProviders/BingImageryProvider.d.ts +1 -1
  206. package/lib/cjs/internal/tile/map/ImageryProviders/BingImageryProvider.d.ts.map +1 -1
  207. package/lib/cjs/internal/tile/map/ImageryProviders/BingImageryProvider.js +1 -1
  208. package/lib/cjs/internal/tile/map/ImageryProviders/BingImageryProvider.js.map +1 -1
  209. package/lib/cjs/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.d.ts +1 -1
  210. package/lib/cjs/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.d.ts.map +1 -1
  211. package/lib/cjs/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.js +1 -1
  212. package/lib/cjs/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.js.map +1 -1
  213. package/lib/cjs/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.d.ts +4 -0
  214. package/lib/cjs/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.d.ts.map +1 -1
  215. package/lib/cjs/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.js +52 -11
  216. package/lib/cjs/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.js.map +1 -1
  217. package/lib/cjs/internal/tile/map/WmtsCapabilities.d.ts +7 -0
  218. package/lib/cjs/internal/tile/map/WmtsCapabilities.d.ts.map +1 -1
  219. package/lib/cjs/internal/tile/map/WmtsCapabilities.js +17 -0
  220. package/lib/cjs/internal/tile/map/WmtsCapabilities.js.map +1 -1
  221. package/lib/cjs/internal/webgl.d.ts +1 -1
  222. package/lib/cjs/internal/webgl.d.ts.map +1 -1
  223. package/lib/cjs/internal/webgl.js.map +1 -1
  224. package/lib/cjs/properties/AngleDescription.d.ts +4 -1
  225. package/lib/cjs/properties/AngleDescription.d.ts.map +1 -1
  226. package/lib/cjs/properties/AngleDescription.js +10 -2
  227. package/lib/cjs/properties/AngleDescription.js.map +1 -1
  228. package/lib/cjs/properties/FormattedQuantityDescription.d.ts +11 -1
  229. package/lib/cjs/properties/FormattedQuantityDescription.d.ts.map +1 -1
  230. package/lib/cjs/properties/FormattedQuantityDescription.js +7 -2
  231. package/lib/cjs/properties/FormattedQuantityDescription.js.map +1 -1
  232. package/lib/cjs/properties/LengthDescription.d.ts +12 -3
  233. package/lib/cjs/properties/LengthDescription.d.ts.map +1 -1
  234. package/lib/cjs/properties/LengthDescription.js +30 -6
  235. package/lib/cjs/properties/LengthDescription.js.map +1 -1
  236. package/lib/cjs/quantity-formatting/QuantityFormatter.d.ts +103 -7
  237. package/lib/cjs/quantity-formatting/QuantityFormatter.d.ts.map +1 -1
  238. package/lib/cjs/quantity-formatting/QuantityFormatter.js +210 -23
  239. package/lib/cjs/quantity-formatting/QuantityFormatter.js.map +1 -1
  240. package/lib/cjs/render/Decorations.d.ts +1 -1
  241. package/lib/cjs/render/Decorations.d.ts.map +1 -1
  242. package/lib/cjs/render/Decorations.js +1 -1
  243. package/lib/cjs/render/Decorations.js.map +1 -1
  244. package/lib/cjs/render/GraphicBranch.d.ts +4 -2
  245. package/lib/cjs/render/GraphicBranch.d.ts.map +1 -1
  246. package/lib/cjs/render/GraphicBranch.js +1 -1
  247. package/lib/cjs/render/GraphicBranch.js.map +1 -1
  248. package/lib/cjs/render/MeshArgs.d.ts +8 -3
  249. package/lib/cjs/render/MeshArgs.d.ts.map +1 -1
  250. package/lib/cjs/render/MeshArgs.js.map +1 -1
  251. package/lib/cjs/render/RenderGraphic.d.ts +1 -1
  252. package/lib/cjs/render/RenderGraphic.d.ts.map +1 -1
  253. package/lib/cjs/render/RenderGraphic.js.map +1 -1
  254. package/lib/cjs/render/RenderSystem.d.ts +2 -2
  255. package/lib/cjs/render/RenderSystem.d.ts.map +1 -1
  256. package/lib/cjs/render/RenderSystem.js.map +1 -1
  257. package/lib/cjs/render/ScreenSpaceEffectBuilder.d.ts +1 -1
  258. package/lib/cjs/render/ScreenSpaceEffectBuilder.js.map +1 -1
  259. package/lib/cjs/request/Request.d.ts +2 -2
  260. package/lib/cjs/request/Request.js.map +1 -1
  261. package/lib/cjs/tile/GltfReader.d.ts +6 -2
  262. package/lib/cjs/tile/GltfReader.d.ts.map +1 -1
  263. package/lib/cjs/tile/GltfReader.js +154 -18
  264. package/lib/cjs/tile/GltfReader.js.map +1 -1
  265. package/lib/cjs/tile/ImdlReader.js.map +1 -1
  266. package/lib/cjs/tile/RealityTile.d.ts +9 -0
  267. package/lib/cjs/tile/RealityTile.d.ts.map +1 -1
  268. package/lib/cjs/tile/RealityTile.js +12 -0
  269. package/lib/cjs/tile/RealityTile.js.map +1 -1
  270. package/lib/cjs/tile/RealityTileTree.d.ts +4 -0
  271. package/lib/cjs/tile/RealityTileTree.d.ts.map +1 -1
  272. package/lib/cjs/tile/RealityTileTree.js +4 -0
  273. package/lib/cjs/tile/RealityTileTree.js.map +1 -1
  274. package/lib/cjs/tile/Tile.d.ts +1 -1
  275. package/lib/cjs/tile/Tile.d.ts.map +1 -1
  276. package/lib/cjs/tile/Tile.js +1 -1
  277. package/lib/cjs/tile/Tile.js.map +1 -1
  278. package/lib/cjs/tile/TileAdmin.d.ts +10 -0
  279. package/lib/cjs/tile/TileAdmin.d.ts.map +1 -1
  280. package/lib/cjs/tile/TileAdmin.js +3 -0
  281. package/lib/cjs/tile/TileAdmin.js.map +1 -1
  282. package/lib/cjs/tile/TileGeometryCollector.d.ts +5 -0
  283. package/lib/cjs/tile/TileGeometryCollector.d.ts.map +1 -1
  284. package/lib/cjs/tile/TileGeometryCollector.js.map +1 -1
  285. package/lib/cjs/tile/TileTree.d.ts +15 -2
  286. package/lib/cjs/tile/TileTree.d.ts.map +1 -1
  287. package/lib/cjs/tile/TileTree.js +14 -1
  288. package/lib/cjs/tile/TileTree.js.map +1 -1
  289. package/lib/cjs/tile/TileTreeReference.d.ts +17 -3
  290. package/lib/cjs/tile/TileTreeReference.d.ts.map +1 -1
  291. package/lib/cjs/tile/TileTreeReference.js +11 -5
  292. package/lib/cjs/tile/TileTreeReference.js.map +1 -1
  293. package/lib/cjs/tile/map/CesiumTerrainProvider.js +1 -1
  294. package/lib/cjs/tile/map/CesiumTerrainProvider.js.map +1 -1
  295. package/lib/cjs/tile/map/ImageryTileTree.d.ts +2 -2
  296. package/lib/cjs/tile/map/ImageryTileTree.d.ts.map +1 -1
  297. package/lib/cjs/tile/map/ImageryTileTree.js +2 -2
  298. package/lib/cjs/tile/map/ImageryTileTree.js.map +1 -1
  299. package/lib/cjs/tile/map/MapCartoRectangle.d.ts +10 -0
  300. package/lib/cjs/tile/map/MapCartoRectangle.d.ts.map +1 -1
  301. package/lib/cjs/tile/map/MapCartoRectangle.js +12 -0
  302. package/lib/cjs/tile/map/MapCartoRectangle.js.map +1 -1
  303. package/lib/cjs/tile/map/MapLayerImageryProvider.d.ts +3 -3
  304. package/lib/cjs/tile/map/MapLayerImageryProvider.d.ts.map +1 -1
  305. package/lib/cjs/tile/map/MapLayerImageryProvider.js +9 -5
  306. package/lib/cjs/tile/map/MapLayerImageryProvider.js.map +1 -1
  307. package/lib/cjs/tile/map/MapTileTree.d.ts +1 -1
  308. package/lib/cjs/tile/map/MapTileTree.d.ts.map +1 -1
  309. package/lib/cjs/tile/map/MapTileTree.js +1 -1
  310. package/lib/cjs/tile/map/MapTileTree.js.map +1 -1
  311. package/lib/cjs/tile/map/QuadId.d.ts +15 -0
  312. package/lib/cjs/tile/map/QuadId.d.ts.map +1 -1
  313. package/lib/cjs/tile/map/QuadId.js +12 -0
  314. package/lib/cjs/tile/map/QuadId.js.map +1 -1
  315. package/lib/cjs/tile/map/TerrainMeshProvider.d.ts +1 -1
  316. package/lib/cjs/tile/map/TerrainMeshProvider.d.ts.map +1 -1
  317. package/lib/cjs/tile/map/TerrainMeshProvider.js +1 -1
  318. package/lib/cjs/tile/map/TerrainMeshProvider.js.map +1 -1
  319. package/lib/cjs/tools/ClipViewTool.d.ts.map +1 -1
  320. package/lib/cjs/tools/ClipViewTool.js +18 -7
  321. package/lib/cjs/tools/ClipViewTool.js.map +1 -1
  322. package/lib/cjs/tools/ElementSetTool.d.ts +9 -1
  323. package/lib/cjs/tools/ElementSetTool.d.ts.map +1 -1
  324. package/lib/cjs/tools/ElementSetTool.js +130 -7
  325. package/lib/cjs/tools/ElementSetTool.js.map +1 -1
  326. package/lib/cjs/tools/IdleTool.d.ts.map +1 -1
  327. package/lib/cjs/tools/IdleTool.js +4 -1
  328. package/lib/cjs/tools/IdleTool.js.map +1 -1
  329. package/lib/cjs/tools/MeasureTool.d.ts +9 -0
  330. package/lib/cjs/tools/MeasureTool.d.ts.map +1 -1
  331. package/lib/cjs/tools/MeasureTool.js +57 -24
  332. package/lib/cjs/tools/MeasureTool.js.map +1 -1
  333. package/lib/cjs/tools/PrimitiveTool.d.ts +1 -1
  334. package/lib/cjs/tools/PrimitiveTool.d.ts.map +1 -1
  335. package/lib/cjs/tools/PrimitiveTool.js +4 -3
  336. package/lib/cjs/tools/PrimitiveTool.js.map +1 -1
  337. package/lib/cjs/tools/SelectTool.d.ts +2 -2
  338. package/lib/cjs/tools/SelectTool.d.ts.map +1 -1
  339. package/lib/cjs/tools/SelectTool.js +26 -97
  340. package/lib/cjs/tools/SelectTool.js.map +1 -1
  341. package/lib/cjs/tools/Tool.d.ts +10 -1
  342. package/lib/cjs/tools/Tool.d.ts.map +1 -1
  343. package/lib/cjs/tools/Tool.js +27 -4
  344. package/lib/cjs/tools/Tool.js.map +1 -1
  345. package/lib/cjs/tools/ToolAdmin.d.ts.map +1 -1
  346. package/lib/cjs/tools/ToolAdmin.js +51 -16
  347. package/lib/cjs/tools/ToolAdmin.js.map +1 -1
  348. package/lib/cjs/tools/ToolAssistance.d.ts +1 -1
  349. package/lib/cjs/tools/ToolAssistance.js.map +1 -1
  350. package/lib/cjs/tools/ToolSettings.d.ts +5 -0
  351. package/lib/cjs/tools/ToolSettings.d.ts.map +1 -1
  352. package/lib/cjs/tools/ToolSettings.js +5 -0
  353. package/lib/cjs/tools/ToolSettings.js.map +1 -1
  354. package/lib/cjs/tools/ViewTool.d.ts +1 -2
  355. package/lib/cjs/tools/ViewTool.d.ts.map +1 -1
  356. package/lib/cjs/tools/ViewTool.js +143 -84
  357. package/lib/cjs/tools/ViewTool.js.map +1 -1
  358. package/lib/esm/AccuDraw.js +2 -2
  359. package/lib/esm/AccuDraw.js.map +1 -1
  360. package/lib/esm/AccuSnap.d.ts.map +1 -1
  361. package/lib/esm/AccuSnap.js +15 -6
  362. package/lib/esm/AccuSnap.js.map +1 -1
  363. package/lib/esm/AuxCoordSys.js +1 -1
  364. package/lib/esm/AuxCoordSys.js.map +1 -1
  365. package/lib/esm/DisplayStyleState.d.ts +37 -0
  366. package/lib/esm/DisplayStyleState.d.ts.map +1 -1
  367. package/lib/esm/DisplayStyleState.js +65 -0
  368. package/lib/esm/DisplayStyleState.js.map +1 -1
  369. package/lib/esm/DrawingViewState.d.ts.map +1 -1
  370. package/lib/esm/DrawingViewState.js +1 -0
  371. package/lib/esm/DrawingViewState.js.map +1 -1
  372. package/lib/esm/GraphicalEditingScope.d.ts +1 -1
  373. package/lib/esm/GraphicalEditingScope.d.ts.map +1 -1
  374. package/lib/esm/GraphicalEditingScope.js +1 -1
  375. package/lib/esm/GraphicalEditingScope.js.map +1 -1
  376. package/lib/esm/HitDetail.d.ts +1 -1
  377. package/lib/esm/HitDetail.d.ts.map +1 -1
  378. package/lib/esm/HitDetail.js.map +1 -1
  379. package/lib/esm/IModelApp.d.ts +19 -4
  380. package/lib/esm/IModelApp.d.ts.map +1 -1
  381. package/lib/esm/IModelApp.js +22 -3
  382. package/lib/esm/IModelApp.js.map +1 -1
  383. package/lib/esm/IModelConnection.d.ts +8 -9
  384. package/lib/esm/IModelConnection.d.ts.map +1 -1
  385. package/lib/esm/IModelConnection.js +53 -25
  386. package/lib/esm/IModelConnection.js.map +1 -1
  387. package/lib/esm/IpcApp.d.ts +2 -1
  388. package/lib/esm/IpcApp.d.ts.map +1 -1
  389. package/lib/esm/IpcApp.js +4 -2
  390. package/lib/esm/IpcApp.js.map +1 -1
  391. package/lib/esm/RealityDataSource.d.ts +65 -3
  392. package/lib/esm/RealityDataSource.d.ts.map +1 -1
  393. package/lib/esm/RealityDataSource.js +77 -3
  394. package/lib/esm/RealityDataSource.js.map +1 -1
  395. package/lib/esm/RealityDataSourceTilesetUrlImpl.js +1 -1
  396. package/lib/esm/RealityDataSourceTilesetUrlImpl.js.map +1 -1
  397. package/lib/esm/SelectionSet.d.ts +7 -7
  398. package/lib/esm/SelectionSet.js +3 -3
  399. package/lib/esm/SelectionSet.js.map +1 -1
  400. package/lib/esm/SheetViewState.d.ts +2 -0
  401. package/lib/esm/SheetViewState.d.ts.map +1 -1
  402. package/lib/esm/SheetViewState.js +25 -3
  403. package/lib/esm/SheetViewState.js.map +1 -1
  404. package/lib/esm/ViewState.d.ts +1 -1
  405. package/lib/esm/ViewState.js +1 -1
  406. package/lib/esm/ViewState.js.map +1 -1
  407. package/lib/esm/Viewport.d.ts +6 -4
  408. package/lib/esm/Viewport.d.ts.map +1 -1
  409. package/lib/esm/Viewport.js +23 -3
  410. package/lib/esm/Viewport.js.map +1 -1
  411. package/lib/esm/common/gltf/GltfSchema.d.ts +18 -0
  412. package/lib/esm/common/gltf/GltfSchema.d.ts.map +1 -1
  413. package/lib/esm/common/gltf/GltfSchema.js +1 -0
  414. package/lib/esm/common/gltf/GltfSchema.js.map +1 -1
  415. package/lib/esm/common/imdl/CompactEdges.d.ts +11 -0
  416. package/lib/esm/common/imdl/CompactEdges.d.ts.map +1 -1
  417. package/lib/esm/common/imdl/CompactEdges.js +8 -6
  418. package/lib/esm/common/imdl/CompactEdges.js.map +1 -1
  419. package/lib/esm/common/imdl/ImdlSchema.d.ts +5 -1
  420. package/lib/esm/common/imdl/ImdlSchema.d.ts.map +1 -1
  421. package/lib/esm/common/imdl/ImdlSchema.js +4 -0
  422. package/lib/esm/common/imdl/ImdlSchema.js.map +1 -1
  423. package/lib/esm/common/imdl/ParseImdlDocument.d.ts.map +1 -1
  424. package/lib/esm/common/imdl/ParseImdlDocument.js +11 -9
  425. package/lib/esm/common/imdl/ParseImdlDocument.js.map +1 -1
  426. package/lib/esm/common/internal/render/EdgeParams.d.ts +7 -2
  427. package/lib/esm/common/internal/render/EdgeParams.d.ts.map +1 -1
  428. package/lib/esm/common/internal/render/EdgeParams.js +31 -9
  429. package/lib/esm/common/internal/render/EdgeParams.js.map +1 -1
  430. package/lib/esm/common/internal/render/MeshPrimitives.d.ts +2 -1
  431. package/lib/esm/common/internal/render/MeshPrimitives.d.ts.map +1 -1
  432. package/lib/esm/common/internal/render/MeshPrimitives.js +5 -7
  433. package/lib/esm/common/internal/render/MeshPrimitives.js.map +1 -1
  434. package/lib/esm/common/internal/render/PolylineParams.d.ts +8 -3
  435. package/lib/esm/common/internal/render/PolylineParams.d.ts.map +1 -1
  436. package/lib/esm/common/internal/render/PolylineParams.js +5 -8
  437. package/lib/esm/common/internal/render/PolylineParams.js.map +1 -1
  438. package/lib/esm/common/internal/render/VertexTableSplitter.d.ts.map +1 -1
  439. package/lib/esm/common/internal/render/VertexTableSplitter.js +9 -7
  440. package/lib/esm/common/internal/render/VertexTableSplitter.js.map +1 -1
  441. package/lib/esm/core-frontend.d.ts +2 -2
  442. package/lib/esm/core-frontend.d.ts.map +1 -1
  443. package/lib/esm/core-frontend.js +1 -1
  444. package/lib/esm/core-frontend.js.map +1 -1
  445. package/lib/esm/extension/ExtensionRuntime.js +15 -2
  446. package/lib/esm/extension/ExtensionRuntime.js.map +1 -1
  447. package/lib/esm/extension/providers/ExtensionLoadScript.js +1 -1
  448. package/lib/esm/extension/providers/ExtensionLoadScript.js.map +1 -1
  449. package/lib/esm/internal/GoogleMapsDecorator.d.ts +53 -0
  450. package/lib/esm/internal/GoogleMapsDecorator.d.ts.map +1 -0
  451. package/lib/esm/internal/GoogleMapsDecorator.js +126 -0
  452. package/lib/esm/internal/GoogleMapsDecorator.js.map +1 -0
  453. package/lib/esm/internal/RealityDataSourceGoogle3dTilesImpl.d.ts +83 -0
  454. package/lib/esm/internal/RealityDataSourceGoogle3dTilesImpl.d.ts.map +1 -0
  455. package/lib/esm/internal/RealityDataSourceGoogle3dTilesImpl.js +197 -0
  456. package/lib/esm/internal/RealityDataSourceGoogle3dTilesImpl.js.map +1 -0
  457. package/lib/esm/internal/ScriptUtils.d.ts +5 -0
  458. package/lib/esm/internal/ScriptUtils.d.ts.map +1 -0
  459. package/lib/esm/internal/ScriptUtils.js +117 -0
  460. package/lib/esm/internal/ScriptUtils.js.map +1 -0
  461. package/lib/esm/internal/cross-package.d.ts +1 -0
  462. package/lib/esm/internal/cross-package.d.ts.map +1 -1
  463. package/lib/esm/internal/cross-package.js +1 -0
  464. package/lib/esm/internal/cross-package.js.map +1 -1
  465. package/lib/esm/internal/render/webgl/AtmosphereUniforms.d.ts +1 -1
  466. package/lib/esm/internal/render/webgl/AtmosphereUniforms.d.ts.map +1 -1
  467. package/lib/esm/internal/render/webgl/AtmosphereUniforms.js +1 -1
  468. package/lib/esm/internal/render/webgl/AtmosphereUniforms.js.map +1 -1
  469. package/lib/esm/internal/render/webgl/AttributeBuffers.d.ts +2 -2
  470. package/lib/esm/internal/render/webgl/AttributeBuffers.d.ts.map +1 -1
  471. package/lib/esm/internal/render/webgl/AttributeBuffers.js +2 -2
  472. package/lib/esm/internal/render/webgl/AttributeBuffers.js.map +1 -1
  473. package/lib/esm/internal/render/webgl/BatchUniforms.js +1 -1
  474. package/lib/esm/internal/render/webgl/BatchUniforms.js.map +1 -1
  475. package/lib/esm/internal/render/webgl/BranchStack.d.ts +2 -2
  476. package/lib/esm/internal/render/webgl/BranchStack.d.ts.map +1 -1
  477. package/lib/esm/internal/render/webgl/BranchStack.js +3 -2
  478. package/lib/esm/internal/render/webgl/BranchStack.js.map +1 -1
  479. package/lib/esm/internal/render/webgl/BranchState.d.ts +4 -2
  480. package/lib/esm/internal/render/webgl/BranchState.d.ts.map +1 -1
  481. package/lib/esm/internal/render/webgl/BranchState.js +4 -1
  482. package/lib/esm/internal/render/webgl/BranchState.js.map +1 -1
  483. package/lib/esm/internal/render/webgl/BranchUniforms.d.ts +2 -2
  484. package/lib/esm/internal/render/webgl/BranchUniforms.d.ts.map +1 -1
  485. package/lib/esm/internal/render/webgl/BranchUniforms.js +2 -2
  486. package/lib/esm/internal/render/webgl/BranchUniforms.js.map +1 -1
  487. package/lib/esm/internal/render/webgl/ClippingProgram.d.ts +1 -1
  488. package/lib/esm/internal/render/webgl/ClippingProgram.d.ts.map +1 -1
  489. package/lib/esm/internal/render/webgl/ClippingProgram.js +1 -1
  490. package/lib/esm/internal/render/webgl/ClippingProgram.js.map +1 -1
  491. package/lib/esm/internal/render/webgl/ContourUniforms.d.ts.map +1 -1
  492. package/lib/esm/internal/render/webgl/ContourUniforms.js +2 -3
  493. package/lib/esm/internal/render/webgl/ContourUniforms.js.map +1 -1
  494. package/lib/esm/internal/render/webgl/Contours.js +8 -8
  495. package/lib/esm/internal/render/webgl/Contours.js.map +1 -1
  496. package/lib/esm/internal/render/webgl/EdgeGeometry.d.ts +8 -6
  497. package/lib/esm/internal/render/webgl/EdgeGeometry.d.ts.map +1 -1
  498. package/lib/esm/internal/render/webgl/EdgeGeometry.js +21 -7
  499. package/lib/esm/internal/render/webgl/EdgeGeometry.js.map +1 -1
  500. package/lib/esm/internal/render/webgl/Graphic.d.ts +2 -1
  501. package/lib/esm/internal/render/webgl/Graphic.d.ts.map +1 -1
  502. package/lib/esm/internal/render/webgl/Graphic.js +2 -0
  503. package/lib/esm/internal/render/webgl/Graphic.js.map +1 -1
  504. package/lib/esm/internal/render/webgl/IndexedEdgeGeometry.d.ts +6 -1
  505. package/lib/esm/internal/render/webgl/IndexedEdgeGeometry.d.ts.map +1 -1
  506. package/lib/esm/internal/render/webgl/IndexedEdgeGeometry.js +19 -4
  507. package/lib/esm/internal/render/webgl/IndexedEdgeGeometry.js.map +1 -1
  508. package/lib/esm/internal/render/webgl/Mesh.d.ts +1 -1
  509. package/lib/esm/internal/render/webgl/Mesh.d.ts.map +1 -1
  510. package/lib/esm/internal/render/webgl/Mesh.js +14 -7
  511. package/lib/esm/internal/render/webgl/Mesh.js.map +1 -1
  512. package/lib/esm/internal/render/webgl/SceneCompositor.js +2 -1
  513. package/lib/esm/internal/render/webgl/SceneCompositor.js.map +1 -1
  514. package/lib/esm/internal/render/webgl/ShaderProgram.d.ts +2 -2
  515. package/lib/esm/internal/render/webgl/ShaderProgram.d.ts.map +1 -1
  516. package/lib/esm/internal/render/webgl/ShaderProgram.js +2 -2
  517. package/lib/esm/internal/render/webgl/ShaderProgram.js.map +1 -1
  518. package/lib/esm/internal/render/webgl/Target.d.ts +2 -1
  519. package/lib/esm/internal/render/webgl/Target.d.ts.map +1 -1
  520. package/lib/esm/internal/render/webgl/Target.js +3 -1
  521. package/lib/esm/internal/render/webgl/Target.js.map +1 -1
  522. package/lib/esm/internal/render/webgl/Technique.d.ts +3 -3
  523. package/lib/esm/internal/render/webgl/Technique.d.ts.map +1 -1
  524. package/lib/esm/internal/render/webgl/Technique.js +3 -3
  525. package/lib/esm/internal/render/webgl/Technique.js.map +1 -1
  526. package/lib/esm/internal/tile/ClassifierTileTree.js +3 -1
  527. package/lib/esm/internal/tile/ClassifierTileTree.js.map +1 -1
  528. package/lib/esm/internal/tile/IModelTile.d.ts +1 -0
  529. package/lib/esm/internal/tile/IModelTile.d.ts.map +1 -1
  530. package/lib/esm/internal/tile/IModelTile.js +4 -0
  531. package/lib/esm/internal/tile/IModelTile.js.map +1 -1
  532. package/lib/esm/internal/tile/IModelTileTree.d.ts +4 -2
  533. package/lib/esm/internal/tile/IModelTileTree.d.ts.map +1 -1
  534. package/lib/esm/internal/tile/IModelTileTree.js +60 -2
  535. package/lib/esm/internal/tile/IModelTileTree.js.map +1 -1
  536. package/lib/esm/internal/tile/LayerTileTreeReferenceHandler.d.ts.map +1 -1
  537. package/lib/esm/internal/tile/LayerTileTreeReferenceHandler.js +8 -0
  538. package/lib/esm/internal/tile/LayerTileTreeReferenceHandler.js.map +1 -1
  539. package/lib/esm/internal/tile/OrbitGtTileTree.d.ts +4 -1
  540. package/lib/esm/internal/tile/OrbitGtTileTree.d.ts.map +1 -1
  541. package/lib/esm/internal/tile/OrbitGtTileTree.js +5 -1
  542. package/lib/esm/internal/tile/OrbitGtTileTree.js.map +1 -1
  543. package/lib/esm/internal/tile/PrimaryTileTree.d.ts.map +1 -1
  544. package/lib/esm/internal/tile/PrimaryTileTree.js +5 -4
  545. package/lib/esm/internal/tile/PrimaryTileTree.js.map +1 -1
  546. package/lib/esm/internal/tile/RealityModelTileTree.d.ts +26 -7
  547. package/lib/esm/internal/tile/RealityModelTileTree.d.ts.map +1 -1
  548. package/lib/esm/internal/tile/RealityModelTileTree.js +48 -22
  549. package/lib/esm/internal/tile/RealityModelTileTree.js.map +1 -1
  550. package/lib/esm/internal/tile/RealityTileLoader.d.ts +2 -2
  551. package/lib/esm/internal/tile/RealityTileLoader.d.ts.map +1 -1
  552. package/lib/esm/internal/tile/RealityTileLoader.js +10 -2
  553. package/lib/esm/internal/tile/RealityTileLoader.js.map +1 -1
  554. package/lib/esm/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts +1 -1
  555. package/lib/esm/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts.map +1 -1
  556. package/lib/esm/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js +1 -1
  557. package/lib/esm/internal/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js.map +1 -1
  558. package/lib/esm/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.d.ts +1 -1
  559. package/lib/esm/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.d.ts.map +1 -1
  560. package/lib/esm/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.js +1 -1
  561. package/lib/esm/internal/tile/map/ImageryProviders/AzureMapsLayerImageryProvider.js.map +1 -1
  562. package/lib/esm/internal/tile/map/ImageryProviders/BingImageryProvider.d.ts +1 -1
  563. package/lib/esm/internal/tile/map/ImageryProviders/BingImageryProvider.d.ts.map +1 -1
  564. package/lib/esm/internal/tile/map/ImageryProviders/BingImageryProvider.js +1 -1
  565. package/lib/esm/internal/tile/map/ImageryProviders/BingImageryProvider.js.map +1 -1
  566. package/lib/esm/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.d.ts +1 -1
  567. package/lib/esm/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.d.ts.map +1 -1
  568. package/lib/esm/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.js +1 -1
  569. package/lib/esm/internal/tile/map/ImageryProviders/MapBoxLayerImageryProvider.js.map +1 -1
  570. package/lib/esm/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.d.ts +4 -0
  571. package/lib/esm/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.d.ts.map +1 -1
  572. package/lib/esm/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.js +52 -11
  573. package/lib/esm/internal/tile/map/ImageryProviders/WmtsMapLayerImageryProvider.js.map +1 -1
  574. package/lib/esm/internal/tile/map/WmtsCapabilities.d.ts +7 -0
  575. package/lib/esm/internal/tile/map/WmtsCapabilities.d.ts.map +1 -1
  576. package/lib/esm/internal/tile/map/WmtsCapabilities.js +17 -0
  577. package/lib/esm/internal/tile/map/WmtsCapabilities.js.map +1 -1
  578. package/lib/esm/internal/webgl.d.ts +1 -1
  579. package/lib/esm/internal/webgl.d.ts.map +1 -1
  580. package/lib/esm/internal/webgl.js.map +1 -1
  581. package/lib/esm/properties/AngleDescription.d.ts +4 -1
  582. package/lib/esm/properties/AngleDescription.d.ts.map +1 -1
  583. package/lib/esm/properties/AngleDescription.js +10 -2
  584. package/lib/esm/properties/AngleDescription.js.map +1 -1
  585. package/lib/esm/properties/FormattedQuantityDescription.d.ts +11 -1
  586. package/lib/esm/properties/FormattedQuantityDescription.d.ts.map +1 -1
  587. package/lib/esm/properties/FormattedQuantityDescription.js +7 -2
  588. package/lib/esm/properties/FormattedQuantityDescription.js.map +1 -1
  589. package/lib/esm/properties/LengthDescription.d.ts +12 -3
  590. package/lib/esm/properties/LengthDescription.d.ts.map +1 -1
  591. package/lib/esm/properties/LengthDescription.js +30 -6
  592. package/lib/esm/properties/LengthDescription.js.map +1 -1
  593. package/lib/esm/quantity-formatting/QuantityFormatter.d.ts +103 -7
  594. package/lib/esm/quantity-formatting/QuantityFormatter.d.ts.map +1 -1
  595. package/lib/esm/quantity-formatting/QuantityFormatter.js +208 -23
  596. package/lib/esm/quantity-formatting/QuantityFormatter.js.map +1 -1
  597. package/lib/esm/render/Decorations.d.ts +1 -1
  598. package/lib/esm/render/Decorations.d.ts.map +1 -1
  599. package/lib/esm/render/Decorations.js +1 -1
  600. package/lib/esm/render/Decorations.js.map +1 -1
  601. package/lib/esm/render/GraphicBranch.d.ts +4 -2
  602. package/lib/esm/render/GraphicBranch.d.ts.map +1 -1
  603. package/lib/esm/render/GraphicBranch.js +1 -1
  604. package/lib/esm/render/GraphicBranch.js.map +1 -1
  605. package/lib/esm/render/MeshArgs.d.ts +8 -3
  606. package/lib/esm/render/MeshArgs.d.ts.map +1 -1
  607. package/lib/esm/render/MeshArgs.js.map +1 -1
  608. package/lib/esm/render/RenderGraphic.d.ts +1 -1
  609. package/lib/esm/render/RenderGraphic.d.ts.map +1 -1
  610. package/lib/esm/render/RenderGraphic.js.map +1 -1
  611. package/lib/esm/render/RenderSystem.d.ts +2 -2
  612. package/lib/esm/render/RenderSystem.d.ts.map +1 -1
  613. package/lib/esm/render/RenderSystem.js.map +1 -1
  614. package/lib/esm/render/ScreenSpaceEffectBuilder.d.ts +1 -1
  615. package/lib/esm/render/ScreenSpaceEffectBuilder.js.map +1 -1
  616. package/lib/esm/request/Request.d.ts +2 -2
  617. package/lib/esm/request/Request.js.map +1 -1
  618. package/lib/esm/tile/GltfReader.d.ts +6 -2
  619. package/lib/esm/tile/GltfReader.d.ts.map +1 -1
  620. package/lib/esm/tile/GltfReader.js +154 -19
  621. package/lib/esm/tile/GltfReader.js.map +1 -1
  622. package/lib/esm/tile/ImdlReader.js.map +1 -1
  623. package/lib/esm/tile/RealityTile.d.ts +9 -0
  624. package/lib/esm/tile/RealityTile.d.ts.map +1 -1
  625. package/lib/esm/tile/RealityTile.js +12 -0
  626. package/lib/esm/tile/RealityTile.js.map +1 -1
  627. package/lib/esm/tile/RealityTileTree.d.ts +4 -0
  628. package/lib/esm/tile/RealityTileTree.d.ts.map +1 -1
  629. package/lib/esm/tile/RealityTileTree.js +4 -0
  630. package/lib/esm/tile/RealityTileTree.js.map +1 -1
  631. package/lib/esm/tile/Tile.d.ts +1 -1
  632. package/lib/esm/tile/Tile.d.ts.map +1 -1
  633. package/lib/esm/tile/Tile.js +1 -1
  634. package/lib/esm/tile/Tile.js.map +1 -1
  635. package/lib/esm/tile/TileAdmin.d.ts +10 -0
  636. package/lib/esm/tile/TileAdmin.d.ts.map +1 -1
  637. package/lib/esm/tile/TileAdmin.js +3 -0
  638. package/lib/esm/tile/TileAdmin.js.map +1 -1
  639. package/lib/esm/tile/TileGeometryCollector.d.ts +5 -0
  640. package/lib/esm/tile/TileGeometryCollector.d.ts.map +1 -1
  641. package/lib/esm/tile/TileGeometryCollector.js.map +1 -1
  642. package/lib/esm/tile/TileTree.d.ts +15 -2
  643. package/lib/esm/tile/TileTree.d.ts.map +1 -1
  644. package/lib/esm/tile/TileTree.js +14 -1
  645. package/lib/esm/tile/TileTree.js.map +1 -1
  646. package/lib/esm/tile/TileTreeReference.d.ts +17 -3
  647. package/lib/esm/tile/TileTreeReference.d.ts.map +1 -1
  648. package/lib/esm/tile/TileTreeReference.js +11 -5
  649. package/lib/esm/tile/TileTreeReference.js.map +1 -1
  650. package/lib/esm/tile/map/CesiumTerrainProvider.js +1 -1
  651. package/lib/esm/tile/map/CesiumTerrainProvider.js.map +1 -1
  652. package/lib/esm/tile/map/ImageryTileTree.d.ts +2 -2
  653. package/lib/esm/tile/map/ImageryTileTree.d.ts.map +1 -1
  654. package/lib/esm/tile/map/ImageryTileTree.js +2 -2
  655. package/lib/esm/tile/map/ImageryTileTree.js.map +1 -1
  656. package/lib/esm/tile/map/MapCartoRectangle.d.ts +10 -0
  657. package/lib/esm/tile/map/MapCartoRectangle.d.ts.map +1 -1
  658. package/lib/esm/tile/map/MapCartoRectangle.js +12 -0
  659. package/lib/esm/tile/map/MapCartoRectangle.js.map +1 -1
  660. package/lib/esm/tile/map/MapLayerImageryProvider.d.ts +3 -3
  661. package/lib/esm/tile/map/MapLayerImageryProvider.d.ts.map +1 -1
  662. package/lib/esm/tile/map/MapLayerImageryProvider.js +9 -5
  663. package/lib/esm/tile/map/MapLayerImageryProvider.js.map +1 -1
  664. package/lib/esm/tile/map/MapTileTree.d.ts +1 -1
  665. package/lib/esm/tile/map/MapTileTree.d.ts.map +1 -1
  666. package/lib/esm/tile/map/MapTileTree.js +1 -1
  667. package/lib/esm/tile/map/MapTileTree.js.map +1 -1
  668. package/lib/esm/tile/map/QuadId.d.ts +15 -0
  669. package/lib/esm/tile/map/QuadId.d.ts.map +1 -1
  670. package/lib/esm/tile/map/QuadId.js +12 -0
  671. package/lib/esm/tile/map/QuadId.js.map +1 -1
  672. package/lib/esm/tile/map/TerrainMeshProvider.d.ts +1 -1
  673. package/lib/esm/tile/map/TerrainMeshProvider.d.ts.map +1 -1
  674. package/lib/esm/tile/map/TerrainMeshProvider.js +1 -1
  675. package/lib/esm/tile/map/TerrainMeshProvider.js.map +1 -1
  676. package/lib/esm/tools/ClipViewTool.d.ts.map +1 -1
  677. package/lib/esm/tools/ClipViewTool.js +18 -7
  678. package/lib/esm/tools/ClipViewTool.js.map +1 -1
  679. package/lib/esm/tools/ElementSetTool.d.ts +9 -1
  680. package/lib/esm/tools/ElementSetTool.d.ts.map +1 -1
  681. package/lib/esm/tools/ElementSetTool.js +132 -9
  682. package/lib/esm/tools/ElementSetTool.js.map +1 -1
  683. package/lib/esm/tools/IdleTool.d.ts.map +1 -1
  684. package/lib/esm/tools/IdleTool.js +4 -1
  685. package/lib/esm/tools/IdleTool.js.map +1 -1
  686. package/lib/esm/tools/MeasureTool.d.ts +9 -0
  687. package/lib/esm/tools/MeasureTool.d.ts.map +1 -1
  688. package/lib/esm/tools/MeasureTool.js +57 -24
  689. package/lib/esm/tools/MeasureTool.js.map +1 -1
  690. package/lib/esm/tools/PrimitiveTool.d.ts +1 -1
  691. package/lib/esm/tools/PrimitiveTool.d.ts.map +1 -1
  692. package/lib/esm/tools/PrimitiveTool.js +4 -3
  693. package/lib/esm/tools/PrimitiveTool.js.map +1 -1
  694. package/lib/esm/tools/SelectTool.d.ts +2 -2
  695. package/lib/esm/tools/SelectTool.d.ts.map +1 -1
  696. package/lib/esm/tools/SelectTool.js +26 -97
  697. package/lib/esm/tools/SelectTool.js.map +1 -1
  698. package/lib/esm/tools/Tool.d.ts +10 -1
  699. package/lib/esm/tools/Tool.d.ts.map +1 -1
  700. package/lib/esm/tools/Tool.js +27 -4
  701. package/lib/esm/tools/Tool.js.map +1 -1
  702. package/lib/esm/tools/ToolAdmin.d.ts.map +1 -1
  703. package/lib/esm/tools/ToolAdmin.js +51 -16
  704. package/lib/esm/tools/ToolAdmin.js.map +1 -1
  705. package/lib/esm/tools/ToolAssistance.d.ts +1 -1
  706. package/lib/esm/tools/ToolAssistance.js.map +1 -1
  707. package/lib/esm/tools/ToolSettings.d.ts +5 -0
  708. package/lib/esm/tools/ToolSettings.d.ts.map +1 -1
  709. package/lib/esm/tools/ToolSettings.js +5 -0
  710. package/lib/esm/tools/ToolSettings.js.map +1 -1
  711. package/lib/esm/tools/ViewTool.d.ts +1 -2
  712. package/lib/esm/tools/ViewTool.d.ts.map +1 -1
  713. package/lib/esm/tools/ViewTool.js +143 -84
  714. package/lib/esm/tools/ViewTool.js.map +1 -1
  715. package/lib/public/images/google_on_non_white.png +0 -0
  716. package/lib/public/images/google_on_non_white_hdpi.png +0 -0
  717. package/lib/public/images/google_on_white.png +0 -0
  718. package/lib/public/images/google_on_white_hdpi.png +0 -0
  719. package/lib/public/scripts/parse-imdl-worker.js +1 -1
  720. package/lib/workers/webpack/parse-imdl-worker.js +1 -1
  721. package/package.json +25 -22
@@ -1 +1 @@
1
- {"version":3,"file":"VertexTableSplitter.js","sourceRoot":"","sources":["../../../../../src/common/internal/render/VertexTableSplitter.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAsC,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAA4C,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAe,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAmB,MAAM,iBAAiB,CAAC;AAazE;;;GAGG;AACH,MAAM,OAAO,WAAW;IACL,QAAQ,CAAoB;IAC5B,QAAQ,GAAG,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAEtE,YAAmB,eAAe,GAAG,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,EAAE,eAAe,EAAE,eAAe,GAAG,CAAC,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,IAAW,UAAU;QACnB,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG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F,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\nimport { assert, Uint32ArrayBuilder, Uint8ArrayBuilder } from \"@itwin/core-bentley\";\nimport { ColorDef, RenderFeatureTable, RenderMaterial } from \"@itwin/core-common\";\nimport { calculateEdgeTableParams, EdgeParams, EdgeTable, IndexedEdgeParams } from \"./EdgeParams\";\nimport { computeDimensions, VertexTable } from \"./VertexTable\";\nimport { VertexIndices } from \"./VertexIndices\";\nimport { createSurfaceMaterial, SurfaceMaterial } from \"./SurfaceParams\";\nimport { MaterialParams } from \"../../render/MaterialParams\";\nimport { MeshParams } from \"./MeshParams\";\nimport { PointStringParams } from \"./PointStringParams\";\nimport { PolylineParams, TesselatedPolyline } from \"./PolylineParams\";\n\n/** @internal */\nexport interface VertexTableWithIndices {\n vertices: VertexTable;\n indices: VertexIndices;\n material?: SurfaceMaterial;\n}\n\n/** Builds up a [[VertexIndices]].\n * Exported strictly for tests.\n * @internal\n */\nexport class IndexBuffer {\n private readonly _builder: Uint8ArrayBuilder;\n private readonly _index32 = new Uint32Array(1);\n private readonly _index8 = new Uint8Array(this._index32.buffer, 0, 3);\n\n public constructor(initialCapacity = 3) {\n this._builder = new Uint8ArrayBuilder({ initialCapacity: initialCapacity * 3 });\n }\n\n public get numIndices(): number {\n assert((this._builder.length % 3) === 0);\n return this._builder.length / 3;\n }\n\n public push(index: number): void {\n this._index32[0] = index;\n this._builder.append(this._index8);\n }\n\n public toVertexIndices(): VertexIndices {\n return new VertexIndices(this._builder.toTypedArray());\n }\n}\n\n/** Builds up a [[VertexTable]]. */\nclass VertexBuffer {\n private readonly _builder: Uint32ArrayBuilder;\n private readonly _source: VertexTable;\n\n /** `source` is the original table containing the vertex data from which individual vertices will be obtained. */\n public constructor(source: VertexTable) {\n this._source = source;\n this._builder = new Uint32ArrayBuilder({ initialCapacity: 3 * source.numRgbaPerVertex });\n }\n\n /** The number of vertices currently in the table. */\n public get length(): number {\n assert((this._builder.length % this.vertexSize) === 0);\n return this._builder.length / this.vertexSize;\n }\n\n /** The number of 32-bit unsigned integers (RGBA values) per vertex. */\n public get vertexSize(): number {\n return this._source.numRgbaPerVertex;\n }\n\n /** Append a vertex. `vertex` must be of size [[vertexSize]]. */\n public push(vertex: Uint32Array): void {\n assert(vertex.length === this.vertexSize);\n this._builder.append(vertex);\n }\n\n /** Construct the finished vertex table. */\n public buildVertexTable(maxDimension: number, colorTable: ColorTable | undefined, materialAtlasTable: MaterialAtlasTable): VertexTable {\n const source = this._source;\n colorTable = colorTable ?? source.uniformColor;\n assert(undefined !== colorTable);\n\n const colorTableLength = colorTable instanceof Uint32Array ? colorTable.length : 0;\n const materialAtlasTableLength = materialAtlasTable instanceof Uint32Array ? materialAtlasTable.length : 0;\n const dimensions = computeDimensions(this.length, this.vertexSize, colorTableLength + materialAtlasTableLength, maxDimension);\n\n let rgbaData = this._builder.toTypedArray();\n if (dimensions.width * dimensions.height > rgbaData.length) {\n const prevData = rgbaData;\n rgbaData = new Uint32Array(dimensions.width * dimensions.height);\n rgbaData.set(prevData, 0);\n }\n\n let tableSize = this.vertexSize * this.length;\n if (colorTable instanceof Uint32Array) {\n rgbaData.set(colorTable, tableSize);\n tableSize += colorTable.length;\n }\n\n if (materialAtlasTable instanceof Uint32Array)\n rgbaData.set(materialAtlasTable, tableSize);\n\n return {\n data: new Uint8Array(rgbaData.buffer, rgbaData.byteOffset, rgbaData.byteLength),\n usesUnquantizedPositions: source.usesUnquantizedPositions,\n qparams: source.qparams,\n width: dimensions.width,\n height: dimensions.height,\n hasTranslucency: source.hasTranslucency,\n uniformColor: colorTable instanceof ColorDef ? colorTable : undefined,\n featureIndexType: source.featureIndexType,\n uniformFeatureID: source.uniformFeatureID,\n numVertices: this.length,\n numRgbaPerVertex: source.numRgbaPerVertex,\n uvParams: source.uvParams,\n };\n }\n}\n\ntype ColorTable = Uint32Array | ColorDef;\n\n/** Remaps portions of a source color table into a filtered target color table. */\nclass ColorTableRemapper {\n private readonly _remappedIndices = new Map<number, number>();\n private readonly _colorTable: Uint32Array;\n public readonly colors: number[] = [];\n private readonly _32 = new Uint32Array(1);\n private readonly _16 = new Uint16Array(this._32.buffer);\n\n public constructor(colorTable: Uint32Array) {\n this._colorTable = colorTable;\n }\n\n /** Extract the color index stored in `vertex`, ensure it is present in the remapped color table, and return its index in that table. */\n public remap(vertex: Uint32Array, usesUnquantizedPositions: boolean | undefined): void {\n const vertIndex = usesUnquantizedPositions ? 4 : 1;\n const shortIndex = usesUnquantizedPositions ? 0 : 1;\n this._32[0] = vertex[vertIndex];\n const oldIndex = this._16[shortIndex];\n let newIndex = this._remappedIndices.get(oldIndex);\n if (undefined === newIndex) {\n newIndex = this.colors.length;\n this._remappedIndices.set(oldIndex, newIndex);\n const color = this._colorTable[oldIndex];\n this.colors.push(color);\n }\n\n this._16[shortIndex] = newIndex;\n vertex[vertIndex] = this._32[0];\n }\n\n /** Construct the finished color table. */\n public buildColorTable(): ColorTable {\n assert(this.colors.length > 0);\n return this.colors.length > 1 ? new Uint32Array(this.colors) : ColorDef.fromAbgr(this.colors[0]);\n }\n}\n\ntype MaterialAtlasTable = Uint32Array | SurfaceMaterial | undefined;\n\ntype CreateRenderMaterial = (args: MaterialParams) => RenderMaterial | undefined;\n\nclass MaterialAtlasRemapper {\n private readonly _remappedIndices = new Map<number, number>();\n private readonly _atlasTable: Uint32Array;\n private readonly _createMaterial: CreateRenderMaterial;\n public readonly materials: number[] = [];\n private readonly _32 = new Uint32Array(1);\n private readonly _8 = new Uint8Array(this._32.buffer);\n\n public constructor(_atlasTable: Uint32Array, createMaterial: CreateRenderMaterial) {\n this._atlasTable = _atlasTable;\n this._createMaterial = createMaterial;\n }\n\n /** Extract the mat index stored in `vertex`, ensure it is present in the remapped atlas table, and return its index in that table. */\n public remap(vertex: Uint32Array, usesUnquantizedPositions: boolean | undefined): void {\n const vertIndex = usesUnquantizedPositions ? 3 : 2;\n this._32[0] = vertex[vertIndex];\n const oldIndex = this._8[3];\n let newIndex = this._remappedIndices.get(oldIndex);\n if (undefined === newIndex) {\n newIndex = this.materials.length / 4;\n this._remappedIndices.set(oldIndex, newIndex);\n let index = oldIndex * 4;\n this.materials.push(this._atlasTable[index++]);\n this.materials.push(this._atlasTable[index++]);\n this.materials.push(this._atlasTable[index++]);\n this.materials.push(this._atlasTable[index]);\n }\n\n this._8[3] = newIndex;\n vertex[vertIndex] = this._32[0];\n }\n\n private unpackFloat(value: number): number {\n this._32[0] = value;\n const valUint32 = this._32[0];\n const bias = 38.0;\n const temp = (valUint32 >>> 24) / 2.0;\n let exponent = Math.floor(temp);\n let sign = (temp - exponent) * 2.0;\n sign = -(sign * 2.0 - 1.0);\n const base = sign * (valUint32 & 0xffffff) / 16777216.0;\n exponent = exponent - bias;\n return base * Math.pow(10.0, exponent);\n }\n\n private materialFromAtlasEntry(entry: Uint32Array): SurfaceMaterial | undefined {\n const rgbOverridden = (entry[1] & 0x1000000) !== 0;\n const alphaOverridden = (entry[1] & 0x2000000) !== 0;\n const args: MaterialParams = {\n alpha: alphaOverridden ? (entry[0] >>> 24) / 255.0 : undefined,\n diffuse: {\n color: rgbOverridden ? ColorDef.fromTbgr(entry[0] & 0xffffff) : undefined,\n weight: ((entry[1] >>> 8) & 0xff) / 255.0,\n },\n specular: {\n color: ColorDef.fromTbgr(entry[2]),\n weight: ((entry[1] >>> 16) & 0xff) / 255.0,\n exponent: this.unpackFloat(entry[3]),\n },\n };\n\n const material = this._createMaterial(args);\n return createSurfaceMaterial(material);\n }\n\n /** Construct the finished color table. */\n public buildAtlasTable(): MaterialAtlasTable {\n assert(this.materials.length > 0);\n const m = new Uint32Array(this.materials);\n return this.materials.length > 4 ? m : this.materialFromAtlasEntry(m);\n }\n}\n\n/** A node in a split vertex table. Each node corresponds to one or more elements. */\nclass Node {\n public readonly vertices: VertexBuffer;\n public readonly remappedIndices = new Map<number, number>();\n public readonly indices = new IndexBuffer();\n public readonly colors?: ColorTableRemapper;\n public readonly atlas?: MaterialAtlasRemapper;\n public readonly usesUnquantizedPositions?: boolean;\n\n /** `vertexTable` is the source table containing vertex data for all nodes, from which this node will extract the vertices belong to it. */\n public constructor(vertexTable: VertexTable, atlas?: AtlasInfo) {\n this.vertices = new VertexBuffer(vertexTable);\n if (undefined === vertexTable.uniformColor)\n this.colors = new ColorTableRemapper(new Uint32Array(vertexTable.data.buffer, vertexTable.data.byteOffset + 4 * vertexTable.numVertices * vertexTable.numRgbaPerVertex));\n\n if (atlas) {\n const atlasOffset = (vertexTable.numVertices * vertexTable.numRgbaPerVertex + atlas.offset) * 4;\n this.atlas = new MaterialAtlasRemapper(new Uint32Array(vertexTable.data.buffer, vertexTable.data.byteOffset + atlasOffset), atlas.createMaterial);\n }\n\n this.usesUnquantizedPositions = vertexTable.usesUnquantizedPositions;\n }\n\n public addVertex(originalIndex: number, vertex: Uint32Array): void {\n let newIndex = this.remappedIndices.get(originalIndex);\n if (undefined === newIndex) {\n newIndex = this.vertices.length;\n this.remappedIndices.set(originalIndex, newIndex);\n\n this.colors?.remap(vertex, this.usesUnquantizedPositions);\n this.atlas?.remap(vertex, this.usesUnquantizedPositions);\n this.vertices.push(vertex);\n }\n\n this.indices.push(newIndex);\n }\n\n public buildOutput(maxDimension: number, surfaceMaterial?: SurfaceMaterial): VertexTableWithIndices {\n const materialAtlas = this.atlas?.buildAtlasTable();\n\n let material: SurfaceMaterial | undefined;\n if (materialAtlas instanceof Uint32Array) {\n const colorTableOffset = undefined !== this.colors?.colors.length && this.colors?.colors.length > 1 ? this.colors?.colors.length : 0;\n material = {\n isAtlas: true,\n hasTranslucency: (surfaceMaterial?.isAtlas && surfaceMaterial?.hasTranslucency) ?? false,\n overridesAlpha: (surfaceMaterial?.isAtlas && surfaceMaterial?.overridesAlpha) ?? false,\n vertexTableOffset: colorTableOffset,\n numMaterials: materialAtlas.length / 4,\n };\n } else {\n material = materialAtlas;\n }\n\n return {\n indices: this.indices.toVertexIndices(),\n vertices: this.vertices.buildVertexTable(maxDimension, this.colors?.buildColorTable(), materialAtlas),\n material,\n };\n }\n}\n\ninterface AtlasInfo {\n offset: number;\n createMaterial: CreateRenderMaterial;\n}\n\ninterface VertexTableSplitArgs extends VertexTableWithIndices {\n featureTable: RenderFeatureTable;\n atlasInfo?: AtlasInfo;\n}\n\n/** @internal */\nexport type ComputeAnimationNodeId = (featureIndex: number) => number;\n\nclass VertexTableSplitter {\n private readonly _input: VertexTableSplitArgs;\n private readonly _computeNodeId: ComputeAnimationNodeId;\n private readonly _nodes = new Map<number, Node>();\n\n private constructor(input: VertexTableSplitArgs, computeNodeId: ComputeAnimationNodeId) {\n this._input = input;\n this._computeNodeId = computeNodeId;\n }\n\n /** Split the source into one or more output nodes, returning a mapping of integer node Id to node. */\n public static split(source: VertexTableSplitArgs, computeNodeId: ComputeAnimationNodeId): Map<number, Node> {\n const splitter = new VertexTableSplitter(source, computeNodeId);\n splitter.split();\n return splitter._nodes;\n }\n\n private split(): void {\n // Track the most recent feature and corresponding node to avoid repeated lookups - vertices for\n // individual features are largely contiguous.\n const curState = {\n featureIndex: -1,\n node: undefined as unknown as Node,\n };\n\n const vertSize = this._input.vertices.numRgbaPerVertex;\n const vertex = new Uint32Array(vertSize);\n const vertexTable = new Uint32Array(this._input.vertices.data.buffer, this._input.vertices.data.byteOffset, this._input.vertices.numVertices * vertSize);\n\n let extractFeatureIndex: () => number;\n if (this._input.vertices.usesUnquantizedPositions) {\n const vertexBytes = new Uint8Array(vertex.buffer);\n extractFeatureIndex = () => {\n return vertexBytes[3]\n | (vertexBytes[7] << 8)\n | (vertexBytes[11] << 16);\n };\n } else {\n extractFeatureIndex = () => vertex[2] & 0x00ffffff;\n }\n\n for (const index of this._input.indices) {\n // Extract the data for this vertex without allocating new typed arrays.\n const vertexOffset = index * vertSize;\n for (let i = 0; i < vertex.length; i++)\n vertex[i] = vertexTable[vertexOffset + i];\n\n // Determine to which element the vertex belongs and find the corresponding Node.\n const featureIndex = extractFeatureIndex();\n if (curState.featureIndex !== featureIndex) {\n curState.featureIndex = featureIndex;\n const nodeId = this._computeNodeId(featureIndex);\n let node = this._nodes.get(nodeId);\n if (undefined === node)\n this._nodes.set(nodeId, node = new Node(this._input.vertices, this._input.atlasInfo));\n\n curState.node = node;\n }\n\n // Add the vertex to the appropriate node.\n curState.node.addVertex(index, vertex);\n }\n }\n}\n\n/** @internal */\nexport interface SplitVertexTableArgs {\n featureTable: RenderFeatureTable;\n maxDimension: number;\n computeNodeId: ComputeAnimationNodeId;\n}\n\n/** @internal */\nexport interface SplitPointStringArgs extends SplitVertexTableArgs {\n params: PointStringParams;\n}\n\n/** Given a PointStringParams and a function that can associate a node Id with an element Id, produce a mapping of nodes to PointStringParams, splitting up\n * the input params as needed.\n * @internal\n */\nexport function splitPointStringParams(args: SplitPointStringArgs): Map<number, PointStringParams> {\n const nodes = VertexTableSplitter.split({\n indices: args.params.indices,\n vertices: args.params.vertices,\n featureTable: args.featureTable,\n }, args.computeNodeId);\n\n const result = new Map<number, PointStringParams>();\n for (const [id, node] of nodes) {\n const { vertices, indices } = node.buildOutput(args.maxDimension);\n result.set(id, { vertices, indices, weight: args.params.weight });\n }\n\n return result;\n}\n\ninterface RemappedSegmentEdges {\n indices: IndexBuffer;\n endPointAndQuadIndices: Uint32ArrayBuilder;\n}\n\ninterface RemappedSilhouetteEdges extends RemappedSegmentEdges {\n normalPairs: Uint32ArrayBuilder;\n}\n\nclass RemappedPolylineEdges {\n public readonly indices = new IndexBuffer();\n public readonly prevIndices = new IndexBuffer();\n public readonly nextIndicesAndParams = new Uint32ArrayBuilder();\n}\n\ninterface RemappedIndexEdges {\n edges: Uint8ArrayBuilder;\n silhouettes: Uint8ArrayBuilder;\n}\n\ninterface RemappedEdges {\n segments?: RemappedSegmentEdges;\n silhouettes?: RemappedSilhouetteEdges;\n polylines?: RemappedPolylineEdges;\n indexed?: RemappedIndexEdges;\n}\n\ninterface RemappedIndex {\n node: Node;\n id: number;\n index: number;\n}\n\nfunction remapIndex(out: RemappedIndex, srcIndex: number, nodes: Map<number, Node>): boolean {\n for (const [id, node] of nodes) {\n const index = node.remappedIndices.get(srcIndex);\n if (undefined !== index) {\n out.index = index;\n out.node = node;\n out.id = id;\n return true;\n }\n }\n\n assert(false);\n return false;\n}\n\nfunction remapSegmentEdges(type: \"segments\" | \"silhouettes\", source: EdgeParams, nodes: Map<number, Node>, edges: Map<number, RemappedEdges>): void {\n const src = source[type];\n if (!src)\n return;\n\n const srcEndPts = new Uint32Array(src.endPointAndQuadIndices.buffer, src.endPointAndQuadIndices.byteOffset, src.endPointAndQuadIndices.length / 4);\n let srcNormalPairs;\n if (type === \"silhouettes\") {\n assert(undefined !== source.silhouettes);\n srcNormalPairs = new Uint32Array(source.silhouettes.normalPairs.buffer, source.silhouettes.normalPairs.byteOffset, source.silhouettes.normalPairs.length / 4);\n }\n\n let curIndexIndex = 0;\n const remappedIndex = { } as unknown as RemappedIndex;\n for (const srcIndex of src.indices) {\n if (remapIndex(remappedIndex, srcIndex, nodes)) {\n let endPointAndQuad = srcEndPts[curIndexIndex];\n const otherIndex = (endPointAndQuad & 0x00ffffff) >>> 0;\n const newOtherIndex = remappedIndex.node.remappedIndices.get(otherIndex);\n assert(undefined !== newOtherIndex);\n endPointAndQuad = (endPointAndQuad & 0xff000000) | newOtherIndex;\n\n let entry = edges.get(remappedIndex.id);\n if (!entry)\n edges.set(remappedIndex.id, entry = { });\n\n if (srcNormalPairs) {\n if (!entry.silhouettes)\n entry.silhouettes = { indices: new IndexBuffer(), endPointAndQuadIndices: new Uint32ArrayBuilder(), normalPairs: new Uint32ArrayBuilder() };\n\n entry.silhouettes.normalPairs.push(srcNormalPairs[curIndexIndex]);\n } else if (!entry.segments) {\n entry.segments = { indices: new IndexBuffer(), endPointAndQuadIndices: new Uint32ArrayBuilder() };\n }\n\n const segments = entry[type];\n assert(undefined !== segments);\n\n segments.indices.push(remappedIndex.index);\n segments.endPointAndQuadIndices.push(endPointAndQuad);\n }\n\n ++curIndexIndex;\n }\n}\n\nfunction remapPolylineEdges(src: TesselatedPolyline, nodes: Map<number, Node>, edges: Map<number, RemappedEdges>): void {\n const srcNextAndParam = new Uint32Array(src.nextIndicesAndParams.buffer, src.nextIndicesAndParams.byteOffset, src.nextIndicesAndParams.length / 4);\n const prevIter = src.prevIndices[Symbol.iterator]();\n let curIndexIndex = 0;\n const remappedIndex = { } as unknown as RemappedIndex;\n for (const srcIndex of src.indices) {\n if (remapIndex(remappedIndex, srcIndex, nodes)) {\n const prevIndex = prevIter.next().value;\n assert(undefined !== prevIndex);\n const newPrevIndex = remappedIndex.node.remappedIndices.get(prevIndex);\n assert(undefined !== newPrevIndex);\n\n let nextAndParam = srcNextAndParam[curIndexIndex];\n const nextIndex = (nextAndParam & 0x00ffffff) >>> 0;\n const newNextIndex = remappedIndex.node.remappedIndices.get(nextIndex);\n assert(undefined !== newNextIndex);\n nextAndParam = (nextAndParam & 0xff000000) | newNextIndex;\n\n let entry = edges.get(remappedIndex.id);\n if (!entry)\n edges.set(remappedIndex.id, entry = { });\n\n if (!entry.polylines)\n entry.polylines = new RemappedPolylineEdges();\n\n entry.polylines.indices.push(remappedIndex.index);\n entry.polylines.prevIndices.push(newPrevIndex);\n entry.polylines.nextIndicesAndParams.push(nextAndParam);\n }\n\n ++curIndexIndex;\n }\n}\n\nfunction remapIndexedEdges(src: IndexedEdgeParams, nodes: Map<number, Node>, edges: Map<number, RemappedEdges>): void {\n const srcEdgeData = src.edges.data;\n const numSegments = src.edges.numSegments;\n const silhouetteStartByteIndex = numSegments * 6 + src.edges.silhouettePadding;\n\n function getUint24EdgePair(byteIndex: number): [number, number] {\n return [srcEdgeData[byteIndex + 0] | (srcEdgeData[byteIndex + 1] << 8) | srcEdgeData[byteIndex + 2] << 16,\n srcEdgeData[byteIndex + 3] | (srcEdgeData[byteIndex + 4] << 8) | srcEdgeData[byteIndex + 5] << 16];\n }\n\n function setUint24EdgePair(indEdges: RemappedIndexEdges, value1: number, value2: number): void {\n indEdges.edges.push(value1 & 0x0000ff);\n indEdges.edges.push((value1 & 0x00ff00) >>> 8);\n indEdges.edges.push((value1 & 0xff0000) >>> 16);\n indEdges.edges.push(value2 & 0x0000ff);\n indEdges.edges.push((value2 & 0x00ff00) >>> 8);\n indEdges.edges.push((value2 & 0xff0000) >>> 16);\n }\n\n function getUint24SilPair(byteIndex: number): [number, number, number, number] {\n return [srcEdgeData[byteIndex + 0] | (srcEdgeData[byteIndex + 1] << 8) | srcEdgeData[byteIndex + 2] << 16,\n srcEdgeData[byteIndex + 3] | (srcEdgeData[byteIndex + 4] << 8) | srcEdgeData[byteIndex + 5] << 16,\n srcEdgeData[byteIndex + 6] | (srcEdgeData[byteIndex + 7] << 8), srcEdgeData[byteIndex + 8] | (srcEdgeData[byteIndex + 9] << 8)];\n }\n\n function setUint24SilPair(indSil: RemappedIndexEdges, value1: number, value2: number, norm1: number, norm2: number): void {\n indSil.silhouettes.push(value1 & 0x0000ff);\n indSil.silhouettes.push((value1 & 0x00ff00) >>> 8);\n indSil.silhouettes.push((value1 & 0xff0000) >>> 16);\n indSil.silhouettes.push(value2 & 0x0000ff);\n indSil.silhouettes.push((value2 & 0x00ff00) >>> 8);\n indSil.silhouettes.push((value2 & 0xff0000) >>> 16);\n indSil.silhouettes.push(norm1 & 0x0000ff);\n indSil.silhouettes.push((norm1 & 0x00ff00) >>> 8);\n indSil.silhouettes.push(norm2 & 0x0000ff);\n indSil.silhouettes.push((norm2 & 0x00ff00) >>> 8);\n }\n\n let maxIndex = 0;\n for (const srcIndex of src.indices)\n maxIndex = Math.max (srcIndex, maxIndex);\n\n const remappedIndex = { } as unknown as RemappedIndex;\n let es1Index = 0, es2Index = 0, n1 = 0, n2 = 0;\n for (let curSegment = 0, byteIndex = 0; curSegment <= maxIndex; ++curSegment) {\n if (curSegment < numSegments) { // edges\n [es1Index, es2Index] = getUint24EdgePair(byteIndex);\n byteIndex += 6;\n } else { // silhouettes\n byteIndex = silhouetteStartByteIndex + (curSegment - numSegments) * 10;\n [es1Index, es2Index, n1, n2] = getUint24SilPair(byteIndex);\n }\n\n if (remapIndex(remappedIndex, es1Index, nodes)) {\n let entry = edges.get(remappedIndex.id);\n if (!entry)\n edges.set(remappedIndex.id, entry = { });\n\n if (!entry.indexed)\n entry.indexed = { edges: new Uint8ArrayBuilder(), silhouettes: new Uint8ArrayBuilder() };\n\n if (curSegment < numSegments) { // edges\n const newE1Index = remappedIndex.node.remappedIndices.get(es1Index);\n assert(undefined !== newE1Index);\n const newE2Index = remappedIndex.node.remappedIndices.get(es2Index);\n assert(undefined !== newE2Index);\n setUint24EdgePair(entry.indexed, newE1Index, newE2Index);\n } else { // silhouettes\n const newS1Index = remappedIndex.node.remappedIndices.get(es1Index);\n assert(undefined !== newS1Index);\n const newS2Index = remappedIndex.node.remappedIndices.get(es2Index);\n assert(undefined !== newS2Index);\n setUint24SilPair(entry.indexed, newS1Index, newS2Index, n1, n2);\n }\n }\n }\n}\n\nfunction splitEdges(source: EdgeParams, nodes: Map<number, Node>, maxDimension: number): Map<number, EdgeParams> {\n const edges = new Map<number, RemappedEdges>();\n remapSegmentEdges(\"segments\", source, nodes, edges);\n remapSegmentEdges(\"silhouettes\", source, nodes, edges);\n\n if (source.polylines)\n remapPolylineEdges(source.polylines, nodes, edges);\n\n if (source.indexed)\n remapIndexedEdges(source.indexed, nodes, edges);\n\n const result = new Map<number, EdgeParams>();\n for (const [id, remappedEdges] of edges) {\n if (!remappedEdges.segments && !remappedEdges.silhouettes && !remappedEdges.indexed)\n continue;\n\n let edgeTable = { } as unknown as EdgeTable;\n let edgeIndices = { } as unknown as VertexIndices;\n if (remappedEdges.indexed) {\n const numSegmentEdges = remappedEdges.indexed.edges.length / 6;\n const numSilhouettes = remappedEdges.indexed.silhouettes.length / 10;\n const { width, height, silhouettePadding, silhouetteStartByteIndex } = calculateEdgeTableParams(numSegmentEdges, numSilhouettes, maxDimension);\n const data = new Uint8Array(width * height * 4);\n data.set(remappedEdges.indexed.edges.toTypedArray(), 0);\n if (numSilhouettes > 0)\n data.set(remappedEdges.indexed.silhouettes.toTypedArray(), silhouetteStartByteIndex + silhouettePadding);\n\n const numTotalEdges = numSegmentEdges + numSilhouettes;\n edgeIndices = new VertexIndices(new Uint8Array(numTotalEdges * 6 * 3));\n for (let i = 0; i < numTotalEdges; i++)\n for (let j = 0; j < 6; j++)\n edgeIndices.setNthIndex(i * 6 + j, i);\n\n edgeTable = {\n data,\n width,\n height,\n numSegments: numSegmentEdges,\n silhouettePadding,\n };\n }\n\n result.set(id, {\n weight: source.weight,\n linePixels: source.linePixels,\n segments: remappedEdges.segments ? {\n indices: remappedEdges.segments.indices.toVertexIndices(),\n endPointAndQuadIndices: remappedEdges.segments.endPointAndQuadIndices.toUint8Array(),\n } : undefined,\n silhouettes: remappedEdges.silhouettes ? {\n indices: remappedEdges.silhouettes.indices.toVertexIndices(),\n endPointAndQuadIndices: remappedEdges.silhouettes.endPointAndQuadIndices.toUint8Array(),\n normalPairs: remappedEdges.silhouettes.normalPairs.toUint8Array(),\n } : undefined,\n polylines: remappedEdges.polylines ? {\n indices: remappedEdges.polylines.indices.toVertexIndices(),\n prevIndices: remappedEdges.polylines.prevIndices.toVertexIndices(),\n nextIndicesAndParams: remappedEdges.polylines.nextIndicesAndParams.toUint8Array(),\n } : undefined,\n indexed: remappedEdges.indexed ? {\n indices: edgeIndices,\n edges: edgeTable,\n } : undefined,\n });\n }\n\n return result;\n}\n\n/** @internal */\nexport interface SplitMeshArgs extends SplitVertexTableArgs {\n params: MeshParams;\n createMaterial: CreateRenderMaterial;\n}\n\n/** @internal */\nexport function splitMeshParams(args: SplitMeshArgs): Map<number, MeshParams> {\n const result = new Map<number, MeshParams>();\n\n const mat = args.params.surface.material;\n const atlasOffset = undefined !== mat && mat.isAtlas ? mat.vertexTableOffset : undefined;\n const atlasInfo = undefined !== atlasOffset ? { offset: atlasOffset, createMaterial: args.createMaterial } : undefined;\n\n const nodes = VertexTableSplitter.split({\n indices: args.params.surface.indices,\n vertices: args.params.vertices,\n featureTable: args.featureTable,\n atlasInfo,\n }, args.computeNodeId);\n\n const edges = args.params.edges ? splitEdges(args.params.edges, nodes, args.maxDimension) : undefined;\n\n for (const [id, node] of nodes) {\n const { vertices, indices, material } = node.buildOutput(args.maxDimension, args.params.surface.material);\n const params: MeshParams = {\n vertices,\n surface: {\n type: args.params.surface.type,\n indices,\n fillFlags: args.params.surface.fillFlags,\n hasBakedLighting: args.params.surface.hasBakedLighting,\n textureMapping: args.params.surface.textureMapping,\n material: material !== undefined ? material : args.params.surface.material,\n },\n edges: edges?.get(id),\n isPlanar: args.params.isPlanar,\n // ###TODO handle aux channels.......\n auxChannels: args.params.auxChannels,\n };\n\n result.set(id, params);\n }\n\n return result;\n}\n\n/** @internal */\nexport interface SplitPolylineArgs extends SplitVertexTableArgs {\n params: PolylineParams;\n}\n\ninterface PolylineNode extends Node {\n prevIndices?: IndexBuffer;\n nextIndicesAndParams?: Uint32ArrayBuilder;\n}\n\n/** @internal */\nexport function splitPolylineParams(args: SplitPolylineArgs): Map<number, PolylineParams> {\n const nodes = VertexTableSplitter.split({\n indices: args.params.polyline.indices,\n vertices: args.params.vertices,\n featureTable: args.featureTable,\n }, args.computeNodeId) as Map<number, PolylineNode>;\n\n const src = args.params.polyline;\n const srcNextAndParam = new Uint32Array(src.nextIndicesAndParams.buffer, src.nextIndicesAndParams.byteOffset, src.nextIndicesAndParams.length / 4);\n let curIndexIndex = 0;\n const remappedIndex = { } as unknown as RemappedIndex;\n for (const prevIndex of src.prevIndices) {\n if (remapIndex(remappedIndex, prevIndex, nodes)) {\n const node = remappedIndex.node as PolylineNode;\n if (!node.prevIndices) {\n assert(undefined === node.nextIndicesAndParams);\n node.prevIndices = new IndexBuffer(node.indices.numIndices);\n node.nextIndicesAndParams = new Uint32ArrayBuilder({ initialCapacity: node.indices.numIndices });\n } else {\n assert(undefined !== node.nextIndicesAndParams);\n }\n\n node.prevIndices.push(remappedIndex.index);\n\n let nextAndParam = srcNextAndParam[curIndexIndex];\n const nextIndex = (nextAndParam & 0x00ffffff) >>> 0;\n const newNextIndex = remappedIndex.node.remappedIndices.get(nextIndex);\n assert(undefined !== newNextIndex);\n nextAndParam = (nextAndParam & 0xff000000) | newNextIndex;\n node.nextIndicesAndParams.push(nextAndParam);\n }\n\n ++curIndexIndex;\n }\n\n const result = new Map<number, PolylineParams>();\n for (const [id, node] of nodes) {\n assert(undefined !== node.prevIndices && undefined !== node.nextIndicesAndParams);\n const { vertices, indices } = node.buildOutput(args.maxDimension);\n const params: PolylineParams = {\n ...args.params,\n vertices,\n polyline: {\n indices,\n prevIndices: node.prevIndices.toVertexIndices(),\n nextIndicesAndParams: node.nextIndicesAndParams.toUint8Array(),\n },\n };\n\n result.set(id, params);\n }\n\n return result;\n}\n"]}
1
+ {"version":3,"file":"VertexTableSplitter.js","sourceRoot":"","sources":["../../../../../src/common/internal/render/VertexTableSplitter.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAsC,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAA4C,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAe,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAmB,MAAM,iBAAiB,CAAC;AAazE;;;GAGG;AACH,MAAM,OAAO,WAAW;IACL,QAAQ,CAAoB;IAC5B,QAAQ,GAAG,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;IAC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jD,KAAK,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC;QAC/B,MAAM,CAAC,SAAS,KAAK,IAAI,CAAC,WAAW,IAAI,SAAS,KAAK,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAClF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClE,MAAM,MAAM,GAAmB;YAC7B,GAAG,IAAI,CAAC,MAAM;YACd,QAAQ;YACR,QAAQ,EAAE;gBACR,OAAO;gBACP,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE;gBAC/C,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE;aAC/D;SACF,CAAC;QAEF,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\nimport { assert, Uint32ArrayBuilder, Uint8ArrayBuilder } from \"@itwin/core-bentley\";\nimport { ColorDef, RenderFeatureTable, RenderMaterial } from \"@itwin/core-common\";\nimport { calculateEdgeTableParams, EdgeParams, EdgeTable, IndexedEdgeParams } from \"./EdgeParams\";\nimport { computeDimensions, VertexTable } from \"./VertexTable\";\nimport { VertexIndices } from \"./VertexIndices\";\nimport { createSurfaceMaterial, SurfaceMaterial } from \"./SurfaceParams\";\nimport { MaterialParams } from \"../../render/MaterialParams\";\nimport { MeshParams } from \"./MeshParams\";\nimport { PointStringParams } from \"./PointStringParams\";\nimport { PolylineParams, TesselatedPolyline } from \"./PolylineParams\";\n\n/** @internal */\nexport interface VertexTableWithIndices {\n vertices: VertexTable;\n indices: VertexIndices;\n material?: SurfaceMaterial;\n}\n\n/** Builds up a [[VertexIndices]].\n * Exported strictly for tests.\n * @internal\n */\nexport class IndexBuffer {\n private readonly _builder: Uint8ArrayBuilder;\n private readonly _index32 = new Uint32Array(1);\n private readonly _index8 = new Uint8Array(this._index32.buffer, 0, 3);\n\n public constructor(initialCapacity = 3) {\n this._builder = new Uint8ArrayBuilder({ initialCapacity: initialCapacity * 3 });\n }\n\n public get numIndices(): number {\n assert((this._builder.length % 3) === 0);\n return this._builder.length / 3;\n }\n\n public push(index: number): void {\n this._index32[0] = index;\n this._builder.append(this._index8);\n }\n\n public toVertexIndices(): VertexIndices {\n return new VertexIndices(this._builder.toTypedArray());\n }\n}\n\n/** Builds up a [[VertexTable]]. */\nclass VertexBuffer {\n private readonly _builder: Uint32ArrayBuilder;\n private readonly _source: VertexTable;\n\n /** `source` is the original table containing the vertex data from which individual vertices will be obtained. */\n public constructor(source: VertexTable) {\n this._source = source;\n this._builder = new Uint32ArrayBuilder({ initialCapacity: 3 * source.numRgbaPerVertex });\n }\n\n /** The number of vertices currently in the table. */\n public get length(): number {\n assert((this._builder.length % this.vertexSize) === 0);\n return this._builder.length / this.vertexSize;\n }\n\n /** The number of 32-bit unsigned integers (RGBA values) per vertex. */\n public get vertexSize(): number {\n return this._source.numRgbaPerVertex;\n }\n\n /** Append a vertex. `vertex` must be of size [[vertexSize]]. */\n public push(vertex: Uint32Array): void {\n assert(vertex.length === this.vertexSize);\n this._builder.append(vertex);\n }\n\n /** Construct the finished vertex table. */\n public buildVertexTable(maxDimension: number, colorTable: ColorTable | undefined, materialAtlasTable: MaterialAtlasTable): VertexTable {\n const source = this._source;\n colorTable = colorTable ?? source.uniformColor;\n assert(undefined !== colorTable);\n\n const colorTableLength = colorTable instanceof Uint32Array ? colorTable.length : 0;\n const materialAtlasTableLength = materialAtlasTable instanceof Uint32Array ? materialAtlasTable.length : 0;\n const dimensions = computeDimensions(this.length, this.vertexSize, colorTableLength + materialAtlasTableLength, maxDimension);\n\n let rgbaData = this._builder.toTypedArray();\n if (dimensions.width * dimensions.height > rgbaData.length) {\n const prevData = rgbaData;\n rgbaData = new Uint32Array(dimensions.width * dimensions.height);\n rgbaData.set(prevData, 0);\n }\n\n let tableSize = this.vertexSize * this.length;\n if (colorTable instanceof Uint32Array) {\n rgbaData.set(colorTable, tableSize);\n tableSize += colorTable.length;\n }\n\n if (materialAtlasTable instanceof Uint32Array)\n rgbaData.set(materialAtlasTable, tableSize);\n\n return {\n data: new Uint8Array(rgbaData.buffer, rgbaData.byteOffset, rgbaData.byteLength),\n usesUnquantizedPositions: source.usesUnquantizedPositions,\n qparams: source.qparams,\n width: dimensions.width,\n height: dimensions.height,\n hasTranslucency: source.hasTranslucency,\n uniformColor: colorTable instanceof ColorDef ? colorTable : undefined,\n featureIndexType: source.featureIndexType,\n uniformFeatureID: source.uniformFeatureID,\n numVertices: this.length,\n numRgbaPerVertex: source.numRgbaPerVertex,\n uvParams: source.uvParams,\n };\n }\n}\n\ntype ColorTable = Uint32Array | ColorDef;\n\n/** Remaps portions of a source color table into a filtered target color table. */\nclass ColorTableRemapper {\n private readonly _remappedIndices = new Map<number, number>();\n private readonly _colorTable: Uint32Array;\n public readonly colors: number[] = [];\n private readonly _32 = new Uint32Array(1);\n private readonly _16 = new Uint16Array(this._32.buffer);\n\n public constructor(colorTable: Uint32Array) {\n this._colorTable = colorTable;\n }\n\n /** Extract the color index stored in `vertex`, ensure it is present in the remapped color table, and return its index in that table. */\n public remap(vertex: Uint32Array, usesUnquantizedPositions: boolean | undefined): void {\n const vertIndex = usesUnquantizedPositions ? 4 : 1;\n const shortIndex = usesUnquantizedPositions ? 0 : 1;\n this._32[0] = vertex[vertIndex];\n const oldIndex = this._16[shortIndex];\n let newIndex = this._remappedIndices.get(oldIndex);\n if (undefined === newIndex) {\n newIndex = this.colors.length;\n this._remappedIndices.set(oldIndex, newIndex);\n const color = this._colorTable[oldIndex];\n this.colors.push(color);\n }\n\n this._16[shortIndex] = newIndex;\n vertex[vertIndex] = this._32[0];\n }\n\n /** Construct the finished color table. */\n public buildColorTable(): ColorTable {\n assert(this.colors.length > 0);\n return this.colors.length > 1 ? new Uint32Array(this.colors) : ColorDef.fromAbgr(this.colors[0]);\n }\n}\n\ntype MaterialAtlasTable = Uint32Array | SurfaceMaterial | undefined;\n\ntype CreateRenderMaterial = (args: MaterialParams) => RenderMaterial | undefined;\n\nclass MaterialAtlasRemapper {\n private readonly _remappedIndices = new Map<number, number>();\n private readonly _atlasTable: Uint32Array;\n private readonly _createMaterial: CreateRenderMaterial;\n public readonly materials: number[] = [];\n private readonly _32 = new Uint32Array(1);\n private readonly _8 = new Uint8Array(this._32.buffer);\n\n public constructor(_atlasTable: Uint32Array, createMaterial: CreateRenderMaterial) {\n this._atlasTable = _atlasTable;\n this._createMaterial = createMaterial;\n }\n\n /** Extract the mat index stored in `vertex`, ensure it is present in the remapped atlas table, and return its index in that table. */\n public remap(vertex: Uint32Array, usesUnquantizedPositions: boolean | undefined): void {\n const vertIndex = usesUnquantizedPositions ? 3 : 2;\n this._32[0] = vertex[vertIndex];\n const oldIndex = this._8[3];\n let newIndex = this._remappedIndices.get(oldIndex);\n if (undefined === newIndex) {\n newIndex = this.materials.length / 4;\n this._remappedIndices.set(oldIndex, newIndex);\n let index = oldIndex * 4;\n this.materials.push(this._atlasTable[index++]);\n this.materials.push(this._atlasTable[index++]);\n this.materials.push(this._atlasTable[index++]);\n this.materials.push(this._atlasTable[index]);\n }\n\n this._8[3] = newIndex;\n vertex[vertIndex] = this._32[0];\n }\n\n private unpackFloat(value: number): number {\n this._32[0] = value;\n const valUint32 = this._32[0];\n const bias = 38.0;\n const temp = (valUint32 >>> 24) / 2.0;\n let exponent = Math.floor(temp);\n let sign = (temp - exponent) * 2.0;\n sign = -(sign * 2.0 - 1.0);\n const base = sign * (valUint32 & 0xffffff) / 16777216.0;\n exponent = exponent - bias;\n return base * Math.pow(10.0, exponent);\n }\n\n private materialFromAtlasEntry(entry: Uint32Array): SurfaceMaterial | undefined {\n const rgbOverridden = (entry[1] & 0x1000000) !== 0;\n const alphaOverridden = (entry[1] & 0x2000000) !== 0;\n const args: MaterialParams = {\n alpha: alphaOverridden ? (entry[0] >>> 24) / 255.0 : undefined,\n diffuse: {\n color: rgbOverridden ? ColorDef.fromTbgr(entry[0] & 0xffffff) : undefined,\n weight: ((entry[1] >>> 8) & 0xff) / 255.0,\n },\n specular: {\n color: ColorDef.fromTbgr(entry[2]),\n weight: ((entry[1] >>> 16) & 0xff) / 255.0,\n exponent: this.unpackFloat(entry[3]),\n },\n };\n\n const material = this._createMaterial(args);\n return createSurfaceMaterial(material);\n }\n\n /** Construct the finished color table. */\n public buildAtlasTable(): MaterialAtlasTable {\n assert(this.materials.length > 0);\n const m = new Uint32Array(this.materials);\n return this.materials.length > 4 ? m : this.materialFromAtlasEntry(m);\n }\n}\n\n/** A node in a split vertex table. Each node corresponds to one or more elements. */\nclass Node {\n public readonly vertices: VertexBuffer;\n public readonly remappedIndices = new Map<number, number>();\n public readonly indices = new IndexBuffer();\n public readonly colors?: ColorTableRemapper;\n public readonly atlas?: MaterialAtlasRemapper;\n public readonly usesUnquantizedPositions?: boolean;\n\n /** `vertexTable` is the source table containing vertex data for all nodes, from which this node will extract the vertices belong to it. */\n public constructor(vertexTable: VertexTable, atlas?: AtlasInfo) {\n this.vertices = new VertexBuffer(vertexTable);\n if (undefined === vertexTable.uniformColor)\n this.colors = new ColorTableRemapper(new Uint32Array(vertexTable.data.buffer, vertexTable.data.byteOffset + 4 * vertexTable.numVertices * vertexTable.numRgbaPerVertex));\n\n if (atlas) {\n const atlasOffset = (vertexTable.numVertices * vertexTable.numRgbaPerVertex + atlas.offset) * 4;\n this.atlas = new MaterialAtlasRemapper(new Uint32Array(vertexTable.data.buffer, vertexTable.data.byteOffset + atlasOffset), atlas.createMaterial);\n }\n\n this.usesUnquantizedPositions = vertexTable.usesUnquantizedPositions;\n }\n\n public addVertex(originalIndex: number, vertex: Uint32Array): void {\n let newIndex = this.remappedIndices.get(originalIndex);\n if (undefined === newIndex) {\n newIndex = this.vertices.length;\n this.remappedIndices.set(originalIndex, newIndex);\n\n this.colors?.remap(vertex, this.usesUnquantizedPositions);\n this.atlas?.remap(vertex, this.usesUnquantizedPositions);\n this.vertices.push(vertex);\n }\n\n this.indices.push(newIndex);\n }\n\n public buildOutput(maxDimension: number, surfaceMaterial?: SurfaceMaterial): VertexTableWithIndices {\n const materialAtlas = this.atlas?.buildAtlasTable();\n\n let material: SurfaceMaterial | undefined;\n if (materialAtlas instanceof Uint32Array) {\n const colorTableOffset = undefined !== this.colors?.colors.length && this.colors?.colors.length > 1 ? this.colors?.colors.length : 0;\n material = {\n isAtlas: true,\n hasTranslucency: (surfaceMaterial?.isAtlas && surfaceMaterial?.hasTranslucency) ?? false,\n overridesAlpha: (surfaceMaterial?.isAtlas && surfaceMaterial?.overridesAlpha) ?? false,\n vertexTableOffset: colorTableOffset,\n numMaterials: materialAtlas.length / 4,\n };\n } else {\n material = materialAtlas;\n }\n\n return {\n indices: this.indices.toVertexIndices(),\n vertices: this.vertices.buildVertexTable(maxDimension, this.colors?.buildColorTable(), materialAtlas),\n material,\n };\n }\n}\n\ninterface AtlasInfo {\n offset: number;\n createMaterial: CreateRenderMaterial;\n}\n\ninterface VertexTableSplitArgs extends VertexTableWithIndices {\n featureTable: RenderFeatureTable;\n atlasInfo?: AtlasInfo;\n}\n\n/** @internal */\nexport type ComputeAnimationNodeId = (featureIndex: number) => number;\n\nclass VertexTableSplitter {\n private readonly _input: VertexTableSplitArgs;\n private readonly _computeNodeId: ComputeAnimationNodeId;\n private readonly _nodes = new Map<number, Node>();\n\n private constructor(input: VertexTableSplitArgs, computeNodeId: ComputeAnimationNodeId) {\n this._input = input;\n this._computeNodeId = computeNodeId;\n }\n\n /** Split the source into one or more output nodes, returning a mapping of integer node Id to node. */\n public static split(source: VertexTableSplitArgs, computeNodeId: ComputeAnimationNodeId): Map<number, Node> {\n const splitter = new VertexTableSplitter(source, computeNodeId);\n splitter.split();\n return splitter._nodes;\n }\n\n private split(): void {\n // Track the most recent feature and corresponding node to avoid repeated lookups - vertices for\n // individual features are largely contiguous.\n const curState = {\n featureIndex: -1,\n node: undefined as unknown as Node,\n };\n\n const vertSize = this._input.vertices.numRgbaPerVertex;\n const vertex = new Uint32Array(vertSize);\n const vertexTable = new Uint32Array(this._input.vertices.data.buffer, this._input.vertices.data.byteOffset, this._input.vertices.numVertices * vertSize);\n\n let extractFeatureIndex: () => number;\n if (this._input.vertices.usesUnquantizedPositions) {\n const vertexBytes = new Uint8Array(vertex.buffer);\n extractFeatureIndex = () => {\n return vertexBytes[3]\n | (vertexBytes[7] << 8)\n | (vertexBytes[11] << 16);\n };\n } else {\n extractFeatureIndex = () => vertex[2] & 0x00ffffff;\n }\n\n for (const index of this._input.indices) {\n // Extract the data for this vertex without allocating new typed arrays.\n const vertexOffset = index * vertSize;\n for (let i = 0; i < vertex.length; i++)\n vertex[i] = vertexTable[vertexOffset + i];\n\n // Determine to which element the vertex belongs and find the corresponding Node.\n const featureIndex = extractFeatureIndex();\n if (curState.featureIndex !== featureIndex) {\n curState.featureIndex = featureIndex;\n const nodeId = this._computeNodeId(featureIndex);\n let node = this._nodes.get(nodeId);\n if (undefined === node)\n this._nodes.set(nodeId, node = new Node(this._input.vertices, this._input.atlasInfo));\n\n curState.node = node;\n }\n\n // Add the vertex to the appropriate node.\n curState.node.addVertex(index, vertex);\n }\n }\n}\n\n/** @internal */\nexport interface SplitVertexTableArgs {\n featureTable: RenderFeatureTable;\n maxDimension: number;\n computeNodeId: ComputeAnimationNodeId;\n}\n\n/** @internal */\nexport interface SplitPointStringArgs extends SplitVertexTableArgs {\n params: PointStringParams;\n}\n\n/** Given a PointStringParams and a function that can associate a node Id with an element Id, produce a mapping of nodes to PointStringParams, splitting up\n * the input params as needed.\n * @internal\n */\nexport function splitPointStringParams(args: SplitPointStringArgs): Map<number, PointStringParams> {\n const nodes = VertexTableSplitter.split({\n indices: args.params.indices,\n vertices: args.params.vertices,\n featureTable: args.featureTable,\n }, args.computeNodeId);\n\n const result = new Map<number, PointStringParams>();\n for (const [id, node] of nodes) {\n const { vertices, indices } = node.buildOutput(args.maxDimension);\n result.set(id, { vertices, indices, weight: args.params.weight });\n }\n\n return result;\n}\n\ninterface RemappedSegmentEdges {\n indices: IndexBuffer;\n endPointAndQuadIndices: Uint32ArrayBuilder;\n}\n\ninterface RemappedSilhouetteEdges extends RemappedSegmentEdges {\n normalPairs: Uint32ArrayBuilder;\n}\n\nclass RemappedPolylineEdges {\n public readonly indices = new IndexBuffer();\n public readonly prevIndices = new IndexBuffer();\n public readonly nextIndicesAndParams = new Uint32ArrayBuilder();\n}\n\ninterface RemappedIndexEdges {\n edges: Uint8ArrayBuilder;\n silhouettes: Uint8ArrayBuilder;\n}\n\ninterface RemappedEdges {\n segments?: RemappedSegmentEdges;\n silhouettes?: RemappedSilhouetteEdges;\n polylines?: RemappedPolylineEdges;\n indexed?: RemappedIndexEdges;\n}\n\ninterface RemappedIndex {\n node: Node;\n id: number;\n index: number;\n}\n\nfunction remapIndex(out: RemappedIndex, srcIndex: number, nodes: Map<number, Node>): boolean {\n for (const [id, node] of nodes) {\n const index = node.remappedIndices.get(srcIndex);\n if (undefined !== index) {\n out.index = index;\n out.node = node;\n out.id = id;\n return true;\n }\n }\n\n assert(false);\n return false;\n}\n\nfunction remapSegmentEdges(type: \"segments\" | \"silhouettes\", source: EdgeParams, nodes: Map<number, Node>, edges: Map<number, RemappedEdges>): void {\n const src = source[type];\n if (!src)\n return;\n\n const srcEndPts = new Uint32Array(src.endPointAndQuadIndices.buffer, src.endPointAndQuadIndices.byteOffset, src.endPointAndQuadIndices.length / 4);\n let srcNormalPairs;\n if (type === \"silhouettes\") {\n assert(undefined !== source.silhouettes);\n srcNormalPairs = new Uint32Array(source.silhouettes.normalPairs.buffer, source.silhouettes.normalPairs.byteOffset, source.silhouettes.normalPairs.length / 4);\n }\n\n let curIndexIndex = 0;\n const remappedIndex = { } as unknown as RemappedIndex;\n for (const srcIndex of src.indices) {\n if (remapIndex(remappedIndex, srcIndex, nodes)) {\n let endPointAndQuad = srcEndPts[curIndexIndex];\n const otherIndex = (endPointAndQuad & 0x00ffffff) >>> 0;\n const newOtherIndex = remappedIndex.node.remappedIndices.get(otherIndex);\n assert(undefined !== newOtherIndex);\n endPointAndQuad = (endPointAndQuad & 0xff000000) | newOtherIndex;\n\n let entry = edges.get(remappedIndex.id);\n if (!entry)\n edges.set(remappedIndex.id, entry = { });\n\n if (srcNormalPairs) {\n if (!entry.silhouettes)\n entry.silhouettes = { indices: new IndexBuffer(), endPointAndQuadIndices: new Uint32ArrayBuilder(), normalPairs: new Uint32ArrayBuilder() };\n\n entry.silhouettes.normalPairs.push(srcNormalPairs[curIndexIndex]);\n } else if (!entry.segments) {\n entry.segments = { indices: new IndexBuffer(), endPointAndQuadIndices: new Uint32ArrayBuilder() };\n }\n\n const segments = entry[type];\n assert(undefined !== segments);\n\n segments.indices.push(remappedIndex.index);\n segments.endPointAndQuadIndices.push(endPointAndQuad);\n }\n\n ++curIndexIndex;\n }\n}\n\nfunction remapPolylineEdges(src: TesselatedPolyline, nodes: Map<number, Node>, edges: Map<number, RemappedEdges>): void {\n const srcNextAndParam = new Uint32Array(src.nextIndicesAndParams.buffer, src.nextIndicesAndParams.byteOffset, src.nextIndicesAndParams.length / 4);\n const prevIter = src.prevIndices[Symbol.iterator]();\n let curIndexIndex = 0;\n const remappedIndex = { } as unknown as RemappedIndex;\n for (const srcIndex of src.indices) {\n if (remapIndex(remappedIndex, srcIndex, nodes)) {\n const prevIndex = prevIter.next().value;\n assert(undefined !== prevIndex);\n const newPrevIndex = remappedIndex.node.remappedIndices.get(prevIndex);\n assert(undefined !== newPrevIndex);\n\n let nextAndParam = srcNextAndParam[curIndexIndex];\n const nextIndex = (nextAndParam & 0x00ffffff) >>> 0;\n const newNextIndex = remappedIndex.node.remappedIndices.get(nextIndex);\n assert(undefined !== newNextIndex);\n nextAndParam = (nextAndParam & 0xff000000) | newNextIndex;\n\n let entry = edges.get(remappedIndex.id);\n if (!entry)\n edges.set(remappedIndex.id, entry = { });\n\n if (!entry.polylines)\n entry.polylines = new RemappedPolylineEdges();\n\n entry.polylines.indices.push(remappedIndex.index);\n entry.polylines.prevIndices.push(newPrevIndex);\n entry.polylines.nextIndicesAndParams.push(nextAndParam);\n }\n\n ++curIndexIndex;\n }\n}\n\nfunction remapIndexedEdges(src: IndexedEdgeParams, nodes: Map<number, Node>, edges: Map<number, RemappedEdges>): void {\n const srcEdgeData = src.edges.data;\n const numSegments = src.edges.numSegments;\n const silhouetteStartByteIndex = numSegments * 6 + src.edges.silhouettePadding;\n\n function getUint24EdgePair(byteIndex: number): [number, number] {\n return [srcEdgeData[byteIndex + 0] | (srcEdgeData[byteIndex + 1] << 8) | srcEdgeData[byteIndex + 2] << 16,\n srcEdgeData[byteIndex + 3] | (srcEdgeData[byteIndex + 4] << 8) | srcEdgeData[byteIndex + 5] << 16];\n }\n\n function setUint24EdgePair(indEdges: RemappedIndexEdges, value1: number, value2: number): void {\n indEdges.edges.push(value1 & 0x0000ff);\n indEdges.edges.push((value1 & 0x00ff00) >>> 8);\n indEdges.edges.push((value1 & 0xff0000) >>> 16);\n indEdges.edges.push(value2 & 0x0000ff);\n indEdges.edges.push((value2 & 0x00ff00) >>> 8);\n indEdges.edges.push((value2 & 0xff0000) >>> 16);\n }\n\n function getUint24SilPair(byteIndex: number): [number, number, number, number] {\n return [srcEdgeData[byteIndex + 0] | (srcEdgeData[byteIndex + 1] << 8) | srcEdgeData[byteIndex + 2] << 16,\n srcEdgeData[byteIndex + 3] | (srcEdgeData[byteIndex + 4] << 8) | srcEdgeData[byteIndex + 5] << 16,\n srcEdgeData[byteIndex + 6] | (srcEdgeData[byteIndex + 7] << 8), srcEdgeData[byteIndex + 8] | (srcEdgeData[byteIndex + 9] << 8)];\n }\n\n function setUint24SilPair(indSil: RemappedIndexEdges, value1: number, value2: number, norm1: number, norm2: number): void {\n indSil.silhouettes.push(value1 & 0x0000ff);\n indSil.silhouettes.push((value1 & 0x00ff00) >>> 8);\n indSil.silhouettes.push((value1 & 0xff0000) >>> 16);\n indSil.silhouettes.push(value2 & 0x0000ff);\n indSil.silhouettes.push((value2 & 0x00ff00) >>> 8);\n indSil.silhouettes.push((value2 & 0xff0000) >>> 16);\n indSil.silhouettes.push(norm1 & 0x0000ff);\n indSil.silhouettes.push((norm1 & 0x00ff00) >>> 8);\n indSil.silhouettes.push(norm2 & 0x0000ff);\n indSil.silhouettes.push((norm2 & 0x00ff00) >>> 8);\n }\n\n let maxIndex = 0;\n for (const srcIndex of src.indices)\n maxIndex = Math.max (srcIndex, maxIndex);\n\n const remappedIndex = { } as unknown as RemappedIndex;\n let es1Index = 0, es2Index = 0, n1 = 0, n2 = 0;\n for (let curSegment = 0, byteIndex = 0; curSegment <= maxIndex; ++curSegment) {\n if (curSegment < numSegments) { // edges\n [es1Index, es2Index] = getUint24EdgePair(byteIndex);\n byteIndex += 6;\n } else { // silhouettes\n byteIndex = silhouetteStartByteIndex + (curSegment - numSegments) * 10;\n [es1Index, es2Index, n1, n2] = getUint24SilPair(byteIndex);\n }\n\n if (remapIndex(remappedIndex, es1Index, nodes)) {\n let entry = edges.get(remappedIndex.id);\n if (!entry)\n edges.set(remappedIndex.id, entry = { });\n\n if (!entry.indexed)\n entry.indexed = { edges: new Uint8ArrayBuilder(), silhouettes: new Uint8ArrayBuilder() };\n\n if (curSegment < numSegments) { // edges\n const newE1Index = remappedIndex.node.remappedIndices.get(es1Index);\n assert(undefined !== newE1Index);\n const newE2Index = remappedIndex.node.remappedIndices.get(es2Index);\n assert(undefined !== newE2Index);\n setUint24EdgePair(entry.indexed, newE1Index, newE2Index);\n } else { // silhouettes\n const newS1Index = remappedIndex.node.remappedIndices.get(es1Index);\n assert(undefined !== newS1Index);\n const newS2Index = remappedIndex.node.remappedIndices.get(es2Index);\n assert(undefined !== newS2Index);\n setUint24SilPair(entry.indexed, newS1Index, newS2Index, n1, n2);\n }\n }\n }\n}\n\nfunction splitEdges(source: EdgeParams, nodes: Map<number, Node>, maxDimension: number): Map<number, EdgeParams> {\n const edges = new Map<number, RemappedEdges>();\n remapSegmentEdges(\"segments\", source, nodes, edges);\n remapSegmentEdges(\"silhouettes\", source, nodes, edges);\n\n if (source.polylineGroups?.length === 1)\n remapPolylineEdges(source.polylineGroups[0].polyline, nodes, edges);\n\n if (source.indexed)\n remapIndexedEdges(source.indexed, nodes, edges);\n\n const result = new Map<number, EdgeParams>();\n for (const [id, remappedEdges] of edges) {\n if (!remappedEdges.segments && !remappedEdges.silhouettes && !remappedEdges.indexed)\n continue;\n\n let edgeTable = { } as unknown as EdgeTable;\n let edgeIndices = { } as unknown as VertexIndices;\n if (remappedEdges.indexed) {\n const numSegmentEdges = remappedEdges.indexed.edges.length / 6;\n const numSilhouettes = remappedEdges.indexed.silhouettes.length / 10;\n const { width, height, silhouettePadding, silhouetteStartByteIndex } = calculateEdgeTableParams(numSegmentEdges, numSilhouettes, maxDimension);\n const data = new Uint8Array(width * height * 4);\n data.set(remappedEdges.indexed.edges.toTypedArray(), 0);\n if (numSilhouettes > 0)\n data.set(remappedEdges.indexed.silhouettes.toTypedArray(), silhouetteStartByteIndex + silhouettePadding);\n\n const numTotalEdges = numSegmentEdges + numSilhouettes;\n edgeIndices = new VertexIndices(new Uint8Array(numTotalEdges * 6 * 3));\n for (let i = 0; i < numTotalEdges; i++)\n for (let j = 0; j < 6; j++)\n edgeIndices.setNthIndex(i * 6 + j, i);\n\n edgeTable = {\n data,\n width,\n height,\n numSegments: numSegmentEdges,\n silhouettePadding,\n };\n }\n\n result.set(id, {\n weight: source.weight,\n linePixels: source.linePixels,\n segments: remappedEdges.segments ? {\n indices: remappedEdges.segments.indices.toVertexIndices(),\n endPointAndQuadIndices: remappedEdges.segments.endPointAndQuadIndices.toUint8Array(),\n } : undefined,\n silhouettes: remappedEdges.silhouettes ? {\n indices: remappedEdges.silhouettes.indices.toVertexIndices(),\n endPointAndQuadIndices: remappedEdges.silhouettes.endPointAndQuadIndices.toUint8Array(),\n normalPairs: remappedEdges.silhouettes.normalPairs.toUint8Array(),\n } : undefined,\n polylineGroups: remappedEdges.polylines ? [{\n polyline: {\n indices: remappedEdges.polylines.indices.toVertexIndices(),\n prevIndices: remappedEdges.polylines.prevIndices.toVertexIndices(),\n nextIndicesAndParams: remappedEdges.polylines.nextIndicesAndParams.toUint8Array(),\n },\n }] : undefined,\n indexed: remappedEdges.indexed ? {\n indices: edgeIndices,\n edges: edgeTable,\n } : undefined,\n });\n }\n\n return result;\n}\n\n/** @internal */\nexport interface SplitMeshArgs extends SplitVertexTableArgs {\n params: MeshParams;\n createMaterial: CreateRenderMaterial;\n}\n\n/** @internal */\nexport function splitMeshParams(args: SplitMeshArgs): Map<number, MeshParams> {\n const result = new Map<number, MeshParams>();\n\n const mat = args.params.surface.material;\n const atlasOffset = undefined !== mat && mat.isAtlas ? mat.vertexTableOffset : undefined;\n const atlasInfo = undefined !== atlasOffset ? { offset: atlasOffset, createMaterial: args.createMaterial } : undefined;\n\n const nodes = VertexTableSplitter.split({\n indices: args.params.surface.indices,\n vertices: args.params.vertices,\n featureTable: args.featureTable,\n atlasInfo,\n }, args.computeNodeId);\n\n const edges = args.params.edges ? splitEdges(args.params.edges, nodes, args.maxDimension) : undefined;\n\n for (const [id, node] of nodes) {\n const { vertices, indices, material } = node.buildOutput(args.maxDimension, args.params.surface.material);\n const params: MeshParams = {\n vertices,\n surface: {\n type: args.params.surface.type,\n indices,\n fillFlags: args.params.surface.fillFlags,\n hasBakedLighting: args.params.surface.hasBakedLighting,\n textureMapping: args.params.surface.textureMapping,\n material: material !== undefined ? material : args.params.surface.material,\n },\n edges: edges?.get(id),\n isPlanar: args.params.isPlanar,\n // ###TODO handle aux channels.......\n auxChannels: args.params.auxChannels,\n };\n\n result.set(id, params);\n }\n\n return result;\n}\n\n/** @internal */\nexport interface SplitPolylineArgs extends SplitVertexTableArgs {\n params: PolylineParams;\n}\n\ninterface PolylineNode extends Node {\n prevIndices?: IndexBuffer;\n nextIndicesAndParams?: Uint32ArrayBuilder;\n}\n\n/** @internal */\nexport function splitPolylineParams(args: SplitPolylineArgs): Map<number, PolylineParams> {\n const nodes = VertexTableSplitter.split({\n indices: args.params.polyline.indices,\n vertices: args.params.vertices,\n featureTable: args.featureTable,\n }, args.computeNodeId) as Map<number, PolylineNode>;\n\n const src = args.params.polyline;\n const srcNextAndParam = new Uint32Array(src.nextIndicesAndParams.buffer, src.nextIndicesAndParams.byteOffset, src.nextIndicesAndParams.length / 4);\n let curIndexIndex = 0;\n const remappedIndex = { } as unknown as RemappedIndex;\n for (const prevIndex of src.prevIndices) {\n if (remapIndex(remappedIndex, prevIndex, nodes)) {\n const node = remappedIndex.node as PolylineNode;\n if (!node.prevIndices) {\n assert(undefined === node.nextIndicesAndParams);\n node.prevIndices = new IndexBuffer(node.indices.numIndices);\n node.nextIndicesAndParams = new Uint32ArrayBuilder({ initialCapacity: node.indices.numIndices });\n } else {\n assert(undefined !== node.nextIndicesAndParams);\n }\n\n node.prevIndices.push(remappedIndex.index);\n\n let nextAndParam = srcNextAndParam[curIndexIndex];\n const nextIndex = (nextAndParam & 0x00ffffff) >>> 0;\n const newNextIndex = remappedIndex.node.remappedIndices.get(nextIndex);\n assert(undefined !== newNextIndex);\n nextAndParam = (nextAndParam & 0xff000000) | newNextIndex;\n node.nextIndicesAndParams.push(nextAndParam);\n }\n\n ++curIndexIndex;\n }\n\n const result = new Map<number, PolylineParams>();\n for (const [id, node] of nodes) {\n assert(undefined !== node.prevIndices && undefined !== node.nextIndicesAndParams);\n const { vertices, indices } = node.buildOutput(args.maxDimension);\n const params: PolylineParams = {\n ...args.params,\n vertices,\n polyline: {\n indices,\n prevIndices: node.prevIndices.toVertexIndices(),\n nextIndicesAndParams: node.nextIndicesAndParams.toUint8Array(),\n },\n };\n\n result.set(id, params);\n }\n\n return result;\n}\n"]}
@@ -98,7 +98,7 @@ export * from "./render/ScreenSpaceEffectBuilder";
98
98
  export * from "./render/VisibleFeature";
99
99
  export * from "./internal/render/webgl/IModelFrameLifecycle";
100
100
  export type { TxnEntityChange, TxnEntityChangeIterable, TxnEntityChangeType, TxnEntityChanges, TxnEntityChangesFilterOptions, TxnEntityMetadata, TxnEntityMetadataCriterion, } from "./TxnEntityChanges";
101
- export { type TileTreeDiscloser, DisclosedTileTreeSet, type ReadGltfGraphicsArgs, type GltfGraphic, type GltfTemplate, readGltfGraphics, readGltfTemplate, readGltf, readElementGraphics, type BatchTableProperties, RealityTileTree, type RealityTileGeometry, RealityTile, type RenderGraphicTileTreeArgs, type GpuMemoryLimit, type GpuMemoryLimits, TileAdmin, type TileContent, type TiledGraphicsProvider, type TileDrawArgParams, TileDrawArgs, type CollectTileStatus, type TileGeometryCollectorOptions, TileGeometryCollector, type GeometryTileTreeReference, type TileParams, TileRequestChannels, type TileContentDecodingStatistics, TileRequestChannelStatistics, TileRequestChannel, TileRequest, type TileTreeOwner, type TileTreeParams, TileGraphicType, TileTreeReference, type TileTreeSupplier, TileTreeLoadStatus, TileTree, Tile, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes, TileUsageMarker, TileUser, BingElevationProvider, QuadId, MapTilingScheme, GeographicTilingScheme, WebMercatorProjection, WebMercatorTilingScheme, type MapLayerIndex, MapTileProjection, MapTile, MapLayerTileTreeReference, MapLayerSourceStatus, type MapLayerSourceProps, MapLayerSource, MapLayerSources, MapLayerImageryProviderStatus, MapLayerImageryProvider, ImageryMapLayerFormat, MapLayerFormat, type ValidateSourceArgs, type MapLayerFormatType, type MapLayerSourceValidation, type MapLayerOptions, MapLayerFormatRegistry, type MapLayerTokenEndpoint, type MapLayerAuthenticationInfo, type MapLayerAccessToken, type MapLayerAccessTokenParams, type MapLayerAccessClient, type MapFeatureInfoOptions, MapFeatureInfoRecord, type MapFeatureInfo, type MapLayerFeatureInfo, type MapSubLayerFeatureInfo, type MapLayerFeature, type MapLayerFeatureGeometry, type MapLayerFeatureAttribute, MapLayerFeatureRecord, MapCartoRectangle, ImageryMapLayerTreeReference, EllipsoidTerrainProvider, getCesiumAssetUrl, MapTileTreeScaleRangeVisibility, MapTileTree, type TerrainMeshProviderOptions, type RequestMeshDataArgs, type ReadMeshArgs, TerrainMeshProvider, type TerrainProvider, TerrainProviderRegistry, } from "./tile/internal";
101
+ export { type TileTreeDiscloser, DisclosedTileTreeSet, type ReadGltfGraphicsArgs, type GltfGraphic, type GltfTemplate, readGltfGraphics, readGltfTemplate, readGltf, readElementGraphics, type BatchTableProperties, RealityTileTree, type RealityTileGeometry, RealityTile, type RenderGraphicTileTreeArgs, type GpuMemoryLimit, type GpuMemoryLimits, TileAdmin, type TileContent, type TiledGraphicsProvider, type TileDrawArgParams, TileDrawArgs, type CollectTileStatus, type TileGeometryCollectorOptions, TileGeometryCollector, type GeometryTileTreeReference, type GeometryTileTreeReferenceOptions, type TileParams, TileRequestChannels, type TileContentDecodingStatistics, TileRequestChannelStatistics, TileRequestChannel, TileRequest, type TileTreeOwner, type TileTreeParams, TileGraphicType, TileTreeReference, type TileTreeSupplier, TileTreeLoadStatus, TileTree, Tile, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes, TileUsageMarker, TileUser, BingElevationProvider, QuadId, type QuadIdProps, MapTilingScheme, GeographicTilingScheme, WebMercatorProjection, WebMercatorTilingScheme, type MapLayerIndex, MapTileProjection, MapTile, MapLayerTileTreeReference, MapLayerSourceStatus, type MapLayerSourceProps, MapLayerSource, MapLayerSources, MapLayerImageryProviderStatus, MapLayerImageryProvider, ImageryMapLayerFormat, MapLayerFormat, type ValidateSourceArgs, type MapLayerFormatType, type MapLayerSourceValidation, type MapLayerOptions, MapLayerFormatRegistry, type MapLayerTokenEndpoint, type MapLayerAuthenticationInfo, type MapLayerAccessToken, type MapLayerAccessTokenParams, type MapLayerAccessClient, type MapFeatureInfoOptions, MapFeatureInfoRecord, type MapFeatureInfo, type MapLayerFeatureInfo, type MapSubLayerFeatureInfo, type MapLayerFeature, type MapLayerFeatureGeometry, type MapLayerFeatureAttribute, MapLayerFeatureRecord, MapCartoRectangle, ImageryMapLayerTreeReference, EllipsoidTerrainProvider, getCesiumAssetUrl, MapTileTreeScaleRangeVisibility, MapTileTree, type TerrainMeshProviderOptions, type RequestMeshDataArgs, type ReadMeshArgs, TerrainMeshProvider, type TerrainProvider, TerrainProviderRegistry, } from "./tile/internal";
102
102
  export * from "./tools/AccuDrawTool";
103
103
  export * from "./tools/AccuDrawViewportUI";
104
104
  export * from "./tools/ClipViewTool";
@@ -225,5 +225,5 @@ import "./extension/ExtensionRuntime";
225
225
  /**
226
226
  * @docs-group-description TileStorage
227
227
  * Class for working with cloud storage using iTwin/object-storage cloud providers
228
- */
228
+ */
229
229
  //# sourceMappingURL=core-frontend.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.d.ts","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa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,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AAGzC,OAAO,8BAA8B,CAAC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE"}
1
+ {"version":3,"file":"core-frontend.d.ts","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yB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;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE"}
@@ -229,5 +229,5 @@ import "./extension/ExtensionRuntime";
229
229
  /**
230
230
  * @docs-group-description TileStorage
231
231
  * Class for working with cloud storage using iTwin/object-storage cloud providers
232
- */
232
+ */
233
233
  //# sourceMappingURL=core-frontend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AA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AqB,EACtO,iBAAiB,EACjB,4BAA4B,EAC5B,wBAAwB,EACxB,iBAAiB,EACjB,+BAA+B,EAAE,WAAW,EACkC,mBAAmB,EAC3E,uBAAuB,GAC9C,MAAM,iBAAiB,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AAEzC,sGAAsG;AACtG,OAAO,8BAA8B,CAAC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./AccuDraw\";\nexport * from \"./AccuSnap\";\nexport * from \"./AuxCoordSys\";\nexport * from \"./BingLocation\";\nexport * from \"./BriefcaseConnection\";\nexport * from \"./BriefcaseTxns\";\nexport * from \"./CatalogConnection\";\nexport * from \"./CategorySelectorState\";\nexport * from \"./ChangeFlags\";\nexport * from \"./CheckpointConnection\";\nexport * from \"./common\";\nexport * from \"./ContextRealityModelState\";\nexport * from \"./CoordSystem\";\nexport * from \"./DecorationsCache\";\nexport * from \"./DevTools\";\nexport * from \"./DisplayStyleState\";\nexport * from \"./DrawingViewState\";\nexport * from \"./ElementLocateManager\";\nexport * from \"./EmphasizeElements\";\nexport * from \"./EntityState\";\nexport * from \"./EnvironmentDecorations\";\nexport * from \"./FeatureOverrideProvider\";\nexport * from \"./FlashSettings\";\nexport * from \"./FrontendHubAccess\";\nexport * from \"./Frustum2d\";\nexport * from \"./FrustumAnimator\";\nexport * from \"./FuzzySearch\";\nexport * from \"./GeoServices\";\nexport * from \"./GlobeAnimator\";\nexport * from \"./GraphicalEditingScope\";\nexport * from \"./HitDetail\";\nexport * from \"./IModelApp\";\nexport * from \"./IModelConnection\";\nexport * from \"./IModelRoutingContext\";\nexport * from \"./IpcApp\";\nexport * from \"./LinePlaneIntersect\";\nexport * from \"./MarginPercent\";\nexport * from \"./Marker\";\nexport * from \"./ModelSelectorState\";\nexport * from \"./ModelState\";\nexport * from \"./NativeApp\";\nexport * from \"./NativeAppLogger\";\nexport * from \"./NoRenderApp\";\nexport * from \"./NotificationManager\";\nexport * from \"./PerModelCategoryVisibility\";\nexport * from \"./PlanarClipMaskState\";\nexport * from \"./SelectionSet\";\nexport * from \"./SheetViewState\";\nexport * from \"./SpatialClassifiersState\";\nexport * from \"./SpatialViewState\";\nexport * from \"./Sprites\";\nexport * from \"./StandardView\";\nexport * from \"./SubCategoriesCache\";\nexport * from \"./TentativePoint\";\nexport * from \"./Tiles\";\nexport * from \"./UserPreferences\";\nexport * from \"./ViewAnimation\";\nexport * from \"./ViewContext\";\nexport * from \"./ViewGlobalLocation\";\nexport * from \"./ViewingSpace\";\nexport * from \"./ViewManager\";\nexport * from \"./Viewport\";\nexport * from \"./ViewportSync\";\nexport * from \"./ViewPose\";\nexport * from \"./ViewState\";\nexport * from \"./ViewStatus\";\nexport * from \"./extension/Extension\";\nexport * from \"./extension/providers/LocalExtensionProvider\";\nexport * from \"./extension/providers/RemoteExtensionProvider\";\nexport * from \"./properties/AngleDescription\";\nexport * from \"./properties/FormattedQuantityDescription\";\nexport * from \"./properties/LengthDescription\";\nexport * from \"./quantity-formatting/QuantityFormatter\";\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\nexport * from \"./render/CanvasDecoration\";\nexport * from \"./render/CreateRenderMaterialArgs\";\nexport * from \"./render/CreateTextureArgs\";\nexport * from \"./render/Decorations\";\nexport * from \"./render/FeatureSymbology\";\nexport * from \"./render/FrameStats\";\nexport * from \"./render/GraphicBranch\";\nexport * from \"./render/GraphicBuilder\";\nexport * from \"./render/GraphicTemplate\";\nexport * from \"./render/MeshArgs\";\nexport * from \"./render/ParticleCollectionBuilder\";\nexport * from \"./render/Pixel\";\nexport * from \"./render/PolylineArgs\";\nexport * from \"./render/RealityMeshParams\";\nexport * from \"./render/RenderClipVolume\";\nexport * from \"./render/RenderGraphic\";\nexport * from \"./render/RenderMemory\";\nexport * from \"./render/RenderSystem\";\nexport * from \"./render/RenderTarget\";\nexport * from \"./render/Scene\";\nexport * from \"./render/ScreenSpaceEffectBuilder\";\nexport * from \"./render/VisibleFeature\";\nexport * from \"./internal/render/webgl/IModelFrameLifecycle\";\nexport type {\n TxnEntityChange,\n TxnEntityChangeIterable,\n TxnEntityChangeType,\n TxnEntityChanges,\n TxnEntityChangesFilterOptions,\n TxnEntityMetadata,\n TxnEntityMetadataCriterion,\n} from \"./TxnEntityChanges\";\nexport {\n type TileTreeDiscloser, DisclosedTileTreeSet,\n type ReadGltfGraphicsArgs, type GltfGraphic, type GltfTemplate, readGltfGraphics, readGltfTemplate, readGltf,\n readElementGraphics,\n type BatchTableProperties, RealityTileTree,\n type RealityTileGeometry, RealityTile,\n type RenderGraphicTileTreeArgs,\n type GpuMemoryLimit, type GpuMemoryLimits, TileAdmin,\n type TileContent,\n type TiledGraphicsProvider,\n type TileDrawArgParams, TileDrawArgs,\n type CollectTileStatus, type TileGeometryCollectorOptions, TileGeometryCollector, type GeometryTileTreeReference,\n type TileParams,\n TileRequestChannels,\n type TileContentDecodingStatistics, TileRequestChannelStatistics, TileRequestChannel,\n TileRequest,\n type TileTreeOwner,\n type TileTreeParams,\n TileGraphicType, TileTreeReference,\n type TileTreeSupplier,\n TileTreeLoadStatus, TileTree,\n Tile, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes,\n TileUsageMarker,\n TileUser,\n BingElevationProvider,\n QuadId,\n MapTilingScheme, GeographicTilingScheme, WebMercatorProjection, WebMercatorTilingScheme,\n type MapLayerIndex,\n MapTileProjection, MapTile,\n MapLayerTileTreeReference,\n MapLayerSourceStatus, type MapLayerSourceProps, MapLayerSource, MapLayerSources,\n MapLayerImageryProviderStatus, MapLayerImageryProvider,\n ImageryMapLayerFormat,\n MapLayerFormat, type ValidateSourceArgs, type MapLayerFormatType, type MapLayerSourceValidation, type MapLayerOptions, MapLayerFormatRegistry,\n type MapLayerTokenEndpoint, type MapLayerAuthenticationInfo, type MapLayerAccessToken, type MapLayerAccessTokenParams, type MapLayerAccessClient,\n type MapFeatureInfoOptions, MapFeatureInfoRecord, type MapFeatureInfo, type MapLayerFeatureInfo, type MapSubLayerFeatureInfo, type MapLayerFeature, type MapLayerFeatureGeometry, type MapLayerFeatureAttribute, MapLayerFeatureRecord,\n MapCartoRectangle,\n ImageryMapLayerTreeReference,\n EllipsoidTerrainProvider,\n getCesiumAssetUrl,\n MapTileTreeScaleRangeVisibility, MapTileTree,\n type TerrainMeshProviderOptions, type RequestMeshDataArgs, type ReadMeshArgs, TerrainMeshProvider,\n type TerrainProvider, TerrainProviderRegistry,\n} from \"./tile/internal\";\nexport * from \"./tools/AccuDrawTool\";\nexport * from \"./tools/AccuDrawViewportUI\";\nexport * from \"./tools/ClipViewTool\";\nexport * from \"./tools/EditManipulator\";\nexport * from \"./tools/ElementSetTool\";\nexport * from \"./tools/EventController\";\nexport * from \"./tools/IdleTool\";\nexport * from \"./tools/MeasureTool\";\nexport * from \"./tools/PrimitiveTool\";\nexport * from \"./tools/SelectTool\";\nexport * from \"./tools/Tool\";\nexport * from \"./tools/ToolSettings\";\nexport * from \"./tools/ToolAdmin\";\nexport * from \"./tools/ToolAssistance\";\nexport * from \"./tools/ViewTool\";\nexport * from \"./workers/RegisterWorker\";\nexport * from \"./BackgroundMapGeometry\";\nexport * from \"./ViewCreator2d\";\nexport * from \"./ViewCreator3d\";\nexport * from \"./LocalhostIpcApp\";\nexport * from \"./request/utils\";\nexport * from \"./RealityDataSource\";\n\nexport * from \"./internal/cross-package\";\n\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\nimport \"./extension/ExtensionRuntime\";\n\n/** @docs-package-description\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\n */\n\n/**\n * @docs-group-description IModelApp\n * Classes for configuring and administering an iTwin.js application.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description IModelConnection\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\n */\n/**\n * @docs-group-description ElementState\n * Classes for working with the *state* of Elements in the frontend.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description ModelState\n * Classes for working with the *state* of Models in the frontend.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Tools\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\n */\n/**\n * @docs-group-description Measure\n * Classes for reporting point to point distances and mass properties of elements.\n */\n/**\n * @docs-group-description Views\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\n */\n/**\n * @docs-group-description LocatingElements\n * Classes for locating and snapping to elements in views.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description AccuDraw\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Notifications\n * Notifications provide feedback to the user of something of interest.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Extensions\n * Classes for creating and managing Extensions.\n */\n/**\n * @docs-group-description Properties\n * Classes for working with property records and descriptions.\n */\n/**\n * @docs-group-description Rendering\n * Classes for rendering the contents of views.\n */\n/**\n * @docs-group-description SelectionSet\n * Classes for working with the set of selected elements.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description NativeApp\n * Classes for working with Native Applications\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package\n */\n/**\n * @docs-group-description QuantityFormatting\n * Classes for formatting and parsing quantity values.\n */\n/**\n * @docs-group-description Tiles\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\n */\n/**\n * @docs-group-description HubAccess\n * APIs for working with IModelHub\n */\n/**\n * @docs-group-description UserPreferences\n * APIs for working with user preferences in an iModelApp.\n * See [the learning articles]($docs/learning/frontend/preferences.md).\n */\n/**\n * @docs-group-description MapLayers\n * Classes supporting map layers display.\n */\n/**\n * @docs-group-description TileStorage\n * Class for working with cloud storage using iTwin/object-storage cloud providers\n*/\n"]}
1
+ {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,e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B,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,0BAA0B,CAAC;AAEzC,sGAAsG;AACtG,OAAO,8BAA8B,CAAC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;EAGE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./AccuDraw\";\nexport * from \"./AccuSnap\";\nexport * from \"./AuxCoordSys\";\nexport * from \"./BingLocation\";\nexport * from \"./BriefcaseConnection\";\nexport * from \"./BriefcaseTxns\";\nexport * from \"./CatalogConnection\";\nexport * from \"./CategorySelectorState\";\nexport * from \"./ChangeFlags\";\nexport * from \"./CheckpointConnection\";\nexport * from \"./common\";\nexport * from \"./ContextRealityModelState\";\nexport * from \"./CoordSystem\";\nexport * from \"./DecorationsCache\";\nexport * from \"./DevTools\";\nexport * from \"./DisplayStyleState\";\nexport * from \"./DrawingViewState\";\nexport * from \"./ElementLocateManager\";\nexport * from \"./EmphasizeElements\";\nexport * from \"./EntityState\";\nexport * from \"./EnvironmentDecorations\";\nexport * from \"./FeatureOverrideProvider\";\nexport * from \"./FlashSettings\";\nexport * from \"./FrontendHubAccess\";\nexport * from \"./Frustum2d\";\nexport * from \"./FrustumAnimator\";\nexport * from \"./FuzzySearch\";\nexport * from \"./GeoServices\";\nexport * from \"./GlobeAnimator\";\nexport * from \"./GraphicalEditingScope\";\nexport * from \"./HitDetail\";\nexport * from \"./IModelApp\";\nexport * from \"./IModelConnection\";\nexport * from \"./IModelRoutingContext\";\nexport * from \"./IpcApp\";\nexport * from \"./LinePlaneIntersect\";\nexport * from \"./MarginPercent\";\nexport * from \"./Marker\";\nexport * from \"./ModelSelectorState\";\nexport * from \"./ModelState\";\nexport * from \"./NativeApp\";\nexport * from \"./NativeAppLogger\";\nexport * from \"./NoRenderApp\";\nexport * from \"./NotificationManager\";\nexport * from \"./PerModelCategoryVisibility\";\nexport * from \"./PlanarClipMaskState\";\nexport * from \"./SelectionSet\";\nexport * from \"./SheetViewState\";\nexport * from \"./SpatialClassifiersState\";\nexport * from \"./SpatialViewState\";\nexport * from \"./Sprites\";\nexport * from \"./StandardView\";\nexport * from \"./SubCategoriesCache\";\nexport * from \"./TentativePoint\";\nexport * from \"./Tiles\";\nexport * from \"./UserPreferences\";\nexport * from \"./ViewAnimation\";\nexport * from \"./ViewContext\";\nexport * from \"./ViewGlobalLocation\";\nexport * from \"./ViewingSpace\";\nexport * from \"./ViewManager\";\nexport * from \"./Viewport\";\nexport * from \"./ViewportSync\";\nexport * from \"./ViewPose\";\nexport * from \"./ViewState\";\nexport * from \"./ViewStatus\";\nexport * from \"./extension/Extension\";\nexport * from \"./extension/providers/LocalExtensionProvider\";\nexport * from \"./extension/providers/RemoteExtensionProvider\";\nexport * from \"./properties/AngleDescription\";\nexport * from \"./properties/FormattedQuantityDescription\";\nexport * from \"./properties/LengthDescription\";\nexport * from \"./quantity-formatting/QuantityFormatter\";\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\nexport * from \"./render/CanvasDecoration\";\nexport * from \"./render/CreateRenderMaterialArgs\";\nexport * from \"./render/CreateTextureArgs\";\nexport * from \"./render/Decorations\";\nexport * from \"./render/FeatureSymbology\";\nexport * from \"./render/FrameStats\";\nexport * from \"./render/GraphicBranch\";\nexport * from \"./render/GraphicBuilder\";\nexport * from \"./render/GraphicTemplate\";\nexport * from \"./render/MeshArgs\";\nexport * from \"./render/ParticleCollectionBuilder\";\nexport * from \"./render/Pixel\";\nexport * from \"./render/PolylineArgs\";\nexport * from \"./render/RealityMeshParams\";\nexport * from \"./render/RenderClipVolume\";\nexport * from \"./render/RenderGraphic\";\nexport * from \"./render/RenderMemory\";\nexport * from \"./render/RenderSystem\";\nexport * from \"./render/RenderTarget\";\nexport * from \"./render/Scene\";\nexport * from \"./render/ScreenSpaceEffectBuilder\";\nexport * from \"./render/VisibleFeature\";\nexport * from \"./internal/render/webgl/IModelFrameLifecycle\";\nexport type {\n TxnEntityChange,\n TxnEntityChangeIterable,\n TxnEntityChangeType,\n TxnEntityChanges,\n TxnEntityChangesFilterOptions,\n TxnEntityMetadata,\n TxnEntityMetadataCriterion,\n} from \"./TxnEntityChanges\";\nexport {\n type TileTreeDiscloser, DisclosedTileTreeSet,\n type ReadGltfGraphicsArgs, type GltfGraphic, type GltfTemplate, readGltfGraphics, readGltfTemplate, readGltf,\n readElementGraphics,\n type BatchTableProperties, RealityTileTree,\n type RealityTileGeometry, RealityTile,\n type RenderGraphicTileTreeArgs,\n type GpuMemoryLimit, type GpuMemoryLimits, TileAdmin,\n type TileContent,\n type TiledGraphicsProvider,\n type TileDrawArgParams, TileDrawArgs,\n type CollectTileStatus, type TileGeometryCollectorOptions, TileGeometryCollector, type GeometryTileTreeReference,\n type GeometryTileTreeReferenceOptions,\n type TileParams,\n TileRequestChannels,\n type TileContentDecodingStatistics, TileRequestChannelStatistics, TileRequestChannel,\n TileRequest,\n type TileTreeOwner,\n type TileTreeParams,\n TileGraphicType, TileTreeReference,\n type TileTreeSupplier,\n TileTreeLoadStatus, TileTree,\n Tile, TileLoadStatus, TileVisibility, TileLoadPriority, TileBoundingBoxes,\n TileUsageMarker,\n TileUser,\n BingElevationProvider,\n QuadId, type QuadIdProps,\n MapTilingScheme, GeographicTilingScheme, WebMercatorProjection, WebMercatorTilingScheme,\n type MapLayerIndex,\n MapTileProjection, MapTile,\n MapLayerTileTreeReference,\n MapLayerSourceStatus, type MapLayerSourceProps, MapLayerSource, MapLayerSources,\n MapLayerImageryProviderStatus, MapLayerImageryProvider,\n ImageryMapLayerFormat,\n MapLayerFormat, type ValidateSourceArgs, type MapLayerFormatType, type MapLayerSourceValidation, type MapLayerOptions, MapLayerFormatRegistry,\n type MapLayerTokenEndpoint, type MapLayerAuthenticationInfo, type MapLayerAccessToken, type MapLayerAccessTokenParams, type MapLayerAccessClient,\n type MapFeatureInfoOptions, MapFeatureInfoRecord, type MapFeatureInfo, type MapLayerFeatureInfo, type MapSubLayerFeatureInfo, type MapLayerFeature, type MapLayerFeatureGeometry, type MapLayerFeatureAttribute, MapLayerFeatureRecord,\n MapCartoRectangle,\n ImageryMapLayerTreeReference,\n EllipsoidTerrainProvider,\n getCesiumAssetUrl,\n MapTileTreeScaleRangeVisibility, MapTileTree,\n type TerrainMeshProviderOptions, type RequestMeshDataArgs, type ReadMeshArgs, TerrainMeshProvider,\n type TerrainProvider, TerrainProviderRegistry,\n} from \"./tile/internal\";\nexport * from \"./tools/AccuDrawTool\";\nexport * from \"./tools/AccuDrawViewportUI\";\nexport * from \"./tools/ClipViewTool\";\nexport * from \"./tools/EditManipulator\";\nexport * from \"./tools/ElementSetTool\";\nexport * from \"./tools/EventController\";\nexport * from \"./tools/IdleTool\";\nexport * from \"./tools/MeasureTool\";\nexport * from \"./tools/PrimitiveTool\";\nexport * from \"./tools/SelectTool\";\nexport * from \"./tools/Tool\";\nexport * from \"./tools/ToolSettings\";\nexport * from \"./tools/ToolAdmin\";\nexport * from \"./tools/ToolAssistance\";\nexport * from \"./tools/ViewTool\";\nexport * from \"./workers/RegisterWorker\";\nexport * from \"./BackgroundMapGeometry\";\nexport * from \"./ViewCreator2d\";\nexport * from \"./ViewCreator3d\";\nexport * from \"./LocalhostIpcApp\";\nexport * from \"./request/utils\";\nexport * from \"./RealityDataSource\";\n\nexport * from \"./internal/cross-package\";\n\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\nimport \"./extension/ExtensionRuntime\";\n\n/** @docs-package-description\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\n */\n\n/**\n * @docs-group-description IModelApp\n * Classes for configuring and administering an iTwin.js application.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description IModelConnection\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\n */\n/**\n * @docs-group-description ElementState\n * Classes for working with the *state* of Elements in the frontend.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description ModelState\n * Classes for working with the *state* of Models in the frontend.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Tools\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\n */\n/**\n * @docs-group-description Measure\n * Classes for reporting point to point distances and mass properties of elements.\n */\n/**\n * @docs-group-description Views\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\n */\n/**\n * @docs-group-description LocatingElements\n * Classes for locating and snapping to elements in views.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description AccuDraw\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Notifications\n * Notifications provide feedback to the user of something of interest.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description Extensions\n * Classes for creating and managing Extensions.\n */\n/**\n * @docs-group-description Properties\n * Classes for working with property records and descriptions.\n */\n/**\n * @docs-group-description Rendering\n * Classes for rendering the contents of views.\n */\n/**\n * @docs-group-description SelectionSet\n * Classes for working with the set of selected elements.\n * See [the learning articles]($docs/learning/frontend/index.md).\n */\n/**\n * @docs-group-description NativeApp\n * Classes for working with Native Applications\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package\n */\n/**\n * @docs-group-description QuantityFormatting\n * Classes for formatting and parsing quantity values.\n */\n/**\n * @docs-group-description Tiles\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\n */\n/**\n * @docs-group-description HubAccess\n * APIs for working with IModelHub\n */\n/**\n * @docs-group-description UserPreferences\n * APIs for working with user preferences in an iModelApp.\n * See [the learning articles]($docs/learning/frontend/preferences.md).\n */\n/**\n * @docs-group-description MapLayers\n * Classes supporting map layers display.\n */\n/**\n * @docs-group-description TileStorage\n * Class for working with cloud storage using iTwin/object-storage cloud providers\n*/"]}
@@ -10,8 +10,20 @@
10
10
  /* eslint-disable sort-imports */
11
11
  import { ExtensionHost } from "./ExtensionHost";
12
12
  const globalSymbol = Symbol.for("itwin.core.frontend.globals");
13
- if (globalThis[globalSymbol])
14
- throw new Error("Multiple @itwin/core-frontend imports detected!");
13
+ if (globalThis[globalSymbol]) {
14
+ // Get the stack trace from when the module was first loaded
15
+ const firstLoadStack = globalThis[globalSymbol].stack;
16
+ const error = new Error("Multiple @itwin/core-frontend imports detected! This may happen if:\n" +
17
+ "- You have multiple versions of the package installed\n" +
18
+ "- Your bundling configuration is incorrect\n" +
19
+ "- You're importing from both ESM and CommonJS versions");
20
+ /* eslint-disable no-console */
21
+ console.error("Duplicate @itwin/core-frontend import:", error);
22
+ console.error("First import occurred at:", firstLoadStack);
23
+ console.error("Current import occurred at:", error.stack);
24
+ /* eslint-enable no-console */
25
+ throw error;
26
+ }
15
27
  // BEGIN GENERATED CODE
16
28
  import {
17
29
  // @public enum(s) from @itwin/core-frontend
@@ -289,6 +301,7 @@ const getExtensionApi = (_id) => {
289
301
  };
290
302
  };
291
303
  globalThis[globalSymbol] = {
304
+ stack: new Error().stack,
292
305
  getExtensionApi,
293
306
  };
294
307
  //# sourceMappingURL=ExtensionRuntime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionRuntime.js","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,yDAAyD;AACzD,sDAAsD;AACtD,iCAAiC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC/D,IAAK,UAAkB,CAAC,YAAY,CAAC;IACnC,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;AAErE,uBAAuB;AACvB,OAAO;AACL,4CAA4C;AAC5C,iBAAiB,EACjB,OAAO,EACP,wBAAwB,EACxB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,uBAAuB,EACvB,YAAY,EACZ,SAAS,EACT,sBAAsB,EACtB,WAAW,EACX,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,WAAW,EACX,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,yBAAyB,EACzB,WAAW,EACX,WAAW,EACX,UAAU;AACV,4CAA4C;AAC5C,mBAAmB,EACnB,QAAQ,EACR,sBAAsB,EACtB,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AC3B,oBAAoB;IACpB,gCAAgC;IAChC,IAAI;IACJ,SAAS;IACT,iBAAiB;IACjB,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,kBAAkB;IAClB,4BAA4B;IAC5B,mBAAmB;IACnB,QAAQ;IACR,kBAAkB;IAClB,iBAAiB;IACjB,eAAe;IACf,cAAc;IACd,KAAK;IACL,IAAI;IACJ,SAAS;IACT,cAAc;IACd,mBAAmB;IACnB,yBAAyB;IACzB,YAAY;IACZ,yBAAyB;IACzB,kBAAkB;IAClB,SAAS;IACT,YAAY;IACZ,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,kBAAkB;IAClB,0BAA0B;IAC1B,YAAY;IACZ,aAAa;IACb,aAAa;IACb,WAAW;IACX,SAAS;IACT,QAAQ;IACR,UAAU;IACV,UAAU;IACV,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,mBAAmB;IACnB,6BAA6B;IAC7B,qBAAqB;IACrB,oBAAoB;IACpB,gBAAgB;IAChB,4BAA4B;IAC5B,2BAA2B;IAC3B,+BAA+B;IAC/B,sBAAsB;IACtB,6BAA6B;IAC7B,mBAAmB;IACnB,uBAAuB;IACvB,2BAA2B;IAC3B,mBAAmB;IACnB,2BAA2B;IAC3B,mBAAmB;IACnB,gBAAgB;IAChB,yBAAyB;IACzB,wBAAwB;CACzB,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE;IACtC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;KACF,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,eAAe;CAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Extensions\n */\n\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @itwin/no-internal-barrel-imports */\n/* eslint-disable sort-imports */\n\nimport { ExtensionHost } from \"./ExtensionHost\";\n\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\nif ((globalThis as any)[globalSymbol])\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\n\n// BEGIN GENERATED CODE\nimport {\n // @public enum(s) from @itwin/core-frontend\n ACSDisplayOptions,\n ACSType,\n ActivityMessageEndReason,\n BeButton,\n BeModifierKeys,\n ClipEventType,\n ContextRotationId,\n CoordSource,\n CoordSystem,\n CoordinateLockOverrides,\n EventHandled,\n FlashMode,\n FrontendLoggerCategory,\n GraphicType,\n HitDetailType,\n HitGeomType,\n HitParentGeomType,\n HitPriority,\n HitSource,\n InputSource,\n KeyinParseError,\n LocateAction,\n LocateFilterStatus,\n ManipulatorToolEvent,\n MessageBoxIconType,\n MessageBoxType,\n MessageBoxValue,\n OutputMessageAlert,\n OutputMessagePriority,\n OutputMessageType,\n ParseAndRunResult,\n SelectionMethod,\n SelectionMode,\n SelectionProcessing,\n SelectionSetEventType,\n SnapHeat,\n SnapMode,\n SnapStatus,\n StandardViewId,\n StartOrResume,\n TileBoundingBoxes,\n TileGraphicType,\n TileLoadPriority,\n TileLoadStatus,\n TileTreeLoadStatus,\n TileVisibility,\n ToolAssistanceImage,\n ToolAssistanceInputMethod,\n UniformType,\n VaryingType,\n ViewStatus,\n // @public real(s) from @itwin/core-frontend\n AccuDrawHintBuilder,\n AccuSnap,\n ActivityMessageDetails,\n AuxCoordSystem2dState,\n AuxCoordSystem3dState,\n AuxCoordSystemSpatialState,\n AuxCoordSystemState,\n BeButtonEvent,\n BeButtonState,\n BeTouchEvent,\n BeWheelEvent,\n BingElevationProvider,\n BingLocationProvider,\n CategorySelectorState,\n ChangeFlags,\n Cluster,\n ContextRealityModelState,\n DecorateContext,\n Decorations,\n DisclosedTileTreeSet,\n DisplayStyle2dState,\n DisplayStyle3dState,\n DisplayStyleState,\n DrawingModelState,\n DrawingViewState,\n EditManipulator,\n ElementLocateManager,\n ElementPicker,\n ElementState,\n EmphasizeElements,\n EntityState,\n EventController,\n FeatureSymbology,\n FlashSettings,\n FrustumAnimator,\n GeometricModel2dState,\n GeometricModel3dState,\n GeometricModelState,\n GlobeAnimator,\n GraphicAssembler,\n GraphicBranch,\n GraphicBuilder,\n HiliteSet,\n HitDetail,\n HitList,\n IModelConnection,\n IconSprites,\n InputCollector,\n InteractiveTool,\n IntersectDetail,\n LocateOptions,\n LocateResponse,\n MarginPercent,\n Marker,\n MarkerSet,\n ModelSelectorState,\n ModelState,\n NotificationHandler,\n NotificationManager,\n NotifyMessageDetails,\n OffScreenViewport,\n OrthographicViewState,\n ParticleCollectionBuilder,\n PerModelCategoryVisibility,\n PhysicalModelState,\n Pixel,\n PrimitiveTool,\n RenderClipVolume,\n RenderContext,\n RenderGraphic,\n RenderGraphicOwner,\n RenderSystem,\n Scene,\n ScreenViewport,\n SectionDrawingModelState,\n SelectionSet,\n SheetModelState,\n SheetViewState,\n SnapDetail,\n SpatialLocationModelState,\n SpatialModelState,\n SpatialViewState,\n Sprite,\n SpriteLocation,\n TentativePoint,\n Tile,\n TileAdmin,\n TileDrawArgs,\n TileRequest,\n TileRequestChannel,\n TileRequestChannelStatistics,\n TileRequestChannels,\n TileTree,\n TileTreeReference,\n TileUsageMarker,\n Tiles,\n Tool,\n ToolAdmin,\n ToolAssistance,\n ToolSettings,\n TwoWayViewportFrustumSync,\n TwoWayViewportSync,\n ViewClipClearTool,\n ViewClipDecoration,\n ViewClipDecorationProvider,\n ViewClipTool,\n ViewCreator2d,\n ViewCreator3d,\n ViewManager,\n ViewManip,\n ViewPose,\n ViewPose2d,\n ViewPose3d,\n ViewRect,\n ViewState,\n ViewState2d,\n ViewState3d,\n ViewTool,\n ViewingSpace,\n Viewport,\n canvasToImageBuffer,\n canvasToResizedCanvasWithBars,\n connectViewportFrusta,\n connectViewportViews,\n connectViewports,\n extractImageSourceDimensions,\n getCompressedJpegFromCanvas,\n getImageSourceFormatForMimeType,\n getImageSourceMimeType,\n imageBufferToBase64EncodedPng,\n imageBufferToCanvas,\n imageBufferToPngDataUrl,\n imageElementFromImageSource,\n imageElementFromUrl,\n queryTerrainElevationOffset,\n readElementGraphics,\n readGltfGraphics,\n synchronizeViewportFrusta,\n synchronizeViewportViews,\n} from \"../core-frontend\";\n\nimport {\n // @public enum(s) from @itwin/core-common\n BackgroundFill,\n BackgroundMapType,\n BatchType,\n BisCodeSpec,\n BriefcaseIdValue,\n ChangeOpCode,\n ChangedValueState,\n ChangesetType,\n CommonLoggerCategory,\n ECSqlSystemProperty,\n ECSqlValueType,\n ElementGeometryOpcode,\n FeatureOverrideType,\n FillDisplay,\n FillFlags,\n FontType,\n GeoCoordStatus,\n GeometryClass,\n GeometryStreamFlags,\n GeometrySummaryVerbosity,\n GlobeMode,\n GridOrientationType,\n HSVConstants,\n ImageBufferFormat,\n ImageSourceFormat,\n LinePixels,\n MassPropertiesOperation,\n MonochromeMode,\n Npc,\n PlanarClipMaskMode,\n PlanarClipMaskPriority,\n QueryRowFormat,\n Rank,\n RenderMode,\n SectionType,\n SkyBoxImageType,\n SpatialClassifierInsideDisplay,\n SpatialClassifierOutsideDisplay,\n SyncMode,\n TerrainHeightOriginMode,\n TextureMapUnits,\n ThematicDisplayMode,\n ThematicGradientColorScheme,\n ThematicGradientMode,\n ThematicGradientTransparencyMode,\n TxnAction,\n TypeOfChange,\n // @public real(s) from @itwin/core-common\n ClipIntersectionStyle,\n ColorByName,\n ColorDef,\n FrustumPlanes,\n QParams2d,\n QParams3d,\n QPoint2d,\n QPoint2dBuffer,\n QPoint2dBufferBuilder,\n QPoint2dList,\n QPoint3d,\n QPoint3dBuffer,\n QPoint3dBufferBuilder,\n QPoint3dList,\n Quantization,\n} from \"@itwin/core-common\";\n\nconst extensionExports = {\n ACSDisplayOptions,\n ACSType,\n AccuDrawHintBuilder,\n AccuSnap,\n ActivityMessageDetails,\n ActivityMessageEndReason,\n AuxCoordSystem2dState,\n AuxCoordSystem3dState,\n AuxCoordSystemSpatialState,\n AuxCoordSystemState,\n BackgroundFill,\n BackgroundMapType,\n BatchType,\n BeButton,\n BeButtonEvent,\n BeButtonState,\n BeModifierKeys,\n BeTouchEvent,\n BeWheelEvent,\n BingElevationProvider,\n BingLocationProvider,\n BisCodeSpec,\n BriefcaseIdValue,\n CategorySelectorState,\n ChangeFlags,\n ChangeOpCode,\n ChangedValueState,\n ChangesetType,\n ClipEventType,\n ClipIntersectionStyle,\n Cluster,\n ColorByName,\n ColorDef,\n CommonLoggerCategory,\n ContextRealityModelState,\n ContextRotationId,\n CoordSource,\n CoordSystem,\n CoordinateLockOverrides,\n DecorateContext,\n Decorations,\n DisclosedTileTreeSet,\n DisplayStyle2dState,\n DisplayStyle3dState,\n DisplayStyleState,\n DrawingModelState,\n DrawingViewState,\n ECSqlSystemProperty,\n ECSqlValueType,\n EditManipulator,\n ElementGeometryOpcode,\n ElementLocateManager,\n ElementPicker,\n ElementState,\n EmphasizeElements,\n EntityState,\n EventController,\n EventHandled,\n FeatureOverrideType,\n FeatureSymbology,\n FillDisplay,\n FillFlags,\n FlashMode,\n FlashSettings,\n FontType,\n FrontendLoggerCategory,\n FrustumAnimator,\n FrustumPlanes,\n GeoCoordStatus,\n GeometricModel2dState,\n GeometricModel3dState,\n GeometricModelState,\n GeometryClass,\n GeometryStreamFlags,\n GeometrySummaryVerbosity,\n GlobeAnimator,\n GlobeMode,\n GraphicAssembler,\n GraphicBranch,\n GraphicBuilder,\n GraphicType,\n GridOrientationType,\n HSVConstants,\n HiliteSet,\n HitDetail,\n HitDetailType,\n HitGeomType,\n HitList,\n HitParentGeomType,\n HitPriority,\n HitSource,\n IModelConnection,\n IconSprites,\n ImageBufferFormat,\n ImageSourceFormat,\n InputCollector,\n InputSource,\n InteractiveTool,\n IntersectDetail,\n KeyinParseError,\n LinePixels,\n LocateAction,\n LocateFilterStatus,\n LocateOptions,\n LocateResponse,\n ManipulatorToolEvent,\n MarginPercent,\n Marker,\n MarkerSet,\n MassPropertiesOperation,\n MessageBoxIconType,\n MessageBoxType,\n MessageBoxValue,\n ModelSelectorState,\n ModelState,\n MonochromeMode,\n NotificationHandler,\n NotificationManager,\n NotifyMessageDetails,\n Npc,\n OffScreenViewport,\n OrthographicViewState,\n OutputMessageAlert,\n OutputMessagePriority,\n OutputMessageType,\n ParseAndRunResult,\n ParticleCollectionBuilder,\n PerModelCategoryVisibility,\n PhysicalModelState,\n Pixel,\n PlanarClipMaskMode,\n PlanarClipMaskPriority,\n PrimitiveTool,\n QParams2d,\n QParams3d,\n QPoint2d,\n QPoint2dBuffer,\n QPoint2dBufferBuilder,\n QPoint2dList,\n QPoint3d,\n QPoint3dBuffer,\n QPoint3dBufferBuilder,\n QPoint3dList,\n Quantization,\n QueryRowFormat,\n Rank,\n RenderClipVolume,\n RenderContext,\n RenderGraphic,\n RenderGraphicOwner,\n RenderMode,\n RenderSystem,\n Scene,\n ScreenViewport,\n SectionDrawingModelState,\n SectionType,\n SelectionMethod,\n SelectionMode,\n SelectionProcessing,\n SelectionSet,\n SelectionSetEventType,\n SheetModelState,\n SheetViewState,\n SkyBoxImageType,\n SnapDetail,\n SnapHeat,\n SnapMode,\n SnapStatus,\n SpatialClassifierInsideDisplay,\n SpatialClassifierOutsideDisplay,\n SpatialLocationModelState,\n SpatialModelState,\n SpatialViewState,\n Sprite,\n SpriteLocation,\n StandardViewId,\n StartOrResume,\n SyncMode,\n TentativePoint,\n TerrainHeightOriginMode,\n TextureMapUnits,\n ThematicDisplayMode,\n ThematicGradientColorScheme,\n ThematicGradientMode,\n ThematicGradientTransparencyMode,\n Tile,\n TileAdmin,\n TileBoundingBoxes,\n TileDrawArgs,\n TileGraphicType,\n TileLoadPriority,\n TileLoadStatus,\n TileRequest,\n TileRequestChannel,\n TileRequestChannelStatistics,\n TileRequestChannels,\n TileTree,\n TileTreeLoadStatus,\n TileTreeReference,\n TileUsageMarker,\n TileVisibility,\n Tiles,\n Tool,\n ToolAdmin,\n ToolAssistance,\n ToolAssistanceImage,\n ToolAssistanceInputMethod,\n ToolSettings,\n TwoWayViewportFrustumSync,\n TwoWayViewportSync,\n TxnAction,\n TypeOfChange,\n UniformType,\n VaryingType,\n ViewClipClearTool,\n ViewClipDecoration,\n ViewClipDecorationProvider,\n ViewClipTool,\n ViewCreator2d,\n ViewCreator3d,\n ViewManager,\n ViewManip,\n ViewPose,\n ViewPose2d,\n ViewPose3d,\n ViewRect,\n ViewState,\n ViewState2d,\n ViewState3d,\n ViewStatus,\n ViewTool,\n ViewingSpace,\n Viewport,\n canvasToImageBuffer,\n canvasToResizedCanvasWithBars,\n connectViewportFrusta,\n connectViewportViews,\n connectViewports,\n extractImageSourceDimensions,\n getCompressedJpegFromCanvas,\n getImageSourceFormatForMimeType,\n getImageSourceMimeType,\n imageBufferToBase64EncodedPng,\n imageBufferToCanvas,\n imageBufferToPngDataUrl,\n imageElementFromImageSource,\n imageElementFromUrl,\n queryTerrainElevationOffset,\n readElementGraphics,\n readGltfGraphics,\n synchronizeViewportFrusta,\n synchronizeViewportViews,\n};\n\n// END GENERATED CODE\n\nconst getExtensionApi = (_id: string) => {\n return {\n exports: {\n // exceptions\n ExtensionHost,\n // automated\n ...extensionExports,\n },\n };\n};\n\n(globalThis as any)[globalSymbol] = {\n getExtensionApi,\n};\n"]}
1
+ {"version":3,"file":"ExtensionRuntime.js","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,yDAAyD;AACzD,sDAAsD;AACtD,iCAAiC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC/D,IAAK,UAAk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,oBAAoB;IACpB,gCAAgC;IAChC,IAAI;IACJ,SAAS;IACT,iBAAiB;IACjB,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,kBAAkB;IAClB,4BAA4B;IAC5B,mBAAmB;IACnB,QAAQ;IACR,kBAAkB;IAClB,iBAAiB;IACjB,eAAe;IACf,cAAc;IACd,KAAK;IACL,IAAI;IACJ,SAAS;IACT,cAAc;IACd,mBAAmB;IACnB,yBAAyB;IACzB,YAAY;IACZ,yBAAyB;IACzB,kBAAkB;IAClB,SAAS;IACT,YAAY;IACZ,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,kBAAkB;IAClB,0BAA0B;IAC1B,YAAY;IACZ,aAAa;IACb,aAAa;IACb,WAAW;IACX,SAAS;IACT,QAAQ;IACR,UAAU;IACV,UAAU;IACV,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,mBAAmB;IACnB,6BAA6B;IAC7B,qBAAqB;IACrB,oBAAoB;IACpB,gBAAgB;IAChB,4BAA4B;IAC5B,2BAA2B;IAC3B,+BAA+B;IAC/B,sBAAsB;IACtB,6BAA6B;IAC7B,mBAAmB;IACnB,uBAAuB;IACvB,2BAA2B;IAC3B,mBAAmB;IACnB,2BAA2B;IAC3B,mBAAmB;IACnB,gBAAgB;IAChB,yBAAyB;IACzB,wBAAwB;CACzB,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE;IACtC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;KACF,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,KAAK,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK;IACxB,eAAe;CAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Extensions\n */\n\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @itwin/no-internal-barrel-imports */\n/* eslint-disable sort-imports */\n\nimport { ExtensionHost } from \"./ExtensionHost\";\n\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\nif ((globalThis as any)[globalSymbol]) {\n // Get the stack trace from when the module was first loaded\n const firstLoadStack = (globalThis as any)[globalSymbol].stack;\n\n const error = new Error(\n \"Multiple @itwin/core-frontend imports detected! This may happen if:\\n\" +\n \"- You have multiple versions of the package installed\\n\" +\n \"- Your bundling configuration is incorrect\\n\" +\n \"- You're importing from both ESM and CommonJS versions\"\n );\n\n /* eslint-disable no-console */\n console.error(\"Duplicate @itwin/core-frontend import:\", error);\n console.error(\"First import occurred at:\", firstLoadStack);\n console.error(\"Current import occurred at:\", error.stack);\n /* eslint-enable no-console */\n\n throw error;\n}\n\n// BEGIN GENERATED CODE\nimport {\n // @public enum(s) from @itwin/core-frontend\n ACSDisplayOptions,\n ACSType,\n ActivityMessageEndReason,\n BeButton,\n BeModifierKeys,\n ClipEventType,\n ContextRotationId,\n CoordSource,\n CoordSystem,\n CoordinateLockOverrides,\n EventHandled,\n FlashMode,\n FrontendLoggerCategory,\n GraphicType,\n HitDetailType,\n HitGeomType,\n HitParentGeomType,\n HitPriority,\n HitSource,\n InputSource,\n KeyinParseError,\n LocateAction,\n LocateFilterStatus,\n ManipulatorToolEvent,\n MessageBoxIconType,\n MessageBoxType,\n MessageBoxValue,\n OutputMessageAlert,\n OutputMessagePriority,\n OutputMessageType,\n ParseAndRunResult,\n SelectionMethod,\n SelectionMode,\n SelectionProcessing,\n SelectionSetEventType,\n SnapHeat,\n SnapMode,\n SnapStatus,\n StandardViewId,\n StartOrResume,\n TileBoundingBoxes,\n TileGraphicType,\n TileLoadPriority,\n TileLoadStatus,\n TileTreeLoadStatus,\n TileVisibility,\n ToolAssistanceImage,\n ToolAssistanceInputMethod,\n UniformType,\n VaryingType,\n ViewStatus,\n // @public real(s) from @itwin/core-frontend\n AccuDrawHintBuilder,\n AccuSnap,\n ActivityMessageDetails,\n AuxCoordSystem2dState,\n AuxCoordSystem3dState,\n AuxCoordSystemSpatialState,\n AuxCoordSystemState,\n BeButtonEvent,\n BeButtonState,\n BeTouchEvent,\n BeWheelEvent,\n BingElevationProvider,\n BingLocationProvider,\n CategorySelectorState,\n ChangeFlags,\n Cluster,\n ContextRealityModelState,\n DecorateContext,\n Decorations,\n DisclosedTileTreeSet,\n DisplayStyle2dState,\n DisplayStyle3dState,\n DisplayStyleState,\n DrawingModelState,\n DrawingViewState,\n EditManipulator,\n ElementLocateManager,\n ElementPicker,\n ElementState,\n EmphasizeElements,\n EntityState,\n EventController,\n FeatureSymbology,\n FlashSettings,\n FrustumAnimator,\n GeometricModel2dState,\n GeometricModel3dState,\n GeometricModelState,\n GlobeAnimator,\n GraphicAssembler,\n GraphicBranch,\n GraphicBuilder,\n HiliteSet,\n HitDetail,\n HitList,\n IModelConnection,\n IconSprites,\n InputCollector,\n InteractiveTool,\n IntersectDetail,\n LocateOptions,\n LocateResponse,\n MarginPercent,\n Marker,\n MarkerSet,\n ModelSelectorState,\n ModelState,\n NotificationHandler,\n NotificationManager,\n NotifyMessageDetails,\n OffScreenViewport,\n OrthographicViewState,\n ParticleCollectionBuilder,\n PerModelCategoryVisibility,\n PhysicalModelState,\n Pixel,\n PrimitiveTool,\n RenderClipVolume,\n RenderContext,\n RenderGraphic,\n RenderGraphicOwner,\n RenderSystem,\n Scene,\n ScreenViewport,\n SectionDrawingModelState,\n SelectionSet,\n SheetModelState,\n SheetViewState,\n SnapDetail,\n SpatialLocationModelState,\n SpatialModelState,\n SpatialViewState,\n Sprite,\n SpriteLocation,\n TentativePoint,\n Tile,\n TileAdmin,\n TileDrawArgs,\n TileRequest,\n TileRequestChannel,\n TileRequestChannelStatistics,\n TileRequestChannels,\n TileTree,\n TileTreeReference,\n TileUsageMarker,\n Tiles,\n Tool,\n ToolAdmin,\n ToolAssistance,\n ToolSettings,\n TwoWayViewportFrustumSync,\n TwoWayViewportSync,\n ViewClipClearTool,\n ViewClipDecoration,\n ViewClipDecorationProvider,\n ViewClipTool,\n ViewCreator2d,\n ViewCreator3d,\n ViewManager,\n ViewManip,\n ViewPose,\n ViewPose2d,\n ViewPose3d,\n ViewRect,\n ViewState,\n ViewState2d,\n ViewState3d,\n ViewTool,\n ViewingSpace,\n Viewport,\n canvasToImageBuffer,\n canvasToResizedCanvasWithBars,\n connectViewportFrusta,\n connectViewportViews,\n connectViewports,\n extractImageSourceDimensions,\n getCompressedJpegFromCanvas,\n getImageSourceFormatForMimeType,\n getImageSourceMimeType,\n imageBufferToBase64EncodedPng,\n imageBufferToCanvas,\n imageBufferToPngDataUrl,\n imageElementFromImageSource,\n imageElementFromUrl,\n queryTerrainElevationOffset,\n readElementGraphics,\n readGltfGraphics,\n synchronizeViewportFrusta,\n synchronizeViewportViews,\n} from \"../core-frontend\";\n\nimport {\n // @public enum(s) from @itwin/core-common\n BackgroundFill,\n BackgroundMapType,\n BatchType,\n BisCodeSpec,\n BriefcaseIdValue,\n ChangeOpCode,\n ChangedValueState,\n ChangesetType,\n CommonLoggerCategory,\n ECSqlSystemProperty,\n ECSqlValueType,\n ElementGeometryOpcode,\n FeatureOverrideType,\n FillDisplay,\n FillFlags,\n FontType,\n GeoCoordStatus,\n GeometryClass,\n GeometryStreamFlags,\n GeometrySummaryVerbosity,\n GlobeMode,\n GridOrientationType,\n HSVConstants,\n ImageBufferFormat,\n ImageSourceFormat,\n LinePixels,\n MassPropertiesOperation,\n MonochromeMode,\n Npc,\n PlanarClipMaskMode,\n PlanarClipMaskPriority,\n QueryRowFormat,\n Rank,\n RenderMode,\n SectionType,\n SkyBoxImageType,\n SpatialClassifierInsideDisplay,\n SpatialClassifierOutsideDisplay,\n SyncMode,\n TerrainHeightOriginMode,\n TextureMapUnits,\n ThematicDisplayMode,\n ThematicGradientColorScheme,\n ThematicGradientMode,\n ThematicGradientTransparencyMode,\n TxnAction,\n TypeOfChange,\n // @public real(s) from @itwin/core-common\n ClipIntersectionStyle,\n ColorByName,\n ColorDef,\n FrustumPlanes,\n QParams2d,\n QParams3d,\n QPoint2d,\n QPoint2dBuffer,\n QPoint2dBufferBuilder,\n QPoint2dList,\n QPoint3d,\n QPoint3dBuffer,\n QPoint3dBufferBuilder,\n QPoint3dList,\n Quantization,\n} from \"@itwin/core-common\";\n\nconst extensionExports = {\n ACSDisplayOptions,\n ACSType,\n AccuDrawHintBuilder,\n AccuSnap,\n ActivityMessageDetails,\n ActivityMessageEndReason,\n AuxCoordSystem2dState,\n AuxCoordSystem3dState,\n AuxCoordSystemSpatialState,\n AuxCoordSystemState,\n BackgroundFill,\n BackgroundMapType,\n BatchType,\n BeButton,\n BeButtonEvent,\n BeButtonState,\n BeModifierKeys,\n BeTouchEvent,\n BeWheelEvent,\n BingElevationProvider,\n BingLocationProvider,\n BisCodeSpec,\n BriefcaseIdValue,\n CategorySelectorState,\n ChangeFlags,\n ChangeOpCode,\n ChangedValueState,\n ChangesetType,\n ClipEventType,\n ClipIntersectionStyle,\n Cluster,\n ColorByName,\n ColorDef,\n CommonLoggerCategory,\n ContextRealityModelState,\n ContextRotationId,\n CoordSource,\n CoordSystem,\n CoordinateLockOverrides,\n DecorateContext,\n Decorations,\n DisclosedTileTreeSet,\n DisplayStyle2dState,\n DisplayStyle3dState,\n DisplayStyleState,\n DrawingModelState,\n DrawingViewState,\n ECSqlSystemProperty,\n ECSqlValueType,\n EditManipulator,\n ElementGeometryOpcode,\n ElementLocateManager,\n ElementPicker,\n ElementState,\n EmphasizeElements,\n EntityState,\n EventController,\n EventHandled,\n FeatureOverrideType,\n FeatureSymbology,\n FillDisplay,\n FillFlags,\n FlashMode,\n FlashSettings,\n FontType,\n FrontendLoggerCategory,\n FrustumAnimator,\n FrustumPlanes,\n GeoCoordStatus,\n GeometricModel2dState,\n GeometricModel3dState,\n GeometricModelState,\n GeometryClass,\n GeometryStreamFlags,\n GeometrySummaryVerbosity,\n GlobeAnimator,\n GlobeMode,\n GraphicAssembler,\n GraphicBranch,\n GraphicBuilder,\n GraphicType,\n GridOrientationType,\n HSVConstants,\n HiliteSet,\n HitDetail,\n HitDetailType,\n HitGeomType,\n HitList,\n HitParentGeomType,\n HitPriority,\n HitSource,\n IModelConnection,\n IconSprites,\n ImageBufferFormat,\n ImageSourceFormat,\n InputCollector,\n InputSource,\n InteractiveTool,\n IntersectDetail,\n KeyinParseError,\n LinePixels,\n LocateAction,\n LocateFilterStatus,\n LocateOptions,\n LocateResponse,\n ManipulatorToolEvent,\n MarginPercent,\n Marker,\n MarkerSet,\n MassPropertiesOperation,\n MessageBoxIconType,\n MessageBoxType,\n MessageBoxValue,\n ModelSelectorState,\n ModelState,\n MonochromeMode,\n NotificationHandler,\n NotificationManager,\n NotifyMessageDetails,\n Npc,\n OffScreenViewport,\n OrthographicViewState,\n OutputMessageAlert,\n OutputMessagePriority,\n OutputMessageType,\n ParseAndRunResult,\n ParticleCollectionBuilder,\n PerModelCategoryVisibility,\n PhysicalModelState,\n Pixel,\n PlanarClipMaskMode,\n PlanarClipMaskPriority,\n PrimitiveTool,\n QParams2d,\n QParams3d,\n QPoint2d,\n QPoint2dBuffer,\n QPoint2dBufferBuilder,\n QPoint2dList,\n QPoint3d,\n QPoint3dBuffer,\n QPoint3dBufferBuilder,\n QPoint3dList,\n Quantization,\n QueryRowFormat,\n Rank,\n RenderClipVolume,\n RenderContext,\n RenderGraphic,\n RenderGraphicOwner,\n RenderMode,\n RenderSystem,\n Scene,\n ScreenViewport,\n SectionDrawingModelState,\n SectionType,\n SelectionMethod,\n SelectionMode,\n SelectionProcessing,\n SelectionSet,\n SelectionSetEventType,\n SheetModelState,\n SheetViewState,\n SkyBoxImageType,\n SnapDetail,\n SnapHeat,\n SnapMode,\n SnapStatus,\n SpatialClassifierInsideDisplay,\n SpatialClassifierOutsideDisplay,\n SpatialLocationModelState,\n SpatialModelState,\n SpatialViewState,\n Sprite,\n SpriteLocation,\n StandardViewId,\n StartOrResume,\n SyncMode,\n TentativePoint,\n TerrainHeightOriginMode,\n TextureMapUnits,\n ThematicDisplayMode,\n ThematicGradientColorScheme,\n ThematicGradientMode,\n ThematicGradientTransparencyMode,\n Tile,\n TileAdmin,\n TileBoundingBoxes,\n TileDrawArgs,\n TileGraphicType,\n TileLoadPriority,\n TileLoadStatus,\n TileRequest,\n TileRequestChannel,\n TileRequestChannelStatistics,\n TileRequestChannels,\n TileTree,\n TileTreeLoadStatus,\n TileTreeReference,\n TileUsageMarker,\n TileVisibility,\n Tiles,\n Tool,\n ToolAdmin,\n ToolAssistance,\n ToolAssistanceImage,\n ToolAssistanceInputMethod,\n ToolSettings,\n TwoWayViewportFrustumSync,\n TwoWayViewportSync,\n TxnAction,\n TypeOfChange,\n UniformType,\n VaryingType,\n ViewClipClearTool,\n ViewClipDecoration,\n ViewClipDecorationProvider,\n ViewClipTool,\n ViewCreator2d,\n ViewCreator3d,\n ViewManager,\n ViewManip,\n ViewPose,\n ViewPose2d,\n ViewPose3d,\n ViewRect,\n ViewState,\n ViewState2d,\n ViewState3d,\n ViewStatus,\n ViewTool,\n ViewingSpace,\n Viewport,\n canvasToImageBuffer,\n canvasToResizedCanvasWithBars,\n connectViewportFrusta,\n connectViewportViews,\n connectViewports,\n extractImageSourceDimensions,\n getCompressedJpegFromCanvas,\n getImageSourceFormatForMimeType,\n getImageSourceMimeType,\n imageBufferToBase64EncodedPng,\n imageBufferToCanvas,\n imageBufferToPngDataUrl,\n imageElementFromImageSource,\n imageElementFromUrl,\n queryTerrainElevationOffset,\n readElementGraphics,\n readGltfGraphics,\n synchronizeViewportFrusta,\n synchronizeViewportViews,\n};\n\n// END GENERATED CODE\n\nconst getExtensionApi = (_id: string) => {\n return {\n exports: {\n // exceptions\n ExtensionHost,\n // automated\n ...extensionExports,\n },\n };\n};\n\n(globalThis as any)[globalSymbol] = {\n stack: new Error().stack,\n getExtensionApi,\n};"]}
@@ -13,7 +13,7 @@
13
13
  * @internal
14
14
  */
15
15
  export async function loadScript(jsUrl) {
16
- const module = await import(/* @vite-ignore */ jsUrl);
16
+ const module = await import(/* webpackIgnore: true */ /* @vite-ignore */ jsUrl);
17
17
  return execute(module);
18
18
  }
19
19
  /** attempts to execute an extension module */
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACtD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAED,8CAA8C;AAC9C,SAAS,OAAO,CAAC,CAAM;IACrB,IAAI,OAAO,CAAC,KAAK,UAAU;QACzB,OAAO,CAAC,EAAE,CAAC;IACb,IAAI,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,UAAU;QACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,UAAU;QAC9C,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IACrB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/**\n * Imports and executes a bundled javascript (esm) module.\n * Used by remote and service Extensions.\n * Throws an error if no function is found to execute.\n * Looks for a function in the following order:\n * - the module itself.\n * - the module's main export.\n * - the module's default export.\n * @internal\n */\nexport async function loadScript(jsUrl: string): Promise<any> {\n const module = await import(/* @vite-ignore */ jsUrl);\n return execute(module);\n}\n\n/** attempts to execute an extension module */\nfunction execute(m: any) {\n if (typeof m === \"function\")\n return m();\n if (m.main && typeof m.main === \"function\")\n return m.main();\n if (m.default && typeof m.default === \"function\")\n return m.default();\n throw new Error(\n `Failed to execute extension. No default function was found to execute.`,\n );\n}\n"]}
1
+ {"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAChF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAED,8CAA8C;AAC9C,SAAS,OAAO,CAAC,CAAM;IACrB,IAAI,OAAO,CAAC,KAAK,UAAU;QACzB,OAAO,CAAC,EAAE,CAAC;IACb,IAAI,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,UAAU;QACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,UAAU;QAC9C,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IACrB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/**\n * Imports and executes a bundled javascript (esm) module.\n * Used by remote and service Extensions.\n * Throws an error if no function is found to execute.\n * Looks for a function in the following order:\n * - the module itself.\n * - the module's main export.\n * - the module's default export.\n * @internal\n */\nexport async function loadScript(jsUrl: string): Promise<any> {\n const module = await import(/* webpackIgnore: true */ /* @vite-ignore */ jsUrl);\n return execute(module);\n}\n\n/** attempts to execute an extension module */\nfunction execute(m: any) {\n if (typeof m === \"function\")\n return m();\n if (m.main && typeof m.main === \"function\")\n return m.main();\n if (m.default && typeof m.default === \"function\")\n return m.default();\n throw new Error(\n `Failed to execute extension. No default function was found to execute.`,\n );\n}\n"]}