@itwin/core-frontend 3.5.0-dev.8 → 3.5.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 (640) hide show
  1. package/CHANGELOG.md +103 -1
  2. package/lib/cjs/AccuSnap.d.ts +7 -1
  3. package/lib/cjs/AccuSnap.d.ts.map +1 -1
  4. package/lib/cjs/AccuSnap.js +26 -3
  5. package/lib/cjs/AccuSnap.js.map +1 -1
  6. package/lib/cjs/BriefcaseConnection.d.ts +28 -1
  7. package/lib/cjs/BriefcaseConnection.d.ts.map +1 -1
  8. package/lib/cjs/BriefcaseConnection.js +29 -8
  9. package/lib/cjs/BriefcaseConnection.js.map +1 -1
  10. package/lib/cjs/BriefcaseTxns.js +9 -9
  11. package/lib/cjs/BriefcaseTxns.js.map +1 -1
  12. package/lib/cjs/GraphicalEditingScope.js +2 -2
  13. package/lib/cjs/GraphicalEditingScope.js.map +1 -1
  14. package/lib/cjs/IModelApp.d.ts +6 -0
  15. package/lib/cjs/IModelApp.d.ts.map +1 -1
  16. package/lib/cjs/IModelApp.js +6 -0
  17. package/lib/cjs/IModelApp.js.map +1 -1
  18. package/lib/cjs/IModelConnection.d.ts +32 -2
  19. package/lib/cjs/IModelConnection.d.ts.map +1 -1
  20. package/lib/cjs/IModelConnection.js +44 -6
  21. package/lib/cjs/IModelConnection.js.map +1 -1
  22. package/lib/cjs/IpcApp.d.ts +14 -1
  23. package/lib/cjs/IpcApp.d.ts.map +1 -1
  24. package/lib/cjs/IpcApp.js +25 -0
  25. package/lib/cjs/IpcApp.js.map +1 -1
  26. package/lib/cjs/MarginPercent.d.ts +27 -2
  27. package/lib/cjs/MarginPercent.d.ts.map +1 -1
  28. package/lib/cjs/MarginPercent.js +8 -2
  29. package/lib/cjs/MarginPercent.js.map +1 -1
  30. package/lib/cjs/ModelState.d.ts +2 -1
  31. package/lib/cjs/ModelState.d.ts.map +1 -1
  32. package/lib/cjs/ModelState.js +5 -3
  33. package/lib/cjs/ModelState.js.map +1 -1
  34. package/lib/cjs/NativeApp.d.ts +5 -1
  35. package/lib/cjs/NativeApp.d.ts.map +1 -1
  36. package/lib/cjs/NativeApp.js +25 -20
  37. package/lib/cjs/NativeApp.js.map +1 -1
  38. package/lib/cjs/NativeAppLogger.js +1 -1
  39. package/lib/cjs/NativeAppLogger.js.map +1 -1
  40. package/lib/cjs/RealityDataSource.d.ts +44 -1
  41. package/lib/cjs/RealityDataSource.d.ts.map +1 -1
  42. package/lib/cjs/RealityDataSource.js +41 -14
  43. package/lib/cjs/RealityDataSource.js.map +1 -1
  44. package/lib/cjs/RealityDataSourceCesiumIonAssetImpl.d.ts +1 -0
  45. package/lib/cjs/RealityDataSourceCesiumIonAssetImpl.d.ts.map +1 -1
  46. package/lib/cjs/RealityDataSourceCesiumIonAssetImpl.js +3 -0
  47. package/lib/cjs/RealityDataSourceCesiumIonAssetImpl.js.map +1 -1
  48. package/lib/cjs/RealityDataSourceContextShareImpl.d.ts +1 -0
  49. package/lib/cjs/RealityDataSourceContextShareImpl.d.ts.map +1 -1
  50. package/lib/cjs/RealityDataSourceContextShareImpl.js +3 -0
  51. package/lib/cjs/RealityDataSourceContextShareImpl.js.map +1 -1
  52. package/lib/cjs/RealityDataSourceTilesetUrlImpl.d.ts +1 -0
  53. package/lib/cjs/RealityDataSourceTilesetUrlImpl.d.ts.map +1 -1
  54. package/lib/cjs/RealityDataSourceTilesetUrlImpl.js +3 -0
  55. package/lib/cjs/RealityDataSourceTilesetUrlImpl.js.map +1 -1
  56. package/lib/cjs/ViewAnimation.d.ts +10 -2
  57. package/lib/cjs/ViewAnimation.d.ts.map +1 -1
  58. package/lib/cjs/ViewAnimation.js.map +1 -1
  59. package/lib/cjs/ViewCreator2d.js +3 -2
  60. package/lib/cjs/ViewCreator2d.js.map +1 -1
  61. package/lib/cjs/ViewPose.d.ts +62 -10
  62. package/lib/cjs/ViewPose.d.ts.map +1 -1
  63. package/lib/cjs/ViewPose.js +37 -8
  64. package/lib/cjs/ViewPose.js.map +1 -1
  65. package/lib/cjs/ViewState.d.ts +18 -10
  66. package/lib/cjs/ViewState.d.ts.map +1 -1
  67. package/lib/cjs/ViewState.js +39 -15
  68. package/lib/cjs/ViewState.js.map +1 -1
  69. package/lib/cjs/Viewport.d.ts.map +1 -1
  70. package/lib/cjs/Viewport.js +7 -2
  71. package/lib/cjs/Viewport.js.map +1 -1
  72. package/lib/cjs/extension/ExtensionRuntime.js +13 -0
  73. package/lib/cjs/extension/ExtensionRuntime.js.map +1 -1
  74. package/lib/cjs/render/GraphicBranch.d.ts +3 -0
  75. package/lib/cjs/render/GraphicBranch.d.ts.map +1 -1
  76. package/lib/cjs/render/GraphicBranch.js.map +1 -1
  77. package/lib/cjs/render/RealityMeshParams.d.ts +3 -4
  78. package/lib/cjs/render/RealityMeshParams.d.ts.map +1 -1
  79. package/lib/cjs/render/RealityMeshParams.js +9 -3
  80. package/lib/cjs/render/RealityMeshParams.js.map +1 -1
  81. package/lib/cjs/render/RenderMaterial.d.ts +3 -1
  82. package/lib/cjs/render/RenderMaterial.d.ts.map +1 -1
  83. package/lib/cjs/render/RenderMaterial.js.map +1 -1
  84. package/lib/cjs/render/RenderTarget.d.ts +1 -0
  85. package/lib/cjs/render/RenderTarget.d.ts.map +1 -1
  86. package/lib/cjs/render/RenderTarget.js.map +1 -1
  87. package/lib/cjs/render/primitives/SurfaceParams.d.ts +0 -1
  88. package/lib/cjs/render/primitives/SurfaceParams.d.ts.map +1 -1
  89. package/lib/cjs/render/primitives/SurfaceParams.js.map +1 -1
  90. package/lib/cjs/render/primitives/VertexTable.d.ts.map +1 -1
  91. package/lib/cjs/render/primitives/VertexTable.js +0 -1
  92. package/lib/cjs/render/primitives/VertexTable.js.map +1 -1
  93. package/lib/cjs/render/primitives/VertexTableSplitter.d.ts.map +1 -1
  94. package/lib/cjs/render/primitives/VertexTableSplitter.js +0 -1
  95. package/lib/cjs/render/primitives/VertexTableSplitter.js.map +1 -1
  96. package/lib/cjs/render/primitives/mesh/MeshPrimitives.d.ts +0 -1
  97. package/lib/cjs/render/primitives/mesh/MeshPrimitives.d.ts.map +1 -1
  98. package/lib/cjs/render/primitives/mesh/MeshPrimitives.js +0 -1
  99. package/lib/cjs/render/primitives/mesh/MeshPrimitives.js.map +1 -1
  100. package/lib/cjs/render/webgl/BackgroundMapDrape.js +2 -2
  101. package/lib/cjs/render/webgl/CachedGeometry.d.ts +32 -0
  102. package/lib/cjs/render/webgl/CachedGeometry.d.ts.map +1 -1
  103. package/lib/cjs/render/webgl/CachedGeometry.js +74 -1
  104. package/lib/cjs/render/webgl/CachedGeometry.js.map +1 -1
  105. package/lib/cjs/render/webgl/DrawCommand.js +3 -3
  106. package/lib/cjs/render/webgl/EDL.d.ts +40 -0
  107. package/lib/cjs/render/webgl/EDL.d.ts.map +1 -0
  108. package/lib/cjs/render/webgl/EDL.js +264 -0
  109. package/lib/cjs/render/webgl/EDL.js.map +1 -0
  110. package/lib/cjs/render/webgl/EdgeSettings.js +2 -2
  111. package/lib/cjs/render/webgl/FeatureOverrides.d.ts +0 -1
  112. package/lib/cjs/render/webgl/FeatureOverrides.d.ts.map +1 -1
  113. package/lib/cjs/render/webgl/FeatureOverrides.js +16 -11
  114. package/lib/cjs/render/webgl/FeatureOverrides.js.map +1 -1
  115. package/lib/cjs/render/webgl/FrameBuffer.d.ts +4 -0
  116. package/lib/cjs/render/webgl/FrameBuffer.d.ts.map +1 -1
  117. package/lib/cjs/render/webgl/FrameBuffer.js +9 -0
  118. package/lib/cjs/render/webgl/FrameBuffer.js.map +1 -1
  119. package/lib/cjs/render/webgl/FrustumUniforms.d.ts +7 -0
  120. package/lib/cjs/render/webgl/FrustumUniforms.d.ts.map +1 -1
  121. package/lib/cjs/render/webgl/FrustumUniforms.js.map +1 -1
  122. package/lib/cjs/render/webgl/Layer.js +2 -2
  123. package/lib/cjs/render/webgl/LayerCommands.js +2 -2
  124. package/lib/cjs/render/webgl/MeshData.d.ts +1 -1
  125. package/lib/cjs/render/webgl/MeshData.d.ts.map +1 -1
  126. package/lib/cjs/render/webgl/MeshData.js +13 -1
  127. package/lib/cjs/render/webgl/MeshData.js.map +1 -1
  128. package/lib/cjs/render/webgl/MeshGeometry.d.ts +1 -1
  129. package/lib/cjs/render/webgl/MeshGeometry.d.ts.map +1 -1
  130. package/lib/cjs/render/webgl/MeshGeometry.js +1 -1
  131. package/lib/cjs/render/webgl/MeshGeometry.js.map +1 -1
  132. package/lib/cjs/render/webgl/PlanarClassifier.js +7 -7
  133. package/lib/cjs/render/webgl/PlanarClassifier.js.map +1 -1
  134. package/lib/cjs/render/webgl/PointCloud.d.ts +2 -2
  135. package/lib/cjs/render/webgl/PointCloud.d.ts.map +1 -1
  136. package/lib/cjs/render/webgl/PointCloud.js +2 -0
  137. package/lib/cjs/render/webgl/PointCloud.js.map +1 -1
  138. package/lib/cjs/render/webgl/RealityMesh.d.ts +3 -1
  139. package/lib/cjs/render/webgl/RealityMesh.d.ts.map +1 -1
  140. package/lib/cjs/render/webgl/RealityMesh.js +8 -3
  141. package/lib/cjs/render/webgl/RealityMesh.js.map +1 -1
  142. package/lib/cjs/render/webgl/RealityModelUniforms.d.ts +9 -0
  143. package/lib/cjs/render/webgl/RealityModelUniforms.d.ts.map +1 -1
  144. package/lib/cjs/render/webgl/RealityModelUniforms.js +50 -0
  145. package/lib/cjs/render/webgl/RealityModelUniforms.js.map +1 -1
  146. package/lib/cjs/render/webgl/RenderCommands.js +30 -30
  147. package/lib/cjs/render/webgl/RenderCommands.js.map +1 -1
  148. package/lib/cjs/render/webgl/RenderFlags.d.ts +33 -21
  149. package/lib/cjs/render/webgl/RenderFlags.d.ts.map +1 -1
  150. package/lib/cjs/render/webgl/RenderFlags.js +10 -6
  151. package/lib/cjs/render/webgl/RenderFlags.js.map +1 -1
  152. package/lib/cjs/render/webgl/SceneCompositor.d.ts +5 -0
  153. package/lib/cjs/render/webgl/SceneCompositor.d.ts.map +1 -1
  154. package/lib/cjs/render/webgl/SceneCompositor.js +192 -73
  155. package/lib/cjs/render/webgl/SceneCompositor.js.map +1 -1
  156. package/lib/cjs/render/webgl/ShaderBuilder.d.ts +2 -1
  157. package/lib/cjs/render/webgl/ShaderBuilder.d.ts.map +1 -1
  158. package/lib/cjs/render/webgl/ShaderBuilder.js +6 -1
  159. package/lib/cjs/render/webgl/ShaderBuilder.js.map +1 -1
  160. package/lib/cjs/render/webgl/SolarShadowMap.js +2 -2
  161. package/lib/cjs/render/webgl/SurfaceGeometry.d.ts +3 -1
  162. package/lib/cjs/render/webgl/SurfaceGeometry.d.ts.map +1 -1
  163. package/lib/cjs/render/webgl/SurfaceGeometry.js +22 -11
  164. package/lib/cjs/render/webgl/SurfaceGeometry.js.map +1 -1
  165. package/lib/cjs/render/webgl/System.d.ts +1 -1
  166. package/lib/cjs/render/webgl/System.d.ts.map +1 -1
  167. package/lib/cjs/render/webgl/System.js +1 -0
  168. package/lib/cjs/render/webgl/System.js.map +1 -1
  169. package/lib/cjs/render/webgl/Target.d.ts +1 -0
  170. package/lib/cjs/render/webgl/Target.d.ts.map +1 -1
  171. package/lib/cjs/render/webgl/Target.js +4 -3
  172. package/lib/cjs/render/webgl/Target.js.map +1 -1
  173. package/lib/cjs/render/webgl/Technique.d.ts.map +1 -1
  174. package/lib/cjs/render/webgl/Technique.js +18 -3
  175. package/lib/cjs/render/webgl/Technique.js.map +1 -1
  176. package/lib/cjs/render/webgl/TechniqueFlags.js +4 -4
  177. package/lib/cjs/render/webgl/TechniqueFlags.js.map +1 -1
  178. package/lib/cjs/render/webgl/TechniqueId.d.ts +6 -2
  179. package/lib/cjs/render/webgl/TechniqueId.d.ts.map +1 -1
  180. package/lib/cjs/render/webgl/TechniqueId.js.map +1 -1
  181. package/lib/cjs/render/webgl/UniformHandle.d.ts.map +1 -1
  182. package/lib/cjs/render/webgl/UniformHandle.js +1 -2
  183. package/lib/cjs/render/webgl/UniformHandle.js.map +1 -1
  184. package/lib/cjs/render/webgl/VisibleTileFeatures.js +5 -5
  185. package/lib/cjs/render/webgl/glsl/Animation.d.ts.map +1 -1
  186. package/lib/cjs/render/webgl/glsl/Animation.js +2 -1
  187. package/lib/cjs/render/webgl/glsl/Animation.js.map +1 -1
  188. package/lib/cjs/render/webgl/glsl/Common.d.ts +3 -1
  189. package/lib/cjs/render/webgl/glsl/Common.d.ts.map +1 -1
  190. package/lib/cjs/render/webgl/glsl/Common.js +28 -33
  191. package/lib/cjs/render/webgl/glsl/Common.js.map +1 -1
  192. package/lib/cjs/render/webgl/glsl/EDL.d.ts +14 -0
  193. package/lib/cjs/render/webgl/glsl/EDL.d.ts.map +1 -0
  194. package/lib/cjs/render/webgl/glsl/EDL.js +260 -0
  195. package/lib/cjs/render/webgl/glsl/EDL.js.map +1 -0
  196. package/lib/cjs/render/webgl/glsl/FeatureSymbology.d.ts.map +1 -1
  197. package/lib/cjs/render/webgl/glsl/FeatureSymbology.js +9 -1
  198. package/lib/cjs/render/webgl/glsl/FeatureSymbology.js.map +1 -1
  199. package/lib/cjs/render/webgl/glsl/Lighting.d.ts.map +1 -1
  200. package/lib/cjs/render/webgl/glsl/Lighting.js +6 -8
  201. package/lib/cjs/render/webgl/glsl/Lighting.js.map +1 -1
  202. package/lib/cjs/render/webgl/glsl/PointCloud.d.ts.map +1 -1
  203. package/lib/cjs/render/webgl/glsl/PointCloud.js +8 -3
  204. package/lib/cjs/render/webgl/glsl/PointCloud.js.map +1 -1
  205. package/lib/cjs/render/webgl/glsl/RealityMesh.d.ts +1 -0
  206. package/lib/cjs/render/webgl/glsl/RealityMesh.d.ts.map +1 -1
  207. package/lib/cjs/render/webgl/glsl/RealityMesh.js +6 -1
  208. package/lib/cjs/render/webgl/glsl/RealityMesh.js.map +1 -1
  209. package/lib/cjs/render/webgl/glsl/RenderPass.js +12 -12
  210. package/lib/cjs/render/webgl/glsl/RenderPass.js.map +1 -1
  211. package/lib/cjs/render/webgl/glsl/SolarShadowMapping.d.ts.map +1 -1
  212. package/lib/cjs/render/webgl/glsl/SolarShadowMapping.js +1 -4
  213. package/lib/cjs/render/webgl/glsl/SolarShadowMapping.js.map +1 -1
  214. package/lib/cjs/render/webgl/glsl/Surface.d.ts +1 -1
  215. package/lib/cjs/render/webgl/glsl/Surface.d.ts.map +1 -1
  216. package/lib/cjs/render/webgl/glsl/Surface.js +87 -15
  217. package/lib/cjs/render/webgl/glsl/Surface.js.map +1 -1
  218. package/lib/cjs/render/webgl/glsl/Thematic.d.ts.map +1 -1
  219. package/lib/cjs/render/webgl/glsl/Thematic.js +2 -6
  220. package/lib/cjs/render/webgl/glsl/Thematic.js.map +1 -1
  221. package/lib/cjs/tile/DynamicIModelTile.js +1 -1
  222. package/lib/cjs/tile/DynamicIModelTile.js.map +1 -1
  223. package/lib/cjs/tile/GltfReader.d.ts +13 -2
  224. package/lib/cjs/tile/GltfReader.d.ts.map +1 -1
  225. package/lib/cjs/tile/GltfReader.js +67 -23
  226. package/lib/cjs/tile/GltfReader.js.map +1 -1
  227. package/lib/cjs/tile/IModelTile.js +1 -1
  228. package/lib/cjs/tile/IModelTile.js.map +1 -1
  229. package/lib/cjs/tile/IModelTileRequestChannels.js +1 -1
  230. package/lib/cjs/tile/IModelTileRequestChannels.js.map +1 -1
  231. package/lib/cjs/tile/ImdlReader.d.ts +5 -0
  232. package/lib/cjs/tile/ImdlReader.d.ts.map +1 -1
  233. package/lib/cjs/tile/ImdlReader.js +14 -7
  234. package/lib/cjs/tile/ImdlReader.js.map +1 -1
  235. package/lib/cjs/tile/PrimaryTileTree.js +2 -2
  236. package/lib/cjs/tile/PrimaryTileTree.js.map +1 -1
  237. package/lib/cjs/tile/RealityModelTileTree.d.ts.map +1 -1
  238. package/lib/cjs/tile/RealityModelTileTree.js +52 -20
  239. package/lib/cjs/tile/RealityModelTileTree.js.map +1 -1
  240. package/lib/cjs/tile/RealityTile.d.ts +2 -2
  241. package/lib/cjs/tile/RealityTile.d.ts.map +1 -1
  242. package/lib/cjs/tile/RealityTile.js +11 -4
  243. package/lib/cjs/tile/RealityTile.js.map +1 -1
  244. package/lib/cjs/tile/RealityTileLoader.d.ts +1 -0
  245. package/lib/cjs/tile/RealityTileLoader.d.ts.map +1 -1
  246. package/lib/cjs/tile/RealityTileLoader.js +15 -2
  247. package/lib/cjs/tile/RealityTileLoader.js.map +1 -1
  248. package/lib/cjs/tile/RealityTileTree.js +1 -1
  249. package/lib/cjs/tile/RealityTileTree.js.map +1 -1
  250. package/lib/cjs/tile/Tile.d.ts +5 -0
  251. package/lib/cjs/tile/Tile.d.ts.map +1 -1
  252. package/lib/cjs/tile/Tile.js +5 -0
  253. package/lib/cjs/tile/Tile.js.map +1 -1
  254. package/lib/cjs/tile/TileAdmin.d.ts.map +1 -1
  255. package/lib/cjs/tile/TileAdmin.js +13 -6
  256. package/lib/cjs/tile/TileAdmin.js.map +1 -1
  257. package/lib/cjs/tile/TileDrawArgs.d.ts +5 -1
  258. package/lib/cjs/tile/TileDrawArgs.d.ts.map +1 -1
  259. package/lib/cjs/tile/TileDrawArgs.js +2 -0
  260. package/lib/cjs/tile/TileDrawArgs.js.map +1 -1
  261. package/lib/cjs/tile/TileRequestChannels.js +1 -1
  262. package/lib/cjs/tile/TileRequestChannels.js.map +1 -1
  263. package/lib/cjs/tile/TileStorage.d.ts.map +1 -1
  264. package/lib/cjs/tile/TileStorage.js +12 -6
  265. package/lib/cjs/tile/TileStorage.js.map +1 -1
  266. package/lib/cjs/tile/internal.d.ts +1 -0
  267. package/lib/cjs/tile/internal.d.ts.map +1 -1
  268. package/lib/cjs/tile/internal.js +1 -0
  269. package/lib/cjs/tile/internal.js.map +1 -1
  270. package/lib/cjs/tile/map/ArcGISTileMap.d.ts +5 -2
  271. package/lib/cjs/tile/map/ArcGISTileMap.d.ts.map +1 -1
  272. package/lib/cjs/tile/map/ArcGISTileMap.js +17 -2
  273. package/lib/cjs/tile/map/ArcGISTileMap.js.map +1 -1
  274. package/lib/cjs/tile/map/ArcGisUtilities.d.ts +51 -5
  275. package/lib/cjs/tile/map/ArcGisUtilities.d.ts.map +1 -1
  276. package/lib/cjs/tile/map/ArcGisUtilities.js +120 -48
  277. package/lib/cjs/tile/map/ArcGisUtilities.js.map +1 -1
  278. package/lib/cjs/tile/map/CesiumTerrainProvider.js +9 -9
  279. package/lib/cjs/tile/map/CesiumTerrainProvider.js.map +1 -1
  280. package/lib/cjs/tile/map/ImageryProviders/ArcGISImageryProvider.d.ts +26 -0
  281. package/lib/cjs/tile/map/ImageryProviders/ArcGISImageryProvider.d.ts.map +1 -0
  282. package/lib/cjs/tile/map/ImageryProviders/ArcGISImageryProvider.js +97 -0
  283. package/lib/cjs/tile/map/ImageryProviders/ArcGISImageryProvider.js.map +1 -0
  284. package/lib/cjs/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts +2 -4
  285. package/lib/cjs/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts.map +1 -1
  286. package/lib/cjs/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js +11 -96
  287. package/lib/cjs/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js.map +1 -1
  288. package/lib/cjs/tile/map/ImageryProviders/WmsMapLayerImageryProvider.d.ts.map +1 -1
  289. package/lib/cjs/tile/map/ImageryProviders/WmsMapLayerImageryProvider.js +2 -1
  290. package/lib/cjs/tile/map/ImageryProviders/WmsMapLayerImageryProvider.js.map +1 -1
  291. package/lib/cjs/tile/map/ImageryTileTree.d.ts +2 -0
  292. package/lib/cjs/tile/map/ImageryTileTree.d.ts.map +1 -1
  293. package/lib/cjs/tile/map/ImageryTileTree.js +6 -4
  294. package/lib/cjs/tile/map/ImageryTileTree.js.map +1 -1
  295. package/lib/cjs/tile/map/MapLayerFormatRegistry.d.ts +18 -4
  296. package/lib/cjs/tile/map/MapLayerFormatRegistry.d.ts.map +1 -1
  297. package/lib/cjs/tile/map/MapLayerFormatRegistry.js +25 -5
  298. package/lib/cjs/tile/map/MapLayerFormatRegistry.js.map +1 -1
  299. package/lib/cjs/tile/map/MapLayerImageryFormats.d.ts +6 -4
  300. package/lib/cjs/tile/map/MapLayerImageryFormats.d.ts.map +1 -1
  301. package/lib/cjs/tile/map/MapLayerImageryFormats.js +12 -16
  302. package/lib/cjs/tile/map/MapLayerImageryFormats.js.map +1 -1
  303. package/lib/cjs/tile/map/MapLayerImageryProvider.d.ts +26 -5
  304. package/lib/cjs/tile/map/MapLayerImageryProvider.d.ts.map +1 -1
  305. package/lib/cjs/tile/map/MapLayerImageryProvider.js +69 -48
  306. package/lib/cjs/tile/map/MapLayerImageryProvider.js.map +1 -1
  307. package/lib/cjs/tile/map/MapLayerSources.js +1 -1
  308. package/lib/cjs/tile/map/MapLayerSources.js.map +1 -1
  309. package/lib/cjs/tile/map/WmsCapabilities.d.ts.map +1 -1
  310. package/lib/cjs/tile/map/WmsCapabilities.js +4 -1
  311. package/lib/cjs/tile/map/WmsCapabilities.js.map +1 -1
  312. package/lib/cjs/tools/EditManipulator.d.ts.map +1 -1
  313. package/lib/cjs/tools/EditManipulator.js +2 -1
  314. package/lib/cjs/tools/EditManipulator.js.map +1 -1
  315. package/lib/cjs/tools/Tool.js +1 -1
  316. package/lib/cjs/tools/Tool.js.map +1 -1
  317. package/lib/cjs/tools/ToolAdmin.d.ts.map +1 -1
  318. package/lib/cjs/tools/ToolAdmin.js +6 -4
  319. package/lib/cjs/tools/ToolAdmin.js.map +1 -1
  320. package/lib/esm/AccuSnap.d.ts +7 -1
  321. package/lib/esm/AccuSnap.d.ts.map +1 -1
  322. package/lib/esm/AccuSnap.js +27 -4
  323. package/lib/esm/AccuSnap.js.map +1 -1
  324. package/lib/esm/BriefcaseConnection.d.ts +28 -1
  325. package/lib/esm/BriefcaseConnection.d.ts.map +1 -1
  326. package/lib/esm/BriefcaseConnection.js +30 -9
  327. package/lib/esm/BriefcaseConnection.js.map +1 -1
  328. package/lib/esm/BriefcaseTxns.js +9 -9
  329. package/lib/esm/BriefcaseTxns.js.map +1 -1
  330. package/lib/esm/GraphicalEditingScope.js +2 -2
  331. package/lib/esm/GraphicalEditingScope.js.map +1 -1
  332. package/lib/esm/IModelApp.d.ts +6 -0
  333. package/lib/esm/IModelApp.d.ts.map +1 -1
  334. package/lib/esm/IModelApp.js +6 -0
  335. package/lib/esm/IModelApp.js.map +1 -1
  336. package/lib/esm/IModelConnection.d.ts +32 -2
  337. package/lib/esm/IModelConnection.d.ts.map +1 -1
  338. package/lib/esm/IModelConnection.js +44 -6
  339. package/lib/esm/IModelConnection.js.map +1 -1
  340. package/lib/esm/IpcApp.d.ts +14 -1
  341. package/lib/esm/IpcApp.d.ts.map +1 -1
  342. package/lib/esm/IpcApp.js +25 -0
  343. package/lib/esm/IpcApp.js.map +1 -1
  344. package/lib/esm/MarginPercent.d.ts +27 -2
  345. package/lib/esm/MarginPercent.d.ts.map +1 -1
  346. package/lib/esm/MarginPercent.js +8 -2
  347. package/lib/esm/MarginPercent.js.map +1 -1
  348. package/lib/esm/ModelState.d.ts +2 -1
  349. package/lib/esm/ModelState.d.ts.map +1 -1
  350. package/lib/esm/ModelState.js +5 -3
  351. package/lib/esm/ModelState.js.map +1 -1
  352. package/lib/esm/NativeApp.d.ts +5 -1
  353. package/lib/esm/NativeApp.d.ts.map +1 -1
  354. package/lib/esm/NativeApp.js +25 -20
  355. package/lib/esm/NativeApp.js.map +1 -1
  356. package/lib/esm/NativeAppLogger.js +1 -1
  357. package/lib/esm/NativeAppLogger.js.map +1 -1
  358. package/lib/esm/RealityDataSource.d.ts +44 -1
  359. package/lib/esm/RealityDataSource.d.ts.map +1 -1
  360. package/lib/esm/RealityDataSource.js +39 -13
  361. package/lib/esm/RealityDataSource.js.map +1 -1
  362. package/lib/esm/RealityDataSourceCesiumIonAssetImpl.d.ts +1 -0
  363. package/lib/esm/RealityDataSourceCesiumIonAssetImpl.d.ts.map +1 -1
  364. package/lib/esm/RealityDataSourceCesiumIonAssetImpl.js +3 -0
  365. package/lib/esm/RealityDataSourceCesiumIonAssetImpl.js.map +1 -1
  366. package/lib/esm/RealityDataSourceContextShareImpl.d.ts +1 -0
  367. package/lib/esm/RealityDataSourceContextShareImpl.d.ts.map +1 -1
  368. package/lib/esm/RealityDataSourceContextShareImpl.js +3 -0
  369. package/lib/esm/RealityDataSourceContextShareImpl.js.map +1 -1
  370. package/lib/esm/RealityDataSourceTilesetUrlImpl.d.ts +1 -0
  371. package/lib/esm/RealityDataSourceTilesetUrlImpl.d.ts.map +1 -1
  372. package/lib/esm/RealityDataSourceTilesetUrlImpl.js +3 -0
  373. package/lib/esm/RealityDataSourceTilesetUrlImpl.js.map +1 -1
  374. package/lib/esm/ViewAnimation.d.ts +10 -2
  375. package/lib/esm/ViewAnimation.d.ts.map +1 -1
  376. package/lib/esm/ViewAnimation.js.map +1 -1
  377. package/lib/esm/ViewCreator2d.js +3 -2
  378. package/lib/esm/ViewCreator2d.js.map +1 -1
  379. package/lib/esm/ViewPose.d.ts +62 -10
  380. package/lib/esm/ViewPose.d.ts.map +1 -1
  381. package/lib/esm/ViewPose.js +37 -8
  382. package/lib/esm/ViewPose.js.map +1 -1
  383. package/lib/esm/ViewState.d.ts +18 -10
  384. package/lib/esm/ViewState.d.ts.map +1 -1
  385. package/lib/esm/ViewState.js +39 -15
  386. package/lib/esm/ViewState.js.map +1 -1
  387. package/lib/esm/Viewport.d.ts.map +1 -1
  388. package/lib/esm/Viewport.js +7 -2
  389. package/lib/esm/Viewport.js.map +1 -1
  390. package/lib/esm/extension/ExtensionRuntime.js +15 -2
  391. package/lib/esm/extension/ExtensionRuntime.js.map +1 -1
  392. package/lib/esm/render/GraphicBranch.d.ts +3 -0
  393. package/lib/esm/render/GraphicBranch.d.ts.map +1 -1
  394. package/lib/esm/render/GraphicBranch.js.map +1 -1
  395. package/lib/esm/render/RealityMeshParams.d.ts +3 -4
  396. package/lib/esm/render/RealityMeshParams.d.ts.map +1 -1
  397. package/lib/esm/render/RealityMeshParams.js +10 -4
  398. package/lib/esm/render/RealityMeshParams.js.map +1 -1
  399. package/lib/esm/render/RenderMaterial.d.ts +3 -1
  400. package/lib/esm/render/RenderMaterial.d.ts.map +1 -1
  401. package/lib/esm/render/RenderMaterial.js.map +1 -1
  402. package/lib/esm/render/RenderTarget.d.ts +1 -0
  403. package/lib/esm/render/RenderTarget.d.ts.map +1 -1
  404. package/lib/esm/render/RenderTarget.js.map +1 -1
  405. package/lib/esm/render/primitives/SurfaceParams.d.ts +0 -1
  406. package/lib/esm/render/primitives/SurfaceParams.d.ts.map +1 -1
  407. package/lib/esm/render/primitives/SurfaceParams.js.map +1 -1
  408. package/lib/esm/render/primitives/VertexTable.d.ts.map +1 -1
  409. package/lib/esm/render/primitives/VertexTable.js +0 -1
  410. package/lib/esm/render/primitives/VertexTable.js.map +1 -1
  411. package/lib/esm/render/primitives/VertexTableSplitter.d.ts.map +1 -1
  412. package/lib/esm/render/primitives/VertexTableSplitter.js +0 -1
  413. package/lib/esm/render/primitives/VertexTableSplitter.js.map +1 -1
  414. package/lib/esm/render/primitives/mesh/MeshPrimitives.d.ts +0 -1
  415. package/lib/esm/render/primitives/mesh/MeshPrimitives.d.ts.map +1 -1
  416. package/lib/esm/render/primitives/mesh/MeshPrimitives.js +0 -1
  417. package/lib/esm/render/primitives/mesh/MeshPrimitives.js.map +1 -1
  418. package/lib/esm/render/webgl/BackgroundMapDrape.js +2 -2
  419. package/lib/esm/render/webgl/CachedGeometry.d.ts +32 -0
  420. package/lib/esm/render/webgl/CachedGeometry.d.ts.map +1 -1
  421. package/lib/esm/render/webgl/CachedGeometry.js +69 -0
  422. package/lib/esm/render/webgl/CachedGeometry.js.map +1 -1
  423. package/lib/esm/render/webgl/DrawCommand.js +3 -3
  424. package/lib/esm/render/webgl/EDL.d.ts +40 -0
  425. package/lib/esm/render/webgl/EDL.d.ts.map +1 -0
  426. package/lib/esm/render/webgl/EDL.js +260 -0
  427. package/lib/esm/render/webgl/EDL.js.map +1 -0
  428. package/lib/esm/render/webgl/EdgeSettings.js +2 -2
  429. package/lib/esm/render/webgl/FeatureOverrides.d.ts +0 -1
  430. package/lib/esm/render/webgl/FeatureOverrides.d.ts.map +1 -1
  431. package/lib/esm/render/webgl/FeatureOverrides.js +16 -11
  432. package/lib/esm/render/webgl/FeatureOverrides.js.map +1 -1
  433. package/lib/esm/render/webgl/FrameBuffer.d.ts +4 -0
  434. package/lib/esm/render/webgl/FrameBuffer.d.ts.map +1 -1
  435. package/lib/esm/render/webgl/FrameBuffer.js +9 -0
  436. package/lib/esm/render/webgl/FrameBuffer.js.map +1 -1
  437. package/lib/esm/render/webgl/FrustumUniforms.d.ts +7 -0
  438. package/lib/esm/render/webgl/FrustumUniforms.d.ts.map +1 -1
  439. package/lib/esm/render/webgl/FrustumUniforms.js.map +1 -1
  440. package/lib/esm/render/webgl/Layer.js +2 -2
  441. package/lib/esm/render/webgl/LayerCommands.js +2 -2
  442. package/lib/esm/render/webgl/MeshData.d.ts +1 -1
  443. package/lib/esm/render/webgl/MeshData.d.ts.map +1 -1
  444. package/lib/esm/render/webgl/MeshData.js +13 -1
  445. package/lib/esm/render/webgl/MeshData.js.map +1 -1
  446. package/lib/esm/render/webgl/MeshGeometry.d.ts +1 -1
  447. package/lib/esm/render/webgl/MeshGeometry.d.ts.map +1 -1
  448. package/lib/esm/render/webgl/MeshGeometry.js +1 -1
  449. package/lib/esm/render/webgl/MeshGeometry.js.map +1 -1
  450. package/lib/esm/render/webgl/PlanarClassifier.js +7 -7
  451. package/lib/esm/render/webgl/PlanarClassifier.js.map +1 -1
  452. package/lib/esm/render/webgl/PointCloud.d.ts +2 -2
  453. package/lib/esm/render/webgl/PointCloud.d.ts.map +1 -1
  454. package/lib/esm/render/webgl/PointCloud.js +2 -0
  455. package/lib/esm/render/webgl/PointCloud.js.map +1 -1
  456. package/lib/esm/render/webgl/RealityMesh.d.ts +3 -1
  457. package/lib/esm/render/webgl/RealityMesh.d.ts.map +1 -1
  458. package/lib/esm/render/webgl/RealityMesh.js +8 -3
  459. package/lib/esm/render/webgl/RealityMesh.js.map +1 -1
  460. package/lib/esm/render/webgl/RealityModelUniforms.d.ts +9 -0
  461. package/lib/esm/render/webgl/RealityModelUniforms.d.ts.map +1 -1
  462. package/lib/esm/render/webgl/RealityModelUniforms.js +50 -0
  463. package/lib/esm/render/webgl/RealityModelUniforms.js.map +1 -1
  464. package/lib/esm/render/webgl/RenderCommands.js +30 -30
  465. package/lib/esm/render/webgl/RenderCommands.js.map +1 -1
  466. package/lib/esm/render/webgl/RenderFlags.d.ts +33 -21
  467. package/lib/esm/render/webgl/RenderFlags.d.ts.map +1 -1
  468. package/lib/esm/render/webgl/RenderFlags.js +10 -6
  469. package/lib/esm/render/webgl/RenderFlags.js.map +1 -1
  470. package/lib/esm/render/webgl/SceneCompositor.d.ts +5 -0
  471. package/lib/esm/render/webgl/SceneCompositor.d.ts.map +1 -1
  472. package/lib/esm/render/webgl/SceneCompositor.js +191 -74
  473. package/lib/esm/render/webgl/SceneCompositor.js.map +1 -1
  474. package/lib/esm/render/webgl/ShaderBuilder.d.ts +2 -1
  475. package/lib/esm/render/webgl/ShaderBuilder.d.ts.map +1 -1
  476. package/lib/esm/render/webgl/ShaderBuilder.js +6 -1
  477. package/lib/esm/render/webgl/ShaderBuilder.js.map +1 -1
  478. package/lib/esm/render/webgl/SolarShadowMap.js +2 -2
  479. package/lib/esm/render/webgl/SurfaceGeometry.d.ts +3 -1
  480. package/lib/esm/render/webgl/SurfaceGeometry.d.ts.map +1 -1
  481. package/lib/esm/render/webgl/SurfaceGeometry.js +22 -11
  482. package/lib/esm/render/webgl/SurfaceGeometry.js.map +1 -1
  483. package/lib/esm/render/webgl/System.d.ts +1 -1
  484. package/lib/esm/render/webgl/System.d.ts.map +1 -1
  485. package/lib/esm/render/webgl/System.js +1 -0
  486. package/lib/esm/render/webgl/System.js.map +1 -1
  487. package/lib/esm/render/webgl/Target.d.ts +1 -0
  488. package/lib/esm/render/webgl/Target.d.ts.map +1 -1
  489. package/lib/esm/render/webgl/Target.js +4 -3
  490. package/lib/esm/render/webgl/Target.js.map +1 -1
  491. package/lib/esm/render/webgl/Technique.d.ts.map +1 -1
  492. package/lib/esm/render/webgl/Technique.js +18 -3
  493. package/lib/esm/render/webgl/Technique.js.map +1 -1
  494. package/lib/esm/render/webgl/TechniqueFlags.js +4 -4
  495. package/lib/esm/render/webgl/TechniqueFlags.js.map +1 -1
  496. package/lib/esm/render/webgl/TechniqueId.d.ts +6 -2
  497. package/lib/esm/render/webgl/TechniqueId.d.ts.map +1 -1
  498. package/lib/esm/render/webgl/TechniqueId.js.map +1 -1
  499. package/lib/esm/render/webgl/UniformHandle.d.ts.map +1 -1
  500. package/lib/esm/render/webgl/UniformHandle.js +1 -2
  501. package/lib/esm/render/webgl/UniformHandle.js.map +1 -1
  502. package/lib/esm/render/webgl/VisibleTileFeatures.js +5 -5
  503. package/lib/esm/render/webgl/glsl/Animation.d.ts.map +1 -1
  504. package/lib/esm/render/webgl/glsl/Animation.js +2 -1
  505. package/lib/esm/render/webgl/glsl/Animation.js.map +1 -1
  506. package/lib/esm/render/webgl/glsl/Common.d.ts +3 -1
  507. package/lib/esm/render/webgl/glsl/Common.d.ts.map +1 -1
  508. package/lib/esm/render/webgl/glsl/Common.js +25 -31
  509. package/lib/esm/render/webgl/glsl/Common.js.map +1 -1
  510. package/lib/esm/render/webgl/glsl/EDL.d.ts +14 -0
  511. package/lib/esm/render/webgl/glsl/EDL.d.ts.map +1 -0
  512. package/lib/esm/render/webgl/glsl/EDL.js +253 -0
  513. package/lib/esm/render/webgl/glsl/EDL.js.map +1 -0
  514. package/lib/esm/render/webgl/glsl/FeatureSymbology.d.ts.map +1 -1
  515. package/lib/esm/render/webgl/glsl/FeatureSymbology.js +9 -1
  516. package/lib/esm/render/webgl/glsl/FeatureSymbology.js.map +1 -1
  517. package/lib/esm/render/webgl/glsl/Lighting.d.ts.map +1 -1
  518. package/lib/esm/render/webgl/glsl/Lighting.js +6 -8
  519. package/lib/esm/render/webgl/glsl/Lighting.js.map +1 -1
  520. package/lib/esm/render/webgl/glsl/PointCloud.d.ts.map +1 -1
  521. package/lib/esm/render/webgl/glsl/PointCloud.js +8 -3
  522. package/lib/esm/render/webgl/glsl/PointCloud.js.map +1 -1
  523. package/lib/esm/render/webgl/glsl/RealityMesh.d.ts +1 -0
  524. package/lib/esm/render/webgl/glsl/RealityMesh.d.ts.map +1 -1
  525. package/lib/esm/render/webgl/glsl/RealityMesh.js +5 -0
  526. package/lib/esm/render/webgl/glsl/RealityMesh.js.map +1 -1
  527. package/lib/esm/render/webgl/glsl/RenderPass.js +12 -12
  528. package/lib/esm/render/webgl/glsl/RenderPass.js.map +1 -1
  529. package/lib/esm/render/webgl/glsl/SolarShadowMapping.d.ts.map +1 -1
  530. package/lib/esm/render/webgl/glsl/SolarShadowMapping.js +1 -4
  531. package/lib/esm/render/webgl/glsl/SolarShadowMapping.js.map +1 -1
  532. package/lib/esm/render/webgl/glsl/Surface.d.ts +1 -1
  533. package/lib/esm/render/webgl/glsl/Surface.d.ts.map +1 -1
  534. package/lib/esm/render/webgl/glsl/Surface.js +88 -16
  535. package/lib/esm/render/webgl/glsl/Surface.js.map +1 -1
  536. package/lib/esm/render/webgl/glsl/Thematic.d.ts.map +1 -1
  537. package/lib/esm/render/webgl/glsl/Thematic.js +2 -6
  538. package/lib/esm/render/webgl/glsl/Thematic.js.map +1 -1
  539. package/lib/esm/tile/DynamicIModelTile.js +1 -1
  540. package/lib/esm/tile/DynamicIModelTile.js.map +1 -1
  541. package/lib/esm/tile/GltfReader.d.ts +13 -2
  542. package/lib/esm/tile/GltfReader.d.ts.map +1 -1
  543. package/lib/esm/tile/GltfReader.js +67 -23
  544. package/lib/esm/tile/GltfReader.js.map +1 -1
  545. package/lib/esm/tile/IModelTile.js +1 -1
  546. package/lib/esm/tile/IModelTile.js.map +1 -1
  547. package/lib/esm/tile/IModelTileRequestChannels.js +1 -1
  548. package/lib/esm/tile/IModelTileRequestChannels.js.map +1 -1
  549. package/lib/esm/tile/ImdlReader.d.ts +5 -0
  550. package/lib/esm/tile/ImdlReader.d.ts.map +1 -1
  551. package/lib/esm/tile/ImdlReader.js +14 -7
  552. package/lib/esm/tile/ImdlReader.js.map +1 -1
  553. package/lib/esm/tile/PrimaryTileTree.js +2 -2
  554. package/lib/esm/tile/PrimaryTileTree.js.map +1 -1
  555. package/lib/esm/tile/RealityModelTileTree.d.ts.map +1 -1
  556. package/lib/esm/tile/RealityModelTileTree.js +52 -20
  557. package/lib/esm/tile/RealityModelTileTree.js.map +1 -1
  558. package/lib/esm/tile/RealityTile.d.ts +2 -2
  559. package/lib/esm/tile/RealityTile.d.ts.map +1 -1
  560. package/lib/esm/tile/RealityTile.js +11 -4
  561. package/lib/esm/tile/RealityTile.js.map +1 -1
  562. package/lib/esm/tile/RealityTileLoader.d.ts +1 -0
  563. package/lib/esm/tile/RealityTileLoader.d.ts.map +1 -1
  564. package/lib/esm/tile/RealityTileLoader.js +16 -3
  565. package/lib/esm/tile/RealityTileLoader.js.map +1 -1
  566. package/lib/esm/tile/RealityTileTree.js +1 -1
  567. package/lib/esm/tile/RealityTileTree.js.map +1 -1
  568. package/lib/esm/tile/Tile.d.ts +5 -0
  569. package/lib/esm/tile/Tile.d.ts.map +1 -1
  570. package/lib/esm/tile/Tile.js +5 -0
  571. package/lib/esm/tile/Tile.js.map +1 -1
  572. package/lib/esm/tile/TileAdmin.d.ts.map +1 -1
  573. package/lib/esm/tile/TileAdmin.js +13 -6
  574. package/lib/esm/tile/TileAdmin.js.map +1 -1
  575. package/lib/esm/tile/TileDrawArgs.d.ts +5 -1
  576. package/lib/esm/tile/TileDrawArgs.d.ts.map +1 -1
  577. package/lib/esm/tile/TileDrawArgs.js +2 -0
  578. package/lib/esm/tile/TileDrawArgs.js.map +1 -1
  579. package/lib/esm/tile/TileRequestChannels.js +1 -1
  580. package/lib/esm/tile/TileRequestChannels.js.map +1 -1
  581. package/lib/esm/tile/TileStorage.d.ts.map +1 -1
  582. package/lib/esm/tile/TileStorage.js +12 -6
  583. package/lib/esm/tile/TileStorage.js.map +1 -1
  584. package/lib/esm/tile/internal.d.ts +1 -0
  585. package/lib/esm/tile/internal.d.ts.map +1 -1
  586. package/lib/esm/tile/internal.js +1 -0
  587. package/lib/esm/tile/internal.js.map +1 -1
  588. package/lib/esm/tile/map/ArcGISTileMap.d.ts +5 -2
  589. package/lib/esm/tile/map/ArcGISTileMap.d.ts.map +1 -1
  590. package/lib/esm/tile/map/ArcGISTileMap.js +18 -3
  591. package/lib/esm/tile/map/ArcGISTileMap.js.map +1 -1
  592. package/lib/esm/tile/map/ArcGisUtilities.d.ts +51 -5
  593. package/lib/esm/tile/map/ArcGisUtilities.d.ts.map +1 -1
  594. package/lib/esm/tile/map/ArcGisUtilities.js +121 -49
  595. package/lib/esm/tile/map/ArcGisUtilities.js.map +1 -1
  596. package/lib/esm/tile/map/CesiumTerrainProvider.js +9 -9
  597. package/lib/esm/tile/map/CesiumTerrainProvider.js.map +1 -1
  598. package/lib/esm/tile/map/ImageryProviders/ArcGISImageryProvider.d.ts +26 -0
  599. package/lib/esm/tile/map/ImageryProviders/ArcGISImageryProvider.d.ts.map +1 -0
  600. package/lib/esm/tile/map/ImageryProviders/ArcGISImageryProvider.js +93 -0
  601. package/lib/esm/tile/map/ImageryProviders/ArcGISImageryProvider.js.map +1 -0
  602. package/lib/esm/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts +2 -4
  603. package/lib/esm/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts.map +1 -1
  604. package/lib/esm/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js +10 -95
  605. package/lib/esm/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js.map +1 -1
  606. package/lib/esm/tile/map/ImageryProviders/WmsMapLayerImageryProvider.d.ts.map +1 -1
  607. package/lib/esm/tile/map/ImageryProviders/WmsMapLayerImageryProvider.js +2 -1
  608. package/lib/esm/tile/map/ImageryProviders/WmsMapLayerImageryProvider.js.map +1 -1
  609. package/lib/esm/tile/map/ImageryTileTree.d.ts +2 -0
  610. package/lib/esm/tile/map/ImageryTileTree.d.ts.map +1 -1
  611. package/lib/esm/tile/map/ImageryTileTree.js +6 -4
  612. package/lib/esm/tile/map/ImageryTileTree.js.map +1 -1
  613. package/lib/esm/tile/map/MapLayerFormatRegistry.d.ts +18 -4
  614. package/lib/esm/tile/map/MapLayerFormatRegistry.d.ts.map +1 -1
  615. package/lib/esm/tile/map/MapLayerFormatRegistry.js +26 -6
  616. package/lib/esm/tile/map/MapLayerFormatRegistry.js.map +1 -1
  617. package/lib/esm/tile/map/MapLayerImageryFormats.d.ts +6 -4
  618. package/lib/esm/tile/map/MapLayerImageryFormats.d.ts.map +1 -1
  619. package/lib/esm/tile/map/MapLayerImageryFormats.js +12 -16
  620. package/lib/esm/tile/map/MapLayerImageryFormats.js.map +1 -1
  621. package/lib/esm/tile/map/MapLayerImageryProvider.d.ts +26 -5
  622. package/lib/esm/tile/map/MapLayerImageryProvider.d.ts.map +1 -1
  623. package/lib/esm/tile/map/MapLayerImageryProvider.js +70 -49
  624. package/lib/esm/tile/map/MapLayerImageryProvider.js.map +1 -1
  625. package/lib/esm/tile/map/MapLayerSources.js +1 -1
  626. package/lib/esm/tile/map/MapLayerSources.js.map +1 -1
  627. package/lib/esm/tile/map/WmsCapabilities.d.ts.map +1 -1
  628. package/lib/esm/tile/map/WmsCapabilities.js +4 -1
  629. package/lib/esm/tile/map/WmsCapabilities.js.map +1 -1
  630. package/lib/esm/tools/EditManipulator.d.ts.map +1 -1
  631. package/lib/esm/tools/EditManipulator.js +2 -1
  632. package/lib/esm/tools/EditManipulator.js.map +1 -1
  633. package/lib/esm/tools/Tool.js +1 -1
  634. package/lib/esm/tools/Tool.js.map +1 -1
  635. package/lib/esm/tools/ToolAdmin.d.ts.map +1 -1
  636. package/lib/esm/tools/ToolAdmin.js +6 -4
  637. package/lib/esm/tools/ToolAdmin.js.map +1 -1
  638. package/package.json +25 -23
  639. package/lib/cjs/tile/object-storage-azure.js +0 -5
  640. package/lib/esm/tile/object-storage-azure.js +0 -5
@@ -146,6 +146,17 @@ const extensionExports = {
146
146
  PlanarClipMaskMode: core_common_1.PlanarClipMaskMode,
147
147
  PlanarClipMaskPriority: core_common_1.PlanarClipMaskPriority,
148
148
  PrimitiveTool: core_frontend_1.PrimitiveTool,
149
+ QParams2d: core_common_1.QParams2d,
150
+ QParams3d: core_common_1.QParams3d,
151
+ QPoint2d: core_common_1.QPoint2d,
152
+ QPoint2dBuffer: core_common_1.QPoint2dBuffer,
153
+ QPoint2dBufferBuilder: core_common_1.QPoint2dBufferBuilder,
154
+ QPoint2dList: core_common_1.QPoint2dList,
155
+ QPoint3d: core_common_1.QPoint3d,
156
+ QPoint3dBuffer: core_common_1.QPoint3dBuffer,
157
+ QPoint3dBufferBuilder: core_common_1.QPoint3dBufferBuilder,
158
+ QPoint3dList: core_common_1.QPoint3dList,
159
+ Quantization: core_common_1.Quantization,
149
160
  QueryRowFormat: core_common_1.QueryRowFormat,
150
161
  Rank: core_common_1.Rank,
151
162
  RenderClipVolume: core_frontend_1.RenderClipVolume,
@@ -221,6 +232,8 @@ const extensionExports = {
221
232
  ViewManager: core_frontend_1.ViewManager,
222
233
  ViewManip: core_frontend_1.ViewManip,
223
234
  ViewPose: core_frontend_1.ViewPose,
235
+ ViewPose2d: core_frontend_1.ViewPose2d,
236
+ ViewPose3d: core_frontend_1.ViewPose3d,
224
237
  ViewRect: core_frontend_1.ViewRect,
225
238
  ViewState: core_frontend_1.ViewState,
226
239
  ViewState2d: core_frontend_1.ViewState2d,
@@ -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,mDAAgD;AAChD,mDAAgD;AAEhD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC/D,IAAK,UAAkB,CAAC,YAAY,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BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,yBAAyB,EAAzB,yCAAyB;IACzB,wBAAwB,EAAxB,wCAAwB;CACzB,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;IACrC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa,EAAb,6BAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;QACD,GAAG,EAAE,IAAI,6BAAa,CAAC,EAAE,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,eAAe;CAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Extensions\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n/* eslint-disable @itwin/no-internal-barrel-imports */\r\n/* eslint-disable sort-imports */\r\n\r\nimport { ExtensionImpl } from \"./ExtensionImpl\";\r\nimport { ExtensionHost } from \"./ExtensionHost\";\r\n\r\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\r\nif ((globalThis as any)[globalSymbol])\r\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\r\n\r\n// BEGIN GENERATED CODE\r\nimport {\r\n // @public enum(s) from @itwin/core-frontend\r\n ACSDisplayOptions,\r\n ACSType,\r\n ActivityMessageEndReason,\r\n BeButton,\r\n BeModifierKeys,\r\n ClipEventType,\r\n ContextRotationId,\r\n CoordSource,\r\n CoordSystem,\r\n CoordinateLockOverrides,\r\n EventHandled,\r\n FlashMode,\r\n FrontendLoggerCategory,\r\n GraphicType,\r\n HitDetailType,\r\n HitGeomType,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitSource,\r\n InputSource,\r\n KeyinParseError,\r\n LocateAction,\r\n LocateFilterStatus,\r\n ManipulatorToolEvent,\r\n MessageBoxIconType,\r\n MessageBoxType,\r\n MessageBoxValue,\r\n OutputMessageAlert,\r\n OutputMessagePriority,\r\n OutputMessageType,\r\n ParseAndRunResult,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n SelectionSetEventType,\r\n SnapHeat,\r\n SnapMode,\r\n SnapStatus,\r\n StandardViewId,\r\n StartOrResume,\r\n TileBoundingBoxes,\r\n TileGraphicType,\r\n TileLoadPriority,\r\n TileLoadStatus,\r\n TileTreeLoadStatus,\r\n TileVisibility,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n UniformType,\r\n VaryingType,\r\n ViewStatus,\r\n // @public real(s) from @itwin/core-frontend\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n ActivityMessageDetails,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n AuxCoordSystemState,\r\n BeButtonEvent,\r\n BeButtonState,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n BingElevationProvider,\r\n BingLocationProvider,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n Cluster,\r\n ContextRealityModelState,\r\n Decorations,\r\n DisclosedTileTreeSet,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DisplayStyleState,\r\n DrawingModelState,\r\n DrawingViewState,\r\n EditManipulator,\r\n ElementLocateManager,\r\n ElementPicker,\r\n ElementState,\r\n EmphasizeElements,\r\n EntityState,\r\n EventController,\r\n FeatureSymbology,\r\n FlashSettings,\r\n FrustumAnimator,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n GeometricModelState,\r\n GlobeAnimator,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n HiliteSet,\r\n HitDetail,\r\n HitList,\r\n IModelConnection,\r\n IconSprites,\r\n InputCollector,\r\n InteractiveTool,\r\n IntersectDetail,\r\n LocateOptions,\r\n LocateResponse,\r\n MarginPercent,\r\n Marker,\r\n MarkerSet,\r\n ModelSelectorState,\r\n ModelState,\r\n NotificationHandler,\r\n NotificationManager,\r\n NotifyMessageDetails,\r\n OrthographicViewState,\r\n PerModelCategoryVisibility,\r\n PhysicalModelState,\r\n Pixel,\r\n PrimitiveTool,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderSystem,\r\n Scene,\r\n SectionDrawingModelState,\r\n SelectionSet,\r\n SheetModelState,\r\n SheetViewState,\r\n SnapDetail,\r\n SpatialLocationModelState,\r\n SpatialModelState,\r\n SpatialViewState,\r\n Sprite,\r\n SpriteLocation,\r\n TentativePoint,\r\n Tile,\r\n TileAdmin,\r\n TileDrawArgs,\r\n TileRequest,\r\n TileRequestChannel,\r\n TileRequestChannelStatistics,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n Tiles,\r\n Tool,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolSettings,\r\n TwoWayViewportFrustumSync,\r\n TwoWayViewportSync,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n ViewClipTool,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n ViewManager,\r\n ViewManip,\r\n ViewPose,\r\n ViewRect,\r\n ViewState,\r\n ViewState2d,\r\n ViewState3d,\r\n ViewTool,\r\n ViewingSpace,\r\n canvasToImageBuffer,\r\n canvasToResizedCanvasWithBars,\r\n connectViewportFrusta,\r\n connectViewportViews,\r\n connectViewports,\r\n extractImageSourceDimensions,\r\n getCompressedJpegFromCanvas,\r\n getImageSourceFormatForMimeType,\r\n getImageSourceMimeType,\r\n imageBufferToBase64EncodedPng,\r\n imageBufferToCanvas,\r\n imageBufferToPngDataUrl,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n queryTerrainElevationOffset,\r\n readElementGraphics,\r\n synchronizeViewportFrusta,\r\n synchronizeViewportViews,\r\n} from \"../core-frontend\";\r\n\r\nimport {\r\n // @public enum(s) from @itwin/core-common\r\n BackgroundFill,\r\n BackgroundMapType,\r\n BatchType,\r\n BisCodeSpec,\r\n BriefcaseIdValue,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ChangesetType,\r\n CommonLoggerCategory,\r\n ECSqlSystemProperty,\r\n ECSqlValueType,\r\n ElementGeometryOpcode,\r\n FeatureOverrideType,\r\n FillDisplay,\r\n FillFlags,\r\n FontType,\r\n GeoCoordStatus,\r\n GeometryClass,\r\n GeometryStreamFlags,\r\n GeometrySummaryVerbosity,\r\n GlobeMode,\r\n GridOrientationType,\r\n HSVConstants,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n LinePixels,\r\n MassPropertiesOperation,\r\n MonochromeMode,\r\n Npc,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n QueryRowFormat,\r\n Rank,\r\n RenderMode,\r\n SectionType,\r\n SkyBoxImageType,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n SyncMode,\r\n TerrainHeightOriginMode,\r\n TextureMapUnits,\r\n ThematicDisplayMode,\r\n ThematicGradientColorScheme,\r\n ThematicGradientMode,\r\n TxnAction,\r\n TypeOfChange,\r\n // @public real(s) from @itwin/core-common\r\n ColorByName,\r\n ColorDef,\r\n} from \"@itwin/core-common\";\r\n\r\nconst extensionExports = {\r\n ACSDisplayOptions,\r\n ACSType,\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n ActivityMessageDetails,\r\n ActivityMessageEndReason,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n AuxCoordSystemState,\r\n BackgroundFill,\r\n BackgroundMapType,\r\n BatchType,\r\n BeButton,\r\n BeButtonEvent,\r\n BeButtonState,\r\n BeModifierKeys,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n BingElevationProvider,\r\n BingLocationProvider,\r\n BisCodeSpec,\r\n BriefcaseIdValue,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ChangesetType,\r\n ClipEventType,\r\n Cluster,\r\n ColorByName,\r\n ColorDef,\r\n CommonLoggerCategory,\r\n ContextRealityModelState,\r\n ContextRotationId,\r\n CoordSource,\r\n CoordSystem,\r\n CoordinateLockOverrides,\r\n Decorations,\r\n DisclosedTileTreeSet,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DisplayStyleState,\r\n DrawingModelState,\r\n DrawingViewState,\r\n ECSqlSystemProperty,\r\n ECSqlValueType,\r\n EditManipulator,\r\n ElementGeometryOpcode,\r\n ElementLocateManager,\r\n ElementPicker,\r\n ElementState,\r\n EmphasizeElements,\r\n EntityState,\r\n EventController,\r\n EventHandled,\r\n FeatureOverrideType,\r\n FeatureSymbology,\r\n FillDisplay,\r\n FillFlags,\r\n FlashMode,\r\n FlashSettings,\r\n FontType,\r\n FrontendLoggerCategory,\r\n FrustumAnimator,\r\n GeoCoordStatus,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n GeometricModelState,\r\n GeometryClass,\r\n GeometryStreamFlags,\r\n GeometrySummaryVerbosity,\r\n GlobeAnimator,\r\n GlobeMode,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n GraphicType,\r\n GridOrientationType,\r\n HSVConstants,\r\n HiliteSet,\r\n HitDetail,\r\n HitDetailType,\r\n HitGeomType,\r\n HitList,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitSource,\r\n IModelConnection,\r\n IconSprites,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n InputCollector,\r\n InputSource,\r\n InteractiveTool,\r\n IntersectDetail,\r\n KeyinParseError,\r\n LinePixels,\r\n LocateAction,\r\n LocateFilterStatus,\r\n LocateOptions,\r\n LocateResponse,\r\n ManipulatorToolEvent,\r\n MarginPercent,\r\n Marker,\r\n MarkerSet,\r\n MassPropertiesOperation,\r\n MessageBoxIconType,\r\n MessageBoxType,\r\n MessageBoxValue,\r\n ModelSelectorState,\r\n ModelState,\r\n MonochromeMode,\r\n NotificationHandler,\r\n NotificationManager,\r\n NotifyMessageDetails,\r\n Npc,\r\n OrthographicViewState,\r\n OutputMessageAlert,\r\n OutputMessagePriority,\r\n OutputMessageType,\r\n ParseAndRunResult,\r\n PerModelCategoryVisibility,\r\n PhysicalModelState,\r\n Pixel,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n PrimitiveTool,\r\n QueryRowFormat,\r\n Rank,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderMode,\r\n RenderSystem,\r\n Scene,\r\n SectionDrawingModelState,\r\n SectionType,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n SelectionSet,\r\n SelectionSetEventType,\r\n SheetModelState,\r\n SheetViewState,\r\n SkyBoxImageType,\r\n SnapDetail,\r\n SnapHeat,\r\n SnapMode,\r\n SnapStatus,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n SpatialLocationModelState,\r\n SpatialModelState,\r\n SpatialViewState,\r\n Sprite,\r\n SpriteLocation,\r\n StandardViewId,\r\n StartOrResume,\r\n SyncMode,\r\n TentativePoint,\r\n TerrainHeightOriginMode,\r\n TextureMapUnits,\r\n ThematicDisplayMode,\r\n ThematicGradientColorScheme,\r\n ThematicGradientMode,\r\n Tile,\r\n TileAdmin,\r\n TileBoundingBoxes,\r\n TileDrawArgs,\r\n TileGraphicType,\r\n TileLoadPriority,\r\n TileLoadStatus,\r\n TileRequest,\r\n TileRequestChannel,\r\n TileRequestChannelStatistics,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeLoadStatus,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n TileVisibility,\r\n Tiles,\r\n Tool,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n ToolSettings,\r\n TwoWayViewportFrustumSync,\r\n TwoWayViewportSync,\r\n TxnAction,\r\n TypeOfChange,\r\n UniformType,\r\n VaryingType,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n ViewClipTool,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n ViewManager,\r\n ViewManip,\r\n ViewPose,\r\n ViewRect,\r\n ViewState,\r\n ViewState2d,\r\n ViewState3d,\r\n ViewStatus,\r\n ViewTool,\r\n ViewingSpace,\r\n canvasToImageBuffer,\r\n canvasToResizedCanvasWithBars,\r\n connectViewportFrusta,\r\n connectViewportViews,\r\n connectViewports,\r\n extractImageSourceDimensions,\r\n getCompressedJpegFromCanvas,\r\n getImageSourceFormatForMimeType,\r\n getImageSourceMimeType,\r\n imageBufferToBase64EncodedPng,\r\n imageBufferToCanvas,\r\n imageBufferToPngDataUrl,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n queryTerrainElevationOffset,\r\n readElementGraphics,\r\n synchronizeViewportFrusta,\r\n synchronizeViewportViews,\r\n};\r\n\r\n// END GENERATED CODE\r\n\r\nconst getExtensionApi = (id: string) => {\r\n return {\r\n exports: {\r\n // exceptions\r\n ExtensionHost,\r\n // automated\r\n ...extensionExports,\r\n },\r\n api: new ExtensionImpl(id),\r\n };\r\n};\r\n\r\n(globalThis as any)[globalSymbol] = {\r\n getExtensionApi,\r\n};\r\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,mDAAgD;AAChD,mDAAgD;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,oDAwL0B;AAE1B,oDA8D4B;AAE5B,MAAM,gBAAgB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+B,EAA/B,+CAA+B;IAC/B,sBAAsB,EAAtB,sCAAsB;IACtB,6BAA6B,EAA7B,6CAA6B;IAC7B,mBAAmB,EAAnB,mCAAmB;IACnB,uBAAuB,EAAvB,uCAAuB;IACvB,2BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,2BAA2B,EAA3B,2CAA2B;IAC3B,mBAAmB,EAAnB,mCAAmB;IACnB,yBAAyB,EAAzB,yCAAyB;IACzB,wBAAwB,EAAxB,wCAAwB;CACzB,CAAC;AAEF,qBAAqB;AAErB,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;IACrC,OAAO;QACL,OAAO,EAAE;YACP,aAAa;YACb,aAAa,EAAb,6BAAa;YACb,YAAY;YACZ,GAAG,gBAAgB;SACpB;QACD,GAAG,EAAE,IAAI,6BAAa,CAAC,EAAE,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAED,UAAkB,CAAC,YAAY,CAAC,GAAG;IAClC,eAAe;CAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Extensions\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n/* eslint-disable @itwin/no-internal-barrel-imports */\r\n/* eslint-disable sort-imports */\r\n\r\nimport { ExtensionImpl } from \"./ExtensionImpl\";\r\nimport { ExtensionHost } from \"./ExtensionHost\";\r\n\r\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\r\nif ((globalThis as any)[globalSymbol])\r\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\r\n\r\n// BEGIN GENERATED CODE\r\nimport {\r\n // @public enum(s) from @itwin/core-frontend\r\n ACSDisplayOptions,\r\n ACSType,\r\n ActivityMessageEndReason,\r\n BeButton,\r\n BeModifierKeys,\r\n ClipEventType,\r\n ContextRotationId,\r\n CoordSource,\r\n CoordSystem,\r\n CoordinateLockOverrides,\r\n EventHandled,\r\n FlashMode,\r\n FrontendLoggerCategory,\r\n GraphicType,\r\n HitDetailType,\r\n HitGeomType,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitSource,\r\n InputSource,\r\n KeyinParseError,\r\n LocateAction,\r\n LocateFilterStatus,\r\n ManipulatorToolEvent,\r\n MessageBoxIconType,\r\n MessageBoxType,\r\n MessageBoxValue,\r\n OutputMessageAlert,\r\n OutputMessagePriority,\r\n OutputMessageType,\r\n ParseAndRunResult,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n SelectionSetEventType,\r\n SnapHeat,\r\n SnapMode,\r\n SnapStatus,\r\n StandardViewId,\r\n StartOrResume,\r\n TileBoundingBoxes,\r\n TileGraphicType,\r\n TileLoadPriority,\r\n TileLoadStatus,\r\n TileTreeLoadStatus,\r\n TileVisibility,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n UniformType,\r\n VaryingType,\r\n ViewStatus,\r\n // @public real(s) from @itwin/core-frontend\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n ActivityMessageDetails,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n AuxCoordSystemState,\r\n BeButtonEvent,\r\n BeButtonState,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n BingElevationProvider,\r\n BingLocationProvider,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n Cluster,\r\n ContextRealityModelState,\r\n Decorations,\r\n DisclosedTileTreeSet,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DisplayStyleState,\r\n DrawingModelState,\r\n DrawingViewState,\r\n EditManipulator,\r\n ElementLocateManager,\r\n ElementPicker,\r\n ElementState,\r\n EmphasizeElements,\r\n EntityState,\r\n EventController,\r\n FeatureSymbology,\r\n FlashSettings,\r\n FrustumAnimator,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n GeometricModelState,\r\n GlobeAnimator,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n HiliteSet,\r\n HitDetail,\r\n HitList,\r\n IModelConnection,\r\n IconSprites,\r\n InputCollector,\r\n InteractiveTool,\r\n IntersectDetail,\r\n LocateOptions,\r\n LocateResponse,\r\n MarginPercent,\r\n Marker,\r\n MarkerSet,\r\n ModelSelectorState,\r\n ModelState,\r\n NotificationHandler,\r\n NotificationManager,\r\n NotifyMessageDetails,\r\n OrthographicViewState,\r\n PerModelCategoryVisibility,\r\n PhysicalModelState,\r\n Pixel,\r\n PrimitiveTool,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderSystem,\r\n Scene,\r\n SectionDrawingModelState,\r\n SelectionSet,\r\n SheetModelState,\r\n SheetViewState,\r\n SnapDetail,\r\n SpatialLocationModelState,\r\n SpatialModelState,\r\n SpatialViewState,\r\n Sprite,\r\n SpriteLocation,\r\n TentativePoint,\r\n Tile,\r\n TileAdmin,\r\n TileDrawArgs,\r\n TileRequest,\r\n TileRequestChannel,\r\n TileRequestChannelStatistics,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n Tiles,\r\n Tool,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolSettings,\r\n TwoWayViewportFrustumSync,\r\n TwoWayViewportSync,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n ViewClipTool,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n ViewManager,\r\n ViewManip,\r\n ViewPose,\r\n ViewPose2d,\r\n ViewPose3d,\r\n ViewRect,\r\n ViewState,\r\n ViewState2d,\r\n ViewState3d,\r\n ViewTool,\r\n ViewingSpace,\r\n canvasToImageBuffer,\r\n canvasToResizedCanvasWithBars,\r\n connectViewportFrusta,\r\n connectViewportViews,\r\n connectViewports,\r\n extractImageSourceDimensions,\r\n getCompressedJpegFromCanvas,\r\n getImageSourceFormatForMimeType,\r\n getImageSourceMimeType,\r\n imageBufferToBase64EncodedPng,\r\n imageBufferToCanvas,\r\n imageBufferToPngDataUrl,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n queryTerrainElevationOffset,\r\n readElementGraphics,\r\n synchronizeViewportFrusta,\r\n synchronizeViewportViews,\r\n} from \"../core-frontend\";\r\n\r\nimport {\r\n // @public enum(s) from @itwin/core-common\r\n BackgroundFill,\r\n BackgroundMapType,\r\n BatchType,\r\n BisCodeSpec,\r\n BriefcaseIdValue,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ChangesetType,\r\n CommonLoggerCategory,\r\n ECSqlSystemProperty,\r\n ECSqlValueType,\r\n ElementGeometryOpcode,\r\n FeatureOverrideType,\r\n FillDisplay,\r\n FillFlags,\r\n FontType,\r\n GeoCoordStatus,\r\n GeometryClass,\r\n GeometryStreamFlags,\r\n GeometrySummaryVerbosity,\r\n GlobeMode,\r\n GridOrientationType,\r\n HSVConstants,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n LinePixels,\r\n MassPropertiesOperation,\r\n MonochromeMode,\r\n Npc,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n QueryRowFormat,\r\n Rank,\r\n RenderMode,\r\n SectionType,\r\n SkyBoxImageType,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n SyncMode,\r\n TerrainHeightOriginMode,\r\n TextureMapUnits,\r\n ThematicDisplayMode,\r\n ThematicGradientColorScheme,\r\n ThematicGradientMode,\r\n TxnAction,\r\n TypeOfChange,\r\n // @public real(s) from @itwin/core-common\r\n ColorByName,\r\n ColorDef,\r\n QParams2d,\r\n QParams3d,\r\n QPoint2d,\r\n QPoint2dBuffer,\r\n QPoint2dBufferBuilder,\r\n QPoint2dList,\r\n QPoint3d,\r\n QPoint3dBuffer,\r\n QPoint3dBufferBuilder,\r\n QPoint3dList,\r\n Quantization,\r\n} from \"@itwin/core-common\";\r\n\r\nconst extensionExports = {\r\n ACSDisplayOptions,\r\n ACSType,\r\n AccuDrawHintBuilder,\r\n AccuSnap,\r\n ActivityMessageDetails,\r\n ActivityMessageEndReason,\r\n AuxCoordSystem2dState,\r\n AuxCoordSystem3dState,\r\n AuxCoordSystemSpatialState,\r\n AuxCoordSystemState,\r\n BackgroundFill,\r\n BackgroundMapType,\r\n BatchType,\r\n BeButton,\r\n BeButtonEvent,\r\n BeButtonState,\r\n BeModifierKeys,\r\n BeTouchEvent,\r\n BeWheelEvent,\r\n BingElevationProvider,\r\n BingLocationProvider,\r\n BisCodeSpec,\r\n BriefcaseIdValue,\r\n CategorySelectorState,\r\n ChangeFlags,\r\n ChangeOpCode,\r\n ChangedValueState,\r\n ChangesetType,\r\n ClipEventType,\r\n Cluster,\r\n ColorByName,\r\n ColorDef,\r\n CommonLoggerCategory,\r\n ContextRealityModelState,\r\n ContextRotationId,\r\n CoordSource,\r\n CoordSystem,\r\n CoordinateLockOverrides,\r\n Decorations,\r\n DisclosedTileTreeSet,\r\n DisplayStyle2dState,\r\n DisplayStyle3dState,\r\n DisplayStyleState,\r\n DrawingModelState,\r\n DrawingViewState,\r\n ECSqlSystemProperty,\r\n ECSqlValueType,\r\n EditManipulator,\r\n ElementGeometryOpcode,\r\n ElementLocateManager,\r\n ElementPicker,\r\n ElementState,\r\n EmphasizeElements,\r\n EntityState,\r\n EventController,\r\n EventHandled,\r\n FeatureOverrideType,\r\n FeatureSymbology,\r\n FillDisplay,\r\n FillFlags,\r\n FlashMode,\r\n FlashSettings,\r\n FontType,\r\n FrontendLoggerCategory,\r\n FrustumAnimator,\r\n GeoCoordStatus,\r\n GeometricModel2dState,\r\n GeometricModel3dState,\r\n GeometricModelState,\r\n GeometryClass,\r\n GeometryStreamFlags,\r\n GeometrySummaryVerbosity,\r\n GlobeAnimator,\r\n GlobeMode,\r\n GraphicBranch,\r\n GraphicBuilder,\r\n GraphicType,\r\n GridOrientationType,\r\n HSVConstants,\r\n HiliteSet,\r\n HitDetail,\r\n HitDetailType,\r\n HitGeomType,\r\n HitList,\r\n HitParentGeomType,\r\n HitPriority,\r\n HitSource,\r\n IModelConnection,\r\n IconSprites,\r\n ImageBufferFormat,\r\n ImageSourceFormat,\r\n InputCollector,\r\n InputSource,\r\n InteractiveTool,\r\n IntersectDetail,\r\n KeyinParseError,\r\n LinePixels,\r\n LocateAction,\r\n LocateFilterStatus,\r\n LocateOptions,\r\n LocateResponse,\r\n ManipulatorToolEvent,\r\n MarginPercent,\r\n Marker,\r\n MarkerSet,\r\n MassPropertiesOperation,\r\n MessageBoxIconType,\r\n MessageBoxType,\r\n MessageBoxValue,\r\n ModelSelectorState,\r\n ModelState,\r\n MonochromeMode,\r\n NotificationHandler,\r\n NotificationManager,\r\n NotifyMessageDetails,\r\n Npc,\r\n OrthographicViewState,\r\n OutputMessageAlert,\r\n OutputMessagePriority,\r\n OutputMessageType,\r\n ParseAndRunResult,\r\n PerModelCategoryVisibility,\r\n PhysicalModelState,\r\n Pixel,\r\n PlanarClipMaskMode,\r\n PlanarClipMaskPriority,\r\n PrimitiveTool,\r\n QParams2d,\r\n QParams3d,\r\n QPoint2d,\r\n QPoint2dBuffer,\r\n QPoint2dBufferBuilder,\r\n QPoint2dList,\r\n QPoint3d,\r\n QPoint3dBuffer,\r\n QPoint3dBufferBuilder,\r\n QPoint3dList,\r\n Quantization,\r\n QueryRowFormat,\r\n Rank,\r\n RenderClipVolume,\r\n RenderGraphic,\r\n RenderGraphicOwner,\r\n RenderMode,\r\n RenderSystem,\r\n Scene,\r\n SectionDrawingModelState,\r\n SectionType,\r\n SelectionMethod,\r\n SelectionMode,\r\n SelectionProcessing,\r\n SelectionSet,\r\n SelectionSetEventType,\r\n SheetModelState,\r\n SheetViewState,\r\n SkyBoxImageType,\r\n SnapDetail,\r\n SnapHeat,\r\n SnapMode,\r\n SnapStatus,\r\n SpatialClassifierInsideDisplay,\r\n SpatialClassifierOutsideDisplay,\r\n SpatialLocationModelState,\r\n SpatialModelState,\r\n SpatialViewState,\r\n Sprite,\r\n SpriteLocation,\r\n StandardViewId,\r\n StartOrResume,\r\n SyncMode,\r\n TentativePoint,\r\n TerrainHeightOriginMode,\r\n TextureMapUnits,\r\n ThematicDisplayMode,\r\n ThematicGradientColorScheme,\r\n ThematicGradientMode,\r\n Tile,\r\n TileAdmin,\r\n TileBoundingBoxes,\r\n TileDrawArgs,\r\n TileGraphicType,\r\n TileLoadPriority,\r\n TileLoadStatus,\r\n TileRequest,\r\n TileRequestChannel,\r\n TileRequestChannelStatistics,\r\n TileRequestChannels,\r\n TileTree,\r\n TileTreeLoadStatus,\r\n TileTreeReference,\r\n TileUsageMarker,\r\n TileVisibility,\r\n Tiles,\r\n Tool,\r\n ToolAdmin,\r\n ToolAssistance,\r\n ToolAssistanceImage,\r\n ToolAssistanceInputMethod,\r\n ToolSettings,\r\n TwoWayViewportFrustumSync,\r\n TwoWayViewportSync,\r\n TxnAction,\r\n TypeOfChange,\r\n UniformType,\r\n VaryingType,\r\n ViewClipClearTool,\r\n ViewClipDecorationProvider,\r\n ViewClipTool,\r\n ViewCreator2d,\r\n ViewCreator3d,\r\n ViewManager,\r\n ViewManip,\r\n ViewPose,\r\n ViewPose2d,\r\n ViewPose3d,\r\n ViewRect,\r\n ViewState,\r\n ViewState2d,\r\n ViewState3d,\r\n ViewStatus,\r\n ViewTool,\r\n ViewingSpace,\r\n canvasToImageBuffer,\r\n canvasToResizedCanvasWithBars,\r\n connectViewportFrusta,\r\n connectViewportViews,\r\n connectViewports,\r\n extractImageSourceDimensions,\r\n getCompressedJpegFromCanvas,\r\n getImageSourceFormatForMimeType,\r\n getImageSourceMimeType,\r\n imageBufferToBase64EncodedPng,\r\n imageBufferToCanvas,\r\n imageBufferToPngDataUrl,\r\n imageElementFromImageSource,\r\n imageElementFromUrl,\r\n queryTerrainElevationOffset,\r\n readElementGraphics,\r\n synchronizeViewportFrusta,\r\n synchronizeViewportViews,\r\n};\r\n\r\n// END GENERATED CODE\r\n\r\nconst getExtensionApi = (id: string) => {\r\n return {\r\n exports: {\r\n // exceptions\r\n ExtensionHost,\r\n // automated\r\n ...extensionExports,\r\n },\r\n api: new ExtensionImpl(id),\r\n };\r\n};\r\n\r\n(globalThis as any)[globalSymbol] = {\r\n getExtensionApi,\r\n};\r\n"]}
@@ -10,6 +10,7 @@ import { RenderGraphic } from "./RenderGraphic";
10
10
  import { RenderMemory } from "./RenderMemory";
11
11
  import { RenderPlanarClassifier } from "./RenderPlanarClassifier";
12
12
  import { RenderTextureDrape } from "./RenderSystem";
13
+ import { Range3d } from "@itwin/core-geometry";
13
14
  /** Carries information in a GraphicBranchOptions about a GraphicBranch produced by drawing one view into the context of another.
14
15
  * @internal
15
16
  */
@@ -48,6 +49,8 @@ export declare class GraphicBranch implements IDisposable {
48
49
  * @beta
49
50
  */
50
51
  realityModelDisplaySettings?: RealityModelDisplaySettings;
52
+ /** @internal */
53
+ realityModelRange?: Range3d;
51
54
  /** Optional symbology overrides to be applied to all graphics in this branch */
52
55
  symbologyOverrides?: FeatureSymbology.Overrides;
53
56
  /** Optional animation branch Id that incorporates the model Id and, for element timelines, the batch Id.
@@ -1 +1 @@
1
- {"version":3,"file":"GraphicBranch.d.ts","sourceRoot":"","sources":["../../../src/render/GraphicBranch.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAgB,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EACL,yBAAyB,EAAE,UAAU,EAAE,2BAA2B,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EACjH,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAA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,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1F,IAAI,IAAI;QACN,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACvE,CAAC;AAYD,gBAAgB;AAChB,IAAiB,qBAAqB,CAqBrC;AArBD,WAAiB,qBAAqB;IACpC,SAAgB,UAAU,CAAC,MAA6B,EAAE,IAAY;QACpE,IAAI,CAAC,MAAM,CAAC,qBAAqB,IAAI,CAAC,MAAM,CAAC,gBAAgB;YAC3D,OAAO,SAAS,CAAC;QAEnB,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAgC,CAAC;QACzD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,cAAc,EAAE;YACzC,kBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC7D,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,gBAAgB,EAAE;gBACzC,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;oBAC/B,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;;oBAEnF,kBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;aACzE;SACF;QAED,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,gBAAgB,EAAE,MAAM,CAAC,iBAAiB;SAC3C,CAAC;IACJ,CAAC;IAnBe,gCAAU,aAmBzB,CAAA;AACH,CAAC,EArBgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAqBrC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { disposeArray, Id64String, IDisposable } from \"@itwin/core-bentley\";\r\nimport {\r\n FeatureAppearanceProvider, HiddenLine, RealityModelDisplaySettings, RenderSchedule, ViewFlagOverrides, ViewFlags,\r\n} from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\nimport { IModelApp } from \"../IModelApp\";\r\nimport { FeatureSymbology } from \"./FeatureSymbology\";\r\nimport { RenderClipVolume } from \"./RenderClipVolume\";\r\nimport { RenderGraphic } from \"./RenderGraphic\";\r\nimport { RenderMemory } from \"./RenderMemory\";\r\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\r\nimport { RenderTextureDrape } from \"./RenderSystem\";\r\n\r\n/** Carries information in a GraphicBranchOptions about a GraphicBranch produced by drawing one view into the context of another.\r\n * @internal\r\n */\r\nexport interface GraphicBranchFrustum {\r\n is3d: boolean;\r\n scale: {\r\n x: number;\r\n y: number;\r\n };\r\n}\r\n\r\n/** Special values of [[GraphicBranch.animationNodeId]].\r\n * All other values refer to an [ElementTimeline.batchId]($common) that applies a transform to the graphics in the branch.\r\n * @internal\r\n */\r\nexport enum AnimationNodeId {\r\n Untransformed = 0xffffffff,\r\n}\r\n\r\n/**\r\n * A node in a scene graph. The branch itself is not renderable. Instead it contains a list of RenderGraphics,\r\n * and a transform, symbology overrides, and clip volume which are to be applied when rendering them.\r\n * Branches can be nested to build an arbitrarily-complex scene graph.\r\n * @see [[RenderSystem.createBranch]]\r\n * @public\r\n * @extensions\r\n */\r\nexport class GraphicBranch implements IDisposable /* , RenderMemory.Consumer */ {\r\n /** The child nodes of this branch */\r\n public readonly entries: RenderGraphic[] = [];\r\n /** If true, when the branch is disposed of, the RenderGraphics in its entries array will also be disposed */\r\n public readonly ownsEntries: boolean;\r\n /** Selectively overrides the view's [ViewFlags]($common) while drawing graphics within this branch. The default overrides nothing.\r\n * @see [[setViewFlagOverrides]].\r\n */\r\n public viewFlagOverrides: ViewFlagOverrides = {};\r\n /** Controls how reality models are displayed within this branch.\r\n * @beta\r\n */\r\n public realityModelDisplaySettings?: RealityModelDisplaySettings;\r\n /** Optional symbology overrides to be applied to all graphics in this branch */\r\n public symbologyOverrides?: FeatureSymbology.Overrides;\r\n /** Optional animation branch Id that incorporates the model Id and, for element timelines, the batch Id.\r\n * @internal\r\n */\r\n public animationId?: string;\r\n /** Identifies the node in the [RenderSchedule.Script]($backend) with which this branch is associated.\r\n * @internal\r\n */\r\n public animationNodeId?: AnimationNodeId | number;\r\n\r\n /** Constructor\r\n * @param ownsEntries If true, when this branch is [[dispose]]d, all of the [[RenderGraphic]]s it contains will also be disposed.\r\n */\r\n public constructor(ownsEntries: boolean = false) {\r\n this.ownsEntries = ownsEntries;\r\n }\r\n\r\n /** Add a graphic to this branch. */\r\n public add(graphic: RenderGraphic): void {\r\n this.entries.push(graphic);\r\n }\r\n\r\n /** Compute the view flags that result from applying this branch's [[viewFlagOverrides]] to the input flags.\r\n * @param flags The input view flags, e.g., from the view's [[DisplayStyleState]].\r\n * @returns The result of applying [[viewFlagOverrides]] to `flags`.\r\n */\r\n public getViewFlags(flags: ViewFlags): ViewFlags {\r\n return flags.override(this.viewFlagOverrides);\r\n }\r\n\r\n /** Set [[viewFlagOverrides]] to override **all** ViewFlags as specified by `flags`. */\r\n public setViewFlags(flags: ViewFlags): void {\r\n this.viewFlagOverrides = { ...flags };\r\n }\r\n\r\n /** Change [[viewFlagOverrides]]. */\r\n public setViewFlagOverrides(ovr: ViewFlagOverrides): void {\r\n this.viewFlagOverrides = { ...ovr };\r\n }\r\n\r\n /** Disposes of all graphics in this branch, if and only if [[ownsEntries]] is true. */\r\n public dispose() {\r\n this.clear();\r\n }\r\n\r\n /** Returns true if this branch contains no graphics. */\r\n public get isEmpty(): boolean {\r\n return 0 === this.entries.length;\r\n }\r\n\r\n /** Empties the list of [[RenderGraphic]]s contained in this branch, and if the [[ownsEntries]] flag is set, also disposes of them. */\r\n public clear(): void {\r\n if (this.ownsEntries)\r\n disposeArray(this.entries);\r\n else\r\n this.entries.length = 0;\r\n }\r\n\r\n /** @internal */\r\n public collectStatistics(stats: RenderMemory.Statistics): void {\r\n for (const entry of this.entries)\r\n entry.collectStatistics(stats);\r\n }\r\n}\r\n\r\n/** Options passed to [[RenderSystem.createGraphicBranch]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GraphicBranchOptions {\r\n /** Clip applied to the graphics in the branch. */\r\n clipVolume?: RenderClipVolume;\r\n /** @internal */\r\n classifierOrDrape?: RenderPlanarClassifier | RenderTextureDrape;\r\n /** Optionally replaces the view's hidden line settings when drawing the branch. */\r\n hline?: HiddenLine.Settings;\r\n /** The iModel from which the graphics originate, if different than that associated with the view. */\r\n iModel?: IModelConnection;\r\n /** @internal */\r\n frustum?: GraphicBranchFrustum;\r\n /** Supplements the view's [[FeatureSymbology.Overrides]] for graphics in the branch. */\r\n appearanceProvider?: FeatureAppearanceProvider;\r\n /** @internal Secondary planar classifiers (map layers) */\r\n secondaryClassifiers?: Map<number, RenderPlanarClassifier>;\r\n}\r\n\r\n/** Clip/Transform for a branch that are varied over time.\r\n * @internal\r\n */\r\nexport interface AnimationBranchState {\r\n readonly clip?: RenderClipVolume;\r\n readonly omit?: boolean;\r\n}\r\n\r\n/** @internal */\r\nexport function formatAnimationBranchId(modelId: Id64String, branchId: number): string {\r\n if (branchId < 0)\r\n return modelId;\r\n\r\n return `${modelId}_Node_${branchId.toString()}`;\r\n}\r\n\r\nfunction addAnimationBranch(modelId: Id64String, timeline: RenderSchedule.Timeline, branchId: number, branches: Map<string, AnimationBranchState>, time: number): void {\r\n const clipVector = timeline.getClipVector(time);\r\n const clip = clipVector ? IModelApp.renderSystem.createClipVolume(clipVector) : undefined;\r\n if (clip)\r\n branches.set(formatAnimationBranchId(modelId, branchId), { clip });\r\n}\r\n\r\n/** Mapping from node/branch IDs to animation branch state\r\n * @internal\r\n */\r\nexport interface AnimationBranchStates {\r\n /** Maps node Id to branch state. */\r\n readonly branchStates: Map<string, AnimationBranchState>;\r\n /** Ids of nodes that apply a transform. */\r\n readonly transformNodeIds: ReadonlySet<number>;\r\n}\r\n\r\n/** @internal */\r\nexport namespace AnimationBranchStates {\r\n export function fromScript(script: RenderSchedule.Script, time: number): AnimationBranchStates | undefined {\r\n if (!script.containsModelClipping && !script.requiresBatching)\r\n return undefined;\r\n\r\n const branches = new Map<string, AnimationBranchState>();\r\n for (const model of script.modelTimelines) {\r\n addAnimationBranch(model.modelId, model, -1, branches, time);\r\n for (const elem of model.elementTimelines) {\r\n if (elem.getVisibility(time) <= 0)\r\n branches.set(formatAnimationBranchId(model.modelId, elem.batchId), { omit: true });\r\n else\r\n addAnimationBranch(model.modelId, elem, elem.batchId, branches, time);\r\n }\r\n }\r\n\r\n return {\r\n branchStates: branches,\r\n transformNodeIds: script.transformBatchIds,\r\n };\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"GraphicBranch.js","sourceRoot":"","sources":["../../../src/render/GraphicBranch.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA4E;AAK5E,4CAAyC;AAoBzC;;;GAGG;AACH,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,gFAA0B,CAAA;AAC5B,CAAC,EAFW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAE1B;AAED;;;;;;;GAOG;AACH,MAAa,aAAa;IA0BxB;;OAEG;IACH,YAAmB,cAAuB,KAAK;QA5B/C,qCAAqC;QACrB,YAAO,GAAoB,EAAE,CAAC;QAG9C;;WAEG;QACI,sBAAiB,GAAsB,EAAE,CAAC;QAsB/C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,oCAAoC;IAC7B,GAAG,CAAC,OAAsB;QAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,C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A;AACH,CAAC,EArBgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAqBrC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { disposeArray, Id64String, IDisposable } from \"@itwin/core-bentley\";\r\nimport {\r\n FeatureAppearanceProvider, HiddenLine, RealityModelDisplaySettings, RenderSchedule, ViewFlagOverrides, ViewFlags,\r\n} from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\nimport { IModelApp } from \"../IModelApp\";\r\nimport { FeatureSymbology } from \"./FeatureSymbology\";\r\nimport { RenderClipVolume } from \"./RenderClipVolume\";\r\nimport { RenderGraphic } from \"./RenderGraphic\";\r\nimport { RenderMemory } from \"./RenderMemory\";\r\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\r\nimport { RenderTextureDrape } from \"./RenderSystem\";\r\nimport { Range3d } from \"@itwin/core-geometry\";\r\n\r\n/** Carries information in a GraphicBranchOptions about a GraphicBranch produced by drawing one view into the context of another.\r\n * @internal\r\n */\r\nexport interface GraphicBranchFrustum {\r\n is3d: boolean;\r\n scale: {\r\n x: number;\r\n y: number;\r\n };\r\n}\r\n\r\n/** Special values of [[GraphicBranch.animationNodeId]].\r\n * All other values refer to an [ElementTimeline.batchId]($common) that applies a transform to the graphics in the branch.\r\n * @internal\r\n */\r\nexport enum AnimationNodeId {\r\n Untransformed = 0xffffffff,\r\n}\r\n\r\n/**\r\n * A node in a scene graph. The branch itself is not renderable. Instead it contains a list of RenderGraphics,\r\n * and a transform, symbology overrides, and clip volume which are to be applied when rendering them.\r\n * Branches can be nested to build an arbitrarily-complex scene graph.\r\n * @see [[RenderSystem.createBranch]]\r\n * @public\r\n * @extensions\r\n */\r\nexport class GraphicBranch implements IDisposable /* , RenderMemory.Consumer */ {\r\n /** The child nodes of this branch */\r\n public readonly entries: RenderGraphic[] = [];\r\n /** If true, when the branch is disposed of, the RenderGraphics in its entries array will also be disposed */\r\n public readonly ownsEntries: boolean;\r\n /** Selectively overrides the view's [ViewFlags]($common) while drawing graphics within this branch. The default overrides nothing.\r\n * @see [[setViewFlagOverrides]].\r\n */\r\n public viewFlagOverrides: ViewFlagOverrides = {};\r\n /** Controls how reality models are displayed within this branch.\r\n * @beta\r\n */\r\n public realityModelDisplaySettings?: RealityModelDisplaySettings;\r\n /** @internal */\r\n public realityModelRange?: Range3d;\r\n /** Optional symbology overrides to be applied to all graphics in this branch */\r\n public symbologyOverrides?: FeatureSymbology.Overrides;\r\n /** Optional animation branch Id that incorporates the model Id and, for element timelines, the batch Id.\r\n * @internal\r\n */\r\n public animationId?: string;\r\n /** Identifies the node in the [RenderSchedule.Script]($backend) with which this branch is associated.\r\n * @internal\r\n */\r\n public animationNodeId?: AnimationNodeId | number;\r\n\r\n /** Constructor\r\n * @param ownsEntries If true, when this branch is [[dispose]]d, all of the [[RenderGraphic]]s it contains will also be disposed.\r\n */\r\n public constructor(ownsEntries: boolean = false) {\r\n this.ownsEntries = ownsEntries;\r\n }\r\n\r\n /** Add a graphic to this branch. */\r\n public add(graphic: RenderGraphic): void {\r\n this.entries.push(graphic);\r\n }\r\n\r\n /** Compute the view flags that result from applying this branch's [[viewFlagOverrides]] to the input flags.\r\n * @param flags The input view flags, e.g., from the view's [[DisplayStyleState]].\r\n * @returns The result of applying [[viewFlagOverrides]] to `flags`.\r\n */\r\n public getViewFlags(flags: ViewFlags): ViewFlags {\r\n return flags.override(this.viewFlagOverrides);\r\n }\r\n\r\n /** Set [[viewFlagOverrides]] to override **all** ViewFlags as specified by `flags`. */\r\n public setViewFlags(flags: ViewFlags): void {\r\n this.viewFlagOverrides = { ...flags };\r\n }\r\n\r\n /** Change [[viewFlagOverrides]]. */\r\n public setViewFlagOverrides(ovr: ViewFlagOverrides): void {\r\n this.viewFlagOverrides = { ...ovr };\r\n }\r\n\r\n /** Disposes of all graphics in this branch, if and only if [[ownsEntries]] is true. */\r\n public dispose() {\r\n this.clear();\r\n }\r\n\r\n /** Returns true if this branch contains no graphics. */\r\n public get isEmpty(): boolean {\r\n return 0 === this.entries.length;\r\n }\r\n\r\n /** Empties the list of [[RenderGraphic]]s contained in this branch, and if the [[ownsEntries]] flag is set, also disposes of them. */\r\n public clear(): void {\r\n if (this.ownsEntries)\r\n disposeArray(this.entries);\r\n else\r\n this.entries.length = 0;\r\n }\r\n\r\n /** @internal */\r\n public collectStatistics(stats: RenderMemory.Statistics): void {\r\n for (const entry of this.entries)\r\n entry.collectStatistics(stats);\r\n }\r\n}\r\n\r\n/** Options passed to [[RenderSystem.createGraphicBranch]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GraphicBranchOptions {\r\n /** Clip applied to the graphics in the branch. */\r\n clipVolume?: RenderClipVolume;\r\n /** @internal */\r\n classifierOrDrape?: RenderPlanarClassifier | RenderTextureDrape;\r\n /** Optionally replaces the view's hidden line settings when drawing the branch. */\r\n hline?: HiddenLine.Settings;\r\n /** The iModel from which the graphics originate, if different than that associated with the view. */\r\n iModel?: IModelConnection;\r\n /** @internal */\r\n frustum?: GraphicBranchFrustum;\r\n /** Supplements the view's [[FeatureSymbology.Overrides]] for graphics in the branch. */\r\n appearanceProvider?: FeatureAppearanceProvider;\r\n /** @internal Secondary planar classifiers (map layers) */\r\n secondaryClassifiers?: Map<number, RenderPlanarClassifier>;\r\n}\r\n\r\n/** Clip/Transform for a branch that are varied over time.\r\n * @internal\r\n */\r\nexport interface AnimationBranchState {\r\n readonly clip?: RenderClipVolume;\r\n readonly omit?: boolean;\r\n}\r\n\r\n/** @internal */\r\nexport function formatAnimationBranchId(modelId: Id64String, branchId: number): string {\r\n if (branchId < 0)\r\n return modelId;\r\n\r\n return `${modelId}_Node_${branchId.toString()}`;\r\n}\r\n\r\nfunction addAnimationBranch(modelId: Id64String, timeline: RenderSchedule.Timeline, branchId: number, branches: Map<string, AnimationBranchState>, time: number): void {\r\n const clipVector = timeline.getClipVector(time);\r\n const clip = clipVector ? IModelApp.renderSystem.createClipVolume(clipVector) : undefined;\r\n if (clip)\r\n branches.set(formatAnimationBranchId(modelId, branchId), { clip });\r\n}\r\n\r\n/** Mapping from node/branch IDs to animation branch state\r\n * @internal\r\n */\r\nexport interface AnimationBranchStates {\r\n /** Maps node Id to branch state. */\r\n readonly branchStates: Map<string, AnimationBranchState>;\r\n /** Ids of nodes that apply a transform. */\r\n readonly transformNodeIds: ReadonlySet<number>;\r\n}\r\n\r\n/** @internal */\r\nexport namespace AnimationBranchStates {\r\n export function fromScript(script: RenderSchedule.Script, time: number): AnimationBranchStates | undefined {\r\n if (!script.containsModelClipping && !script.requiresBatching)\r\n return undefined;\r\n\r\n const branches = new Map<string, AnimationBranchState>();\r\n for (const model of script.modelTimelines) {\r\n addAnimationBranch(model.modelId, model, -1, branches, time);\r\n for (const elem of model.elementTimelines) {\r\n if (elem.getVisibility(time) <= 0)\r\n branches.set(formatAnimationBranchId(model.modelId, elem.batchId), { omit: true });\r\n else\r\n addAnimationBranch(model.modelId, elem, elem.batchId, branches, time);\r\n }\r\n }\r\n\r\n return {\r\n branchStates: branches,\r\n transformNodeIds: script.transformBatchIds,\r\n };\r\n }\r\n}\r\n"]}
@@ -1,7 +1,7 @@
1
1
  /** @packageDocumentation
2
2
  * @module Rendering
3
3
  */
4
- import { Uint16ArrayBuilder } from "@itwin/core-bentley";
4
+ import { Uint16ArrayBuilder, UintArray, UintArrayBuilder } from "@itwin/core-bentley";
5
5
  import { Polyface, Range2d, Range3d, Transform, XAndY, XYAndZ } from "@itwin/core-geometry";
6
6
  import { QPoint2dBuffer, QPoint2dBufferBuilder, QPoint3dBuffer, QPoint3dBufferBuilder, RenderTexture } from "@itwin/core-common";
7
7
  import { GltfMeshData } from "../tile/internal";
@@ -9,7 +9,6 @@ import { GltfMeshData } from "../tile/internal";
9
9
  * A reality mesh is a simple triangle mesh to which a [RenderTexture]($common) image can be mapped. Sources of reality meshes
10
10
  * include [[TerrainMeshProvider]]s to which background map imagery is applied, and [ContextRealityModel]($common)s captured using
11
11
  * [photogrammetry](https://en.wikipedia.org/wiki/Photogrammetry).
12
- * @note Currently, reality meshes cannot contain more than 65,535 vertices.
13
12
  * @see [[RealityMeshParamsBuilder]] to incrementally construct a `RealityMeshParams`.
14
13
  * @beta
15
14
  */
@@ -21,7 +20,7 @@ export interface RealityMeshParams {
21
20
  /** The optional normal vector for each vertex in the mesh, indexed by [[indices]], stored as [OctEncodedNormal]($common)s. */
22
21
  normals?: Uint16Array;
23
22
  /** The integer indices of each triangle in the mesh. The array's length must be a multiple of 3. */
24
- indices: Uint16Array;
23
+ indices: UintArray;
25
24
  /** @alpha unused by terrain meshes */
26
25
  featureID?: number;
27
26
  /** @alpha unused by terrain meshes */
@@ -77,7 +76,7 @@ export declare class RealityMeshParamsBuilder {
77
76
  * @see [[addQuad]] to add 4 indices describing two triangles sharing an edge.
78
77
  * @see [[addIndices]] to add any number of indices.
79
78
  */
80
- readonly indices: Uint16ArrayBuilder;
79
+ readonly indices: UintArrayBuilder;
81
80
  /** The 3d position of each vertex in the mesh.
82
81
  * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.
83
82
  */
@@ -1 +1 @@
1
- {"version":3,"file":"RealityMeshParams.d.ts","sourceRoot":"","sources":["../../../src/render/RealityMeshParams.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAU,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAC8B,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAY,KAAK,EAAE,MAAM,EAClG,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACuB,cAAc,EAAE,qBAAqB,EAAY,cAAc,EAAE,qBAAqB,EAAE,aAAa,EAClI,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAA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IAC1C;;OAEG;IACH,SAAgB,SAAS,EAAE,qBAAqB,CAAC;IACjD;;OAEG;IACH,SAAgB,GAAG,EAAE,qBAAqB,CAAC;IAC3C;;;;OAIG;IACI,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAGpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IACvC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IAEvC,sDAAsD;gBACnC,OAAO,EAAE,+BAA+B;IAwB3D;;;;;;OAMG;IACI,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAOjF;;OAEG;IACI,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAKpE;;;;;;;OAOG;IACI,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAc/E,oEAAoE;IAC7D,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAM5D,4HAA4H;IACrH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAKpE,+DAA+D;IACxD,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI;IAKlD,OAAO,CAAC,QAAQ;IAKhB,kDAAkD;IAC3C,MAAM,IAAI,iBAAiB;CASnC"}
@@ -18,8 +18,8 @@ var RealityMeshParams;
18
18
  /** @internal */
19
19
  function fromGltfMesh(mesh) {
20
20
  var _a;
21
- // The specialized reality mesh shaders expect a mesh with 16-bit indices, uvs, and no edges.
22
- if (mesh.primitive.type !== MeshPrimitives_1.Mesh.PrimitiveType.Mesh || mesh.primitive.edges || !mesh.pointQParams || !mesh.uvQParams || !mesh.points || !mesh.uvs || !mesh.indices || !(mesh.indices instanceof Uint16Array))
21
+ // The specialized reality mesh shaders expect a mesh with uvs and no edges.
22
+ if (mesh.primitive.type !== MeshPrimitives_1.Mesh.PrimitiveType.Mesh || mesh.primitive.edges || !mesh.pointQParams || !mesh.uvQParams || !mesh.points || !mesh.uvs || !mesh.indices)
23
23
  return undefined;
24
24
  return {
25
25
  indices: mesh.indices,
@@ -89,7 +89,13 @@ class RealityMeshParamsBuilder {
89
89
  // Scratch variables
90
90
  this._q3d = new core_common_1.QPoint3d();
91
91
  this._q2d = new core_common_1.QPoint2d();
92
- this.indices = new core_bentley_1.Uint16ArrayBuilder({ initialCapacity: options.initialIndexCapacity });
92
+ let initialType;
93
+ if (undefined !== options.initialVertexCapacity && options.initialVertexCapacity > 0xff)
94
+ initialType = options.initialVertexCapacity > 0xffff ? Uint32Array : Uint16Array;
95
+ this.indices = new core_bentley_1.UintArrayBuilder({
96
+ initialCapacity: options.initialIndexCapacity,
97
+ initialType,
98
+ });
93
99
  if (options.wantNormals)
94
100
  this.normals = new core_bentley_1.Uint16ArrayBuilder({ initialCapacity: options.initialVertexCapacity });
95
101
  this.positions = new core_common_1.QPoint3dBufferBuilder({
@@ -1 +1 @@
1
- {"version":3,"file":"RealityMeshParams.js","sourceRoot":"","sources":["../../../src/render/RealityMeshParams.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAiE;AACjE,wDAE8B;AAC9B,oDAE4B;AAE5B,qEAAwD;AAyBxD,YAAY;AACZ,IAAiB,iBAAiB,CAkEjC;AAlED,WAAiB,iBAAiB;IAChC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,IAAkB;;QAC7C,6FAA6F;QAC7F,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,qBAAI,CAAC,aAAa,CAAC,IAAI,IAAI,IAAI,C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,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;SACrC,CAAC;IACJ,CAAC;CACF;AAzHD,4DAyHC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { assert, Uint16ArrayBuilder } from \"@itwin/core-bentley\";\r\nimport {\r\n IndexedPolyface, Point2d, Point3d, Polyface, Range2d, Range3d, Transform, Vector3d, XAndY, XYAndZ,\r\n} from \"@itwin/core-geometry\";\r\nimport {\r\n OctEncodedNormal, QPoint2d, QPoint2dBuffer, QPoint2dBufferBuilder, QPoint3d, QPoint3dBuffer, QPoint3dBufferBuilder, RenderTexture,\r\n} from \"@itwin/core-common\";\r\nimport { GltfMeshData } from \"../tile/internal\";\r\nimport { Mesh } from \"./primitives/mesh/MeshPrimitives\";\r\n\r\n/** Geometry for a reality mesh to be submitted to the [[RenderSystem]] for conversion to a [[RenderGraphic]].\r\n * A reality mesh is a simple triangle mesh to which a [RenderTexture]($common) image can be mapped. Sources of reality meshes\r\n * include [[TerrainMeshProvider]]s to which background map imagery is applied, and [ContextRealityModel]($common)s captured using\r\n * [photogrammetry](https://en.wikipedia.org/wiki/Photogrammetry).\r\n * @note Currently, reality meshes cannot contain more than 65,535 vertices.\r\n * @see [[RealityMeshParamsBuilder]] to incrementally construct a `RealityMeshParams`.\r\n * @beta\r\n */\r\nexport interface RealityMeshParams {\r\n /** The 3d position of each vertex in the mesh, indexed by [[indices]]. */\r\n positions: QPoint3dBuffer;\r\n /** The 2d texture coordinates of each vertex in the mesh, indexed by [[indices]]. */\r\n uvs: QPoint2dBuffer;\r\n /** The optional normal vector for each vertex in the mesh, indexed by [[indices]], stored as [OctEncodedNormal]($common)s. */\r\n normals?: Uint16Array;\r\n /** The integer indices of each triangle in the mesh. The array's length must be a multiple of 3. */\r\n indices: Uint16Array;\r\n /** @alpha unused by terrain meshes */\r\n featureID?: number; // default 0\r\n /** @alpha unused by terrain meshes */\r\n texture?: RenderTexture;\r\n}\r\n\r\n/** @beta */\r\nexport namespace RealityMeshParams {\r\n /** @internal */\r\n export function fromGltfMesh(mesh: GltfMeshData): RealityMeshParams | undefined {\r\n // The specialized reality mesh shaders expect a mesh with 16-bit indices, uvs, and no edges.\r\n if (mesh.primitive.type !== Mesh.PrimitiveType.Mesh || mesh.primitive.edges || !mesh.pointQParams || !mesh.uvQParams || !mesh.points || !mesh.uvs || !mesh.indices || !(mesh.indices instanceof Uint16Array))\r\n return undefined;\r\n\r\n return {\r\n indices: mesh.indices,\r\n positions: {\r\n params: mesh.pointQParams,\r\n points: mesh.points,\r\n },\r\n uvs: {\r\n params: mesh.uvQParams,\r\n points: mesh.uvs,\r\n },\r\n normals: mesh.normals,\r\n // featureID: 0,\r\n texture: mesh.primitive.displayParams.textureMapping?.texture,\r\n };\r\n }\r\n\r\n /** @alpha */\r\n export function toPolyface(params: RealityMeshParams, options?: { transform?: Transform, wantNormals?: boolean, wantParams?: boolean }): Polyface | undefined {\r\n const { positions, normals, uvs, indices } = params;\r\n const includeNormals = options?.wantNormals && undefined !== normals;\r\n const includeParams = options?.wantParams;\r\n\r\n const polyface = IndexedPolyface.create(includeNormals, includeParams);\r\n const points = positions.points;\r\n const point = new Point3d();\r\n const transform = options?.transform;\r\n for (let i = 0; i < positions.points.length; i += 3) {\r\n positions.params.unquantize(points[i], points[i + 1], points[i + 2], point);\r\n transform?.multiplyPoint3d(point, point);\r\n polyface.addPoint(point);\r\n }\r\n\r\n if (includeNormals) {\r\n const normal = new Vector3d();\r\n for (const oen of normals)\r\n polyface.addNormal(OctEncodedNormal.decodeValue(oen, normal));\r\n }\r\n\r\n if (includeParams) {\r\n const uv = new Point2d();\r\n for (let i = 0; i < uvs.points.length; i += 2)\r\n polyface.addParam(uvs.params.unquantize(uvs.points[i], uvs.points[i + 1], uv));\r\n }\r\n\r\n let j = 0;\r\n indices.forEach((index: number) => {\r\n polyface.addPointIndex(index);\r\n if (includeNormals)\r\n polyface.addNormalIndex(index);\r\n\r\n if (includeParams)\r\n polyface.addParamIndex(index);\r\n\r\n if (0 === (++j % 3))\r\n polyface.terminateFacet();\r\n });\r\n\r\n return polyface;\r\n }\r\n}\r\n\r\n/** Options used to construct a [[RealityMeshParamsBuilder]].\r\n * @beta\r\n */\r\nexport interface RealityMeshParamsBuilderOptions {\r\n /** A bounding box fully containing the positions of all vertices to be included in the mesh.\r\n * This range is used to quantize [[RealityMeshParams.positions]].\r\n */\r\n positionRange: Range3d;\r\n /** A range fully containing the texture coordinates of all vertices to be included in the mesh.\r\n * This range is used to quantize [[RealityMeshParams.uvs]].\r\n * Default: [0.0, 1.0].\r\n */\r\n uvRange?: Range2d;\r\n /** If true, [[RealityMeshParams.normals]] will be populated.\r\n * If you set this to true, you must supply a normal for every vertex when calling [[RealityMeshParamsBuilder.addQuantizedVertex]] or [[RealityMeshParamsBuilder.addUnquantizedVertex]].\r\n */\r\n wantNormals?: boolean;\r\n /** If defined, memory for this number of vertices will be allocated up-front. Set this if you know the minimum number of vertices in the mesh, to\r\n * avoid unnecessary reallocations when adding vertices.\r\n */\r\n initialVertexCapacity?: number;\r\n /** If defined, memory for this number of indices will be allocated up-front. Set this if you know the minimum number of triangles in the mesh, to avoid\r\n * unnecessary reallocations when adding triangles. The number of indices is equal to three times the number of triangles.\r\n */\r\n initialIndexCapacity?: number;\r\n}\r\n\r\n/** Incrementally constructs a [[RealityMeshParams]].\r\n * The following simple example produces a rectangular mesh containing two triangles.\r\n * ```ts\r\n * [[include:Build_Reality_Mesh_Params]]\r\n * ```\r\n * @beta\r\n */\r\nexport class RealityMeshParamsBuilder {\r\n /** The indices of the vertices in each triangle of the mesh.\r\n * @see [[addTriangle]] to add 3 indices describing a single triangle.\r\n * @see [[addQuad]] to add 4 indices describing two triangles sharing an edge.\r\n * @see [[addIndices]] to add any number of indices.\r\n */\r\n public readonly indices: Uint16ArrayBuilder;\r\n /** The 3d position of each vertex in the mesh.\r\n * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.\r\n */\r\n public readonly positions: QPoint3dBufferBuilder;\r\n /** The 2d texture coordinates of each vertex in the mesh.\r\n * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.\r\n */\r\n public readonly uvs: QPoint2dBufferBuilder;\r\n /** The normal vector of each vertex in the mesh, or `undefined` if [[RealityMeshParamsBuilderOptions.wantNormals]] was not `true` when constructing the builder.\r\n * A normal vector must be supplied to [[addQuantizedVertex]] and [[addUnquantizedVertex]] if and only if [[RealityMeshParamsBuilderOptions.wantNormals]] was\r\n * specified as `true`.\r\n * The vectors are stored as [OctEncodedNormal]($common)s.\r\n */\r\n public normals?: Uint16ArrayBuilder;\r\n\r\n // Scratch variables\r\n private readonly _q3d = new QPoint3d();\r\n private readonly _q2d = new QPoint2d();\r\n\r\n /** Construct a builder from the specified options. */\r\n public constructor(options: RealityMeshParamsBuilderOptions) {\r\n this.indices = new Uint16ArrayBuilder({ initialCapacity: options.initialIndexCapacity });\r\n if (options.wantNormals)\r\n this.normals = new Uint16ArrayBuilder({ initialCapacity: options.initialVertexCapacity });\r\n\r\n this.positions = new QPoint3dBufferBuilder({\r\n range: options.positionRange,\r\n initialCapacity: options.initialVertexCapacity,\r\n });\r\n\r\n this.uvs = new QPoint2dBufferBuilder({\r\n range: options.uvRange ?? new Range2d(0, 0, 1, 1),\r\n initialCapacity: options.initialVertexCapacity,\r\n });\r\n }\r\n\r\n /** Add a vertex to the mesh and return its index in [[positions]].\r\n * @param position The 3d position, which will be quantized to the [[RealityMeshParamsBuilderOptions.positionRange]] supplied to the builder's constructor.\r\n * @param uv The texture coordinates, which will be quantized to the [[RealityMeshParamsBuilderOptions.uvRange]] supplied to the builder's constructor.\r\n * @param the normal vector, to be supplied if and only if [[RealityMeshParamsBuilderOptions.wantNormals]] was `true` when the builder was constructed.\r\n * @see [[addQuantizedVertex]] if your vertex data is already quantized.\r\n * @returns the index of the new vertex in [[positions]].\r\n */\r\n public addUnquantizedVertex(position: XYAndZ, uv: XAndY, normal?: XYAndZ): number {\r\n this._q3d.init(position, this.positions.params);\r\n this._q2d.init(uv, this.uvs.params);\r\n const oen = normal ? OctEncodedNormal.encode(normal) : undefined;\r\n return this.addQuantizedVertex(this._q3d, this._q2d, oen);\r\n }\r\n\r\n /** Original API had weird mix of quantized and unquantized, used by CesiumTerrainProvider.\r\n * @internal\r\n */\r\n public addVertex(position: XYAndZ, uv: XAndY, normal?: number): void {\r\n this._q3d.init(position, this.positions.params);\r\n this.addQuantizedVertex(this._q3d, uv, normal);\r\n }\r\n\r\n /** Add a vertex to the mesh and return its index in [[positions]].\r\n * @param position The 3d position, quantized to the [[RealityMeshParamsBuilderOptions.positionRange]] supplied to the builder's constructor.\r\n * @param uv The texture coordinates, quantized to the [[RealityMeshParamsBuilderOptions.uvRange]] supplied to the builder's constructor.\r\n * @param normal The unsigned 16-bit [OctEncodedNormal]($common) integer representation of the normal vector, to be supplied if and only if\r\n * [[RealityMeshParamsBuilderOptions.wantNormals]] was `true` when the builder was constructed.\r\n * @see [[addUnquantizedVertex]] if your vertex data is not already quantized.\r\n * @returns the index of the new vertex in [[positions]].\r\n */\r\n public addQuantizedVertex(position: XYAndZ, uv: XAndY, normal?: number): number {\r\n assert(this.positions.length < 0xffff, \"RealityMeshParams supports no more than 64k vertices\");\r\n assert((undefined === normal) === (undefined === this.normals), \"RealityMeshParams requires all vertices to have normals, or none.\");\r\n\r\n this.positions.push(position);\r\n this.uvs.push(uv);\r\n if (undefined !== normal) {\r\n assert(undefined !== this.normals, \"Set RealityMeshParamsBuilderOptions.wantNormals\");\r\n this.normals.push(normal);\r\n }\r\n\r\n return this.positions.length - 1;\r\n }\r\n\r\n /** Add a triangle corresponding to the three specified vertices. */\r\n public addTriangle(i0: number, i1: number, i2: number): void {\r\n this.addIndex(i0);\r\n this.addIndex(i1);\r\n this.addIndex(i2);\r\n }\r\n\r\n /** Add two triangles sharing an edge. This is equivalent to calling `addTriangle(i0, i1, i2); addTriangle(i1, i3, i2);`. */\r\n public addQuad(i0: number, i1: number, i2: number, i3: number): void {\r\n this.addTriangle(i0, i1, i2);\r\n this.addTriangle(i1, i3, i2);\r\n }\r\n\r\n /** Add all of the indices in `indices` to the index buffer. */\r\n public addIndices(indices: Iterable<number>): void {\r\n for (const index of indices)\r\n this.addIndex(index);\r\n }\r\n\r\n private addIndex(index: number): void {\r\n assert(index <= 0xffff, \"RealityMeshParams supports no more than 64k vertices\");\r\n this.indices.push(index);\r\n }\r\n\r\n /** Extract the finished [[RealityMeshParams]]. */\r\n public finish(): RealityMeshParams {\r\n assert(this.positions.length >= 3 && this.indices.length >= 3, \"RealityMeshParams requires at least one triangle\");\r\n return {\r\n positions: this.positions.finish(),\r\n uvs: this.uvs.finish(),\r\n normals: this.normals?.toTypedArray(),\r\n indices: this.indices.toTypedArray(),\r\n };\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"RealityMeshParams.js","sourceRoot":"","sources":["../../../src/render/RealityMeshParams.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA8F;AAC9F,wDAE8B;AAC9B,oDAE4B;AAE5B,qEAAwD;AAwBxD,YAAY;AACZ,IAAiB,iBAAiB,CAkEjC;AAlED,WAAiB,iBAAiB;IAChC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,IAAkB;;QAC7C,4EAA4E;QAC5E,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,qBAAI,CAAC,aAAa,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO;YAChK,OAAO,SAAS,CAAC;QAEnB,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AY,EAAE;SACrC,CAAC;IACJ,CAAC;CACF;AAjID,4DAiIC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { assert, Uint16ArrayBuilder, UintArray, UintArrayBuilder } from \"@itwin/core-bentley\";\r\nimport {\r\n IndexedPolyface, Point2d, Point3d, Polyface, Range2d, Range3d, Transform, Vector3d, XAndY, XYAndZ,\r\n} from \"@itwin/core-geometry\";\r\nimport {\r\n OctEncodedNormal, QPoint2d, QPoint2dBuffer, QPoint2dBufferBuilder, QPoint3d, QPoint3dBuffer, QPoint3dBufferBuilder, RenderTexture,\r\n} from \"@itwin/core-common\";\r\nimport { GltfMeshData } from \"../tile/internal\";\r\nimport { Mesh } from \"./primitives/mesh/MeshPrimitives\";\r\n\r\n/** Geometry for a reality mesh to be submitted to the [[RenderSystem]] for conversion to a [[RenderGraphic]].\r\n * A reality mesh is a simple triangle mesh to which a [RenderTexture]($common) image can be mapped. Sources of reality meshes\r\n * include [[TerrainMeshProvider]]s to which background map imagery is applied, and [ContextRealityModel]($common)s captured using\r\n * [photogrammetry](https://en.wikipedia.org/wiki/Photogrammetry).\r\n * @see [[RealityMeshParamsBuilder]] to incrementally construct a `RealityMeshParams`.\r\n * @beta\r\n */\r\nexport interface RealityMeshParams {\r\n /** The 3d position of each vertex in the mesh, indexed by [[indices]]. */\r\n positions: QPoint3dBuffer;\r\n /** The 2d texture coordinates of each vertex in the mesh, indexed by [[indices]]. */\r\n uvs: QPoint2dBuffer;\r\n /** The optional normal vector for each vertex in the mesh, indexed by [[indices]], stored as [OctEncodedNormal]($common)s. */\r\n normals?: Uint16Array;\r\n /** The integer indices of each triangle in the mesh. The array's length must be a multiple of 3. */\r\n indices: UintArray;\r\n /** @alpha unused by terrain meshes */\r\n featureID?: number; // default 0\r\n /** @alpha unused by terrain meshes */\r\n texture?: RenderTexture;\r\n}\r\n\r\n/** @beta */\r\nexport namespace RealityMeshParams {\r\n /** @internal */\r\n export function fromGltfMesh(mesh: GltfMeshData): RealityMeshParams | undefined {\r\n // The specialized reality mesh shaders expect a mesh with uvs and no edges.\r\n if (mesh.primitive.type !== Mesh.PrimitiveType.Mesh || mesh.primitive.edges || !mesh.pointQParams || !mesh.uvQParams || !mesh.points || !mesh.uvs || !mesh.indices)\r\n return undefined;\r\n\r\n return {\r\n indices: mesh.indices,\r\n positions: {\r\n params: mesh.pointQParams,\r\n points: mesh.points,\r\n },\r\n uvs: {\r\n params: mesh.uvQParams,\r\n points: mesh.uvs,\r\n },\r\n normals: mesh.normals,\r\n // featureID: 0,\r\n texture: mesh.primitive.displayParams.textureMapping?.texture,\r\n };\r\n }\r\n\r\n /** @alpha */\r\n export function toPolyface(params: RealityMeshParams, options?: { transform?: Transform, wantNormals?: boolean, wantParams?: boolean }): Polyface | undefined {\r\n const { positions, normals, uvs, indices } = params;\r\n const includeNormals = options?.wantNormals && undefined !== normals;\r\n const includeParams = options?.wantParams;\r\n\r\n const polyface = IndexedPolyface.create(includeNormals, includeParams);\r\n const points = positions.points;\r\n const point = new Point3d();\r\n const transform = options?.transform;\r\n for (let i = 0; i < positions.points.length; i += 3) {\r\n positions.params.unquantize(points[i], points[i + 1], points[i + 2], point);\r\n transform?.multiplyPoint3d(point, point);\r\n polyface.addPoint(point);\r\n }\r\n\r\n if (includeNormals) {\r\n const normal = new Vector3d();\r\n for (const oen of normals)\r\n polyface.addNormal(OctEncodedNormal.decodeValue(oen, normal));\r\n }\r\n\r\n if (includeParams) {\r\n const uv = new Point2d();\r\n for (let i = 0; i < uvs.points.length; i += 2)\r\n polyface.addParam(uvs.params.unquantize(uvs.points[i], uvs.points[i + 1], uv));\r\n }\r\n\r\n let j = 0;\r\n indices.forEach((index: number) => {\r\n polyface.addPointIndex(index);\r\n if (includeNormals)\r\n polyface.addNormalIndex(index);\r\n\r\n if (includeParams)\r\n polyface.addParamIndex(index);\r\n\r\n if (0 === (++j % 3))\r\n polyface.terminateFacet();\r\n });\r\n\r\n return polyface;\r\n }\r\n}\r\n\r\n/** Options used to construct a [[RealityMeshParamsBuilder]].\r\n * @beta\r\n */\r\nexport interface RealityMeshParamsBuilderOptions {\r\n /** A bounding box fully containing the positions of all vertices to be included in the mesh.\r\n * This range is used to quantize [[RealityMeshParams.positions]].\r\n */\r\n positionRange: Range3d;\r\n /** A range fully containing the texture coordinates of all vertices to be included in the mesh.\r\n * This range is used to quantize [[RealityMeshParams.uvs]].\r\n * Default: [0.0, 1.0].\r\n */\r\n uvRange?: Range2d;\r\n /** If true, [[RealityMeshParams.normals]] will be populated.\r\n * If you set this to true, you must supply a normal for every vertex when calling [[RealityMeshParamsBuilder.addQuantizedVertex]] or [[RealityMeshParamsBuilder.addUnquantizedVertex]].\r\n */\r\n wantNormals?: boolean;\r\n /** If defined, memory for this number of vertices will be allocated up-front. Set this if you know the minimum number of vertices in the mesh, to\r\n * avoid unnecessary reallocations when adding vertices.\r\n */\r\n initialVertexCapacity?: number;\r\n /** If defined, memory for this number of indices will be allocated up-front. Set this if you know the minimum number of triangles in the mesh, to avoid\r\n * unnecessary reallocations when adding triangles. The number of indices is equal to three times the number of triangles.\r\n */\r\n initialIndexCapacity?: number;\r\n}\r\n\r\n/** Incrementally constructs a [[RealityMeshParams]].\r\n * The following simple example produces a rectangular mesh containing two triangles.\r\n * ```ts\r\n * [[include:Build_Reality_Mesh_Params]]\r\n * ```\r\n * @beta\r\n */\r\nexport class RealityMeshParamsBuilder {\r\n /** The indices of the vertices in each triangle of the mesh.\r\n * @see [[addTriangle]] to add 3 indices describing a single triangle.\r\n * @see [[addQuad]] to add 4 indices describing two triangles sharing an edge.\r\n * @see [[addIndices]] to add any number of indices.\r\n */\r\n public readonly indices: UintArrayBuilder;\r\n /** The 3d position of each vertex in the mesh.\r\n * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.\r\n */\r\n public readonly positions: QPoint3dBufferBuilder;\r\n /** The 2d texture coordinates of each vertex in the mesh.\r\n * @see [[addQuantizedVertex]] and [[addUnquantizedVertex]] to add a vertex.\r\n */\r\n public readonly uvs: QPoint2dBufferBuilder;\r\n /** The normal vector of each vertex in the mesh, or `undefined` if [[RealityMeshParamsBuilderOptions.wantNormals]] was not `true` when constructing the builder.\r\n * A normal vector must be supplied to [[addQuantizedVertex]] and [[addUnquantizedVertex]] if and only if [[RealityMeshParamsBuilderOptions.wantNormals]] was\r\n * specified as `true`.\r\n * The vectors are stored as [OctEncodedNormal]($common)s.\r\n */\r\n public normals?: Uint16ArrayBuilder;\r\n\r\n // Scratch variables\r\n private readonly _q3d = new QPoint3d();\r\n private readonly _q2d = new QPoint2d();\r\n\r\n /** Construct a builder from the specified options. */\r\n public constructor(options: RealityMeshParamsBuilderOptions) {\r\n let initialType;\r\n if (undefined !== options.initialVertexCapacity && options.initialVertexCapacity > 0xff)\r\n initialType = options.initialVertexCapacity > 0xffff ? Uint32Array : Uint16Array;\r\n\r\n this.indices = new UintArrayBuilder({\r\n initialCapacity: options.initialIndexCapacity,\r\n initialType,\r\n });\r\n\r\n if (options.wantNormals)\r\n this.normals = new Uint16ArrayBuilder({ initialCapacity: options.initialVertexCapacity });\r\n\r\n this.positions = new QPoint3dBufferBuilder({\r\n range: options.positionRange,\r\n initialCapacity: options.initialVertexCapacity,\r\n });\r\n\r\n this.uvs = new QPoint2dBufferBuilder({\r\n range: options.uvRange ?? new Range2d(0, 0, 1, 1),\r\n initialCapacity: options.initialVertexCapacity,\r\n });\r\n }\r\n\r\n /** Add a vertex to the mesh and return its index in [[positions]].\r\n * @param position The 3d position, which will be quantized to the [[RealityMeshParamsBuilderOptions.positionRange]] supplied to the builder's constructor.\r\n * @param uv The texture coordinates, which will be quantized to the [[RealityMeshParamsBuilderOptions.uvRange]] supplied to the builder's constructor.\r\n * @param the normal vector, to be supplied if and only if [[RealityMeshParamsBuilderOptions.wantNormals]] was `true` when the builder was constructed.\r\n * @see [[addQuantizedVertex]] if your vertex data is already quantized.\r\n * @returns the index of the new vertex in [[positions]].\r\n */\r\n public addUnquantizedVertex(position: XYAndZ, uv: XAndY, normal?: XYAndZ): number {\r\n this._q3d.init(position, this.positions.params);\r\n this._q2d.init(uv, this.uvs.params);\r\n const oen = normal ? OctEncodedNormal.encode(normal) : undefined;\r\n return this.addQuantizedVertex(this._q3d, this._q2d, oen);\r\n }\r\n\r\n /** Original API had weird mix of quantized and unquantized, used by CesiumTerrainProvider.\r\n * @internal\r\n */\r\n public addVertex(position: XYAndZ, uv: XAndY, normal?: number): void {\r\n this._q3d.init(position, this.positions.params);\r\n this.addQuantizedVertex(this._q3d, uv, normal);\r\n }\r\n\r\n /** Add a vertex to the mesh and return its index in [[positions]].\r\n * @param position The 3d position, quantized to the [[RealityMeshParamsBuilderOptions.positionRange]] supplied to the builder's constructor.\r\n * @param uv The texture coordinates, quantized to the [[RealityMeshParamsBuilderOptions.uvRange]] supplied to the builder's constructor.\r\n * @param normal The unsigned 16-bit [OctEncodedNormal]($common) integer representation of the normal vector, to be supplied if and only if\r\n * [[RealityMeshParamsBuilderOptions.wantNormals]] was `true` when the builder was constructed.\r\n * @see [[addUnquantizedVertex]] if your vertex data is not already quantized.\r\n * @returns the index of the new vertex in [[positions]].\r\n */\r\n public addQuantizedVertex(position: XYAndZ, uv: XAndY, normal?: number): number {\r\n assert(this.positions.length < 0xffff, \"RealityMeshParams supports no more than 64k vertices\");\r\n assert((undefined === normal) === (undefined === this.normals), \"RealityMeshParams requires all vertices to have normals, or none.\");\r\n\r\n this.positions.push(position);\r\n this.uvs.push(uv);\r\n if (undefined !== normal) {\r\n assert(undefined !== this.normals, \"Set RealityMeshParamsBuilderOptions.wantNormals\");\r\n this.normals.push(normal);\r\n }\r\n\r\n return this.positions.length - 1;\r\n }\r\n\r\n /** Add a triangle corresponding to the three specified vertices. */\r\n public addTriangle(i0: number, i1: number, i2: number): void {\r\n this.addIndex(i0);\r\n this.addIndex(i1);\r\n this.addIndex(i2);\r\n }\r\n\r\n /** Add two triangles sharing an edge. This is equivalent to calling `addTriangle(i0, i1, i2); addTriangle(i1, i3, i2);`. */\r\n public addQuad(i0: number, i1: number, i2: number, i3: number): void {\r\n this.addTriangle(i0, i1, i2);\r\n this.addTriangle(i1, i3, i2);\r\n }\r\n\r\n /** Add all of the indices in `indices` to the index buffer. */\r\n public addIndices(indices: Iterable<number>): void {\r\n for (const index of indices)\r\n this.addIndex(index);\r\n }\r\n\r\n private addIndex(index: number): void {\r\n assert(index <= 0xffff, \"RealityMeshParams supports no more than 64k vertices\");\r\n this.indices.push(index);\r\n }\r\n\r\n /** Extract the finished [[RealityMeshParams]]. */\r\n public finish(): RealityMeshParams {\r\n assert(this.positions.length >= 3 && this.indices.length >= 3, \"RealityMeshParams requires at least one triangle\");\r\n return {\r\n positions: this.positions.finish(),\r\n uvs: this.uvs.finish(),\r\n normals: this.normals?.toTypedArray(),\r\n indices: this.indices.toTypedArray(),\r\n };\r\n }\r\n}\r\n"]}
@@ -2,7 +2,7 @@
2
2
  * @module Rendering
3
3
  */
4
4
  import { Id64String } from "@itwin/core-bentley";
5
- import { ColorDef, RenderTexture, RgbColorProps, TextureMapping } from "@itwin/core-common";
5
+ import { ColorDef, NormalMapParams, RenderTexture, RgbColorProps, TextureMapping } from "@itwin/core-common";
6
6
  import { IModelConnection } from "../IModelConnection";
7
7
  /** Specifies the provenance of a [RenderMaterial]($common) created for a persistent material element.
8
8
  * @see [[CreateRenderMaterialArgs.source]].
@@ -49,6 +49,8 @@ export interface MaterialSpecularProps {
49
49
  export interface MaterialTextureMappingProps {
50
50
  /** The texture from which the image is obtained. */
51
51
  texture: RenderTexture;
52
+ /** The parameters describing a normal map to use either in place of or in addition to the texture. */
53
+ normalMapParams?: NormalMapParams;
52
54
  /** The mode controlling how the image is mapped onto the surface.
53
55
  * Default: [TextureMapping.Mode.Parametric]($common).
54
56
  */
@@ -1 +1 @@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,MAAM,CAAC;IAEhB,gBAAgB;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,kGAAkG;IAClG,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAE/B,mGAAmG;IACnG,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IAEjC,8FAA8F;IAC9F,cAAc,CAAC,EAAE,2BAA2B,CAAC;CAC9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"RenderMaterial.js","sourceRoot":"","sources":["../../../src/render/RenderMaterial.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { ColorDef, RenderTexture, RgbColorProps, TextureMapping } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\n\r\n/** Specifies the provenance of a [RenderMaterial]($common) created for a persistent material element.\r\n * @see [[CreateRenderMaterialArgs.source]].\r\n * @internal\r\n */\r\nexport interface RenderMaterialSource {\r\n iModel: IModelConnection;\r\n id: Id64String;\r\n}\r\n\r\n/** Describes the [diffuse](https://en.wikipedia.org/wiki/Diffuse_reflection) properties of a [RenderMaterial]($common).\r\n * @see [[CreateRenderMaterialArgs.diffuse]].\r\n * @public\r\n */\r\nexport interface MaterialDiffuseProps {\r\n /** The diffuse color. If defined, this overrides the color of any surface to which the material is applied. */\r\n color?: ColorDef | RgbColorProps;\r\n\r\n /** A multiplier in [0..1] specifying how strongly the diffuse color reflects light.\r\n * Default: 0.6\r\n */\r\n weight?: number;\r\n}\r\n\r\n/** Describes the [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of a material.\r\n * @see [[CreateRenderMaterialArgs.specular]].\r\n * @public\r\n */\r\nexport interface MaterialSpecularProps {\r\n /** The color of the specular reflections.\r\n * Default: white.\r\n */\r\n color?: ColorDef | RgbColorProps;\r\n\r\n /** A multiplier in [0..1] specifying the strength of the specular reflections.\r\n * Default: 0.4\r\n */\r\n weight?: number;\r\n\r\n /** An exponent in [0..infinity] describing the shininess of the surface.\r\n * Default: 13.5\r\n */\r\n exponent?: number;\r\n}\r\n\r\n/** Describes how to map a [RenderTexture]($common)'s image to the surfaces to which a [RenderMaterial]($common) is applied.\r\n * @see [[CreateRenderMaterialArgs.textureMapping]].\r\n * @public\r\n */\r\nexport interface MaterialTextureMappingProps {\r\n /** The texture from which the image is obtained. */\r\n texture: RenderTexture;\r\n\r\n /** The mode controlling how the image is mapped onto the surface.\r\n * Default: [TextureMapping.Mode.Parametric]($common).\r\n */\r\n mode?: TextureMapping.Mode;\r\n\r\n /** A 2x3 matrix for computing the UV coordinates.\r\n * Default: [TextureMapping.Trans2x3.identity]($common).\r\n */\r\n transform?: TextureMapping.Trans2x3;\r\n\r\n /** The ratio by which the color sampled from the texture image is mixed with the surface's or material's diffuse color.\r\n * A ratio of 1 selects only the texture sample; a ratio of 0 selects only the diffuse color; a ratio of 0.5 mixes them evenly.\r\n * Default: 1.\r\n */\r\n weight?: number;\r\n\r\n /** @internal */\r\n worldMapping?: boolean;\r\n}\r\n\r\n/** Arguments supplied to [[RenderSystem.createRenderMaterial]].\r\n * @public\r\n */\r\nexport interface CreateRenderMaterialArgs {\r\n /** If supplied, the material will be cached on the iModel by its element Id for subsequent reuse.\r\n * @internal\r\n */\r\n source?: RenderMaterialSource;\r\n\r\n /** Specifies the transparency of the material from 0.0 (fully transparent) to 1.0 (fully opaque).\r\n * If defined, this overrides the transparency of any surface to which the material is applied, and is multiplied with the\r\n * transparency of the material's [[textureMapping]] when sampling the texture.\r\n */\r\n alpha?: number;\r\n\r\n /** The [diffuse](https://en.wikipedia.org/wiki/Diffuse_reflection) properties of the material. */\r\n diffuse?: MaterialDiffuseProps;\r\n\r\n /** The [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of the material. */\r\n specular?: MaterialSpecularProps;\r\n\r\n /** Maps a [RenderTexture]($common) image to the surfaces to which the material is applied. */\r\n textureMapping?: MaterialTextureMappingProps;\r\n}\r\n"]}
1
+ {"version":3,"file":"RenderMaterial.js","sourceRoot":"","sources":["../../../src/render/RenderMaterial.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { ColorDef, NormalMapParams, RenderTexture, RgbColorProps, TextureMapping } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\n\r\n/** Specifies the provenance of a [RenderMaterial]($common) created for a persistent material element.\r\n * @see [[CreateRenderMaterialArgs.source]].\r\n * @internal\r\n */\r\nexport interface RenderMaterialSource {\r\n iModel: IModelConnection;\r\n id: Id64String;\r\n}\r\n\r\n/** Describes the [diffuse](https://en.wikipedia.org/wiki/Diffuse_reflection) properties of a [RenderMaterial]($common).\r\n * @see [[CreateRenderMaterialArgs.diffuse]].\r\n * @public\r\n */\r\nexport interface MaterialDiffuseProps {\r\n /** The diffuse color. If defined, this overrides the color of any surface to which the material is applied. */\r\n color?: ColorDef | RgbColorProps;\r\n\r\n /** A multiplier in [0..1] specifying how strongly the diffuse color reflects light.\r\n * Default: 0.6\r\n */\r\n weight?: number;\r\n}\r\n\r\n/** Describes the [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of a material.\r\n * @see [[CreateRenderMaterialArgs.specular]].\r\n * @public\r\n */\r\nexport interface MaterialSpecularProps {\r\n /** The color of the specular reflections.\r\n * Default: white.\r\n */\r\n color?: ColorDef | RgbColorProps;\r\n\r\n /** A multiplier in [0..1] specifying the strength of the specular reflections.\r\n * Default: 0.4\r\n */\r\n weight?: number;\r\n\r\n /** An exponent in [0..infinity] describing the shininess of the surface.\r\n * Default: 13.5\r\n */\r\n exponent?: number;\r\n}\r\n\r\n/** Describes how to map a [RenderTexture]($common)'s image to the surfaces to which a [RenderMaterial]($common) is applied.\r\n * @see [[CreateRenderMaterialArgs.textureMapping]].\r\n * @public\r\n */\r\nexport interface MaterialTextureMappingProps {\r\n /** The texture from which the image is obtained. */\r\n texture: RenderTexture;\r\n\r\n /** The parameters describing a normal map to use either in place of or in addition to the texture. */\r\n normalMapParams?: NormalMapParams;\r\n\r\n /** The mode controlling how the image is mapped onto the surface.\r\n * Default: [TextureMapping.Mode.Parametric]($common).\r\n */\r\n mode?: TextureMapping.Mode;\r\n\r\n /** A 2x3 matrix for computing the UV coordinates.\r\n * Default: [TextureMapping.Trans2x3.identity]($common).\r\n */\r\n transform?: TextureMapping.Trans2x3;\r\n\r\n /** The ratio by which the color sampled from the texture image is mixed with the surface's or material's diffuse color.\r\n * A ratio of 1 selects only the texture sample; a ratio of 0 selects only the diffuse color; a ratio of 0.5 mixes them evenly.\r\n * Default: 1.\r\n */\r\n weight?: number;\r\n\r\n /** @internal */\r\n worldMapping?: boolean;\r\n}\r\n\r\n/** Arguments supplied to [[RenderSystem.createRenderMaterial]].\r\n * @public\r\n */\r\nexport interface CreateRenderMaterialArgs {\r\n /** If supplied, the material will be cached on the iModel by its element Id for subsequent reuse.\r\n * @internal\r\n */\r\n source?: RenderMaterialSource;\r\n\r\n /** Specifies the transparency of the material from 0.0 (fully transparent) to 1.0 (fully opaque).\r\n * If defined, this overrides the transparency of any surface to which the material is applied, and is multiplied with the\r\n * transparency of the material's [[textureMapping]] when sampling the texture.\r\n */\r\n alpha?: number;\r\n\r\n /** The [diffuse](https://en.wikipedia.org/wiki/Diffuse_reflection) properties of the material. */\r\n diffuse?: MaterialDiffuseProps;\r\n\r\n /** The [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of the material. */\r\n specular?: MaterialSpecularProps;\r\n\r\n /** Maps a [RenderTexture]($common) image to the surfaces to which the material is applied. */\r\n textureMapping?: MaterialTextureMappingProps;\r\n}\r\n"]}
@@ -52,6 +52,7 @@ export interface RenderTargetDebugControl {
52
52
  displayRealityTilePreload: boolean;
53
53
  displayRealityTileRanges: boolean;
54
54
  logRealityTiles: boolean;
55
+ displayNormalMaps: boolean;
55
56
  freezeRealityTiles: boolean;
56
57
  /** Obtain a summary of the render commands required to draw the scene currently displayed.
57
58
  * Each entry specifies the type of command and the number of such commands required by the current scene.
@@ -1 +1 @@
1
- {"version":3,"file":"RenderTarget.d.ts","sourceRoot":"","sources":["../../../src/render/RenderTarget.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,M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AAsC;QACnI,QAAQ,CAAC,EAAE,CAAC,CAAC;IACf,CAAC;CACF;AAxFD,oCAwFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { Id64String, IDisposable } from \"@itwin/core-bentley\";\r\nimport { Frustum, ImageBuffer, SpatialClassifier } from \"@itwin/core-common\";\r\nimport { Point2d, XAndY } from \"@itwin/core-geometry\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\nimport { HiliteSet } from \"../SelectionSet\";\r\nimport { SceneContext } from \"../ViewContext\";\r\nimport { ReadImageBufferArgs, Viewport } from \"../Viewport\";\r\nimport { ViewRect } from \"../ViewRect\";\r\nimport { CanvasDecoration } from \"./CanvasDecoration\";\r\nimport { Decorations } from \"./Decorations\";\r\nimport { FeatureSymbology } from \"./FeatureSymbology\";\r\nimport { FrameStatsCollector } from \"./FrameStats\";\r\nimport { AnimationBranchStates } from \"./GraphicBranch\";\r\nimport { CustomGraphicBuilderOptions, ViewportGraphicBuilderOptions } from \"./GraphicBuilder\";\r\nimport { Pixel } from \"./Pixel\";\r\nimport { GraphicList } from \"./RenderGraphic\";\r\nimport { RenderMemory } from \"./RenderMemory\";\r\nimport { RenderPlan } from \"./RenderPlan\";\r\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\r\nimport { RenderSystem, RenderTextureDrape } from \"./RenderSystem\";\r\nimport { Scene } from \"./Scene\";\r\nimport { QueryTileFeaturesOptions, QueryVisibleFeaturesCallback } from \"./VisibleFeature\";\r\n\r\n/** Used for debugging purposes, to toggle display of instanced or batched primitives.\r\n * @see [[RenderTargetDebugControl]].\r\n * @internal\r\n */\r\nexport enum PrimitiveVisibility {\r\n /** Draw all primitives. */\r\n All,\r\n /** Only draw instanced primitives. */\r\n Instanced,\r\n /** Only draw un-instanced primitives. */\r\n Uninstanced,\r\n}\r\n\r\n/** An interface optionally exposed by a RenderTarget that allows control of various debugging features.\r\n * @internal\r\n */\r\nexport interface RenderTargetDebugControl {\r\n /** If true, render to the screen as if rendering off-screen for readPixels(). */\r\n drawForReadPixels: boolean;\r\n primitiveVisibility: PrimitiveVisibility;\r\n vcSupportIntersectingVolumes: boolean;\r\n readonly shadowFrustum: Frustum | undefined;\r\n displayDrapeFrustum: boolean;\r\n /** Override device pixel ratio for on-screen targets only. This supersedes window.devicePixelRatio.\r\n * Undefined clears the override. Chiefly useful for tests.\r\n */\r\n devicePixelRatioOverride?: number;\r\n displayRealityTilePreload: boolean;\r\n displayRealityTileRanges: boolean;\r\n logRealityTiles: boolean;\r\n freezeRealityTiles: boolean;\r\n /** Obtain a summary of the render commands required to draw the scene currently displayed.\r\n * Each entry specifies the type of command and the number of such commands required by the current scene.\r\n */\r\n getRenderCommands(): Array<{ name: string, count: number }>;\r\n}\r\n\r\n/** A RenderTarget connects a [[Viewport]] to a WebGLRenderingContext to enable the viewport's contents to be displayed on the screen.\r\n * Application code rarely interacts directly with a RenderTarget - instead, it interacts with a Viewport which forwards requests to the implementation\r\n * of the RenderTarget.\r\n * @internal\r\n */\r\nexport abstract class RenderTarget implements IDisposable, RenderMemory.Consumer {\r\n public pickOverlayDecoration(_pt: XAndY): CanvasDecoration | undefined { return undefined; }\r\n\r\n public abstract get renderSystem(): RenderSystem;\r\n\r\n /** NB: *Device pixels*, not CSS pixels! */\r\n public abstract get viewRect(): ViewRect;\r\n\r\n public get devicePixelRatio(): number { return 1; }\r\n public cssPixelsToDevicePixels(cssPixels: number, floor = true): number {\r\n const pix = cssPixels * this.devicePixelRatio;\r\n return floor ? Math.floor(pix) : pix;\r\n }\r\n\r\n /** Given the size of a logical pixel in meters, convert it to the size of a physical pixel in meters, if [[RenderSystem.dpiAwareLOD]] is `true`.\r\n * Used when computing LOD for graphics.\r\n */\r\n public adjustPixelSizeForLOD(cssPixelSize: number): number {\r\n return this.renderSystem.dpiAwareLOD ? this.cssPixelsToDevicePixels(cssPixelSize, false) : cssPixelSize;\r\n }\r\n\r\n public abstract get wantInvertBlackBackground(): boolean;\r\n\r\n public abstract get analysisFraction(): number;\r\n public abstract set analysisFraction(fraction: number);\r\n\r\n public get animationBranches(): AnimationBranchStates | undefined { return undefined; }\r\n public set animationBranches(_transforms: AnimationBranchStates | undefined) { }\r\n\r\n public get antialiasSamples(): number { return 1; }\r\n public set antialiasSamples(_numSamples: number) { }\r\n\r\n public assignFrameStatsCollector(_collector: FrameStatsCollector) { }\r\n\r\n /** Update the solar shadow map. If a SceneContext is supplied, shadows are enabled; otherwise, shadows are disabled. */\r\n public updateSolarShadows(_context: SceneContext | undefined): void { }\r\n public getPlanarClassifier(_id: string): RenderPlanarClassifier | undefined { return undefined; }\r\n public createPlanarClassifier(_properties?: SpatialClassifier): RenderPlanarClassifier | undefined { return undefined; }\r\n public getTextureDrape(_id: Id64String): RenderTextureDrape | undefined { return undefined; }\r\n\r\n public createGraphicBuilder(options: CustomGraphicBuilderOptions | ViewportGraphicBuilderOptions) {\r\n return this.renderSystem.createGraphic(options);\r\n }\r\n\r\n public dispose(): void { }\r\n public reset(): void { }\r\n public abstract changeScene(scene: Scene): void;\r\n public abstract changeDynamics(dynamics?: GraphicList): void;\r\n public abstract changeDecorations(decorations: Decorations): void;\r\n public abstract changeRenderPlan(plan: RenderPlan): void;\r\n public abstract drawFrame(sceneMilSecElapsed?: number): void;\r\n public overrideFeatureSymbology(_ovr: FeatureSymbology.Overrides): void { }\r\n public setHiliteSet(_hilited: HiliteSet): void { }\r\n public setFlashed(_elementId: Id64String, _intensity: number): void { }\r\n public onBeforeRender(_viewport: Viewport, _setSceneNeedRedraw: (redraw: boolean) => void): void { }\r\n public abstract setViewRect(_rect: ViewRect, _temporary: boolean): void;\r\n public onResized(): void { }\r\n public abstract updateViewRect(): boolean; // force a RenderTarget viewRect to resize if necessary since last draw\r\n /** `rect` is specified in *CSS* pixels. */\r\n public abstract readPixels(rect: ViewRect, selector: Pixel.Selector, receiver: Pixel.Receiver, excludeNonLocatable: boolean): void;\r\n /** @deprecated use readImageBuffer */\r\n public readImage(_rect: ViewRect, _targetSize: Point2d, _flipVertically: boolean): ImageBuffer | undefined { return undefined; }\r\n public readImageBuffer(_args?: ReadImageBufferArgs): ImageBuffer | undefined { return undefined; }\r\n public readImageToCanvas(): HTMLCanvasElement { return document.createElement(\"canvas\"); }\r\n public collectStatistics(_stats: RenderMemory.Statistics): void { }\r\n\r\n /** Specify whether webgl content should be rendered directly to the screen.\r\n * If rendering to screen becomes enabled, returns the canvas to which to render the webgl content.\r\n * Returns undefined if rendering to screen becomes disabled, or is not supported by this RenderTarget.\r\n */\r\n public setRenderToScreen(_toScreen: boolean): HTMLCanvasElement | undefined { return undefined; }\r\n\r\n public get debugControl(): RenderTargetDebugControl | undefined { return undefined; }\r\n\r\n /** An ordered list of names of screen-space post-processing effects to be applied to the image produced by this target.\r\n * The effects are applied in the order in which they appear in the list. Any names not corresponding to a registered effect are ignored.\r\n * This may have no effect if this target does not support screen-space effects.\r\n * @see [[RenderSystem.createScreenSpaceEffectBuilder]] to create and register new effects.\r\n */\r\n public abstract get screenSpaceEffects(): Iterable<string>;\r\n public abstract set screenSpaceEffects(_effectNames: Iterable<string>);\r\n\r\n /** Implementation for [[Viewport.queryVisibleFeatures]]. Not intended for direct usage. The returned iterable remains valid only for the duration of the\r\n * Viewport.queryVisibleFeatures call.\r\n */\r\n public queryVisibleTileFeatures(_options: QueryTileFeaturesOptions, _iModel: IModelConnection, callback: QueryVisibleFeaturesCallback): void {\r\n callback([]);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"RenderTarget.js","sourceRoot":"","sources":["../../../src/render/RenderTarget.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAyBH;;;GAGG;AACH,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,2BAA2B;IAC3B,2DAAG,C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AAoE;QAC9F,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;IAEM,OAAO,KAAW,CAAC;IACnB,KAAK,KAAW,CAAC;IAMjB,wBAAwB,CAAC,IAAgC,IAAU,CAAC;IACpE,YAAY,CAAC,QAAmB,IAAU,CAAC;IAC3C,UAAU,CAAC,UAAsB,EAAE,UAAkB,IAAU,CAAC;IAChE,cAAc,CAAC,SAAmB,EAAE,mBAA8C,IAAU,CAAC;IAE7F,SAAS,KAAW,CAAC;IAI5B,sCAAsC;IAC/B,SAAS,CAAC,KAAe,EAAE,WAAoB,EAAE,eAAwB,IAA6B,OAAO,SAAS,CAAC,CAAC,CAAC;IACzH,eAAe,CAAC,KAA2B,IAA6B,OAAO,SAAS,CAAC,CAAC,CAAC;IAC3F,iBAAiB,KAAwB,OAAO,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnF,iBAAiB,CAAC,MAA+B,IAAU,CAAC;IAEnE;;;OAGG;IACI,iBAAiB,CAAC,SAAkB,IAAmC,OAAO,SAAS,CAAC,CAAC,CAAC;IAEjG,IAAW,YAAY,KAA2C,OAAO,SAAS,CAAC,CAAC,CAAC;IAUrF;;OAEG;IACI,wBAAwB,CAAC,QAAkC,EAAE,OAAyB,EAAE,QAAsC;QACnI,QAAQ,CAAC,EAAE,CAAC,CAAC;IACf,CAAC;CACF;AAxFD,oCAwFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { Id64String, IDisposable } from \"@itwin/core-bentley\";\r\nimport { Frustum, ImageBuffer, SpatialClassifier } from \"@itwin/core-common\";\r\nimport { Point2d, XAndY } from \"@itwin/core-geometry\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\nimport { HiliteSet } from \"../SelectionSet\";\r\nimport { SceneContext } from \"../ViewContext\";\r\nimport { ReadImageBufferArgs, Viewport } from \"../Viewport\";\r\nimport { ViewRect } from \"../ViewRect\";\r\nimport { CanvasDecoration } from \"./CanvasDecoration\";\r\nimport { Decorations } from \"./Decorations\";\r\nimport { FeatureSymbology } from \"./FeatureSymbology\";\r\nimport { FrameStatsCollector } from \"./FrameStats\";\r\nimport { AnimationBranchStates } from \"./GraphicBranch\";\r\nimport { CustomGraphicBuilderOptions, ViewportGraphicBuilderOptions } from \"./GraphicBuilder\";\r\nimport { Pixel } from \"./Pixel\";\r\nimport { GraphicList } from \"./RenderGraphic\";\r\nimport { RenderMemory } from \"./RenderMemory\";\r\nimport { RenderPlan } from \"./RenderPlan\";\r\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\r\nimport { RenderSystem, RenderTextureDrape } from \"./RenderSystem\";\r\nimport { Scene } from \"./Scene\";\r\nimport { QueryTileFeaturesOptions, QueryVisibleFeaturesCallback } from \"./VisibleFeature\";\r\n\r\n/** Used for debugging purposes, to toggle display of instanced or batched primitives.\r\n * @see [[RenderTargetDebugControl]].\r\n * @internal\r\n */\r\nexport enum PrimitiveVisibility {\r\n /** Draw all primitives. */\r\n All,\r\n /** Only draw instanced primitives. */\r\n Instanced,\r\n /** Only draw un-instanced primitives. */\r\n Uninstanced,\r\n}\r\n\r\n/** An interface optionally exposed by a RenderTarget that allows control of various debugging features.\r\n * @internal\r\n */\r\nexport interface RenderTargetDebugControl {\r\n /** If true, render to the screen as if rendering off-screen for readPixels(). */\r\n drawForReadPixels: boolean;\r\n primitiveVisibility: PrimitiveVisibility;\r\n vcSupportIntersectingVolumes: boolean;\r\n readonly shadowFrustum: Frustum | undefined;\r\n displayDrapeFrustum: boolean;\r\n /** Override device pixel ratio for on-screen targets only. This supersedes window.devicePixelRatio.\r\n * Undefined clears the override. Chiefly useful for tests.\r\n */\r\n devicePixelRatioOverride?: number;\r\n displayRealityTilePreload: boolean;\r\n displayRealityTileRanges: boolean;\r\n logRealityTiles: boolean;\r\n displayNormalMaps: boolean;\r\n freezeRealityTiles: boolean;\r\n /** Obtain a summary of the render commands required to draw the scene currently displayed.\r\n * Each entry specifies the type of command and the number of such commands required by the current scene.\r\n */\r\n getRenderCommands(): Array<{ name: string, count: number }>;\r\n}\r\n\r\n/** A RenderTarget connects a [[Viewport]] to a WebGLRenderingContext to enable the viewport's contents to be displayed on the screen.\r\n * Application code rarely interacts directly with a RenderTarget - instead, it interacts with a Viewport which forwards requests to the implementation\r\n * of the RenderTarget.\r\n * @internal\r\n */\r\nexport abstract class RenderTarget implements IDisposable, RenderMemory.Consumer {\r\n public pickOverlayDecoration(_pt: XAndY): CanvasDecoration | undefined { return undefined; }\r\n\r\n public abstract get renderSystem(): RenderSystem;\r\n\r\n /** NB: *Device pixels*, not CSS pixels! */\r\n public abstract get viewRect(): ViewRect;\r\n\r\n public get devicePixelRatio(): number { return 1; }\r\n public cssPixelsToDevicePixels(cssPixels: number, floor = true): number {\r\n const pix = cssPixels * this.devicePixelRatio;\r\n return floor ? Math.floor(pix) : pix;\r\n }\r\n\r\n /** Given the size of a logical pixel in meters, convert it to the size of a physical pixel in meters, if [[RenderSystem.dpiAwareLOD]] is `true`.\r\n * Used when computing LOD for graphics.\r\n */\r\n public adjustPixelSizeForLOD(cssPixelSize: number): number {\r\n return this.renderSystem.dpiAwareLOD ? this.cssPixelsToDevicePixels(cssPixelSize, false) : cssPixelSize;\r\n }\r\n\r\n public abstract get wantInvertBlackBackground(): boolean;\r\n\r\n public abstract get analysisFraction(): number;\r\n public abstract set analysisFraction(fraction: number);\r\n\r\n public get animationBranches(): AnimationBranchStates | undefined { return undefined; }\r\n public set animationBranches(_transforms: AnimationBranchStates | undefined) { }\r\n\r\n public get antialiasSamples(): number { return 1; }\r\n public set antialiasSamples(_numSamples: number) { }\r\n\r\n public assignFrameStatsCollector(_collector: FrameStatsCollector) { }\r\n\r\n /** Update the solar shadow map. If a SceneContext is supplied, shadows are enabled; otherwise, shadows are disabled. */\r\n public updateSolarShadows(_context: SceneContext | undefined): void { }\r\n public getPlanarClassifier(_id: string): RenderPlanarClassifier | undefined { return undefined; }\r\n public createPlanarClassifier(_properties?: SpatialClassifier): RenderPlanarClassifier | undefined { return undefined; }\r\n public getTextureDrape(_id: Id64String): RenderTextureDrape | undefined { return undefined; }\r\n\r\n public createGraphicBuilder(options: CustomGraphicBuilderOptions | ViewportGraphicBuilderOptions) {\r\n return this.renderSystem.createGraphic(options);\r\n }\r\n\r\n public dispose(): void { }\r\n public reset(): void { }\r\n public abstract changeScene(scene: Scene): void;\r\n public abstract changeDynamics(dynamics?: GraphicList): void;\r\n public abstract changeDecorations(decorations: Decorations): void;\r\n public abstract changeRenderPlan(plan: RenderPlan): void;\r\n public abstract drawFrame(sceneMilSecElapsed?: number): void;\r\n public overrideFeatureSymbology(_ovr: FeatureSymbology.Overrides): void { }\r\n public setHiliteSet(_hilited: HiliteSet): void { }\r\n public setFlashed(_elementId: Id64String, _intensity: number): void { }\r\n public onBeforeRender(_viewport: Viewport, _setSceneNeedRedraw: (redraw: boolean) => void): void { }\r\n public abstract setViewRect(_rect: ViewRect, _temporary: boolean): void;\r\n public onResized(): void { }\r\n public abstract updateViewRect(): boolean; // force a RenderTarget viewRect to resize if necessary since last draw\r\n /** `rect` is specified in *CSS* pixels. */\r\n public abstract readPixels(rect: ViewRect, selector: Pixel.Selector, receiver: Pixel.Receiver, excludeNonLocatable: boolean): void;\r\n /** @deprecated use readImageBuffer */\r\n public readImage(_rect: ViewRect, _targetSize: Point2d, _flipVertically: boolean): ImageBuffer | undefined { return undefined; }\r\n public readImageBuffer(_args?: ReadImageBufferArgs): ImageBuffer | undefined { return undefined; }\r\n public readImageToCanvas(): HTMLCanvasElement { return document.createElement(\"canvas\"); }\r\n public collectStatistics(_stats: RenderMemory.Statistics): void { }\r\n\r\n /** Specify whether webgl content should be rendered directly to the screen.\r\n * If rendering to screen becomes enabled, returns the canvas to which to render the webgl content.\r\n * Returns undefined if rendering to screen becomes disabled, or is not supported by this RenderTarget.\r\n */\r\n public setRenderToScreen(_toScreen: boolean): HTMLCanvasElement | undefined { return undefined; }\r\n\r\n public get debugControl(): RenderTargetDebugControl | undefined { return undefined; }\r\n\r\n /** An ordered list of names of screen-space post-processing effects to be applied to the image produced by this target.\r\n * The effects are applied in the order in which they appear in the list. Any names not corresponding to a registered effect are ignored.\r\n * This may have no effect if this target does not support screen-space effects.\r\n * @see [[RenderSystem.createScreenSpaceEffectBuilder]] to create and register new effects.\r\n */\r\n public abstract get screenSpaceEffects(): Iterable<string>;\r\n public abstract set screenSpaceEffects(_effectNames: Iterable<string>);\r\n\r\n /** Implementation for [[Viewport.queryVisibleFeatures]]. Not intended for direct usage. The returned iterable remains valid only for the duration of the\r\n * Viewport.queryVisibleFeatures call.\r\n */\r\n public queryVisibleTileFeatures(_options: QueryTileFeaturesOptions, _iModel: IModelConnection, callback: QueryVisibleFeaturesCallback): void {\r\n callback([]);\r\n }\r\n}\r\n"]}
@@ -36,7 +36,6 @@ export interface SurfaceParams {
36
36
  readonly indices: VertexIndices;
37
37
  readonly fillFlags: FillFlags;
38
38
  readonly hasBakedLighting: boolean;
39
- readonly hasFixedNormals: boolean;
40
39
  readonly textureMapping?: {
41
40
  texture: RenderTexture;
42
41
  alwaysDisplayed: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SurfaceParams.d.ts","sourceRoot":"","sources":["../../../../src/render/primitives/SurfaceParams.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,gBAAgB;AAChB,oBAAY,WAAW;IACrB,KAAK,IAAA;IACL,GAAG,IAAA;IACH,QAAQ,IAAA;IACR,WAAW,IAAA;IACX,gBAAgB,IAAA;CACjB;AAED,gBAAgB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"}
@@ -1 +1 @@
1
- {"version":3,"file":"SurfaceParams.js","sourceRoot":"","sources":["../../../../src/render/primitives/SurfaceParams.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH,gBAAgB;AAChB,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,+CAAK,CAAA;IACL,2CAAG,CAAA;IACH,qDAAQ,CAAA;IACR,2DAAW,CAAA;IACX,qEAAgB,CAAA;AAClB,CAAC,EANW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAMtB;AAED,gBAAgB;AAChB,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,QAAQ,KAAK,EAAE;QACb,KAAK,WAAW,CAAC,KAAK,CAAC;QACvB,KAAK,WAAW,CAAC,GAAG,CAAC;QACrB,KAAK,WAAW,CAAC,QAAQ,CAAC;QAC1B,KAAK,WAAW,CAAC,WAAW,CAAC;QAC7B,KAAK,WAAW,CAAC,gBAAgB;YAC/B,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;AAXD,gDAWC;AAuBD,gBAAgB;AAChB,SAAgB,qBAAqB,CAAC,MAAkC;IACtE,IAAI,SAAS,KAAK,MAAM;QACtB,OAAO,SAAS,CAAC;;QAEjB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AAChD,CAAC;AALD,sDAKC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { FillFlags, RenderMaterial, RenderTexture } from \"@itwin/core-common\";\r\nimport { VertexIndices } from \"./VertexTable\";\r\n\r\n/** @internal */\r\nexport enum SurfaceType {\r\n Unlit,\r\n Lit,\r\n Textured,\r\n TexturedLit,\r\n VolumeClassifier,\r\n}\r\n\r\n/** @internal */\r\nexport function isValidSurfaceType(value: number): boolean {\r\n switch (value) {\r\n case SurfaceType.Unlit:\r\n case SurfaceType.Lit:\r\n case SurfaceType.Textured:\r\n case SurfaceType.TexturedLit:\r\n case SurfaceType.VolumeClassifier:\r\n return true;\r\n default:\r\n return false;\r\n }\r\n}\r\n\r\n/** @internal */\r\nexport interface SurfaceRenderMaterial {\r\n readonly isAtlas: false;\r\n readonly material: RenderMaterial;\r\n}\r\n\r\n/** @internal */\r\nexport interface SurfaceMaterialAtlas {\r\n readonly isAtlas: true;\r\n // Overrides surface alpha to be translucent. Implies `overridesAlpha`.\r\n readonly hasTranslucency: boolean;\r\n // Overrides surface alpha to be opaque or translucent.\r\n readonly overridesAlpha: boolean;\r\n // offset past the END of the vertex data; equivalently, number of 32-bit colors in color table preceding material atlas.\r\n readonly vertexTableOffset: number;\r\n readonly numMaterials: number;\r\n}\r\n\r\n/** @internal */\r\nexport type SurfaceMaterial = SurfaceRenderMaterial | SurfaceMaterialAtlas;\r\n\r\n/** @internal */\r\nexport function createSurfaceMaterial(source: RenderMaterial | undefined): SurfaceMaterial | undefined {\r\n if (undefined === source)\r\n return undefined;\r\n else\r\n return { isAtlas: false, material: source };\r\n}\r\n\r\n/** @internal */\r\nexport interface SurfaceParams {\r\n readonly type: SurfaceType;\r\n readonly indices: VertexIndices;\r\n readonly fillFlags: FillFlags;\r\n readonly hasBakedLighting: boolean;\r\n readonly hasFixedNormals: boolean;\r\n readonly textureMapping?: {\r\n texture: RenderTexture;\r\n alwaysDisplayed: boolean;\r\n };\r\n readonly material?: SurfaceMaterial;\r\n}\r\n\r\n"]}
1
+ {"version":3,"file":"SurfaceParams.js","sourceRoot":"","sources":["../../../../src/render/primitives/SurfaceParams.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAKH,gBAAgB;AAChB,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,+CAAK,CAAA;IACL,2CAAG,CAAA;IACH,qDAAQ,CAAA;IACR,2DAAW,CAAA;IACX,qEAAgB,CAAA;AAClB,CAAC,EANW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAMtB;AAED,gBAAgB;AAChB,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,QAAQ,KAAK,EAAE;QACb,KAAK,WAAW,CAAC,KAAK,CAAC;QACvB,KAAK,WAAW,CAAC,GAAG,CAAC;QACrB,KAAK,WAAW,CAAC,QAAQ,CAAC;QAC1B,KAAK,WAAW,CAAC,WAAW,CAAC;QAC7B,KAAK,WAAW,CAAC,gBAAgB;YAC/B,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;AAXD,gDAWC;AAuBD,gBAAgB;AAChB,SAAgB,qBAAqB,CAAC,MAAkC;IACtE,IAAI,SAAS,KAAK,MAAM;QACtB,OAAO,SAAS,CAAC;;QAEjB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AAChD,CAAC;AALD,sDAKC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { FillFlags, RenderMaterial, RenderTexture } from \"@itwin/core-common\";\r\nimport { VertexIndices } from \"./VertexTable\";\r\n\r\n/** @internal */\r\nexport enum SurfaceType {\r\n Unlit,\r\n Lit,\r\n Textured,\r\n TexturedLit,\r\n VolumeClassifier,\r\n}\r\n\r\n/** @internal */\r\nexport function isValidSurfaceType(value: number): boolean {\r\n switch (value) {\r\n case SurfaceType.Unlit:\r\n case SurfaceType.Lit:\r\n case SurfaceType.Textured:\r\n case SurfaceType.TexturedLit:\r\n case SurfaceType.VolumeClassifier:\r\n return true;\r\n default:\r\n return false;\r\n }\r\n}\r\n\r\n/** @internal */\r\nexport interface SurfaceRenderMaterial {\r\n readonly isAtlas: false;\r\n readonly material: RenderMaterial;\r\n}\r\n\r\n/** @internal */\r\nexport interface SurfaceMaterialAtlas {\r\n readonly isAtlas: true;\r\n // Overrides surface alpha to be translucent. Implies `overridesAlpha`.\r\n readonly hasTranslucency: boolean;\r\n // Overrides surface alpha to be opaque or translucent.\r\n readonly overridesAlpha: boolean;\r\n // offset past the END of the vertex data; equivalently, number of 32-bit colors in color table preceding material atlas.\r\n readonly vertexTableOffset: number;\r\n readonly numMaterials: number;\r\n}\r\n\r\n/** @internal */\r\nexport type SurfaceMaterial = SurfaceRenderMaterial | SurfaceMaterialAtlas;\r\n\r\n/** @internal */\r\nexport function createSurfaceMaterial(source: RenderMaterial | undefined): SurfaceMaterial | undefined {\r\n if (undefined === source)\r\n return undefined;\r\n else\r\n return { isAtlas: false, material: source };\r\n}\r\n\r\n/** @internal */\r\nexport interface SurfaceParams {\r\n readonly type: SurfaceType;\r\n readonly indices: VertexIndices;\r\n readonly fillFlags: FillFlags;\r\n readonly hasBakedLighting: boolean;\r\n readonly textureMapping?: {\r\n texture: RenderTexture;\r\n alwaysDisplayed: boolean;\r\n };\r\n readonly material?: SurfaceMaterial;\r\n}\r\n\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"VertexTable.d.ts","sourceRoot":"","sources":["../../../../src/render/primitives/VertexTable.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,EACL,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAC3E,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAe,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAyB,eAAe,EAAE,aAAa,EAAe,MAAM,iBAAiB,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;GAIG;AACH,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CAAC,EAAE,UAAU,CAAC;IACzB,OAAO,CAAC,SAAS,CAAa;IAE9B,aAAoB,WAAW,IAAI,MAAM,CAAC;IAC1C,aAAoB,gBAAgB,IAAI,MAAM,CAAC;IAC/C,aAAoB,OAAO,IAAI,SAAS,CAAC;IACzC,aAAoB,wBAAwB,IAAI,OAAO,CAAC;IACxD,IAAW,QAAQ,IAAI,SAAS,GAAG,SAAS,CAAsB;aAClD,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAE9C,gBAAgB,CAAC,UAAU,EAAE,UAAU;IAQ9C,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM;IAKhC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM;IAQ7B,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM;IAI9B,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM;IAK9B,OAAO,CAAC,WAAW;CA4BpB"}
@@ -177,7 +177,6 @@ class MeshParams {
177
177
  indices: surfaceIndices,
178
178
  fillFlags: args.fillFlags,
179
179
  hasBakedLighting: true === args.hasBakedLighting,
180
- hasFixedNormals: true === args.hasFixedNormals,
181
180
  textureMapping: undefined !== args.textureMapping ? { texture: args.textureMapping.texture, alwaysDisplayed: false } : undefined,
182
181
  material: (0, SurfaceParams_1.createSurfaceMaterial)(args.material),
183
182
  };