@itwin/core-frontend 3.2.0-dev.34 → 3.2.0-dev.37

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 (760) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/lib/cjs/AccuDraw.d.ts +2 -0
  3. package/lib/cjs/AccuDraw.d.ts.map +1 -1
  4. package/lib/cjs/AccuDraw.js +2 -0
  5. package/lib/cjs/AccuDraw.js.map +1 -1
  6. package/lib/cjs/AccuSnap.d.ts +1 -0
  7. package/lib/cjs/AccuSnap.d.ts.map +1 -1
  8. package/lib/cjs/AccuSnap.js +1 -0
  9. package/lib/cjs/AccuSnap.js.map +1 -1
  10. package/lib/cjs/ApproximateTerrainHeights.d.ts.map +1 -1
  11. package/lib/cjs/ApproximateTerrainHeights.js +4 -2
  12. package/lib/cjs/ApproximateTerrainHeights.js.map +1 -1
  13. package/lib/cjs/ApproximateTerrainHeightsProps.d.ts +1 -1
  14. package/lib/cjs/ApproximateTerrainHeightsProps.d.ts.map +1 -1
  15. package/lib/cjs/ApproximateTerrainHeightsProps.js +2 -2
  16. package/lib/cjs/ApproximateTerrainHeightsProps.js.map +1 -1
  17. package/lib/cjs/AuxCoordSys.d.ts +12 -2
  18. package/lib/cjs/AuxCoordSys.d.ts.map +1 -1
  19. package/lib/cjs/AuxCoordSys.js +12 -2
  20. package/lib/cjs/AuxCoordSys.js.map +1 -1
  21. package/lib/cjs/BingLocation.d.ts +1 -0
  22. package/lib/cjs/BingLocation.d.ts.map +1 -1
  23. package/lib/cjs/BingLocation.js +1 -0
  24. package/lib/cjs/BingLocation.js.map +1 -1
  25. package/lib/cjs/CategorySelectorState.d.ts +1 -0
  26. package/lib/cjs/CategorySelectorState.d.ts.map +1 -1
  27. package/lib/cjs/CategorySelectorState.js +1 -0
  28. package/lib/cjs/CategorySelectorState.js.map +1 -1
  29. package/lib/cjs/ChangeFlags.d.ts +1 -0
  30. package/lib/cjs/ChangeFlags.d.ts.map +1 -1
  31. package/lib/cjs/ChangeFlags.js +1 -0
  32. package/lib/cjs/ChangeFlags.js.map +1 -1
  33. package/lib/cjs/ContextRealityModelState.d.ts +1 -0
  34. package/lib/cjs/ContextRealityModelState.d.ts.map +1 -1
  35. package/lib/cjs/ContextRealityModelState.js +1 -0
  36. package/lib/cjs/ContextRealityModelState.js.map +1 -1
  37. package/lib/cjs/CoordSystem.d.ts +1 -0
  38. package/lib/cjs/CoordSystem.d.ts.map +1 -1
  39. package/lib/cjs/CoordSystem.js +1 -0
  40. package/lib/cjs/CoordSystem.js.map +1 -1
  41. package/lib/cjs/DisplayStyleState.d.ts +4 -0
  42. package/lib/cjs/DisplayStyleState.d.ts.map +1 -1
  43. package/lib/cjs/DisplayStyleState.js +3 -0
  44. package/lib/cjs/DisplayStyleState.js.map +1 -1
  45. package/lib/cjs/DrawingViewState.d.ts +1 -0
  46. package/lib/cjs/DrawingViewState.d.ts.map +1 -1
  47. package/lib/cjs/DrawingViewState.js +1 -0
  48. package/lib/cjs/DrawingViewState.js.map +1 -1
  49. package/lib/cjs/ElementLocateManager.d.ts +23 -5
  50. package/lib/cjs/ElementLocateManager.d.ts.map +1 -1
  51. package/lib/cjs/ElementLocateManager.js +19 -4
  52. package/lib/cjs/ElementLocateManager.js.map +1 -1
  53. package/lib/cjs/EmphasizeElements.d.ts +1 -0
  54. package/lib/cjs/EmphasizeElements.d.ts.map +1 -1
  55. package/lib/cjs/EmphasizeElements.js +1 -0
  56. package/lib/cjs/EmphasizeElements.js.map +1 -1
  57. package/lib/cjs/EntityState.d.ts +2 -0
  58. package/lib/cjs/EntityState.d.ts.map +1 -1
  59. package/lib/cjs/EntityState.js +2 -0
  60. package/lib/cjs/EntityState.js.map +1 -1
  61. package/lib/cjs/FeatureOverrideProvider.d.ts +1 -0
  62. package/lib/cjs/FeatureOverrideProvider.d.ts.map +1 -1
  63. package/lib/cjs/FeatureOverrideProvider.js.map +1 -1
  64. package/lib/cjs/FlashSettings.d.ts +3 -0
  65. package/lib/cjs/FlashSettings.d.ts.map +1 -1
  66. package/lib/cjs/FlashSettings.js +2 -0
  67. package/lib/cjs/FlashSettings.js.map +1 -1
  68. package/lib/cjs/FrontendHubAccess.d.ts +4 -1
  69. package/lib/cjs/FrontendHubAccess.d.ts.map +1 -1
  70. package/lib/cjs/FrontendHubAccess.js.map +1 -1
  71. package/lib/cjs/FrontendLoggerCategory.d.ts +1 -0
  72. package/lib/cjs/FrontendLoggerCategory.d.ts.map +1 -1
  73. package/lib/cjs/FrontendLoggerCategory.js +1 -0
  74. package/lib/cjs/FrontendLoggerCategory.js.map +1 -1
  75. package/lib/cjs/FrustumAnimator.d.ts +1 -0
  76. package/lib/cjs/FrustumAnimator.d.ts.map +1 -1
  77. package/lib/cjs/FrustumAnimator.js +1 -0
  78. package/lib/cjs/FrustumAnimator.js.map +1 -1
  79. package/lib/cjs/FuzzySearch.d.ts +1 -0
  80. package/lib/cjs/FuzzySearch.d.ts.map +1 -1
  81. package/lib/cjs/FuzzySearch.js.map +1 -1
  82. package/lib/cjs/GlobeAnimator.d.ts +1 -0
  83. package/lib/cjs/GlobeAnimator.d.ts.map +1 -1
  84. package/lib/cjs/GlobeAnimator.js +1 -0
  85. package/lib/cjs/GlobeAnimator.js.map +1 -1
  86. package/lib/cjs/HitDetail.d.ts +26 -5
  87. package/lib/cjs/HitDetail.d.ts.map +1 -1
  88. package/lib/cjs/HitDetail.js +26 -5
  89. package/lib/cjs/HitDetail.js.map +1 -1
  90. package/lib/cjs/IModelApp.d.ts +7 -0
  91. package/lib/cjs/IModelApp.d.ts.map +1 -1
  92. package/lib/cjs/IModelApp.js +32 -20
  93. package/lib/cjs/IModelApp.js.map +1 -1
  94. package/lib/cjs/IModelConnection.d.ts +1 -0
  95. package/lib/cjs/IModelConnection.d.ts.map +1 -1
  96. package/lib/cjs/IModelConnection.js +1 -0
  97. package/lib/cjs/IModelConnection.js.map +1 -1
  98. package/lib/cjs/ImageUtil.d.ts +11 -0
  99. package/lib/cjs/ImageUtil.d.ts.map +1 -1
  100. package/lib/cjs/ImageUtil.js +11 -0
  101. package/lib/cjs/ImageUtil.js.map +1 -1
  102. package/lib/cjs/IpcApp.d.ts +1 -0
  103. package/lib/cjs/IpcApp.d.ts.map +1 -1
  104. package/lib/cjs/IpcApp.js +1 -0
  105. package/lib/cjs/IpcApp.js.map +1 -1
  106. package/lib/cjs/MarginPercent.d.ts +1 -0
  107. package/lib/cjs/MarginPercent.d.ts.map +1 -1
  108. package/lib/cjs/MarginPercent.js +1 -0
  109. package/lib/cjs/MarginPercent.js.map +1 -1
  110. package/lib/cjs/Marker.d.ts +16 -3
  111. package/lib/cjs/Marker.d.ts.map +1 -1
  112. package/lib/cjs/Marker.js +3 -0
  113. package/lib/cjs/Marker.js.map +1 -1
  114. package/lib/cjs/ModelSelectorState.d.ts +1 -0
  115. package/lib/cjs/ModelSelectorState.d.ts.map +1 -1
  116. package/lib/cjs/ModelSelectorState.js +1 -0
  117. package/lib/cjs/ModelSelectorState.js.map +1 -1
  118. package/lib/cjs/ModelState.d.ts +10 -0
  119. package/lib/cjs/ModelState.d.ts.map +1 -1
  120. package/lib/cjs/ModelState.js +10 -0
  121. package/lib/cjs/ModelState.js.map +1 -1
  122. package/lib/cjs/NotificationManager.d.ts +11 -0
  123. package/lib/cjs/NotificationManager.d.ts.map +1 -1
  124. package/lib/cjs/NotificationManager.js +10 -0
  125. package/lib/cjs/NotificationManager.js.map +1 -1
  126. package/lib/cjs/PerModelCategoryVisibility.d.ts +1 -0
  127. package/lib/cjs/PerModelCategoryVisibility.d.ts.map +1 -1
  128. package/lib/cjs/PerModelCategoryVisibility.js +1 -0
  129. package/lib/cjs/PerModelCategoryVisibility.js.map +1 -1
  130. package/lib/cjs/SelectionSet.d.ts +7 -0
  131. package/lib/cjs/SelectionSet.d.ts.map +1 -1
  132. package/lib/cjs/SelectionSet.js +3 -0
  133. package/lib/cjs/SelectionSet.js.map +1 -1
  134. package/lib/cjs/SheetViewState.d.ts +1 -0
  135. package/lib/cjs/SheetViewState.d.ts.map +1 -1
  136. package/lib/cjs/SheetViewState.js +1 -0
  137. package/lib/cjs/SheetViewState.js.map +1 -1
  138. package/lib/cjs/SpatialViewState.d.ts +2 -0
  139. package/lib/cjs/SpatialViewState.d.ts.map +1 -1
  140. package/lib/cjs/SpatialViewState.js +2 -0
  141. package/lib/cjs/SpatialViewState.js.map +1 -1
  142. package/lib/cjs/Sprites.d.ts +3 -0
  143. package/lib/cjs/Sprites.d.ts.map +1 -1
  144. package/lib/cjs/Sprites.js +3 -0
  145. package/lib/cjs/Sprites.js.map +1 -1
  146. package/lib/cjs/StandardView.d.ts +1 -0
  147. package/lib/cjs/StandardView.d.ts.map +1 -1
  148. package/lib/cjs/StandardView.js +1 -0
  149. package/lib/cjs/StandardView.js.map +1 -1
  150. package/lib/cjs/TentativePoint.d.ts +4 -1
  151. package/lib/cjs/TentativePoint.d.ts.map +1 -1
  152. package/lib/cjs/TentativePoint.js +4 -1
  153. package/lib/cjs/TentativePoint.js.map +1 -1
  154. package/lib/cjs/Tiles.d.ts +1 -0
  155. package/lib/cjs/Tiles.d.ts.map +1 -1
  156. package/lib/cjs/Tiles.js +1 -0
  157. package/lib/cjs/Tiles.js.map +1 -1
  158. package/lib/cjs/ViewAnimation.d.ts +6 -0
  159. package/lib/cjs/ViewAnimation.d.ts.map +1 -1
  160. package/lib/cjs/ViewAnimation.js.map +1 -1
  161. package/lib/cjs/ViewCreator2d.d.ts +2 -0
  162. package/lib/cjs/ViewCreator2d.d.ts.map +1 -1
  163. package/lib/cjs/ViewCreator2d.js +1 -0
  164. package/lib/cjs/ViewCreator2d.js.map +1 -1
  165. package/lib/cjs/ViewCreator3d.d.ts +2 -0
  166. package/lib/cjs/ViewCreator3d.d.ts.map +1 -1
  167. package/lib/cjs/ViewCreator3d.js +1 -0
  168. package/lib/cjs/ViewCreator3d.js.map +1 -1
  169. package/lib/cjs/ViewGlobalLocation.d.ts +3 -0
  170. package/lib/cjs/ViewGlobalLocation.d.ts.map +1 -1
  171. package/lib/cjs/ViewGlobalLocation.js +1 -0
  172. package/lib/cjs/ViewGlobalLocation.js.map +1 -1
  173. package/lib/cjs/ViewManager.d.ts +3 -0
  174. package/lib/cjs/ViewManager.d.ts.map +1 -1
  175. package/lib/cjs/ViewManager.js +1 -0
  176. package/lib/cjs/ViewManager.js.map +1 -1
  177. package/lib/cjs/ViewPose.d.ts +1 -0
  178. package/lib/cjs/ViewPose.d.ts.map +1 -1
  179. package/lib/cjs/ViewPose.js +1 -0
  180. package/lib/cjs/ViewPose.js.map +1 -1
  181. package/lib/cjs/ViewRect.d.ts +1 -0
  182. package/lib/cjs/ViewRect.d.ts.map +1 -1
  183. package/lib/cjs/ViewRect.js +1 -0
  184. package/lib/cjs/ViewRect.js.map +1 -1
  185. package/lib/cjs/ViewState.d.ts +4 -0
  186. package/lib/cjs/ViewState.d.ts.map +1 -1
  187. package/lib/cjs/ViewState.js +3 -0
  188. package/lib/cjs/ViewState.js.map +1 -1
  189. package/lib/cjs/ViewStatus.d.ts +1 -0
  190. package/lib/cjs/ViewStatus.d.ts.map +1 -1
  191. package/lib/cjs/ViewStatus.js +1 -0
  192. package/lib/cjs/ViewStatus.js.map +1 -1
  193. package/lib/cjs/ViewingSpace.d.ts +1 -0
  194. package/lib/cjs/ViewingSpace.d.ts.map +1 -1
  195. package/lib/cjs/ViewingSpace.js +1 -0
  196. package/lib/cjs/ViewingSpace.js.map +1 -1
  197. package/lib/cjs/core-frontend.d.ts +6 -5
  198. package/lib/cjs/core-frontend.d.ts.map +1 -1
  199. package/lib/cjs/core-frontend.js +7 -5
  200. package/lib/cjs/core-frontend.js.map +1 -1
  201. package/lib/cjs/extension/Extension.d.ts +22 -3
  202. package/lib/cjs/extension/Extension.d.ts.map +1 -1
  203. package/lib/cjs/extension/Extension.js +0 -8
  204. package/lib/cjs/extension/Extension.js.map +1 -1
  205. package/lib/cjs/extension/ExtensionAdmin.d.ts +1 -3
  206. package/lib/cjs/extension/ExtensionAdmin.d.ts.map +1 -1
  207. package/lib/cjs/extension/ExtensionAdmin.js +1 -4
  208. package/lib/cjs/extension/ExtensionAdmin.js.map +1 -1
  209. package/lib/cjs/extension/ExtensionRuntime.js +231 -59
  210. package/lib/cjs/extension/ExtensionRuntime.js.map +1 -1
  211. package/lib/cjs/render/CanvasDecoration.d.ts +2 -0
  212. package/lib/cjs/render/CanvasDecoration.d.ts.map +1 -1
  213. package/lib/cjs/render/CanvasDecoration.js.map +1 -1
  214. package/lib/cjs/render/Decorations.d.ts +1 -0
  215. package/lib/cjs/render/Decorations.d.ts.map +1 -1
  216. package/lib/cjs/render/Decorations.js +1 -0
  217. package/lib/cjs/render/Decorations.js.map +1 -1
  218. package/lib/cjs/render/FeatureSymbology.d.ts +1 -0
  219. package/lib/cjs/render/FeatureSymbology.d.ts.map +1 -1
  220. package/lib/cjs/render/FeatureSymbology.js +1 -0
  221. package/lib/cjs/render/FeatureSymbology.js.map +1 -1
  222. package/lib/cjs/render/GraphicBranch.d.ts +2 -0
  223. package/lib/cjs/render/GraphicBranch.d.ts.map +1 -1
  224. package/lib/cjs/render/GraphicBranch.js +1 -0
  225. package/lib/cjs/render/GraphicBranch.js.map +1 -1
  226. package/lib/cjs/render/GraphicBuilder.d.ts +8 -0
  227. package/lib/cjs/render/GraphicBuilder.d.ts.map +1 -1
  228. package/lib/cjs/render/GraphicBuilder.js +2 -0
  229. package/lib/cjs/render/GraphicBuilder.js.map +1 -1
  230. package/lib/cjs/render/GraphicPrimitive.d.ts +14 -0
  231. package/lib/cjs/render/GraphicPrimitive.d.ts.map +1 -1
  232. package/lib/cjs/render/GraphicPrimitive.js.map +1 -1
  233. package/lib/cjs/render/ParticleCollectionBuilder.d.ts +3 -0
  234. package/lib/cjs/render/ParticleCollectionBuilder.d.ts.map +1 -1
  235. package/lib/cjs/render/ParticleCollectionBuilder.js.map +1 -1
  236. package/lib/cjs/render/Pixel.d.ts +1 -0
  237. package/lib/cjs/render/Pixel.d.ts.map +1 -1
  238. package/lib/cjs/render/Pixel.js +1 -0
  239. package/lib/cjs/render/Pixel.js.map +1 -1
  240. package/lib/cjs/render/RenderClipVolume.d.ts +1 -0
  241. package/lib/cjs/render/RenderClipVolume.d.ts.map +1 -1
  242. package/lib/cjs/render/RenderClipVolume.js +1 -0
  243. package/lib/cjs/render/RenderClipVolume.js.map +1 -1
  244. package/lib/cjs/render/RenderGraphic.d.ts +3 -0
  245. package/lib/cjs/render/RenderGraphic.d.ts.map +1 -1
  246. package/lib/cjs/render/RenderGraphic.js +2 -0
  247. package/lib/cjs/render/RenderGraphic.js.map +1 -1
  248. package/lib/cjs/render/RenderSystem.d.ts +1 -0
  249. package/lib/cjs/render/RenderSystem.d.ts.map +1 -1
  250. package/lib/cjs/render/RenderSystem.js +1 -0
  251. package/lib/cjs/render/RenderSystem.js.map +1 -1
  252. package/lib/cjs/render/RenderTexture.d.ts +7 -0
  253. package/lib/cjs/render/RenderTexture.d.ts.map +1 -1
  254. package/lib/cjs/render/RenderTexture.js.map +1 -1
  255. package/lib/cjs/render/Scene.d.ts +1 -0
  256. package/lib/cjs/render/Scene.d.ts.map +1 -1
  257. package/lib/cjs/render/Scene.js +1 -0
  258. package/lib/cjs/render/Scene.js.map +1 -1
  259. package/lib/cjs/render/ScreenSpaceEffectBuilder.d.ts +10 -0
  260. package/lib/cjs/render/ScreenSpaceEffectBuilder.d.ts.map +1 -1
  261. package/lib/cjs/render/ScreenSpaceEffectBuilder.js +2 -0
  262. package/lib/cjs/render/ScreenSpaceEffectBuilder.js.map +1 -1
  263. package/lib/cjs/render/webgl/System.d.ts +1 -1
  264. package/lib/cjs/render/webgl/Target.d.ts.map +1 -1
  265. package/lib/cjs/render/webgl/Target.js +4 -1
  266. package/lib/cjs/render/webgl/Target.js.map +1 -1
  267. package/lib/cjs/tile/DisclosedTileTreeSet.d.ts +2 -0
  268. package/lib/cjs/tile/DisclosedTileTreeSet.d.ts.map +1 -1
  269. package/lib/cjs/tile/DisclosedTileTreeSet.js +1 -0
  270. package/lib/cjs/tile/DisclosedTileTreeSet.js.map +1 -1
  271. package/lib/cjs/tile/ImdlReader.d.ts +1 -0
  272. package/lib/cjs/tile/ImdlReader.d.ts.map +1 -1
  273. package/lib/cjs/tile/ImdlReader.js +1 -0
  274. package/lib/cjs/tile/ImdlReader.js.map +1 -1
  275. package/lib/cjs/tile/Tile.d.ts +5 -0
  276. package/lib/cjs/tile/Tile.d.ts.map +1 -1
  277. package/lib/cjs/tile/Tile.js +5 -0
  278. package/lib/cjs/tile/Tile.js.map +1 -1
  279. package/lib/cjs/tile/TileAdmin.d.ts +3 -0
  280. package/lib/cjs/tile/TileAdmin.d.ts.map +1 -1
  281. package/lib/cjs/tile/TileAdmin.js +1 -0
  282. package/lib/cjs/tile/TileAdmin.js.map +1 -1
  283. package/lib/cjs/tile/TileContent.d.ts +1 -0
  284. package/lib/cjs/tile/TileContent.d.ts.map +1 -1
  285. package/lib/cjs/tile/TileContent.js.map +1 -1
  286. package/lib/cjs/tile/TileDrawArgs.d.ts +2 -0
  287. package/lib/cjs/tile/TileDrawArgs.d.ts.map +1 -1
  288. package/lib/cjs/tile/TileDrawArgs.js +1 -0
  289. package/lib/cjs/tile/TileDrawArgs.js.map +1 -1
  290. package/lib/cjs/tile/TileParams.d.ts +1 -0
  291. package/lib/cjs/tile/TileParams.d.ts.map +1 -1
  292. package/lib/cjs/tile/TileParams.js.map +1 -1
  293. package/lib/cjs/tile/TileRequest.d.ts +1 -0
  294. package/lib/cjs/tile/TileRequest.d.ts.map +1 -1
  295. package/lib/cjs/tile/TileRequest.js +1 -0
  296. package/lib/cjs/tile/TileRequest.js.map +1 -1
  297. package/lib/cjs/tile/TileRequestChannel.d.ts +2 -0
  298. package/lib/cjs/tile/TileRequestChannel.d.ts.map +1 -1
  299. package/lib/cjs/tile/TileRequestChannel.js +2 -0
  300. package/lib/cjs/tile/TileRequestChannel.js.map +1 -1
  301. package/lib/cjs/tile/TileRequestChannels.d.ts +1 -0
  302. package/lib/cjs/tile/TileRequestChannels.d.ts.map +1 -1
  303. package/lib/cjs/tile/TileRequestChannels.js +1 -0
  304. package/lib/cjs/tile/TileRequestChannels.js.map +1 -1
  305. package/lib/cjs/tile/TileTree.d.ts +2 -0
  306. package/lib/cjs/tile/TileTree.d.ts.map +1 -1
  307. package/lib/cjs/tile/TileTree.js +2 -0
  308. package/lib/cjs/tile/TileTree.js.map +1 -1
  309. package/lib/cjs/tile/TileTreeOwner.d.ts +1 -0
  310. package/lib/cjs/tile/TileTreeOwner.d.ts.map +1 -1
  311. package/lib/cjs/tile/TileTreeOwner.js.map +1 -1
  312. package/lib/cjs/tile/TileTreeParams.d.ts +1 -0
  313. package/lib/cjs/tile/TileTreeParams.d.ts.map +1 -1
  314. package/lib/cjs/tile/TileTreeParams.js.map +1 -1
  315. package/lib/cjs/tile/TileTreeReference.d.ts +2 -0
  316. package/lib/cjs/tile/TileTreeReference.d.ts.map +1 -1
  317. package/lib/cjs/tile/TileTreeReference.js +2 -0
  318. package/lib/cjs/tile/TileTreeReference.js.map +1 -1
  319. package/lib/cjs/tile/TileTreeSupplier.d.ts +1 -0
  320. package/lib/cjs/tile/TileTreeSupplier.d.ts.map +1 -1
  321. package/lib/cjs/tile/TileTreeSupplier.js.map +1 -1
  322. package/lib/cjs/tile/TileUsageMarker.d.ts +1 -0
  323. package/lib/cjs/tile/TileUsageMarker.d.ts.map +1 -1
  324. package/lib/cjs/tile/TileUsageMarker.js +1 -0
  325. package/lib/cjs/tile/TileUsageMarker.js.map +1 -1
  326. package/lib/cjs/tile/TiledGraphicsProvider.d.ts +1 -0
  327. package/lib/cjs/tile/TiledGraphicsProvider.d.ts.map +1 -1
  328. package/lib/cjs/tile/TiledGraphicsProvider.js.map +1 -1
  329. package/lib/cjs/tile/map/BingElevation.d.ts +1 -0
  330. package/lib/cjs/tile/map/BingElevation.d.ts.map +1 -1
  331. package/lib/cjs/tile/map/BingElevation.js +1 -0
  332. package/lib/cjs/tile/map/BingElevation.js.map +1 -1
  333. package/lib/cjs/tools/ClipViewTool.d.ts +5 -3
  334. package/lib/cjs/tools/ClipViewTool.d.ts.map +1 -1
  335. package/lib/cjs/tools/ClipViewTool.js +4 -3
  336. package/lib/cjs/tools/ClipViewTool.js.map +1 -1
  337. package/lib/cjs/tools/EditManipulator.d.ts +1 -0
  338. package/lib/cjs/tools/EditManipulator.d.ts.map +1 -1
  339. package/lib/cjs/tools/EditManipulator.js +1 -0
  340. package/lib/cjs/tools/EditManipulator.js.map +1 -1
  341. package/lib/cjs/tools/EventController.d.ts +1 -0
  342. package/lib/cjs/tools/EventController.d.ts.map +1 -1
  343. package/lib/cjs/tools/EventController.js +1 -0
  344. package/lib/cjs/tools/EventController.js.map +1 -1
  345. package/lib/cjs/tools/PrimitiveTool.d.ts +1 -0
  346. package/lib/cjs/tools/PrimitiveTool.d.ts.map +1 -1
  347. package/lib/cjs/tools/PrimitiveTool.js +1 -0
  348. package/lib/cjs/tools/PrimitiveTool.js.map +1 -1
  349. package/lib/cjs/tools/SelectTool.d.ts +3 -0
  350. package/lib/cjs/tools/SelectTool.d.ts.map +1 -1
  351. package/lib/cjs/tools/SelectTool.js +3 -0
  352. package/lib/cjs/tools/SelectTool.js.map +1 -1
  353. package/lib/cjs/tools/Tool.d.ts +41 -6
  354. package/lib/cjs/tools/Tool.d.ts.map +1 -1
  355. package/lib/cjs/tools/Tool.js +27 -4
  356. package/lib/cjs/tools/Tool.js.map +1 -1
  357. package/lib/cjs/tools/ToolAdmin.d.ts +9 -2
  358. package/lib/cjs/tools/ToolAdmin.d.ts.map +1 -1
  359. package/lib/cjs/tools/ToolAdmin.js +9 -2
  360. package/lib/cjs/tools/ToolAdmin.js.map +1 -1
  361. package/lib/cjs/tools/ToolAssistance.d.ts +7 -0
  362. package/lib/cjs/tools/ToolAssistance.d.ts.map +1 -1
  363. package/lib/cjs/tools/ToolAssistance.js +3 -0
  364. package/lib/cjs/tools/ToolAssistance.js.map +1 -1
  365. package/lib/cjs/tools/ToolSettings.d.ts +1 -0
  366. package/lib/cjs/tools/ToolSettings.d.ts.map +1 -1
  367. package/lib/cjs/tools/ToolSettings.js +1 -0
  368. package/lib/cjs/tools/ToolSettings.js.map +1 -1
  369. package/lib/cjs/tools/ViewTool.d.ts +2 -0
  370. package/lib/cjs/tools/ViewTool.d.ts.map +1 -1
  371. package/lib/cjs/tools/ViewTool.js +2 -0
  372. package/lib/cjs/tools/ViewTool.js.map +1 -1
  373. package/lib/esm/AccuDraw.d.ts +2 -0
  374. package/lib/esm/AccuDraw.d.ts.map +1 -1
  375. package/lib/esm/AccuDraw.js +2 -0
  376. package/lib/esm/AccuDraw.js.map +1 -1
  377. package/lib/esm/AccuSnap.d.ts +1 -0
  378. package/lib/esm/AccuSnap.d.ts.map +1 -1
  379. package/lib/esm/AccuSnap.js +1 -0
  380. package/lib/esm/AccuSnap.js.map +1 -1
  381. package/lib/esm/ApproximateTerrainHeights.d.ts.map +1 -1
  382. package/lib/esm/ApproximateTerrainHeights.js +4 -2
  383. package/lib/esm/ApproximateTerrainHeights.js.map +1 -1
  384. package/lib/esm/ApproximateTerrainHeightsProps.d.ts +1 -1
  385. package/lib/esm/ApproximateTerrainHeightsProps.d.ts.map +1 -1
  386. package/lib/esm/ApproximateTerrainHeightsProps.js +1 -1
  387. package/lib/esm/ApproximateTerrainHeightsProps.js.map +1 -1
  388. package/lib/esm/AuxCoordSys.d.ts +12 -2
  389. package/lib/esm/AuxCoordSys.d.ts.map +1 -1
  390. package/lib/esm/AuxCoordSys.js +12 -2
  391. package/lib/esm/AuxCoordSys.js.map +1 -1
  392. package/lib/esm/BingLocation.d.ts +1 -0
  393. package/lib/esm/BingLocation.d.ts.map +1 -1
  394. package/lib/esm/BingLocation.js +1 -0
  395. package/lib/esm/BingLocation.js.map +1 -1
  396. package/lib/esm/CategorySelectorState.d.ts +1 -0
  397. package/lib/esm/CategorySelectorState.d.ts.map +1 -1
  398. package/lib/esm/CategorySelectorState.js +1 -0
  399. package/lib/esm/CategorySelectorState.js.map +1 -1
  400. package/lib/esm/ChangeFlags.d.ts +1 -0
  401. package/lib/esm/ChangeFlags.d.ts.map +1 -1
  402. package/lib/esm/ChangeFlags.js +1 -0
  403. package/lib/esm/ChangeFlags.js.map +1 -1
  404. package/lib/esm/ContextRealityModelState.d.ts +1 -0
  405. package/lib/esm/ContextRealityModelState.d.ts.map +1 -1
  406. package/lib/esm/ContextRealityModelState.js +1 -0
  407. package/lib/esm/ContextRealityModelState.js.map +1 -1
  408. package/lib/esm/CoordSystem.d.ts +1 -0
  409. package/lib/esm/CoordSystem.d.ts.map +1 -1
  410. package/lib/esm/CoordSystem.js +1 -0
  411. package/lib/esm/CoordSystem.js.map +1 -1
  412. package/lib/esm/DisplayStyleState.d.ts +4 -0
  413. package/lib/esm/DisplayStyleState.d.ts.map +1 -1
  414. package/lib/esm/DisplayStyleState.js +3 -0
  415. package/lib/esm/DisplayStyleState.js.map +1 -1
  416. package/lib/esm/DrawingViewState.d.ts +1 -0
  417. package/lib/esm/DrawingViewState.d.ts.map +1 -1
  418. package/lib/esm/DrawingViewState.js +1 -0
  419. package/lib/esm/DrawingViewState.js.map +1 -1
  420. package/lib/esm/ElementLocateManager.d.ts +23 -5
  421. package/lib/esm/ElementLocateManager.d.ts.map +1 -1
  422. package/lib/esm/ElementLocateManager.js +19 -4
  423. package/lib/esm/ElementLocateManager.js.map +1 -1
  424. package/lib/esm/EmphasizeElements.d.ts +1 -0
  425. package/lib/esm/EmphasizeElements.d.ts.map +1 -1
  426. package/lib/esm/EmphasizeElements.js +1 -0
  427. package/lib/esm/EmphasizeElements.js.map +1 -1
  428. package/lib/esm/EntityState.d.ts +2 -0
  429. package/lib/esm/EntityState.d.ts.map +1 -1
  430. package/lib/esm/EntityState.js +2 -0
  431. package/lib/esm/EntityState.js.map +1 -1
  432. package/lib/esm/FeatureOverrideProvider.d.ts +1 -0
  433. package/lib/esm/FeatureOverrideProvider.d.ts.map +1 -1
  434. package/lib/esm/FeatureOverrideProvider.js.map +1 -1
  435. package/lib/esm/FlashSettings.d.ts +3 -0
  436. package/lib/esm/FlashSettings.d.ts.map +1 -1
  437. package/lib/esm/FlashSettings.js +2 -0
  438. package/lib/esm/FlashSettings.js.map +1 -1
  439. package/lib/esm/FrontendHubAccess.d.ts +4 -1
  440. package/lib/esm/FrontendHubAccess.d.ts.map +1 -1
  441. package/lib/esm/FrontendHubAccess.js.map +1 -1
  442. package/lib/esm/FrontendLoggerCategory.d.ts +1 -0
  443. package/lib/esm/FrontendLoggerCategory.d.ts.map +1 -1
  444. package/lib/esm/FrontendLoggerCategory.js +1 -0
  445. package/lib/esm/FrontendLoggerCategory.js.map +1 -1
  446. package/lib/esm/FrustumAnimator.d.ts +1 -0
  447. package/lib/esm/FrustumAnimator.d.ts.map +1 -1
  448. package/lib/esm/FrustumAnimator.js +1 -0
  449. package/lib/esm/FrustumAnimator.js.map +1 -1
  450. package/lib/esm/FuzzySearch.d.ts +1 -0
  451. package/lib/esm/FuzzySearch.d.ts.map +1 -1
  452. package/lib/esm/FuzzySearch.js.map +1 -1
  453. package/lib/esm/GlobeAnimator.d.ts +1 -0
  454. package/lib/esm/GlobeAnimator.d.ts.map +1 -1
  455. package/lib/esm/GlobeAnimator.js +1 -0
  456. package/lib/esm/GlobeAnimator.js.map +1 -1
  457. package/lib/esm/HitDetail.d.ts +26 -5
  458. package/lib/esm/HitDetail.d.ts.map +1 -1
  459. package/lib/esm/HitDetail.js +26 -5
  460. package/lib/esm/HitDetail.js.map +1 -1
  461. package/lib/esm/IModelApp.d.ts +7 -0
  462. package/lib/esm/IModelApp.d.ts.map +1 -1
  463. package/lib/esm/IModelApp.js +32 -20
  464. package/lib/esm/IModelApp.js.map +1 -1
  465. package/lib/esm/IModelConnection.d.ts +1 -0
  466. package/lib/esm/IModelConnection.d.ts.map +1 -1
  467. package/lib/esm/IModelConnection.js +1 -0
  468. package/lib/esm/IModelConnection.js.map +1 -1
  469. package/lib/esm/ImageUtil.d.ts +11 -0
  470. package/lib/esm/ImageUtil.d.ts.map +1 -1
  471. package/lib/esm/ImageUtil.js +11 -0
  472. package/lib/esm/ImageUtil.js.map +1 -1
  473. package/lib/esm/IpcApp.d.ts +1 -0
  474. package/lib/esm/IpcApp.d.ts.map +1 -1
  475. package/lib/esm/IpcApp.js +1 -0
  476. package/lib/esm/IpcApp.js.map +1 -1
  477. package/lib/esm/MarginPercent.d.ts +1 -0
  478. package/lib/esm/MarginPercent.d.ts.map +1 -1
  479. package/lib/esm/MarginPercent.js +1 -0
  480. package/lib/esm/MarginPercent.js.map +1 -1
  481. package/lib/esm/Marker.d.ts +16 -3
  482. package/lib/esm/Marker.d.ts.map +1 -1
  483. package/lib/esm/Marker.js +3 -0
  484. package/lib/esm/Marker.js.map +1 -1
  485. package/lib/esm/ModelSelectorState.d.ts +1 -0
  486. package/lib/esm/ModelSelectorState.d.ts.map +1 -1
  487. package/lib/esm/ModelSelectorState.js +1 -0
  488. package/lib/esm/ModelSelectorState.js.map +1 -1
  489. package/lib/esm/ModelState.d.ts +10 -0
  490. package/lib/esm/ModelState.d.ts.map +1 -1
  491. package/lib/esm/ModelState.js +10 -0
  492. package/lib/esm/ModelState.js.map +1 -1
  493. package/lib/esm/NotificationManager.d.ts +11 -0
  494. package/lib/esm/NotificationManager.d.ts.map +1 -1
  495. package/lib/esm/NotificationManager.js +10 -0
  496. package/lib/esm/NotificationManager.js.map +1 -1
  497. package/lib/esm/PerModelCategoryVisibility.d.ts +1 -0
  498. package/lib/esm/PerModelCategoryVisibility.d.ts.map +1 -1
  499. package/lib/esm/PerModelCategoryVisibility.js +1 -0
  500. package/lib/esm/PerModelCategoryVisibility.js.map +1 -1
  501. package/lib/esm/SelectionSet.d.ts +7 -0
  502. package/lib/esm/SelectionSet.d.ts.map +1 -1
  503. package/lib/esm/SelectionSet.js +3 -0
  504. package/lib/esm/SelectionSet.js.map +1 -1
  505. package/lib/esm/SheetViewState.d.ts +1 -0
  506. package/lib/esm/SheetViewState.d.ts.map +1 -1
  507. package/lib/esm/SheetViewState.js +1 -0
  508. package/lib/esm/SheetViewState.js.map +1 -1
  509. package/lib/esm/SpatialViewState.d.ts +2 -0
  510. package/lib/esm/SpatialViewState.d.ts.map +1 -1
  511. package/lib/esm/SpatialViewState.js +2 -0
  512. package/lib/esm/SpatialViewState.js.map +1 -1
  513. package/lib/esm/Sprites.d.ts +3 -0
  514. package/lib/esm/Sprites.d.ts.map +1 -1
  515. package/lib/esm/Sprites.js +3 -0
  516. package/lib/esm/Sprites.js.map +1 -1
  517. package/lib/esm/StandardView.d.ts +1 -0
  518. package/lib/esm/StandardView.d.ts.map +1 -1
  519. package/lib/esm/StandardView.js +1 -0
  520. package/lib/esm/StandardView.js.map +1 -1
  521. package/lib/esm/TentativePoint.d.ts +4 -1
  522. package/lib/esm/TentativePoint.d.ts.map +1 -1
  523. package/lib/esm/TentativePoint.js +4 -1
  524. package/lib/esm/TentativePoint.js.map +1 -1
  525. package/lib/esm/Tiles.d.ts +1 -0
  526. package/lib/esm/Tiles.d.ts.map +1 -1
  527. package/lib/esm/Tiles.js +1 -0
  528. package/lib/esm/Tiles.js.map +1 -1
  529. package/lib/esm/ViewAnimation.d.ts +6 -0
  530. package/lib/esm/ViewAnimation.d.ts.map +1 -1
  531. package/lib/esm/ViewAnimation.js.map +1 -1
  532. package/lib/esm/ViewCreator2d.d.ts +2 -0
  533. package/lib/esm/ViewCreator2d.d.ts.map +1 -1
  534. package/lib/esm/ViewCreator2d.js +1 -0
  535. package/lib/esm/ViewCreator2d.js.map +1 -1
  536. package/lib/esm/ViewCreator3d.d.ts +2 -0
  537. package/lib/esm/ViewCreator3d.d.ts.map +1 -1
  538. package/lib/esm/ViewCreator3d.js +1 -0
  539. package/lib/esm/ViewCreator3d.js.map +1 -1
  540. package/lib/esm/ViewGlobalLocation.d.ts +3 -0
  541. package/lib/esm/ViewGlobalLocation.d.ts.map +1 -1
  542. package/lib/esm/ViewGlobalLocation.js +1 -0
  543. package/lib/esm/ViewGlobalLocation.js.map +1 -1
  544. package/lib/esm/ViewManager.d.ts +3 -0
  545. package/lib/esm/ViewManager.d.ts.map +1 -1
  546. package/lib/esm/ViewManager.js +1 -0
  547. package/lib/esm/ViewManager.js.map +1 -1
  548. package/lib/esm/ViewPose.d.ts +1 -0
  549. package/lib/esm/ViewPose.d.ts.map +1 -1
  550. package/lib/esm/ViewPose.js +1 -0
  551. package/lib/esm/ViewPose.js.map +1 -1
  552. package/lib/esm/ViewRect.d.ts +1 -0
  553. package/lib/esm/ViewRect.d.ts.map +1 -1
  554. package/lib/esm/ViewRect.js +1 -0
  555. package/lib/esm/ViewRect.js.map +1 -1
  556. package/lib/esm/ViewState.d.ts +4 -0
  557. package/lib/esm/ViewState.d.ts.map +1 -1
  558. package/lib/esm/ViewState.js +3 -0
  559. package/lib/esm/ViewState.js.map +1 -1
  560. package/lib/esm/ViewStatus.d.ts +1 -0
  561. package/lib/esm/ViewStatus.d.ts.map +1 -1
  562. package/lib/esm/ViewStatus.js +1 -0
  563. package/lib/esm/ViewStatus.js.map +1 -1
  564. package/lib/esm/ViewingSpace.d.ts +1 -0
  565. package/lib/esm/ViewingSpace.d.ts.map +1 -1
  566. package/lib/esm/ViewingSpace.js +1 -0
  567. package/lib/esm/ViewingSpace.js.map +1 -1
  568. package/lib/esm/core-frontend.d.ts +6 -5
  569. package/lib/esm/core-frontend.d.ts.map +1 -1
  570. package/lib/esm/core-frontend.js +7 -5
  571. package/lib/esm/core-frontend.js.map +1 -1
  572. package/lib/esm/extension/Extension.d.ts +22 -3
  573. package/lib/esm/extension/Extension.d.ts.map +1 -1
  574. package/lib/esm/extension/Extension.js +1 -7
  575. package/lib/esm/extension/Extension.js.map +1 -1
  576. package/lib/esm/extension/ExtensionAdmin.d.ts +1 -3
  577. package/lib/esm/extension/ExtensionAdmin.d.ts.map +1 -1
  578. package/lib/esm/extension/ExtensionAdmin.js +1 -4
  579. package/lib/esm/extension/ExtensionAdmin.js.map +1 -1
  580. package/lib/esm/extension/ExtensionRuntime.js +239 -59
  581. package/lib/esm/extension/ExtensionRuntime.js.map +1 -1
  582. package/lib/esm/render/CanvasDecoration.d.ts +2 -0
  583. package/lib/esm/render/CanvasDecoration.d.ts.map +1 -1
  584. package/lib/esm/render/CanvasDecoration.js.map +1 -1
  585. package/lib/esm/render/Decorations.d.ts +1 -0
  586. package/lib/esm/render/Decorations.d.ts.map +1 -1
  587. package/lib/esm/render/Decorations.js +1 -0
  588. package/lib/esm/render/Decorations.js.map +1 -1
  589. package/lib/esm/render/FeatureSymbology.d.ts +1 -0
  590. package/lib/esm/render/FeatureSymbology.d.ts.map +1 -1
  591. package/lib/esm/render/FeatureSymbology.js +1 -0
  592. package/lib/esm/render/FeatureSymbology.js.map +1 -1
  593. package/lib/esm/render/GraphicBranch.d.ts +2 -0
  594. package/lib/esm/render/GraphicBranch.d.ts.map +1 -1
  595. package/lib/esm/render/GraphicBranch.js +1 -0
  596. package/lib/esm/render/GraphicBranch.js.map +1 -1
  597. package/lib/esm/render/GraphicBuilder.d.ts +8 -0
  598. package/lib/esm/render/GraphicBuilder.d.ts.map +1 -1
  599. package/lib/esm/render/GraphicBuilder.js +2 -0
  600. package/lib/esm/render/GraphicBuilder.js.map +1 -1
  601. package/lib/esm/render/GraphicPrimitive.d.ts +14 -0
  602. package/lib/esm/render/GraphicPrimitive.d.ts.map +1 -1
  603. package/lib/esm/render/GraphicPrimitive.js.map +1 -1
  604. package/lib/esm/render/ParticleCollectionBuilder.d.ts +3 -0
  605. package/lib/esm/render/ParticleCollectionBuilder.d.ts.map +1 -1
  606. package/lib/esm/render/ParticleCollectionBuilder.js.map +1 -1
  607. package/lib/esm/render/Pixel.d.ts +1 -0
  608. package/lib/esm/render/Pixel.d.ts.map +1 -1
  609. package/lib/esm/render/Pixel.js +1 -0
  610. package/lib/esm/render/Pixel.js.map +1 -1
  611. package/lib/esm/render/RenderClipVolume.d.ts +1 -0
  612. package/lib/esm/render/RenderClipVolume.d.ts.map +1 -1
  613. package/lib/esm/render/RenderClipVolume.js +1 -0
  614. package/lib/esm/render/RenderClipVolume.js.map +1 -1
  615. package/lib/esm/render/RenderGraphic.d.ts +3 -0
  616. package/lib/esm/render/RenderGraphic.d.ts.map +1 -1
  617. package/lib/esm/render/RenderGraphic.js +2 -0
  618. package/lib/esm/render/RenderGraphic.js.map +1 -1
  619. package/lib/esm/render/RenderSystem.d.ts +1 -0
  620. package/lib/esm/render/RenderSystem.d.ts.map +1 -1
  621. package/lib/esm/render/RenderSystem.js +1 -0
  622. package/lib/esm/render/RenderSystem.js.map +1 -1
  623. package/lib/esm/render/RenderTexture.d.ts +7 -0
  624. package/lib/esm/render/RenderTexture.d.ts.map +1 -1
  625. package/lib/esm/render/RenderTexture.js.map +1 -1
  626. package/lib/esm/render/Scene.d.ts +1 -0
  627. package/lib/esm/render/Scene.d.ts.map +1 -1
  628. package/lib/esm/render/Scene.js +1 -0
  629. package/lib/esm/render/Scene.js.map +1 -1
  630. package/lib/esm/render/ScreenSpaceEffectBuilder.d.ts +10 -0
  631. package/lib/esm/render/ScreenSpaceEffectBuilder.d.ts.map +1 -1
  632. package/lib/esm/render/ScreenSpaceEffectBuilder.js +2 -0
  633. package/lib/esm/render/ScreenSpaceEffectBuilder.js.map +1 -1
  634. package/lib/esm/render/webgl/System.d.ts +1 -1
  635. package/lib/esm/render/webgl/Target.d.ts.map +1 -1
  636. package/lib/esm/render/webgl/Target.js +4 -1
  637. package/lib/esm/render/webgl/Target.js.map +1 -1
  638. package/lib/esm/tile/DisclosedTileTreeSet.d.ts +2 -0
  639. package/lib/esm/tile/DisclosedTileTreeSet.d.ts.map +1 -1
  640. package/lib/esm/tile/DisclosedTileTreeSet.js +1 -0
  641. package/lib/esm/tile/DisclosedTileTreeSet.js.map +1 -1
  642. package/lib/esm/tile/ImdlReader.d.ts +1 -0
  643. package/lib/esm/tile/ImdlReader.d.ts.map +1 -1
  644. package/lib/esm/tile/ImdlReader.js +1 -0
  645. package/lib/esm/tile/ImdlReader.js.map +1 -1
  646. package/lib/esm/tile/Tile.d.ts +5 -0
  647. package/lib/esm/tile/Tile.d.ts.map +1 -1
  648. package/lib/esm/tile/Tile.js +5 -0
  649. package/lib/esm/tile/Tile.js.map +1 -1
  650. package/lib/esm/tile/TileAdmin.d.ts +3 -0
  651. package/lib/esm/tile/TileAdmin.d.ts.map +1 -1
  652. package/lib/esm/tile/TileAdmin.js +1 -0
  653. package/lib/esm/tile/TileAdmin.js.map +1 -1
  654. package/lib/esm/tile/TileContent.d.ts +1 -0
  655. package/lib/esm/tile/TileContent.d.ts.map +1 -1
  656. package/lib/esm/tile/TileContent.js.map +1 -1
  657. package/lib/esm/tile/TileDrawArgs.d.ts +2 -0
  658. package/lib/esm/tile/TileDrawArgs.d.ts.map +1 -1
  659. package/lib/esm/tile/TileDrawArgs.js +1 -0
  660. package/lib/esm/tile/TileDrawArgs.js.map +1 -1
  661. package/lib/esm/tile/TileParams.d.ts +1 -0
  662. package/lib/esm/tile/TileParams.d.ts.map +1 -1
  663. package/lib/esm/tile/TileParams.js.map +1 -1
  664. package/lib/esm/tile/TileRequest.d.ts +1 -0
  665. package/lib/esm/tile/TileRequest.d.ts.map +1 -1
  666. package/lib/esm/tile/TileRequest.js +1 -0
  667. package/lib/esm/tile/TileRequest.js.map +1 -1
  668. package/lib/esm/tile/TileRequestChannel.d.ts +2 -0
  669. package/lib/esm/tile/TileRequestChannel.d.ts.map +1 -1
  670. package/lib/esm/tile/TileRequestChannel.js +2 -0
  671. package/lib/esm/tile/TileRequestChannel.js.map +1 -1
  672. package/lib/esm/tile/TileRequestChannels.d.ts +1 -0
  673. package/lib/esm/tile/TileRequestChannels.d.ts.map +1 -1
  674. package/lib/esm/tile/TileRequestChannels.js +1 -0
  675. package/lib/esm/tile/TileRequestChannels.js.map +1 -1
  676. package/lib/esm/tile/TileTree.d.ts +2 -0
  677. package/lib/esm/tile/TileTree.d.ts.map +1 -1
  678. package/lib/esm/tile/TileTree.js +2 -0
  679. package/lib/esm/tile/TileTree.js.map +1 -1
  680. package/lib/esm/tile/TileTreeOwner.d.ts +1 -0
  681. package/lib/esm/tile/TileTreeOwner.d.ts.map +1 -1
  682. package/lib/esm/tile/TileTreeOwner.js.map +1 -1
  683. package/lib/esm/tile/TileTreeParams.d.ts +1 -0
  684. package/lib/esm/tile/TileTreeParams.d.ts.map +1 -1
  685. package/lib/esm/tile/TileTreeParams.js.map +1 -1
  686. package/lib/esm/tile/TileTreeReference.d.ts +2 -0
  687. package/lib/esm/tile/TileTreeReference.d.ts.map +1 -1
  688. package/lib/esm/tile/TileTreeReference.js +2 -0
  689. package/lib/esm/tile/TileTreeReference.js.map +1 -1
  690. package/lib/esm/tile/TileTreeSupplier.d.ts +1 -0
  691. package/lib/esm/tile/TileTreeSupplier.d.ts.map +1 -1
  692. package/lib/esm/tile/TileTreeSupplier.js.map +1 -1
  693. package/lib/esm/tile/TileUsageMarker.d.ts +1 -0
  694. package/lib/esm/tile/TileUsageMarker.d.ts.map +1 -1
  695. package/lib/esm/tile/TileUsageMarker.js +1 -0
  696. package/lib/esm/tile/TileUsageMarker.js.map +1 -1
  697. package/lib/esm/tile/TiledGraphicsProvider.d.ts +1 -0
  698. package/lib/esm/tile/TiledGraphicsProvider.d.ts.map +1 -1
  699. package/lib/esm/tile/TiledGraphicsProvider.js.map +1 -1
  700. package/lib/esm/tile/map/BingElevation.d.ts +1 -0
  701. package/lib/esm/tile/map/BingElevation.d.ts.map +1 -1
  702. package/lib/esm/tile/map/BingElevation.js +1 -0
  703. package/lib/esm/tile/map/BingElevation.js.map +1 -1
  704. package/lib/esm/tools/ClipViewTool.d.ts +5 -3
  705. package/lib/esm/tools/ClipViewTool.d.ts.map +1 -1
  706. package/lib/esm/tools/ClipViewTool.js +4 -3
  707. package/lib/esm/tools/ClipViewTool.js.map +1 -1
  708. package/lib/esm/tools/EditManipulator.d.ts +1 -0
  709. package/lib/esm/tools/EditManipulator.d.ts.map +1 -1
  710. package/lib/esm/tools/EditManipulator.js +1 -0
  711. package/lib/esm/tools/EditManipulator.js.map +1 -1
  712. package/lib/esm/tools/EventController.d.ts +1 -0
  713. package/lib/esm/tools/EventController.d.ts.map +1 -1
  714. package/lib/esm/tools/EventController.js +1 -0
  715. package/lib/esm/tools/EventController.js.map +1 -1
  716. package/lib/esm/tools/PrimitiveTool.d.ts +1 -0
  717. package/lib/esm/tools/PrimitiveTool.d.ts.map +1 -1
  718. package/lib/esm/tools/PrimitiveTool.js +1 -0
  719. package/lib/esm/tools/PrimitiveTool.js.map +1 -1
  720. package/lib/esm/tools/SelectTool.d.ts +3 -0
  721. package/lib/esm/tools/SelectTool.d.ts.map +1 -1
  722. package/lib/esm/tools/SelectTool.js +3 -0
  723. package/lib/esm/tools/SelectTool.js.map +1 -1
  724. package/lib/esm/tools/Tool.d.ts +41 -6
  725. package/lib/esm/tools/Tool.d.ts.map +1 -1
  726. package/lib/esm/tools/Tool.js +27 -4
  727. package/lib/esm/tools/Tool.js.map +1 -1
  728. package/lib/esm/tools/ToolAdmin.d.ts +9 -2
  729. package/lib/esm/tools/ToolAdmin.d.ts.map +1 -1
  730. package/lib/esm/tools/ToolAdmin.js +9 -2
  731. package/lib/esm/tools/ToolAdmin.js.map +1 -1
  732. package/lib/esm/tools/ToolAssistance.d.ts +7 -0
  733. package/lib/esm/tools/ToolAssistance.d.ts.map +1 -1
  734. package/lib/esm/tools/ToolAssistance.js +3 -0
  735. package/lib/esm/tools/ToolAssistance.js.map +1 -1
  736. package/lib/esm/tools/ToolSettings.d.ts +1 -0
  737. package/lib/esm/tools/ToolSettings.d.ts.map +1 -1
  738. package/lib/esm/tools/ToolSettings.js +1 -0
  739. package/lib/esm/tools/ToolSettings.js.map +1 -1
  740. package/lib/esm/tools/ViewTool.d.ts +2 -0
  741. package/lib/esm/tools/ViewTool.d.ts.map +1 -1
  742. package/lib/esm/tools/ViewTool.js +2 -0
  743. package/lib/esm/tools/ViewTool.js.map +1 -1
  744. package/package.json +32 -21
  745. package/lib/cjs/extension/ExtensionLoader.d.ts +0 -26
  746. package/lib/cjs/extension/ExtensionLoader.d.ts.map +0 -1
  747. package/lib/cjs/extension/ExtensionLoader.js +0 -10
  748. package/lib/cjs/extension/ExtensionLoader.js.map +0 -1
  749. package/lib/cjs/extension/extensions.d.ts +0 -19
  750. package/lib/cjs/extension/extensions.d.ts.map +0 -1
  751. package/lib/cjs/extension/extensions.js +0 -36
  752. package/lib/cjs/extension/extensions.js.map +0 -1
  753. package/lib/esm/extension/ExtensionLoader.d.ts +0 -26
  754. package/lib/esm/extension/ExtensionLoader.d.ts.map +0 -1
  755. package/lib/esm/extension/ExtensionLoader.js +0 -9
  756. package/lib/esm/extension/ExtensionLoader.js.map +0 -1
  757. package/lib/esm/extension/extensions.d.ts +0 -19
  758. package/lib/esm/extension/extensions.d.ts.map +0 -1
  759. package/lib/esm/extension/extensions.js +0 -24
  760. package/lib/esm/extension/extensions.js.map +0 -1
@@ -3,6 +3,7 @@
3
3
  */
4
4
  /** Describes the result of a viewing operation such as those exposed by [[ViewState]] and [[Viewport]].
5
5
  * @public
6
+ * @extensions
6
7
  */
7
8
  export declare enum ViewStatus {
8
9
  Success = 0,
@@ -1 +1 @@
1
- {"version":3,"file":"ViewStatus.d.ts","sourceRoot":"","sources":["../../src/ViewStatus.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,oBAAY,UAAU;IACpB,OAAO,IAAI;IACX,kBAAkB,IAAA;IAClB,eAAe,IAAA;IACf,WAAW,IAAA;IACX,WAAW,IAAA;IACX,UAAU,IAAA;IACV,aAAa,IAAA;IACb,aAAa,IAAA;IACb,SAAS,IAAA;IACT,SAAS,IAAA;IACT,OAAO,KAAA;IACP,eAAe,KAAA;IACf,eAAe,KAAA;IACf,kBAAkB,KAAA;IAClB,WAAW,KAAA;IACX,eAAe,KAAA;IACf,gBAAgB,KAAA;IAChB,aAAa,KAAA;IACb,aAAa,KAAA;IACb,qBAAqB,KAAA;IACrB,mBAAmB,KAAA;IACnB,kBAAkB,KAAA;IAClB,qBAAqB,KAAA;IACrB,oBAAoB,KAAA;CACrB"}
1
+ {"version":3,"file":"ViewStatus.d.ts","sourceRoot":"","sources":["../../src/ViewStatus.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;GAGG;AACH,oBAAY,UAAU;IACpB,OAAO,IAAI;IACX,kBAAkB,IAAA;IAClB,eAAe,IAAA;IACf,WAAW,IAAA;IACX,WAAW,IAAA;IACX,UAAU,IAAA;IACV,aAAa,IAAA;IACb,aAAa,IAAA;IACb,SAAS,IAAA;IACT,SAAS,IAAA;IACT,OAAO,KAAA;IACP,eAAe,KAAA;IACf,eAAe,KAAA;IACf,kBAAkB,KAAA;IAClB,WAAW,KAAA;IACX,eAAe,KAAA;IACf,gBAAgB,KAAA;IAChB,aAAa,KAAA;IACb,aAAa,KAAA;IACb,qBAAqB,KAAA;IACrB,mBAAmB,KAAA;IACnB,kBAAkB,KAAA;IAClB,qBAAqB,KAAA;IACrB,oBAAoB,KAAA;CACrB"}
@@ -7,6 +7,7 @@
7
7
  */
8
8
  /** Describes the result of a viewing operation such as those exposed by [[ViewState]] and [[Viewport]].
9
9
  * @public
10
+ * @extensions
10
11
  */
11
12
  export var ViewStatus;
12
13
  (function (ViewStatus) {
@@ -1 +1 @@
1
- {"version":3,"file":"ViewStatus.js","sourceRoot":"","sources":["../../src/ViewStatus.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,UAyBX;AAzBD,WAAY,UAAU;IACpB,iDAAW,CAAA;IACX,uEAAkB,CAAA;IAClB,iEAAe,CAAA;IACf,yDAAW,CAAA;IACX,yDAAW,CAAA;IACX,uDAAU,CAAA;IACV,6DAAa,CAAA;IACb,6DAAa,CAAA;IACb,qDAAS,CAAA;IACT,qDAAS,CAAA;IACT,kDAAO,CAAA;IACP,kEAAe,CAAA;IACf,kEAAe,CAAA;IACf,wEAAkB,CAAA;IAClB,0DAAW,CAAA;IACX,kEAAe,CAAA;IACf,oEAAgB,CAAA;IAChB,8DAAa,CAAA;IACb,8DAAa,CAAA;IACb,8EAAqB,CAAA;IACrB,0EAAmB,CAAA;IACnB,wEAAkB,CAAA;IAClB,8EAAqB,CAAA;IACrB,4EAAoB,CAAA;AACtB,CAAC,EAzBW,UAAU,KAAV,UAAU,QAyBrB","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 Views\r\n */\r\n\r\n/** Describes the result of a viewing operation such as those exposed by [[ViewState]] and [[Viewport]].\r\n * @public\r\n */\r\nexport enum ViewStatus {\r\n Success = 0,\r\n ViewNotInitialized,\r\n AlreadyAttached,\r\n NotAttached,\r\n DrawFailure,\r\n NotResized,\r\n ModelNotFound,\r\n InvalidWindow,\r\n MinWindow,\r\n MaxWindow,\r\n MaxZoom,\r\n MaxDisplayDepth,\r\n InvalidUpVector,\r\n InvalidTargetPoint,\r\n InvalidLens,\r\n InvalidViewport,\r\n InvalidDirection,\r\n NotGeolocated,\r\n NotCameraView,\r\n NotEllipsoidGlobeMode,\r\n NotOrthographicView,\r\n DegenerateGeometry,\r\n HeightBelowTransition,\r\n NoTransitionRequired,\r\n}\r\n"]}
1
+ {"version":3,"file":"ViewStatus.js","sourceRoot":"","sources":["../../src/ViewStatus.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;;GAGG;AACH,MAAM,CAAN,IAAY,UAyBX;AAzBD,WAAY,UAAU;IACpB,iDAAW,CAAA;IACX,uEAAkB,CAAA;IAClB,iEAAe,CAAA;IACf,yDAAW,CAAA;IACX,yDAAW,CAAA;IACX,uDAAU,CAAA;IACV,6DAAa,CAAA;IACb,6DAAa,CAAA;IACb,qDAAS,CAAA;IACT,qDAAS,CAAA;IACT,kDAAO,CAAA;IACP,kEAAe,CAAA;IACf,kEAAe,CAAA;IACf,wEAAkB,CAAA;IAClB,0DAAW,CAAA;IACX,kEAAe,CAAA;IACf,oEAAgB,CAAA;IAChB,8DAAa,CAAA;IACb,8DAAa,CAAA;IACb,8EAAqB,CAAA;IACrB,0EAAmB,CAAA;IACnB,wEAAkB,CAAA;IAClB,8EAAqB,CAAA;IACrB,4EAAoB,CAAA;AACtB,CAAC,EAzBW,UAAU,KAAV,UAAU,QAyBrB","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 Views\r\n */\r\n\r\n/** Describes the result of a viewing operation such as those exposed by [[ViewState]] and [[Viewport]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum ViewStatus {\r\n Success = 0,\r\n ViewNotInitialized,\r\n AlreadyAttached,\r\n NotAttached,\r\n DrawFailure,\r\n NotResized,\r\n ModelNotFound,\r\n InvalidWindow,\r\n MinWindow,\r\n MaxWindow,\r\n MaxZoom,\r\n MaxDisplayDepth,\r\n InvalidUpVector,\r\n InvalidTargetPoint,\r\n InvalidLens,\r\n InvalidViewport,\r\n InvalidDirection,\r\n NotGeolocated,\r\n NotCameraView,\r\n NotEllipsoidGlobeMode,\r\n NotOrthographicView,\r\n DegenerateGeometry,\r\n HeightBelowTransition,\r\n NoTransitionRequired,\r\n}\r\n"]}
@@ -10,6 +10,7 @@ import { ViewState } from "./ViewState";
10
10
  * instance of ViewingSpace is created every time the Viewport's frustum changes.
11
11
  * @see [[Viewport.viewingSpace]].
12
12
  * @public
13
+ * @extensions
13
14
  */
14
15
  export declare class ViewingSpace {
15
16
  private readonly _viewRange;
@@ -1 +1 @@
1
- {"version":3,"file":"ViewingSpace.d.ts","sourceRoot":"","sources":["../../src/ViewingSpace.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EACsC,KAAK,EAAE,QAAQ,EAAgC,OAAO,E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EAAE,GAAG,IAAI;IAExE;;;;OAIG;IACI,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IACrD;;;;OAIG;IACI,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IACrD;;;;OAIG;IACI,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IACzD;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IAC3D;;;;OAIG;IACI,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IACzD;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IAE5D;;;;;;;;;;;OAWG;IACI,UAAU,CAAC,GAAG,GAAE,WAA+B,EAAE,WAAW,GAAE,OAAc,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO;IAkC5G,gBAAgB;IACT,mBAAmB,CAAC,OAAO,CAAC,EAAE,OAAO;IAM5C,gBAAgB;IACT,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,SAAS,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;CAYjF"}
@@ -16,6 +16,7 @@ import { getFrustumPlaneIntersectionDepthRange } from "./BackgroundMapGeometry";
16
16
  * instance of ViewingSpace is created every time the Viewport's frustum changes.
17
17
  * @see [[Viewport.viewingSpace]].
18
18
  * @public
19
+ * @extensions
19
20
  */
20
21
  export class ViewingSpace {
21
22
  constructor(vp) {
@@ -1 +1 @@
1
- {"version":3,"file":"ViewingSpace.js","sourceRoot":"","sources":["../../src/ViewingSpace.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EACL,SAAS,EAAE,oBAA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AgB,IAAI,gBAAgB,YAAY,SAAS,EAAE;YAC7D,OAAO,WAAW,CAAC,WAAW,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;SAC1D;aAAM;YACL,MAAM,KAAK,GAAG,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC;YACpE,MAAM,eAAe,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAClD,eAAe,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC1C,OAAO,eAAe,CAAC;SACxB;IACH,CAAC;;AA5cD;;GAEG;AACW,8BAAiB,GAAG,MAAM,CAAC;AACzC;;GAEG;AACW,2BAAc,GAAG,MAAM,CAAC;AAyFvB,sBAAS,GAAG,CAAC,CAAC,CAAC,qEAAqE","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 Views\r\n */\r\n\r\nimport {\r\n AxisOrder, ClipPlaneContainment, Constant, Map4d, Matrix3d, Plane3dByOriginAndUnitNormal, Point3d, Point4d, Range1d, Range2d, Range3d, Transform, Vector3d, XYAndZ, XYZ,\r\n} from \"@itwin/core-geometry\";\r\nimport { Frustum, GridOrientationType, Npc, NpcCorners } from \"@itwin/core-common\";\r\nimport { ApproximateTerrainHeights } from \"./ApproximateTerrainHeights\";\r\nimport { CoordSystem } from \"./CoordSystem\";\r\nimport { Viewport } from \"./Viewport\";\r\nimport { ViewRect } from \"./ViewRect\";\r\nimport { ViewState } from \"./ViewState\";\r\nimport { Frustum2d } from \"./Frustum2d\";\r\nimport { getFrustumPlaneIntersectionDepthRange } from \"./BackgroundMapGeometry\";\r\n\r\n/** Describes a [[Viewport]]'s viewing volume, plus its size on the screen. A new\r\n * instance of ViewingSpace is created every time the Viewport's frustum changes.\r\n * @see [[Viewport.viewingSpace]].\r\n * @public\r\n */\r\nexport class ViewingSpace {\r\n private readonly _viewRange = new ViewRect(); // scratch variable\r\n private readonly _viewCorners = new Range3d(); // scratch variable\r\n\r\n /** @internal */\r\n public frustFraction = 1.0;\r\n /** Maximum ratio of frontplane to backplane distance for 24 bit non-logarithmic zbuffer\r\n * @internal\r\n */\r\n public static nearScaleNonLog24 = 0.0003;\r\n /** Maximum fraction of frontplane to backplane distance for 24 bit logarithmic zbuffer\r\n * @internal\r\n */\r\n public static nearScaleLog24 = 1.0E-8;\r\n /** View origin, potentially expanded */\r\n public readonly viewOrigin = new Point3d();\r\n /** View delta, potentially expanded */\r\n public readonly viewDelta = new Vector3d();\r\n /** View origin (from ViewState, unexpanded) */\r\n public readonly viewOriginUnexpanded = new Point3d();\r\n /** View delta (from ViewState, unexpanded) */\r\n public readonly viewDeltaUnexpanded = new Vector3d();\r\n /** View rotation matrix (copied from ViewState) */\r\n public readonly rotation = new Matrix3d();\r\n /** Provides conversions between world and view coordinates. */\r\n public readonly worldToViewMap = Map4d.createIdentity();\r\n /** Providers conversions between world and Npc (non-dimensional perspective) coordinates. */\r\n public readonly worldToNpcMap = Map4d.createIdentity();\r\n /** @internal */\r\n public readonly zClipAdjusted: boolean = false; // were the view z clip planes adjusted due to front/back clipping off?\r\n /** Eye point - undefined if not a perspective projection. */\r\n public readonly eyePoint: Point3d | undefined;\r\n\r\n private _view: ViewState;\r\n\r\n /** The ViewState for this Viewport */\r\n public get view(): ViewState { return this._view; }\r\n public set view(view: ViewState) { this._view = view; }\r\n\r\n private readonly _clientWidth: number;\r\n private readonly _clientHeight: number;\r\n\r\n /** Get the rectangle of this Viewport in ViewCoordinates. */\r\n private get _viewRect(): ViewRect { this._viewRange.init(0, 0, this._clientWidth, this._clientHeight); return this._viewRange; }\r\n\r\n private static _copyOutput(from: XYZ, to?: XYZ) { let pt = from; if (to) { to.setFrom(from); pt = to; } return pt; }\r\n\r\n /** @internal */\r\n public toViewOrientation(from: XYZ, to?: XYZ) { this.rotation.multiplyVectorInPlace(ViewingSpace._copyOutput(from, to)); }\r\n /** @internal */\r\n public fromViewOrientation(from: XYZ, to?: XYZ) { this.rotation.multiplyTransposeVectorInPlace(ViewingSpace._copyOutput(from, to)); }\r\n\r\n /** Ensure the rotation matrix for this view is aligns the root z with the view out (i.e. a \"2d view\"). */\r\n private alignWithRootZ() {\r\n const zUp = Vector3d.unitZ();\r\n if (zUp.isAlmostEqual(this.rotation.rowZ()))\r\n return;\r\n const r = this.rotation.transpose();\r\n r.setColumn(2, zUp);\r\n Matrix3d.createRigidFromMatrix3d(r, AxisOrder.ZXY, r);\r\n r.transpose(this.rotation);\r\n this.view.setRotation(this.rotation); // Don't let viewState and viewport rotation be different.\r\n }\r\n\r\n private validateCamera() {\r\n const view = this.view;\r\n if (!view.is3d())\r\n return;\r\n\r\n const camera = view.camera;\r\n camera.validateLens();\r\n if (camera.isFocusValid)\r\n return;\r\n\r\n const vDelta = view.getExtents();\r\n const maxDelta = vDelta.x > vDelta.y ? vDelta.x : vDelta.y;\r\n let focusDistance = maxDelta / (2.0 * Math.tan(camera.getLensAngle().radians / 2.0));\r\n\r\n if (focusDistance < vDelta.z / 2.0)\r\n focusDistance = vDelta.z / 2.0;\r\n\r\n const eyePoint = new Point3d(vDelta.x / 2.0, vDelta.y / 2.0, (vDelta.z / 2.0) + focusDistance);\r\n\r\n this.fromViewOrientation(eyePoint);\r\n eyePoint.plus(view.getOrigin(), eyePoint);\r\n camera.setEyePoint(eyePoint);\r\n camera.setFocusDistance(focusDistance);\r\n }\r\n\r\n /** @internal */\r\n public getTerrainHeightRange(): Range1d | undefined {\r\n const frustum = this.getFrustum()!;\r\n const cartoRange = Range2d.createNull();\r\n for (let i = 0; i < 8; i++) {\r\n const corner = frustum.getCorner(i);\r\n const carto = this.view.iModel.spatialToCartographicFromEcef(corner);\r\n cartoRange.extendXY(carto.longitude, carto.latitude);\r\n }\r\n\r\n return ApproximateTerrainHeights.instance.getMinimumMaximumHeights(cartoRange);\r\n }\r\n\r\n private static _minDepth = 1; // Allowing very small depth will cause frustum calculations to fail.\r\n\r\n /** Adjust the front and back planes to encompass the entire viewed volume */\r\n private adjustZPlanes(origin: Point3d, delta: Vector3d): void {\r\n const view = this.view;\r\n if (!view.is3d()) // only necessary for 3d views\r\n return;\r\n\r\n delta.z = Math.max(delta.z, ViewingSpace._minDepth);\r\n\r\n const extents = view.getViewedExtents();\r\n const frustum = new Frustum();\r\n const worldToNpc = this.view.computeWorldToNpc(this.rotation, this.viewOrigin, this.viewDelta, false).map as Map4d;\r\n\r\n if (worldToNpc === undefined)\r\n return;\r\n\r\n worldToNpc.transform1.multiplyPoint3dArrayQuietNormalize(frustum.points);\r\n const clipPlanes = frustum.getRangePlanes(false, false, 0);\r\n const viewedExtentCorners = extents.corners();\r\n\r\n // Only extend depth to include viewed geometry if it is within the frustum. (if viewing global locations).\r\n if (clipPlanes.classifyPointContainment(viewedExtentCorners, false) === ClipPlaneContainment.StronglyOutside)\r\n extents.setNull();\r\n\r\n let depthRange;\r\n let gridPlane;\r\n if (this.view.viewFlags.grid) {\r\n const gridOrigin = this.view.isSpatialView() ? this.view.iModel.globalOrigin : Point3d.create();\r\n switch(this.view.getGridOrientation()) {\r\n case GridOrientationType.WorldXY:\r\n gridPlane = Plane3dByOriginAndUnitNormal.create(gridOrigin, Vector3d.create(0, 0, 1));\r\n break;\r\n case GridOrientationType.WorldYZ:\r\n gridPlane = Plane3dByOriginAndUnitNormal.create(gridOrigin, Vector3d.create(1, 0, 0));\r\n break;\r\n case GridOrientationType.WorldXZ:\r\n gridPlane = Plane3dByOriginAndUnitNormal.create(gridOrigin, Vector3d.create(0, 1, 0));\r\n break;\r\n\r\n case GridOrientationType.AuxCoord:\r\n if (this.view.auxiliaryCoordinateSystem)\r\n gridPlane = Plane3dByOriginAndUnitNormal.create(gridOrigin, this.view.auxiliaryCoordinateSystem.getRotation().rowZ());\r\n\r\n break;\r\n }\r\n }\r\n const globalGeometry = this.view.displayStyle.getGlobalGeometryAndHeightRange();\r\n if (undefined !== globalGeometry) {\r\n const viewZ = this.rotation.getRow(2);\r\n const eyeDepth = this.eyePoint ? viewZ.dotProduct(this.eyePoint) : undefined;\r\n\r\n depthRange = globalGeometry.geometry.getFrustumIntersectionDepthRange(frustum, extents, globalGeometry.heightRange, gridPlane, this.view.maxGlobalScopeFactor > 1);\r\n\r\n if (eyeDepth !== undefined) {\r\n const maxBackgroundFrontBackRatio = 1.0E6;\r\n const frontDist = Math.max(.1, eyeDepth - depthRange.high);\r\n const backDist = eyeDepth - depthRange.low;\r\n if (backDist / frontDist > maxBackgroundFrontBackRatio)\r\n depthRange.high = eyeDepth - backDist / maxBackgroundFrontBackRatio;\r\n }\r\n } else\r\n depthRange = gridPlane ? getFrustumPlaneIntersectionDepthRange(frustum, gridPlane) : Range1d.createNull();\r\n\r\n if (!extents.isNull) {\r\n const viewZ = this.rotation.getRow(2);\r\n const corners = extents.corners();\r\n for (const corner of corners)\r\n depthRange.extendX(viewZ.dotProduct(corner));\r\n }\r\n\r\n if (depthRange.isNull)\r\n return;\r\n\r\n this.rotation.multiplyVectorInPlace(origin); // put origin in view coordinates\r\n origin.z = depthRange.low; // set origin to back of viewed extents\r\n delta.z = Math.max(depthRange.high - depthRange.low, ViewingSpace._minDepth); // and delta to front of viewed extents\r\n this.rotation.multiplyTransposeVectorInPlace(origin);\r\n\r\n if (!view.isCameraOn)\r\n return;\r\n\r\n // if the camera is on, we need to make sure that the viewed volume is not behind the eye\r\n const eyeOrg = this.eyePoint!.minus(origin);\r\n this.rotation.multiplyVectorInPlace(eyeOrg);\r\n\r\n // if the distance from the eye to origin in less than 1 meter, move the origin away from the eye. Usually, this means\r\n // that the camera is outside the viewed extents and pointed away from it. There's nothing to see anyway.\r\n if (eyeOrg.z < 1.0) {\r\n this.rotation.multiplyVectorInPlace(origin);\r\n origin.z -= (2.0 - eyeOrg.z);\r\n this.rotation.multiplyTransposeVectorInPlace(origin);\r\n delta.z = 1.0;\r\n return;\r\n }\r\n\r\n // if part of the viewed extents are behind the eye, don't include that.\r\n if (delta.z > eyeOrg.z)\r\n delta.z = eyeOrg.z;\r\n }\r\n\r\n /* get the mapping from NPC to view\r\n * @internal\r\n */\r\n public calcNpcToView(): Map4d {\r\n const corners = this.getViewCorners();\r\n const map = Map4d.createBoxMap(NpcCorners[Npc._000], NpcCorners[Npc._111], corners.low, corners.high);\r\n\r\n // The map may be undefined if the view rect's width or height is zero.\r\n return undefined === map ? Map4d.createIdentity() : map;\r\n }\r\n\r\n /* Get the extents of this view, in ViewCoordinates, as a Range3d */\r\n public getViewCorners(): Range3d {\r\n const corners = this._viewCorners;\r\n const viewRect = this._viewRect;\r\n corners.high.x = viewRect.right;\r\n corners.low.y = viewRect.bottom; // y's are swapped on the screen!\r\n corners.low.x = 0;\r\n corners.high.y = 0;\r\n corners.low.z = -32767;\r\n corners.high.z = 32767;\r\n return corners;\r\n }\r\n\r\n private constructor(vp: Viewport) {\r\n const view = this._view = vp.view;\r\n const viewRect = vp.viewRect;\r\n this._clientWidth = viewRect.width;\r\n this._clientHeight = viewRect.height;\r\n const origin = view.getOrigin().clone();\r\n const delta = view.getExtents().clone();\r\n this.rotation.setFrom(view.getRotation());\r\n\r\n // first, make sure none of the deltas are negative\r\n delta.x = Math.abs(delta.x);\r\n delta.y = Math.abs(delta.y);\r\n delta.z = Math.abs(delta.z);\r\n\r\n this.viewOriginUnexpanded.setFrom(origin);\r\n this.viewDeltaUnexpanded.setFrom(delta);\r\n this.viewOrigin.setFrom(origin);\r\n this.viewDelta.setFrom(delta);\r\n this.zClipAdjusted = false;\r\n this.eyePoint = undefined;\r\n\r\n if (view.is3d()) {\r\n if (!view.allow3dManipulations()) {\r\n // we're in a \"2d\" view of a physical model. That means that we must have our orientation with z out of the screen with z=0 at the center.\r\n this.alignWithRootZ(); // make sure we're in a z Up view\r\n\r\n const extents = view.getViewedExtents();\r\n if (extents.isNull) {\r\n extents.low.z = Frustum2d.minimumZExtents.low;\r\n extents.high.z = Frustum2d.minimumZExtents.high;\r\n }\r\n\r\n let zMax = Math.max(Math.abs(extents.low.z), Math.abs(extents.high.z));\r\n zMax = Math.max(zMax, 1.0); // make sure we have at least +-1m. Data may be purely planar\r\n delta.z = 2.0 * zMax;\r\n origin.z = -zMax;\r\n } else {\r\n if (view.isCameraOn)\r\n this.validateCamera();\r\n\r\n if (view.isCameraOn)\r\n this.eyePoint = view.camera.getEyePoint().clone();\r\n\r\n this.adjustZPlanes(origin, delta); // make sure view volume includes entire volume of view\r\n\r\n // if the camera is on, don't allow front plane behind camera\r\n if (this.eyePoint) {\r\n const eyeOrg = this.eyePoint.minus(origin); // vector from eye to origin\r\n this.toViewOrientation(eyeOrg);\r\n\r\n const frontDist = eyeOrg.z - delta.z; // front distance is backDist - delta.z\r\n\r\n // allow ViewState to specify a minimum front dist, but in no case less than 6 inches\r\n const minFrontDist = Math.max(15.2 * Constant.oneCentimeter, view.forceMinFrontDist);\r\n if (frontDist < minFrontDist) {\r\n // camera is too close to front plane, move origin away from eye to maintain a minimum front distance.\r\n this.toViewOrientation(origin);\r\n origin.z -= (minFrontDist - frontDist);\r\n this.fromViewOrientation(origin);\r\n }\r\n }\r\n\r\n // if we moved the z planes, set the \"zClipAdjusted\" flag.\r\n if (!origin.isExactEqual(this.viewOriginUnexpanded) || !delta.isExactEqual(this.viewDeltaUnexpanded))\r\n this.zClipAdjusted = true;\r\n }\r\n } else { // 2d viewport\r\n this.alignWithRootZ();\r\n }\r\n\r\n this.viewOrigin.setFrom(origin);\r\n this.viewDelta.setFrom(delta);\r\n\r\n const newRootToNpc = this.view.computeWorldToNpc(this.rotation, origin, delta, !this.view.displayStyle.getIsBackgroundMapVisible() /* if displaying background map, don't enforce front/back ratio as no Z-Buffer */);\r\n if (newRootToNpc.map === undefined) {\r\n this.frustFraction = 0; // invalid frustum\r\n return;\r\n }\r\n\r\n this.worldToNpcMap.setFrom(newRootToNpc.map);\r\n this.frustFraction = newRootToNpc.frustFraction;\r\n this.worldToViewMap.setFrom(this.calcNpcToView().multiplyMapMap(this.worldToNpcMap));\r\n }\r\n\r\n /** Create from a Viewport. */\r\n public static createFromViewport(vp: Viewport): ViewingSpace | undefined {\r\n return new ViewingSpace(vp);\r\n }\r\n\r\n /** Convert an array of points from CoordSystem.View to CoordSystem.Npc */\r\n public viewToNpcArray(pts: Point3d[]): void {\r\n const corners = this.getViewCorners();\r\n const scrToNpcTran = Transform.createIdentity();\r\n Transform.initFromRange(corners.low, corners.high, undefined, scrToNpcTran);\r\n scrToNpcTran.multiplyPoint3dArrayInPlace(pts);\r\n }\r\n\r\n /** Convert an array of points from CoordSystem.Npc to CoordSystem.View */\r\n public npcToViewArray(pts: Point3d[]): void {\r\n const corners = this.getViewCorners();\r\n for (const p of pts)\r\n corners.fractionToPoint(p.x, p.y, p.z, p);\r\n }\r\n\r\n /** Convert a point from CoordSystem.View to CoordSystem.Npc\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public viewToNpc(pt: Point3d, out?: Point3d): Point3d {\r\n const corners = this.getViewCorners();\r\n const scrToNpcTran = Transform.createIdentity();\r\n Transform.initFromRange(corners.low, corners.high, undefined, scrToNpcTran);\r\n return scrToNpcTran.multiplyPoint3d(pt, out);\r\n }\r\n\r\n /** Convert a point from CoordSystem.Npc to CoordSystem.View\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public npcToView(pt: Point3d, out?: Point3d): Point3d {\r\n const corners = this.getViewCorners();\r\n return corners.fractionToPoint(pt.x, pt.y, pt.z, out);\r\n }\r\n\r\n /** Convert an array of points from CoordSystem.World to CoordSystem.Npc */\r\n public worldToNpcArray(pts: Point3d[]): void { this.worldToNpcMap.transform0.multiplyPoint3dArrayQuietNormalize(pts); }\r\n /** Convert an array of points from CoordSystem.Npc to CoordSystem.World */\r\n public npcToWorldArray(pts: Point3d[]): void { this.worldToNpcMap.transform1.multiplyPoint3dArrayQuietNormalize(pts); }\r\n /** Convert an array of points from CoordSystem.World to CoordSystem.View */\r\n public worldToViewArray(pts: Point3d[]): void { this.worldToViewMap.transform0.multiplyPoint3dArrayQuietNormalize(pts); }\r\n /** Convert an array of points from CoordSystem.World to CoordSystem.View, as Point4ds */\r\n public worldToView4dArray(worldPts: Point3d[], viewPts: Point4d[]): void { this.worldToViewMap.transform0.multiplyPoint3dArray(worldPts, viewPts); }\r\n /** Convert an array of points from CoordSystem.View to CoordSystem.World */\r\n public viewToWorldArray(pts: Point3d[]) { this.worldToViewMap.transform1.multiplyPoint3dArrayQuietNormalize(pts); }\r\n /** Convert an array of points from CoordSystem.View as Point4ds to CoordSystem.World */\r\n public view4dToWorldArray(viewPts: Point4d[], worldPts: Point3d[]): void { this.worldToViewMap.transform1.multiplyPoint4dArrayQuietRenormalize(viewPts, worldPts); }\r\n\r\n /**\r\n * Convert a point from CoordSystem.World to CoordSystem.Npc\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public worldToNpc(pt: XYAndZ, out?: Point3d): Point3d { return this.worldToNpcMap.transform0.multiplyPoint3dQuietNormalize(pt, out); }\r\n /**\r\n * Convert a point from CoordSystem.Npc to CoordSystem.World\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public npcToWorld(pt: XYAndZ, out?: Point3d): Point3d { return this.worldToNpcMap.transform1.multiplyPoint3dQuietNormalize(pt, out); }\r\n /**\r\n * Convert a point from CoordSystem.World to CoordSystem.View\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public worldToView(input: XYAndZ, out?: Point3d): Point3d { return this.worldToViewMap.transform0.multiplyPoint3dQuietNormalize(input, out); }\r\n /**\r\n * Convert a point from CoordSystem.World to CoordSystem.View as Point4d\r\n * @param input the point to convert\r\n * @param out optional location for result. If undefined, a new Point4d is created.\r\n */\r\n public worldToView4d(input: XYAndZ, out?: Point4d): Point4d { return this.worldToViewMap.transform0.multiplyPoint3d(input, 1.0, out); }\r\n /**\r\n * Convert a point from CoordSystem.View to CoordSystem.World\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public viewToWorld(input: XYAndZ, out?: Point3d): Point3d { return this.worldToViewMap.transform1.multiplyPoint3dQuietNormalize(input, out); }\r\n /**\r\n * Convert a point from CoordSystem.View as a Point4d to CoordSystem.View\r\n * @param input the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public view4dToWorld(input: Point4d, out?: Point3d): Point3d { return this.worldToViewMap.transform1.multiplyXYZWQuietRenormalize(input.x, input.y, input.z, input.w, out); }\r\n\r\n /** Get an 8-point Frustum corresponding to the 8 corners of the Viewport in the specified coordinate system.\r\n *\r\n * There are two sets of corners that may be of interest.\r\n * The \"adjusted\" box is the one that is computed by examining the \"viewed extents\" and moving\r\n * the front and back planes to enclose everything in the view.\r\n * The \"unadjusted\" box is the one that is stored in the ViewState.\r\n * @param sys Coordinate system for points\r\n * @param adjustedBox If true, retrieve the adjusted box. Otherwise retrieve the box that came from the view definition.\r\n * @param box optional Frustum for return value\r\n * @return the view frustum\r\n * @note The \"adjusted\" box may be either larger or smaller than the \"unadjusted\" box.\r\n */\r\n public getFrustum(sys: CoordSystem = CoordSystem.World, adjustedBox: boolean = true, box?: Frustum): Frustum {\r\n box = box ? box.initNpc() : new Frustum();\r\n\r\n // if they are looking for the \"unexpanded\" (that is before f/b clipping expansion) box, we need to get the npc\r\n // coordinates that correspond to the unexpanded box in the npc space of the Expanded view (that's the basis for all\r\n // of the root-based maps.)\r\n if (!adjustedBox && this.zClipAdjusted) {\r\n // to get unexpanded box, we have to go recompute rootToNpc from original View.\r\n const ueRootToNpc = this.view.computeWorldToNpc(this.rotation, this.viewOriginUnexpanded, this.viewDeltaUnexpanded);\r\n if (undefined === ueRootToNpc.map)\r\n return box; // invalid frustum\r\n\r\n // get the root corners of the unexpanded box\r\n const ueRootBox = new Frustum();\r\n ueRootToNpc.map.transform1.multiplyPoint3dArrayQuietNormalize(ueRootBox.points);\r\n\r\n // and convert them to npc coordinates of the expanded view\r\n this.worldToNpcArray(ueRootBox.points);\r\n box.setFrom(ueRootBox);\r\n }\r\n\r\n // now convert from NPC space to the specified coordinate system.\r\n switch (sys) {\r\n case CoordSystem.View:\r\n this.npcToViewArray(box.points);\r\n break;\r\n\r\n case CoordSystem.World:\r\n this.npcToWorldArray(box.points);\r\n break;\r\n }\r\n return box;\r\n }\r\n\r\n /** @internal */\r\n public getPixelSizeAtPoint(inPoint?: Point3d) {\r\n const viewPt = !!inPoint ? this.worldToView(inPoint) : this.npcToView(new Point3d(0.5, 0.5, 0.5));\r\n const viewPt2 = new Point3d(viewPt.x + 1.0, viewPt.y, viewPt.z);\r\n return this.viewToWorld(viewPt).distance(this.viewToWorld(viewPt2));\r\n }\r\n\r\n /** @internal */\r\n public getPreloadFrustum(transformOrScale?: Transform | number, result?: Frustum) {\r\n const viewFrustum = this.getFrustum(CoordSystem.World, true);\r\n\r\n if (transformOrScale && transformOrScale instanceof Transform) {\r\n return viewFrustum.transformBy(transformOrScale, result);\r\n } else {\r\n const scale = transformOrScale === undefined ? 2 : transformOrScale;\r\n const expandedFrustum = viewFrustum.clone(result);\r\n expandedFrustum.scaleXYAboutCenter(scale);\r\n return expandedFrustum;\r\n }\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ViewingSpace.js","sourceRoot":"","sources":["../../src/ViewingSpace.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EACL,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,4BAA4B,EAAE,OAAO,EAAW,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,GAC3J,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,UAAU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;YACpE,MAAM,eAAe,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAClD,eAAe,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC1C,OAAO,eAAe,CAAC;SACxB;IACH,CAAC;;AA5cD;;GAEG;AACW,8BAAiB,GAAG,MAAM,CAAC;AACzC;;GAEG;AACW,2BAAc,GAAG,MAAM,CAAC;AAyFvB,sBAAS,GAAG,CAAC,CAAC,CAAC,qEAAqE","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 Views\r\n */\r\n\r\nimport {\r\n AxisOrder, ClipPlaneContainment, Constant, Map4d, Matrix3d, Plane3dByOriginAndUnitNormal, Point3d, Point4d, Range1d, Range2d, Range3d, Transform, Vector3d, XYAndZ, XYZ,\r\n} from \"@itwin/core-geometry\";\r\nimport { Frustum, GridOrientationType, Npc, NpcCorners } from \"@itwin/core-common\";\r\nimport { ApproximateTerrainHeights } from \"./ApproximateTerrainHeights\";\r\nimport { CoordSystem } from \"./CoordSystem\";\r\nimport { Viewport } from \"./Viewport\";\r\nimport { ViewRect } from \"./ViewRect\";\r\nimport { ViewState } from \"./ViewState\";\r\nimport { Frustum2d } from \"./Frustum2d\";\r\nimport { getFrustumPlaneIntersectionDepthRange } from \"./BackgroundMapGeometry\";\r\n\r\n/** Describes a [[Viewport]]'s viewing volume, plus its size on the screen. A new\r\n * instance of ViewingSpace is created every time the Viewport's frustum changes.\r\n * @see [[Viewport.viewingSpace]].\r\n * @public\r\n * @extensions\r\n */\r\nexport class ViewingSpace {\r\n private readonly _viewRange = new ViewRect(); // scratch variable\r\n private readonly _viewCorners = new Range3d(); // scratch variable\r\n\r\n /** @internal */\r\n public frustFraction = 1.0;\r\n /** Maximum ratio of frontplane to backplane distance for 24 bit non-logarithmic zbuffer\r\n * @internal\r\n */\r\n public static nearScaleNonLog24 = 0.0003;\r\n /** Maximum fraction of frontplane to backplane distance for 24 bit logarithmic zbuffer\r\n * @internal\r\n */\r\n public static nearScaleLog24 = 1.0E-8;\r\n /** View origin, potentially expanded */\r\n public readonly viewOrigin = new Point3d();\r\n /** View delta, potentially expanded */\r\n public readonly viewDelta = new Vector3d();\r\n /** View origin (from ViewState, unexpanded) */\r\n public readonly viewOriginUnexpanded = new Point3d();\r\n /** View delta (from ViewState, unexpanded) */\r\n public readonly viewDeltaUnexpanded = new Vector3d();\r\n /** View rotation matrix (copied from ViewState) */\r\n public readonly rotation = new Matrix3d();\r\n /** Provides conversions between world and view coordinates. */\r\n public readonly worldToViewMap = Map4d.createIdentity();\r\n /** Providers conversions between world and Npc (non-dimensional perspective) coordinates. */\r\n public readonly worldToNpcMap = Map4d.createIdentity();\r\n /** @internal */\r\n public readonly zClipAdjusted: boolean = false; // were the view z clip planes adjusted due to front/back clipping off?\r\n /** Eye point - undefined if not a perspective projection. */\r\n public readonly eyePoint: Point3d | undefined;\r\n\r\n private _view: ViewState;\r\n\r\n /** The ViewState for this Viewport */\r\n public get view(): ViewState { return this._view; }\r\n public set view(view: ViewState) { this._view = view; }\r\n\r\n private readonly _clientWidth: number;\r\n private readonly _clientHeight: number;\r\n\r\n /** Get the rectangle of this Viewport in ViewCoordinates. */\r\n private get _viewRect(): ViewRect { this._viewRange.init(0, 0, this._clientWidth, this._clientHeight); return this._viewRange; }\r\n\r\n private static _copyOutput(from: XYZ, to?: XYZ) { let pt = from; if (to) { to.setFrom(from); pt = to; } return pt; }\r\n\r\n /** @internal */\r\n public toViewOrientation(from: XYZ, to?: XYZ) { this.rotation.multiplyVectorInPlace(ViewingSpace._copyOutput(from, to)); }\r\n /** @internal */\r\n public fromViewOrientation(from: XYZ, to?: XYZ) { this.rotation.multiplyTransposeVectorInPlace(ViewingSpace._copyOutput(from, to)); }\r\n\r\n /** Ensure the rotation matrix for this view is aligns the root z with the view out (i.e. a \"2d view\"). */\r\n private alignWithRootZ() {\r\n const zUp = Vector3d.unitZ();\r\n if (zUp.isAlmostEqual(this.rotation.rowZ()))\r\n return;\r\n const r = this.rotation.transpose();\r\n r.setColumn(2, zUp);\r\n Matrix3d.createRigidFromMatrix3d(r, AxisOrder.ZXY, r);\r\n r.transpose(this.rotation);\r\n this.view.setRotation(this.rotation); // Don't let viewState and viewport rotation be different.\r\n }\r\n\r\n private validateCamera() {\r\n const view = this.view;\r\n if (!view.is3d())\r\n return;\r\n\r\n const camera = view.camera;\r\n camera.validateLens();\r\n if (camera.isFocusValid)\r\n return;\r\n\r\n const vDelta = view.getExtents();\r\n const maxDelta = vDelta.x > vDelta.y ? vDelta.x : vDelta.y;\r\n let focusDistance = maxDelta / (2.0 * Math.tan(camera.getLensAngle().radians / 2.0));\r\n\r\n if (focusDistance < vDelta.z / 2.0)\r\n focusDistance = vDelta.z / 2.0;\r\n\r\n const eyePoint = new Point3d(vDelta.x / 2.0, vDelta.y / 2.0, (vDelta.z / 2.0) + focusDistance);\r\n\r\n this.fromViewOrientation(eyePoint);\r\n eyePoint.plus(view.getOrigin(), eyePoint);\r\n camera.setEyePoint(eyePoint);\r\n camera.setFocusDistance(focusDistance);\r\n }\r\n\r\n /** @internal */\r\n public getTerrainHeightRange(): Range1d | undefined {\r\n const frustum = this.getFrustum()!;\r\n const cartoRange = Range2d.createNull();\r\n for (let i = 0; i < 8; i++) {\r\n const corner = frustum.getCorner(i);\r\n const carto = this.view.iModel.spatialToCartographicFromEcef(corner);\r\n cartoRange.extendXY(carto.longitude, carto.latitude);\r\n }\r\n\r\n return ApproximateTerrainHeights.instance.getMinimumMaximumHeights(cartoRange);\r\n }\r\n\r\n private static _minDepth = 1; // Allowing very small depth will cause frustum calculations to fail.\r\n\r\n /** Adjust the front and back planes to encompass the entire viewed volume */\r\n private adjustZPlanes(origin: Point3d, delta: Vector3d): void {\r\n const view = this.view;\r\n if (!view.is3d()) // only necessary for 3d views\r\n return;\r\n\r\n delta.z = Math.max(delta.z, ViewingSpace._minDepth);\r\n\r\n const extents = view.getViewedExtents();\r\n const frustum = new Frustum();\r\n const worldToNpc = this.view.computeWorldToNpc(this.rotation, this.viewOrigin, this.viewDelta, false).map as Map4d;\r\n\r\n if (worldToNpc === undefined)\r\n return;\r\n\r\n worldToNpc.transform1.multiplyPoint3dArrayQuietNormalize(frustum.points);\r\n const clipPlanes = frustum.getRangePlanes(false, false, 0);\r\n const viewedExtentCorners = extents.corners();\r\n\r\n // Only extend depth to include viewed geometry if it is within the frustum. (if viewing global locations).\r\n if (clipPlanes.classifyPointContainment(viewedExtentCorners, false) === ClipPlaneContainment.StronglyOutside)\r\n extents.setNull();\r\n\r\n let depthRange;\r\n let gridPlane;\r\n if (this.view.viewFlags.grid) {\r\n const gridOrigin = this.view.isSpatialView() ? this.view.iModel.globalOrigin : Point3d.create();\r\n switch(this.view.getGridOrientation()) {\r\n case GridOrientationType.WorldXY:\r\n gridPlane = Plane3dByOriginAndUnitNormal.create(gridOrigin, Vector3d.create(0, 0, 1));\r\n break;\r\n case GridOrientationType.WorldYZ:\r\n gridPlane = Plane3dByOriginAndUnitNormal.create(gridOrigin, Vector3d.create(1, 0, 0));\r\n break;\r\n case GridOrientationType.WorldXZ:\r\n gridPlane = Plane3dByOriginAndUnitNormal.create(gridOrigin, Vector3d.create(0, 1, 0));\r\n break;\r\n\r\n case GridOrientationType.AuxCoord:\r\n if (this.view.auxiliaryCoordinateSystem)\r\n gridPlane = Plane3dByOriginAndUnitNormal.create(gridOrigin, this.view.auxiliaryCoordinateSystem.getRotation().rowZ());\r\n\r\n break;\r\n }\r\n }\r\n const globalGeometry = this.view.displayStyle.getGlobalGeometryAndHeightRange();\r\n if (undefined !== globalGeometry) {\r\n const viewZ = this.rotation.getRow(2);\r\n const eyeDepth = this.eyePoint ? viewZ.dotProduct(this.eyePoint) : undefined;\r\n\r\n depthRange = globalGeometry.geometry.getFrustumIntersectionDepthRange(frustum, extents, globalGeometry.heightRange, gridPlane, this.view.maxGlobalScopeFactor > 1);\r\n\r\n if (eyeDepth !== undefined) {\r\n const maxBackgroundFrontBackRatio = 1.0E6;\r\n const frontDist = Math.max(.1, eyeDepth - depthRange.high);\r\n const backDist = eyeDepth - depthRange.low;\r\n if (backDist / frontDist > maxBackgroundFrontBackRatio)\r\n depthRange.high = eyeDepth - backDist / maxBackgroundFrontBackRatio;\r\n }\r\n } else\r\n depthRange = gridPlane ? getFrustumPlaneIntersectionDepthRange(frustum, gridPlane) : Range1d.createNull();\r\n\r\n if (!extents.isNull) {\r\n const viewZ = this.rotation.getRow(2);\r\n const corners = extents.corners();\r\n for (const corner of corners)\r\n depthRange.extendX(viewZ.dotProduct(corner));\r\n }\r\n\r\n if (depthRange.isNull)\r\n return;\r\n\r\n this.rotation.multiplyVectorInPlace(origin); // put origin in view coordinates\r\n origin.z = depthRange.low; // set origin to back of viewed extents\r\n delta.z = Math.max(depthRange.high - depthRange.low, ViewingSpace._minDepth); // and delta to front of viewed extents\r\n this.rotation.multiplyTransposeVectorInPlace(origin);\r\n\r\n if (!view.isCameraOn)\r\n return;\r\n\r\n // if the camera is on, we need to make sure that the viewed volume is not behind the eye\r\n const eyeOrg = this.eyePoint!.minus(origin);\r\n this.rotation.multiplyVectorInPlace(eyeOrg);\r\n\r\n // if the distance from the eye to origin in less than 1 meter, move the origin away from the eye. Usually, this means\r\n // that the camera is outside the viewed extents and pointed away from it. There's nothing to see anyway.\r\n if (eyeOrg.z < 1.0) {\r\n this.rotation.multiplyVectorInPlace(origin);\r\n origin.z -= (2.0 - eyeOrg.z);\r\n this.rotation.multiplyTransposeVectorInPlace(origin);\r\n delta.z = 1.0;\r\n return;\r\n }\r\n\r\n // if part of the viewed extents are behind the eye, don't include that.\r\n if (delta.z > eyeOrg.z)\r\n delta.z = eyeOrg.z;\r\n }\r\n\r\n /* get the mapping from NPC to view\r\n * @internal\r\n */\r\n public calcNpcToView(): Map4d {\r\n const corners = this.getViewCorners();\r\n const map = Map4d.createBoxMap(NpcCorners[Npc._000], NpcCorners[Npc._111], corners.low, corners.high);\r\n\r\n // The map may be undefined if the view rect's width or height is zero.\r\n return undefined === map ? Map4d.createIdentity() : map;\r\n }\r\n\r\n /* Get the extents of this view, in ViewCoordinates, as a Range3d */\r\n public getViewCorners(): Range3d {\r\n const corners = this._viewCorners;\r\n const viewRect = this._viewRect;\r\n corners.high.x = viewRect.right;\r\n corners.low.y = viewRect.bottom; // y's are swapped on the screen!\r\n corners.low.x = 0;\r\n corners.high.y = 0;\r\n corners.low.z = -32767;\r\n corners.high.z = 32767;\r\n return corners;\r\n }\r\n\r\n private constructor(vp: Viewport) {\r\n const view = this._view = vp.view;\r\n const viewRect = vp.viewRect;\r\n this._clientWidth = viewRect.width;\r\n this._clientHeight = viewRect.height;\r\n const origin = view.getOrigin().clone();\r\n const delta = view.getExtents().clone();\r\n this.rotation.setFrom(view.getRotation());\r\n\r\n // first, make sure none of the deltas are negative\r\n delta.x = Math.abs(delta.x);\r\n delta.y = Math.abs(delta.y);\r\n delta.z = Math.abs(delta.z);\r\n\r\n this.viewOriginUnexpanded.setFrom(origin);\r\n this.viewDeltaUnexpanded.setFrom(delta);\r\n this.viewOrigin.setFrom(origin);\r\n this.viewDelta.setFrom(delta);\r\n this.zClipAdjusted = false;\r\n this.eyePoint = undefined;\r\n\r\n if (view.is3d()) {\r\n if (!view.allow3dManipulations()) {\r\n // we're in a \"2d\" view of a physical model. That means that we must have our orientation with z out of the screen with z=0 at the center.\r\n this.alignWithRootZ(); // make sure we're in a z Up view\r\n\r\n const extents = view.getViewedExtents();\r\n if (extents.isNull) {\r\n extents.low.z = Frustum2d.minimumZExtents.low;\r\n extents.high.z = Frustum2d.minimumZExtents.high;\r\n }\r\n\r\n let zMax = Math.max(Math.abs(extents.low.z), Math.abs(extents.high.z));\r\n zMax = Math.max(zMax, 1.0); // make sure we have at least +-1m. Data may be purely planar\r\n delta.z = 2.0 * zMax;\r\n origin.z = -zMax;\r\n } else {\r\n if (view.isCameraOn)\r\n this.validateCamera();\r\n\r\n if (view.isCameraOn)\r\n this.eyePoint = view.camera.getEyePoint().clone();\r\n\r\n this.adjustZPlanes(origin, delta); // make sure view volume includes entire volume of view\r\n\r\n // if the camera is on, don't allow front plane behind camera\r\n if (this.eyePoint) {\r\n const eyeOrg = this.eyePoint.minus(origin); // vector from eye to origin\r\n this.toViewOrientation(eyeOrg);\r\n\r\n const frontDist = eyeOrg.z - delta.z; // front distance is backDist - delta.z\r\n\r\n // allow ViewState to specify a minimum front dist, but in no case less than 6 inches\r\n const minFrontDist = Math.max(15.2 * Constant.oneCentimeter, view.forceMinFrontDist);\r\n if (frontDist < minFrontDist) {\r\n // camera is too close to front plane, move origin away from eye to maintain a minimum front distance.\r\n this.toViewOrientation(origin);\r\n origin.z -= (minFrontDist - frontDist);\r\n this.fromViewOrientation(origin);\r\n }\r\n }\r\n\r\n // if we moved the z planes, set the \"zClipAdjusted\" flag.\r\n if (!origin.isExactEqual(this.viewOriginUnexpanded) || !delta.isExactEqual(this.viewDeltaUnexpanded))\r\n this.zClipAdjusted = true;\r\n }\r\n } else { // 2d viewport\r\n this.alignWithRootZ();\r\n }\r\n\r\n this.viewOrigin.setFrom(origin);\r\n this.viewDelta.setFrom(delta);\r\n\r\n const newRootToNpc = this.view.computeWorldToNpc(this.rotation, origin, delta, !this.view.displayStyle.getIsBackgroundMapVisible() /* if displaying background map, don't enforce front/back ratio as no Z-Buffer */);\r\n if (newRootToNpc.map === undefined) {\r\n this.frustFraction = 0; // invalid frustum\r\n return;\r\n }\r\n\r\n this.worldToNpcMap.setFrom(newRootToNpc.map);\r\n this.frustFraction = newRootToNpc.frustFraction;\r\n this.worldToViewMap.setFrom(this.calcNpcToView().multiplyMapMap(this.worldToNpcMap));\r\n }\r\n\r\n /** Create from a Viewport. */\r\n public static createFromViewport(vp: Viewport): ViewingSpace | undefined {\r\n return new ViewingSpace(vp);\r\n }\r\n\r\n /** Convert an array of points from CoordSystem.View to CoordSystem.Npc */\r\n public viewToNpcArray(pts: Point3d[]): void {\r\n const corners = this.getViewCorners();\r\n const scrToNpcTran = Transform.createIdentity();\r\n Transform.initFromRange(corners.low, corners.high, undefined, scrToNpcTran);\r\n scrToNpcTran.multiplyPoint3dArrayInPlace(pts);\r\n }\r\n\r\n /** Convert an array of points from CoordSystem.Npc to CoordSystem.View */\r\n public npcToViewArray(pts: Point3d[]): void {\r\n const corners = this.getViewCorners();\r\n for (const p of pts)\r\n corners.fractionToPoint(p.x, p.y, p.z, p);\r\n }\r\n\r\n /** Convert a point from CoordSystem.View to CoordSystem.Npc\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public viewToNpc(pt: Point3d, out?: Point3d): Point3d {\r\n const corners = this.getViewCorners();\r\n const scrToNpcTran = Transform.createIdentity();\r\n Transform.initFromRange(corners.low, corners.high, undefined, scrToNpcTran);\r\n return scrToNpcTran.multiplyPoint3d(pt, out);\r\n }\r\n\r\n /** Convert a point from CoordSystem.Npc to CoordSystem.View\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public npcToView(pt: Point3d, out?: Point3d): Point3d {\r\n const corners = this.getViewCorners();\r\n return corners.fractionToPoint(pt.x, pt.y, pt.z, out);\r\n }\r\n\r\n /** Convert an array of points from CoordSystem.World to CoordSystem.Npc */\r\n public worldToNpcArray(pts: Point3d[]): void { this.worldToNpcMap.transform0.multiplyPoint3dArrayQuietNormalize(pts); }\r\n /** Convert an array of points from CoordSystem.Npc to CoordSystem.World */\r\n public npcToWorldArray(pts: Point3d[]): void { this.worldToNpcMap.transform1.multiplyPoint3dArrayQuietNormalize(pts); }\r\n /** Convert an array of points from CoordSystem.World to CoordSystem.View */\r\n public worldToViewArray(pts: Point3d[]): void { this.worldToViewMap.transform0.multiplyPoint3dArrayQuietNormalize(pts); }\r\n /** Convert an array of points from CoordSystem.World to CoordSystem.View, as Point4ds */\r\n public worldToView4dArray(worldPts: Point3d[], viewPts: Point4d[]): void { this.worldToViewMap.transform0.multiplyPoint3dArray(worldPts, viewPts); }\r\n /** Convert an array of points from CoordSystem.View to CoordSystem.World */\r\n public viewToWorldArray(pts: Point3d[]) { this.worldToViewMap.transform1.multiplyPoint3dArrayQuietNormalize(pts); }\r\n /** Convert an array of points from CoordSystem.View as Point4ds to CoordSystem.World */\r\n public view4dToWorldArray(viewPts: Point4d[], worldPts: Point3d[]): void { this.worldToViewMap.transform1.multiplyPoint4dArrayQuietRenormalize(viewPts, worldPts); }\r\n\r\n /**\r\n * Convert a point from CoordSystem.World to CoordSystem.Npc\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public worldToNpc(pt: XYAndZ, out?: Point3d): Point3d { return this.worldToNpcMap.transform0.multiplyPoint3dQuietNormalize(pt, out); }\r\n /**\r\n * Convert a point from CoordSystem.Npc to CoordSystem.World\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public npcToWorld(pt: XYAndZ, out?: Point3d): Point3d { return this.worldToNpcMap.transform1.multiplyPoint3dQuietNormalize(pt, out); }\r\n /**\r\n * Convert a point from CoordSystem.World to CoordSystem.View\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public worldToView(input: XYAndZ, out?: Point3d): Point3d { return this.worldToViewMap.transform0.multiplyPoint3dQuietNormalize(input, out); }\r\n /**\r\n * Convert a point from CoordSystem.World to CoordSystem.View as Point4d\r\n * @param input the point to convert\r\n * @param out optional location for result. If undefined, a new Point4d is created.\r\n */\r\n public worldToView4d(input: XYAndZ, out?: Point4d): Point4d { return this.worldToViewMap.transform0.multiplyPoint3d(input, 1.0, out); }\r\n /**\r\n * Convert a point from CoordSystem.View to CoordSystem.World\r\n * @param pt the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public viewToWorld(input: XYAndZ, out?: Point3d): Point3d { return this.worldToViewMap.transform1.multiplyPoint3dQuietNormalize(input, out); }\r\n /**\r\n * Convert a point from CoordSystem.View as a Point4d to CoordSystem.View\r\n * @param input the point to convert\r\n * @param out optional location for result. If undefined, a new Point3d is created.\r\n */\r\n public view4dToWorld(input: Point4d, out?: Point3d): Point3d { return this.worldToViewMap.transform1.multiplyXYZWQuietRenormalize(input.x, input.y, input.z, input.w, out); }\r\n\r\n /** Get an 8-point Frustum corresponding to the 8 corners of the Viewport in the specified coordinate system.\r\n *\r\n * There are two sets of corners that may be of interest.\r\n * The \"adjusted\" box is the one that is computed by examining the \"viewed extents\" and moving\r\n * the front and back planes to enclose everything in the view.\r\n * The \"unadjusted\" box is the one that is stored in the ViewState.\r\n * @param sys Coordinate system for points\r\n * @param adjustedBox If true, retrieve the adjusted box. Otherwise retrieve the box that came from the view definition.\r\n * @param box optional Frustum for return value\r\n * @return the view frustum\r\n * @note The \"adjusted\" box may be either larger or smaller than the \"unadjusted\" box.\r\n */\r\n public getFrustum(sys: CoordSystem = CoordSystem.World, adjustedBox: boolean = true, box?: Frustum): Frustum {\r\n box = box ? box.initNpc() : new Frustum();\r\n\r\n // if they are looking for the \"unexpanded\" (that is before f/b clipping expansion) box, we need to get the npc\r\n // coordinates that correspond to the unexpanded box in the npc space of the Expanded view (that's the basis for all\r\n // of the root-based maps.)\r\n if (!adjustedBox && this.zClipAdjusted) {\r\n // to get unexpanded box, we have to go recompute rootToNpc from original View.\r\n const ueRootToNpc = this.view.computeWorldToNpc(this.rotation, this.viewOriginUnexpanded, this.viewDeltaUnexpanded);\r\n if (undefined === ueRootToNpc.map)\r\n return box; // invalid frustum\r\n\r\n // get the root corners of the unexpanded box\r\n const ueRootBox = new Frustum();\r\n ueRootToNpc.map.transform1.multiplyPoint3dArrayQuietNormalize(ueRootBox.points);\r\n\r\n // and convert them to npc coordinates of the expanded view\r\n this.worldToNpcArray(ueRootBox.points);\r\n box.setFrom(ueRootBox);\r\n }\r\n\r\n // now convert from NPC space to the specified coordinate system.\r\n switch (sys) {\r\n case CoordSystem.View:\r\n this.npcToViewArray(box.points);\r\n break;\r\n\r\n case CoordSystem.World:\r\n this.npcToWorldArray(box.points);\r\n break;\r\n }\r\n return box;\r\n }\r\n\r\n /** @internal */\r\n public getPixelSizeAtPoint(inPoint?: Point3d) {\r\n const viewPt = !!inPoint ? this.worldToView(inPoint) : this.npcToView(new Point3d(0.5, 0.5, 0.5));\r\n const viewPt2 = new Point3d(viewPt.x + 1.0, viewPt.y, viewPt.z);\r\n return this.viewToWorld(viewPt).distance(this.viewToWorld(viewPt2));\r\n }\r\n\r\n /** @internal */\r\n public getPreloadFrustum(transformOrScale?: Transform | number, result?: Frustum) {\r\n const viewFrustum = this.getFrustum(CoordSystem.World, true);\r\n\r\n if (transformOrScale && transformOrScale instanceof Transform) {\r\n return viewFrustum.transformBy(transformOrScale, result);\r\n } else {\r\n const scale = transformOrScale === undefined ? 2 : transformOrScale;\r\n const expandedFrustum = viewFrustum.clone(result);\r\n expandedFrustum.scaleXYAboutCenter(scale);\r\n return expandedFrustum;\r\n }\r\n }\r\n}\r\n"]}
@@ -17,7 +17,6 @@ export * from "./ElementLocateManager";
17
17
  export * from "./EmphasizeElements";
18
18
  export * from "./EntityState";
19
19
  export * from "./EnvironmentDecorations";
20
- export * from "./extension/extensions";
21
20
  export * from "./FeatureOverrideProvider";
22
21
  export * from "./FlashSettings";
23
22
  export * from "./FrontendLoggerCategory";
@@ -45,10 +44,6 @@ export * from "./NoRenderApp";
45
44
  export * from "./NotificationManager";
46
45
  export * from "./PerModelCategoryVisibility";
47
46
  export * from "./PlanarClipMaskState";
48
- export * from "./quantity-formatting/QuantityFormatter";
49
- export * from "./quantity-formatting/BaseUnitFormattingSettingsProvider";
50
- export * from "./quantity-formatting/LocalUnitFormatProvider";
51
- export * from "./quantity-formatting/QuantityTypesEditorSpecs";
52
47
  export * from "./RenderScheduleState";
53
48
  export * from "./SelectionSet";
54
49
  export * from "./SheetViewState";
@@ -70,9 +65,14 @@ export * from "./ViewPose";
70
65
  export * from "./ViewRect";
71
66
  export * from "./ViewState";
72
67
  export * from "./ViewStatus";
68
+ export * from "./extension/Extension";
73
69
  export * from "./properties/AngleDescription";
74
70
  export * from "./properties/FormattedQuantityDescription";
75
71
  export * from "./properties/LengthDescription";
72
+ export * from "./quantity-formatting/QuantityFormatter";
73
+ export * from "./quantity-formatting/BaseUnitFormattingSettingsProvider";
74
+ export * from "./quantity-formatting/LocalUnitFormatProvider";
75
+ export * from "./quantity-formatting/QuantityTypesEditorSpecs";
76
76
  export * from "./render/CanvasDecoration";
77
77
  export * from "./render/Decorations";
78
78
  export * from "./render/FeatureSymbology";
@@ -119,6 +119,7 @@ export * from "./ViewCreator2d";
119
119
  export * from "./ViewCreator3d";
120
120
  export * from "./LocalhostIpcApp";
121
121
  export * from "./RealityDataSource";
122
+ import "./extension/ExtensionRuntime";
122
123
  /** @docs-package-description
123
124
  * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).
124
125
  */
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.d.ts","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC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mB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG"}
1
+ {"version":3,"file":"core-frontend.d.ts","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,m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;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,8BAA8B,CAAC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG"}
@@ -21,7 +21,6 @@ export * from "./ElementLocateManager";
21
21
  export * from "./EmphasizeElements";
22
22
  export * from "./EntityState";
23
23
  export * from "./EnvironmentDecorations";
24
- export * from "./extension/extensions";
25
24
  export * from "./FeatureOverrideProvider";
26
25
  export * from "./FlashSettings";
27
26
  export * from "./FrontendLoggerCategory";
@@ -49,10 +48,6 @@ export * from "./NoRenderApp";
49
48
  export * from "./NotificationManager";
50
49
  export * from "./PerModelCategoryVisibility";
51
50
  export * from "./PlanarClipMaskState";
52
- export * from "./quantity-formatting/QuantityFormatter";
53
- export * from "./quantity-formatting/BaseUnitFormattingSettingsProvider";
54
- export * from "./quantity-formatting/LocalUnitFormatProvider";
55
- export * from "./quantity-formatting/QuantityTypesEditorSpecs";
56
51
  export * from "./RenderScheduleState";
57
52
  export * from "./SelectionSet";
58
53
  export * from "./SheetViewState";
@@ -74,9 +69,14 @@ export * from "./ViewPose";
74
69
  export * from "./ViewRect";
75
70
  export * from "./ViewState";
76
71
  export * from "./ViewStatus";
72
+ export * from "./extension/Extension";
77
73
  export * from "./properties/AngleDescription";
78
74
  export * from "./properties/FormattedQuantityDescription";
79
75
  export * from "./properties/LengthDescription";
76
+ export * from "./quantity-formatting/QuantityFormatter";
77
+ export * from "./quantity-formatting/BaseUnitFormattingSettingsProvider";
78
+ export * from "./quantity-formatting/LocalUnitFormatProvider";
79
+ export * from "./quantity-formatting/QuantityTypesEditorSpecs";
80
80
  export * from "./render/CanvasDecoration";
81
81
  export * from "./render/Decorations";
82
82
  export * from "./render/FeatureSymbology";
@@ -123,6 +123,8 @@ export * from "./ViewCreator2d";
123
123
  export * from "./ViewCreator3d";
124
124
  export * from "./LocalhostIpcApp";
125
125
  export * from "./RealityDataSource";
126
+ // TODO/FIX: "./extension/ExtensionRuntime" import has to be last to avoid circular dependency errors.
127
+ import "./extension/ExtensionRuntime";
126
128
  /** @docs-package-description
127
129
  * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).
128
130
  */
@@ -1 +1 @@
1
- {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc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AC;AAClC,cAAc,qBAAqB,CAAC;AAEpC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG","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\r\nexport * from \"./AccuDraw\";\r\nexport * from \"./AccuSnap\";\r\nexport * from \"./AuxCoordSys\";\r\nexport * from \"./BingLocation\";\r\nexport * from \"./BriefcaseConnection\";\r\nexport * from \"./BriefcaseTxns\";\r\nexport * from \"./CategorySelectorState\";\r\nexport * from \"./ChangeFlags\";\r\nexport * from \"./CheckpointConnection\";\r\nexport * from \"./ContextRealityModelState\";\r\nexport * from \"./CoordSystem\";\r\nexport * from \"./DecorationsCache\";\r\nexport * from \"./DevTools\";\r\nexport * from \"./DisplayStyleState\";\r\nexport * from \"./DrawingViewState\";\r\nexport * from \"./ElementLocateManager\";\r\nexport * from \"./EmphasizeElements\";\r\nexport * from \"./EntityState\";\r\nexport * from \"./EnvironmentDecorations\";\r\nexport * from \"./extension/extensions\";\r\nexport * from \"./FeatureOverrideProvider\";\r\nexport * from \"./FlashSettings\";\r\nexport * from \"./FrontendLoggerCategory\";\r\nexport * from \"./FrontendHubAccess\";\r\nexport * from \"./Frustum2d\";\r\nexport * from \"./FrustumAnimator\";\r\nexport * from \"./FuzzySearch\";\r\nexport * from \"./GeoServices\";\r\nexport * from \"./GlobeAnimator\";\r\nexport * from \"./GraphicalEditingScope\";\r\nexport * from \"./HitDetail\";\r\nexport * from \"./ImageUtil\";\r\nexport * from \"./IModelApp\";\r\nexport * from \"./IModelConnection\";\r\nexport * from \"./IModelRoutingContext\";\r\nexport * from \"./IpcApp\";\r\nexport * from \"./LinePlaneIntersect\";\r\nexport * from \"./MarginPercent\";\r\nexport * from \"./Marker\";\r\nexport * from \"./ModelSelectorState\";\r\nexport * from \"./ModelState\";\r\nexport * from \"./NativeApp\";\r\nexport * from \"./NativeAppLogger\";\r\nexport * from \"./NoRenderApp\";\r\nexport * from \"./NotificationManager\";\r\nexport * from \"./PerModelCategoryVisibility\";\r\nexport * from \"./PlanarClipMaskState\";\r\nexport * from \"./quantity-formatting/QuantityFormatter\";\r\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\r\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\r\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\r\nexport * from \"./RenderScheduleState\";\r\nexport * from \"./SelectionSet\";\r\nexport * from \"./SheetViewState\";\r\nexport * from \"./SpatialViewState\";\r\nexport * from \"./Sprites\";\r\nexport * from \"./StandardView\";\r\nexport * from \"./SubCategoriesCache\";\r\nexport * from \"./TentativePoint\";\r\nexport * from \"./Tiles\";\r\nexport * from \"./TwoWayViewportSync\";\r\nexport * from \"./UserPreferences\";\r\nexport * from \"./ViewAnimation\";\r\nexport * from \"./ViewContext\";\r\nexport * from \"./ViewGlobalLocation\";\r\nexport * from \"./ViewingSpace\";\r\nexport * from \"./ViewManager\";\r\nexport * from \"./Viewport\";\r\nexport * from \"./ViewPose\";\r\nexport * from \"./ViewRect\";\r\nexport * from \"./ViewState\";\r\nexport * from \"./ViewStatus\";\r\nexport * from \"./properties/AngleDescription\";\r\nexport * from \"./properties/FormattedQuantityDescription\";\r\nexport * from \"./properties/LengthDescription\";\r\nexport * from \"./render/CanvasDecoration\";\r\nexport * from \"./render/Decorations\";\r\nexport * from \"./render/FeatureSymbology\";\r\nexport * from \"./render/FrameStats\";\r\nexport * from \"./render/GraphicBranch\";\r\nexport * from \"./render/GraphicBuilder\";\r\nexport * from \"./render/GraphicPrimitive\";\r\nexport * from \"./render/InstancedGraphicParams\";\r\nexport * from \"./render/MockRender\";\r\nexport * from \"./render/ParticleCollectionBuilder\";\r\nexport * from \"./render/Pixel\";\r\nexport * from \"./render/RenderClipVolume\";\r\nexport * from \"./render/RenderGraphic\";\r\nexport * from \"./render/RenderMaterial\";\r\nexport * from \"./render/RenderMemory\";\r\nexport * from \"./render/RenderPlan\";\r\nexport * from \"./render/RenderPlanarClassifier\";\r\nexport * from \"./render/RenderTarget\";\r\nexport * from \"./render/RenderSystem\";\r\nexport * from \"./render/RenderTexture\";\r\nexport * from \"./render/Scene\";\r\nexport * from \"./render/ScreenSpaceEffectBuilder\";\r\nexport * from \"./render/VisibleFeature\";\r\nexport * from \"./render/webgl/PerformanceMetrics\";\r\nexport * from \"./render/webgl/Target\";\r\nexport * from \"./render/webgl/IModelFrameLifecycle\";\r\nexport * from \"./tile/internal\";\r\nexport * from \"./tools/AccuDrawTool\";\r\nexport * from \"./tools/ClipViewTool\";\r\nexport * from \"./tools/EditManipulator\";\r\nexport * from \"./tools/ElementSetTool\";\r\nexport * from \"./tools/EventController\";\r\nexport * from \"./tools/IdleTool\";\r\nexport * from \"./tools/MeasureTool\";\r\nexport * from \"./tools/PrimitiveTool\";\r\nexport * from \"./tools/SelectTool\";\r\nexport * from \"./tools/Tool\";\r\nexport * from \"./tools/ToolSettings\";\r\nexport * from \"./tools/ToolAdmin\";\r\nexport * from \"./tools/ToolAssistance\";\r\nexport * from \"./tools/ViewTool\";\r\nexport * from \"./BackgroundMapGeometry\";\r\nexport * from \"./ViewCreator2d\";\r\nexport * from \"./ViewCreator3d\";\r\nexport * from \"./LocalhostIpcApp\";\r\nexport * from \"./RealityDataSource\";\r\n\r\n/** @docs-package-description\r\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description IModelApp\r\n * Classes for configuring and administering an iTwin.js application.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description IModelConnection\r\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\r\n */\r\n/**\r\n * @docs-group-description ElementState\r\n * Classes for working with the *state* of Elements in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description ModelState\r\n * Classes for working with the *state* of Models in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\r\n */\r\n/**\r\n * @docs-group-description Measure\r\n * Classes for reporting point to point distances and mass properties of elements.\r\n */\r\n/**\r\n * @docs-group-description Views\r\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\r\n */\r\n/**\r\n * @docs-group-description LocatingElements\r\n * Classes for locating and snapping to elements in views.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Notifications\r\n * Notifications provide feedback to the user of something of interest.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Extensions\r\n * Classes for creating and managing Extensions.\r\n */\r\n/**\r\n * @docs-group-description Properties\r\n * Classes for working with property records and descriptions.\r\n */\r\n/**\r\n * @docs-group-description Rendering\r\n * Classes for rendering the contents of views.\r\n */\r\n/**\r\n * @docs-group-description SelectionSet\r\n * Classes for working with the set of selected elements.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description NativeApp\r\n * Classes for working with Native Applications\r\n */\r\n/**\r\n * @docs-group-description Utils\r\n * Miscellaneous utility classes.\r\n */\r\n/**\r\n * @docs-group-description Logging\r\n * Logger categories used by this package\r\n */\r\n/**\r\n * @docs-group-description QuantityFormatting\r\n * Classes for formatting and parsing quantity values.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\r\n */\r\n/**\r\n * @docs-group-description HubAccess\r\n * APIs for working with IModelHub\r\n */\r\n/**\r\n * @docs-group-description UserPreferences\r\n * APIs for working with user preferences in an iModelApp.\r\n * See [the learning articles]($docs/learning/frontend/preferences.md).\r\n */\r\n/**\r\n * @docs-group-description MapLayers\r\n * Classes supporting map layers display.\r\n */\r\n"]}
1
+ {"version":3,"file":"core-frontend.js","sourceRoot":"","sources":["../../src/core-frontend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,y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AO,8BAA8B,CAAC;AAEtC;;GAEG;AAEH;;;;GAIG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;;GAIG;AACH;;;GAGG","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\r\nexport * from \"./AccuDraw\";\r\nexport * from \"./AccuSnap\";\r\nexport * from \"./AuxCoordSys\";\r\nexport * from \"./BingLocation\";\r\nexport * from \"./BriefcaseConnection\";\r\nexport * from \"./BriefcaseTxns\";\r\nexport * from \"./CategorySelectorState\";\r\nexport * from \"./ChangeFlags\";\r\nexport * from \"./CheckpointConnection\";\r\nexport * from \"./ContextRealityModelState\";\r\nexport * from \"./CoordSystem\";\r\nexport * from \"./DecorationsCache\";\r\nexport * from \"./DevTools\";\r\nexport * from \"./DisplayStyleState\";\r\nexport * from \"./DrawingViewState\";\r\nexport * from \"./ElementLocateManager\";\r\nexport * from \"./EmphasizeElements\";\r\nexport * from \"./EntityState\";\r\nexport * from \"./EnvironmentDecorations\";\r\nexport * from \"./FeatureOverrideProvider\";\r\nexport * from \"./FlashSettings\";\r\nexport * from \"./FrontendLoggerCategory\";\r\nexport * from \"./FrontendHubAccess\";\r\nexport * from \"./Frustum2d\";\r\nexport * from \"./FrustumAnimator\";\r\nexport * from \"./FuzzySearch\";\r\nexport * from \"./GeoServices\";\r\nexport * from \"./GlobeAnimator\";\r\nexport * from \"./GraphicalEditingScope\";\r\nexport * from \"./HitDetail\";\r\nexport * from \"./ImageUtil\";\r\nexport * from \"./IModelApp\";\r\nexport * from \"./IModelConnection\";\r\nexport * from \"./IModelRoutingContext\";\r\nexport * from \"./IpcApp\";\r\nexport * from \"./LinePlaneIntersect\";\r\nexport * from \"./MarginPercent\";\r\nexport * from \"./Marker\";\r\nexport * from \"./ModelSelectorState\";\r\nexport * from \"./ModelState\";\r\nexport * from \"./NativeApp\";\r\nexport * from \"./NativeAppLogger\";\r\nexport * from \"./NoRenderApp\";\r\nexport * from \"./NotificationManager\";\r\nexport * from \"./PerModelCategoryVisibility\";\r\nexport * from \"./PlanarClipMaskState\";\r\nexport * from \"./RenderScheduleState\";\r\nexport * from \"./SelectionSet\";\r\nexport * from \"./SheetViewState\";\r\nexport * from \"./SpatialViewState\";\r\nexport * from \"./Sprites\";\r\nexport * from \"./StandardView\";\r\nexport * from \"./SubCategoriesCache\";\r\nexport * from \"./TentativePoint\";\r\nexport * from \"./Tiles\";\r\nexport * from \"./TwoWayViewportSync\";\r\nexport * from \"./UserPreferences\";\r\nexport * from \"./ViewAnimation\";\r\nexport * from \"./ViewContext\";\r\nexport * from \"./ViewGlobalLocation\";\r\nexport * from \"./ViewingSpace\";\r\nexport * from \"./ViewManager\";\r\nexport * from \"./Viewport\";\r\nexport * from \"./ViewPose\";\r\nexport * from \"./ViewRect\";\r\nexport * from \"./ViewState\";\r\nexport * from \"./ViewStatus\";\r\nexport * from \"./extension/Extension\";\r\nexport * from \"./properties/AngleDescription\";\r\nexport * from \"./properties/FormattedQuantityDescription\";\r\nexport * from \"./properties/LengthDescription\";\r\nexport * from \"./quantity-formatting/QuantityFormatter\";\r\nexport * from \"./quantity-formatting/BaseUnitFormattingSettingsProvider\";\r\nexport * from \"./quantity-formatting/LocalUnitFormatProvider\";\r\nexport * from \"./quantity-formatting/QuantityTypesEditorSpecs\";\r\nexport * from \"./render/CanvasDecoration\";\r\nexport * from \"./render/Decorations\";\r\nexport * from \"./render/FeatureSymbology\";\r\nexport * from \"./render/FrameStats\";\r\nexport * from \"./render/GraphicBranch\";\r\nexport * from \"./render/GraphicBuilder\";\r\nexport * from \"./render/GraphicPrimitive\";\r\nexport * from \"./render/InstancedGraphicParams\";\r\nexport * from \"./render/MockRender\";\r\nexport * from \"./render/ParticleCollectionBuilder\";\r\nexport * from \"./render/Pixel\";\r\nexport * from \"./render/RenderClipVolume\";\r\nexport * from \"./render/RenderGraphic\";\r\nexport * from \"./render/RenderMaterial\";\r\nexport * from \"./render/RenderMemory\";\r\nexport * from \"./render/RenderPlan\";\r\nexport * from \"./render/RenderPlanarClassifier\";\r\nexport * from \"./render/RenderTarget\";\r\nexport * from \"./render/RenderSystem\";\r\nexport * from \"./render/RenderTexture\";\r\nexport * from \"./render/Scene\";\r\nexport * from \"./render/ScreenSpaceEffectBuilder\";\r\nexport * from \"./render/VisibleFeature\";\r\nexport * from \"./render/webgl/PerformanceMetrics\";\r\nexport * from \"./render/webgl/Target\";\r\nexport * from \"./render/webgl/IModelFrameLifecycle\";\r\nexport * from \"./tile/internal\";\r\nexport * from \"./tools/AccuDrawTool\";\r\nexport * from \"./tools/ClipViewTool\";\r\nexport * from \"./tools/EditManipulator\";\r\nexport * from \"./tools/ElementSetTool\";\r\nexport * from \"./tools/EventController\";\r\nexport * from \"./tools/IdleTool\";\r\nexport * from \"./tools/MeasureTool\";\r\nexport * from \"./tools/PrimitiveTool\";\r\nexport * from \"./tools/SelectTool\";\r\nexport * from \"./tools/Tool\";\r\nexport * from \"./tools/ToolSettings\";\r\nexport * from \"./tools/ToolAdmin\";\r\nexport * from \"./tools/ToolAssistance\";\r\nexport * from \"./tools/ViewTool\";\r\nexport * from \"./BackgroundMapGeometry\";\r\nexport * from \"./ViewCreator2d\";\r\nexport * from \"./ViewCreator3d\";\r\nexport * from \"./LocalhostIpcApp\";\r\nexport * from \"./RealityDataSource\";\r\n// TODO/FIX: \"./extension/ExtensionRuntime\" import has to be last to avoid circular dependency errors.\r\nimport \"./extension/ExtensionRuntime\";\r\n\r\n/** @docs-package-description\r\n * The core-frontend package always runs in a web browser. It contains classes for [querying iModels and showing views]($docs/learning/frontend/index.md).\r\n */\r\n\r\n/**\r\n * @docs-group-description IModelApp\r\n * Classes for configuring and administering an iTwin.js application.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description IModelConnection\r\n * Classes for working with a connection to an [iModel briefcase]($docs/learning/IModels.md)\r\n */\r\n/**\r\n * @docs-group-description ElementState\r\n * Classes for working with the *state* of Elements in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description ModelState\r\n * Classes for working with the *state* of Models in the frontend.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Tools\r\n * Classes for [working with Tools]($docs/learning/frontend/Tools.md)\r\n */\r\n/**\r\n * @docs-group-description Measure\r\n * Classes for reporting point to point distances and mass properties of elements.\r\n */\r\n/**\r\n * @docs-group-description Views\r\n * Classes for [working with Views]($docs/learning/frontend/Views.md)\r\n */\r\n/**\r\n * @docs-group-description LocatingElements\r\n * Classes for locating and snapping to elements in views.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description AccuDraw\r\n * AccuDraw provides helpful assistance for creating and modifying elements in a view.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Notifications\r\n * Notifications provide feedback to the user of something of interest.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description Extensions\r\n * Classes for creating and managing Extensions.\r\n */\r\n/**\r\n * @docs-group-description Properties\r\n * Classes for working with property records and descriptions.\r\n */\r\n/**\r\n * @docs-group-description Rendering\r\n * Classes for rendering the contents of views.\r\n */\r\n/**\r\n * @docs-group-description SelectionSet\r\n * Classes for working with the set of selected elements.\r\n * See [the learning articles]($docs/learning/frontend/index.md).\r\n */\r\n/**\r\n * @docs-group-description NativeApp\r\n * Classes for working with Native Applications\r\n */\r\n/**\r\n * @docs-group-description Utils\r\n * Miscellaneous utility classes.\r\n */\r\n/**\r\n * @docs-group-description Logging\r\n * Logger categories used by this package\r\n */\r\n/**\r\n * @docs-group-description QuantityFormatting\r\n * Classes for formatting and parsing quantity values.\r\n */\r\n/**\r\n * @docs-group-description Tiles\r\n * Classes representing graphics as [hierarchical 3d tiles](https://github.com/CesiumGS/3d-tiles).\r\n */\r\n/**\r\n * @docs-group-description HubAccess\r\n * APIs for working with IModelHub\r\n */\r\n/**\r\n * @docs-group-description UserPreferences\r\n * APIs for working with user preferences in an iModelApp.\r\n * See [the learning articles]($docs/learning/frontend/preferences.md).\r\n */\r\n/**\r\n * @docs-group-description MapLayers\r\n * Classes supporting map layers display.\r\n */\r\n"]}
@@ -4,9 +4,7 @@
4
4
  /**
5
5
  * @alpha
6
6
  */
7
- export declare enum ActivationEvent {
8
- onStartup = "onStartup"
9
- }
7
+ export declare type ActivationEvent = "onStartup";
10
8
  /**
11
9
  * @alpha
12
10
  */
@@ -45,4 +43,25 @@ export interface LocalExtensionProps {
45
43
  readonly manifest: ExtensionManifest;
46
44
  readonly mainFunc?: ResolveFunc;
47
45
  }
46
+ /** The minimum information required to download an Extension
47
+ * @alpha
48
+ */
49
+ export interface ExtensionLoaderProps {
50
+ name: string;
51
+ version: string;
52
+ }
53
+ /** @alpha */
54
+ export interface BuiltInExtensionLoaderProps {
55
+ manifest: Promise<any>;
56
+ loader: ResolveFunc;
57
+ }
58
+ /** Describes what is needed in order to write an Extension Loader.
59
+ * @alpha
60
+ */
61
+ export interface ExtensionLoader {
62
+ /** Retrieves an Extension manifest for the provided Extension identifier */
63
+ getManifest(arg: ExtensionLoaderProps): Promise<ExtensionManifest>;
64
+ /** Downloads an Extension provided the name of the Extension */
65
+ downloadExtension(arg: ExtensionLoaderProps): Promise<LocalExtensionProps>;
66
+ }
48
67
  //# sourceMappingURL=Extension.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Extension.d.ts","sourceRoot":"","sources":["../../../src/extension/Extension.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,oBAAY,eAAe;IACzB,SAAS,cAAc;CACxB;AAED;;GAEG;AACH,oBAAY,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;AAE7C;;EAEE;AACF,MAAM,WAAW,iBAAiB;IAChC,yBAAyB;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,4BAA4B;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,gCAAgC;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,gBAAgB,EAAE,eAAe,EAAE,CAAC;CAC9C;AAED,aAAa;AACb,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;EAEE;AACF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;CACjC"}
1
+ {"version":3,"file":"Extension.d.ts","sourceRoot":"","sources":["../../../src/extension/Extension.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,oBAAY,eAAe,GAAG,WAAW,CAAC;AAE1C;;GAEG;AACH,oBAAY,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;AAE7C;;EAEE;AACF,MAAM,WAAW,iBAAiB;IAChC,yBAAyB;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,4BAA4B;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,gCAAgC;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,gBAAgB,EAAE,eAAe,EAAE,CAAC;CAC9C;AAED,aAAa;AACb,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;EAEE;AACF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;CACjC;AAED;;EAEE;AACF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,aAAa;AACb,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACvB,MAAM,EAAE,WAAW,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,4EAA4E;IAC5E,WAAW,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACnE,gEAAgE;IAChE,iBAAiB,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC5E"}
@@ -5,11 +5,5 @@
5
5
  /** @packageDocumentation
6
6
  * @module Extensions
7
7
  */
8
- /**
9
- * @alpha
10
- */
11
- export var ActivationEvent;
12
- (function (ActivationEvent) {
13
- ActivationEvent["onStartup"] = "onStartup";
14
- })(ActivationEvent || (ActivationEvent = {}));
8
+ export {};
15
9
  //# sourceMappingURL=Extension.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Extension.js","sourceRoot":"","sources":["../../../src/extension/Extension.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,0CAAuB,CAAA;AACzB,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B","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/**\r\n * @alpha\r\n */\r\nexport enum ActivationEvent {\r\n onStartup = \"onStartup\",\r\n}\r\n\r\n/**\r\n * @alpha\r\n */\r\nexport type ResolveFunc = () => Promise<any>;\r\n\r\n/** Defines the format of an Extension manifest\r\n * @alpha\r\n*/\r\nexport interface ExtensionManifest {\r\n /** The extension name */\r\n readonly name: string;\r\n /** The extension display name */\r\n readonly displayName?: string;\r\n /** The extension version */\r\n readonly version: string;\r\n /** The extension description */\r\n readonly description?: string;\r\n /** The main module file to load. This should be a path to the javascript file\r\n * e.g \"./lib/main.js\"\r\n */\r\n readonly main: string;\r\n /** List of activation events this Extension supports. */\r\n readonly activationEvents: ActivationEvent[];\r\n}\r\n\r\n/** @alpha */\r\nexport interface BuildExtensionManifest extends ExtensionManifest {\r\n /** Only valid when the Extension is loaded at build-time.\r\n *\r\n * Defines the main ES module that will be imported\r\n */\r\n readonly module: string;\r\n}\r\n\r\n/** Describes an Extension that has already been downloaded and has a location files can be easily executed.\r\n * @alpha\r\n*/\r\nexport interface LocalExtensionProps {\r\n readonly manifest: ExtensionManifest;\r\n readonly mainFunc?: ResolveFunc;\r\n}\r\n"]}
1
+ {"version":3,"file":"Extension.js","sourceRoot":"","sources":["../../../src/extension/Extension.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 Extensions\r\n */\r\n\r\n/**\r\n * @alpha\r\n */\r\nexport type ActivationEvent = \"onStartup\";\r\n\r\n/**\r\n * @alpha\r\n */\r\nexport type ResolveFunc = () => Promise<any>;\r\n\r\n/** Defines the format of an Extension manifest\r\n * @alpha\r\n*/\r\nexport interface ExtensionManifest {\r\n /** The extension name */\r\n readonly name: string;\r\n /** The extension display name */\r\n readonly displayName?: string;\r\n /** The extension version */\r\n readonly version: string;\r\n /** The extension description */\r\n readonly description?: string;\r\n /** The main module file to load. This should be a path to the javascript file\r\n * e.g \"./lib/main.js\"\r\n */\r\n readonly main: string;\r\n /** List of activation events this Extension supports. */\r\n readonly activationEvents: ActivationEvent[];\r\n}\r\n\r\n/** @alpha */\r\nexport interface BuildExtensionManifest extends ExtensionManifest {\r\n /** Only valid when the Extension is loaded at build-time.\r\n *\r\n * Defines the main ES module that will be imported\r\n */\r\n readonly module: string;\r\n}\r\n\r\n/** Describes an Extension that has already been downloaded and has a location files can be easily executed.\r\n * @alpha\r\n*/\r\nexport interface LocalExtensionProps {\r\n readonly manifest: ExtensionManifest;\r\n readonly mainFunc?: ResolveFunc;\r\n}\r\n\r\n/** The minimum information required to download an Extension\r\n * @alpha\r\n*/\r\nexport interface ExtensionLoaderProps {\r\n name: string;\r\n version: string;\r\n}\r\n\r\n/** @alpha */\r\nexport interface BuiltInExtensionLoaderProps {\r\n manifest: Promise<any>;\r\n loader: ResolveFunc;\r\n}\r\n\r\n/** Describes what is needed in order to write an Extension Loader.\r\n * @alpha\r\n */\r\nexport interface ExtensionLoader {\r\n /** Retrieves an Extension manifest for the provided Extension identifier */\r\n getManifest(arg: ExtensionLoaderProps): Promise<ExtensionManifest>;\r\n /** Downloads an Extension provided the name of the Extension */\r\n downloadExtension(arg: ExtensionLoaderProps): Promise<LocalExtensionProps>;\r\n}\r\n"]}
@@ -1,8 +1,7 @@
1
1
  /** @packageDocumentation
2
2
  * @module Extensions
3
3
  */
4
- import { BuildExtensionManifest, ResolveFunc } from "./Extension";
5
- import { ExtensionLoader } from "./ExtensionLoader";
4
+ import type { BuildExtensionManifest, ExtensionLoader, ResolveFunc } from "./Extension";
6
5
  /** The Extensions loading system has the following goals:
7
6
  * 1. Only fetch what is needed when it is required
8
7
  * 1. Load a manifest file
@@ -39,7 +38,6 @@ export declare class ExtensionAdmin {
39
38
  * @internal
40
39
  */
41
40
  onStartup: () => Promise<void>;
42
- constructor();
43
41
  /** Add an ExtensionLoader to the front of the list of extension loaders. Extension loaders are invoked front to back.
44
42
  * @param extensionLoader Extension loader to add
45
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionAdmin.d.ts","sourceRoot":"","sources":["../../../src/extension/ExtensionAdmin.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAmB,sBAAsB,EAA0C,WAAW,EAAE,MAAM,aAAa,CAAC;AAC3H,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;GAIG;AACH,qBAAa,cAAc;IACzB,oDAAoD;IACpD,OAAO,CAAC,iBAAiB,CAAyB;IAElD,2GAA2G;IAC3G,OAAO,CAAC,oBAAoB,CAA4E;IAExG;;OAEG;IACI,SAAS,sBAEd;;IAMF;;OAEG;IACI,uBAAuB,CAAC,eAAe,EAAE,eAAe;IAI/D;;OAEG;IACI,kBAAkB,CAAC,eAAe,EAAE,eAAe;IAI1D;;;OAGG;IACU,iBAAiB,CAAC,eAAe,EAAE,OAAO,CAAC,sBAAsB,CAAC,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvH,gGAAgG;YAClF,uBAAuB;IAYrC;;OAEG;YACW,WAAW;YAYX,OAAO;CAKtB"}
1
+ {"version":3,"file":"ExtensionAdmin.d.ts","sourceRoot":"","sources":["../../../src/extension/ExtensionAdmin.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAmB,sBAAsB,EAAE,eAAe,EAA0C,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjJ;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;GAIG;AACH,qBAAa,cAAc;IACzB,oDAAoD;IACpD,OAAO,CAAC,iBAAiB,CAAyB;IAElD,2GAA2G;IAC3G,OAAO,CAAC,oBAAoB,CAA4E;IAExG;;OAEG;IACI,SAAS,sBAEd;IAEF;;OAEG;IACI,uBAAuB,CAAC,eAAe,EAAE,eAAe;IAI/D;;OAEG;IACI,kBAAkB,CAAC,eAAe,EAAE,eAAe;IAI1D;;;OAGG;IACU,iBAAiB,CAAC,eAAe,EAAE,OAAO,CAAC,sBAAsB,CAAC,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAKvH,gGAAgG;YAClF,uBAAuB;IAYrC;;OAEG;YACW,WAAW;YAYX,OAAO;CAKtB"}
@@ -5,8 +5,6 @@
5
5
  /** @packageDocumentation
6
6
  * @module Extensions
7
7
  */
8
- import { IModelApp } from "../IModelApp";
9
- import { ActivationEvent } from "./Extension";
10
8
  /** The Extensions loading system has the following goals:
11
9
  * 1. Only fetch what is needed when it is required
12
10
  * 1. Load a manifest file
@@ -44,9 +42,8 @@ export class ExtensionAdmin {
44
42
  * @internal
45
43
  */
46
44
  this.onStartup = async () => {
47
- await this.activateExtensionEvents(ActivationEvent.onStartup);
45
+ await this.activateExtensionEvents("onStartup");
48
46
  };
49
- IModelApp.onAfterStartup.addListener(this.onStartup);
50
47
  }
51
48
  /** Add an ExtensionLoader to the front of the list of extension loaders. Extension loaders are invoked front to back.
52
49
  * @param extensionLoader Extension loader to add
@@ -1 +1 @@
1
- {"version":3,"file":"ExtensionAdmin.js","sourceRoot":"","sources":["../../../src/extension/ExtensionAdmin.ts"],"names":[],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AS;YACX,KAAK,MAAM,eAAe,IAAI,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE;gBACjE,IAAI,eAAe,KAAK,KAAK,EAAE;oBAC7B,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,8DAA8D;iBACxF;aACF;SACF;IACH,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,WAAW,CAAC,MAAkC;QAC1D,MAAM,QAAQ,GAAI,MAAM,MAAM,CAAC;QAC/B,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,wHAAwH;IACxH,qHAAqH;IACrH,8BAA8B;IAC9B,uBAAuB;IACvB,EAAE;IACF,4HAA4H;IAC5H,6BAA6B;IACrB,KAAK,CAAC,OAAO,CAAC,SAA8B;QAClD,IAAI,SAAS,CAAC,QAAQ;YACpB,OAAO,SAAS,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;CAEF","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\nimport { IModelApp } from \"../IModelApp\";\r\nimport { ActivationEvent, BuildExtensionManifest, ExtensionManifest, LocalExtensionProps, ResolveFunc } from \"./Extension\";\r\nimport { ExtensionLoader } from \"./ExtensionLoader\";\r\n\r\n/** The Extensions loading system has the following goals:\r\n * 1. Only fetch what is needed when it is required\r\n * 1. Load a manifest file\r\n * 2. Load the the main module when necessary\r\n * 2. Download the extension's files\r\n *\r\n * 2 ways to load an Extension into the system:\r\n *\r\n * 1. At build-time provide the function to load both the Extension Manifest and import the main module of the extension.\r\n * The main module must contain the activate() function.\r\n * 2. A minimum set of ExtensionLoaderProps that provide enough information to get the manifest\r\n *\r\n * An Extension can be in 3 different states:\r\n * - Known\r\n * - The Extension Admin has the minimal information needed to fetch the manifest for the Extension.\r\n * knows the Extension exists but has not yet loaded the manifest\r\n * - Installed\r\n * - The Extension has the full manifest loaded and can be executed on the activation events\r\n * - Disabled\r\n * - The Extension has the full manifest but is not currently enabled and will not be executed based on the\r\n * activation events.\r\n */\r\n\r\n/** The Extension Admin controls the list of currently known, loaded and executing an Extension.\r\n * Handles the loading of Extensions and maintains a list of the currently loaded Extensions.\r\n *\r\n * @alpha\r\n */\r\nexport class ExtensionAdmin {\r\n /** The list of places to download an Extension. */\r\n private _extensionLoaders: ExtensionLoader[] = [];\r\n\r\n /** Defines the set of extensions that are currently known and can be invoked during activation events. */\r\n private _installedExtensions: Map<string, LocalExtensionProps> = new Map<string, LocalExtensionProps>();\r\n\r\n /** Fired when an Extension has been added or removed.\r\n * @internal\r\n */\r\n public onStartup = async () => {\r\n await this.activateExtensionEvents(ActivationEvent.onStartup);\r\n };\r\n\r\n public constructor() {\r\n IModelApp.onAfterStartup.addListener(this.onStartup);\r\n }\r\n\r\n /** Add an ExtensionLoader to the front of the list of extension loaders. Extension loaders are invoked front to back.\r\n * @param extensionLoader Extension loader to add\r\n */\r\n public addExtensionLoaderFront(extensionLoader: ExtensionLoader) {\r\n this._extensionLoaders.unshift(extensionLoader);\r\n }\r\n\r\n /** Add an ExtensionLoader to the list of extension loaders in use.\r\n * @param extensionLoader Extension loader to add\r\n */\r\n public addExtensionLoader(extensionLoader: ExtensionLoader) {\r\n this._extensionLoaders.push(extensionLoader);\r\n }\r\n\r\n /** Add an Extension intend to be bundled during compilation.\r\n * @param manifestLoader A function that loads the manifest file.\r\n * @param mainFunc The main function to be executed upon\r\n */\r\n public async addBuildExtension(manifestPromise: Promise<BuildExtensionManifest>, mainFunc?: ResolveFunc): Promise<void> {\r\n const manifest = await this.getManifest(manifestPromise);\r\n this._installedExtensions.set(manifest.name, { manifest, mainFunc });\r\n }\r\n\r\n /** Loops over all enabled Extensions and triggers each one if the provided event is defined. */\r\n private async activateExtensionEvents(event: string) {\r\n for (const extension of this._installedExtensions.values()) {\r\n if (!extension.manifest.activationEvents)\r\n continue;\r\n for (const activationEvent of extension.manifest.activationEvents) {\r\n if (activationEvent === event) {\r\n this.execute(extension); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n }\r\n }\r\n }\r\n }\r\n\r\n /** Resolves an import function provided for build-time Extensions that should return a valid\r\n * Extension Manifest.\r\n */\r\n private async getManifest(loader: Promise<ExtensionManifest>): Promise<ExtensionManifest> {\r\n const manifest = await loader;\r\n return manifest;\r\n }\r\n\r\n // Important: The Function constructor is used here to isolate the context in which the Extension javascript has access.\r\n // By using the Function constructor to create and then execute the extension it will only have access to two scopes:\r\n // 1. It's own function scope\r\n // 2. The global scope\r\n //\r\n // The global scope is important for an Extension as that is where the reference to the Extension Implementation is supplied\r\n // from the application side.\r\n private async execute(extension: LocalExtensionProps): Promise<void> {\r\n if (extension.mainFunc)\r\n return extension.mainFunc();\r\n }\r\n\r\n}\r\n"]}
1
+ {"version":3,"file":"ExtensionAdmin.js","sourceRoot":"","sources":["../../../src/extension/ExtensionAdmin.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;GAIG;AACH,MAAM,OAAO,cAAc;IAA3B;QACE,oDAAoD;QAC5C,sBAAiB,GAAsB,EAAE,CAAC;QAElD,2GAA2G;QACnG,yBAAoB,GAAqC,IAAI,GAAG,EAA+B,CAAC;QAExG;;WAEG;QACI,cAAS,GAAG,KAAK,IAAI,EAAE;YAC5B,MAAM,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;QAClD,CAAC,CAAC;IA0DJ,CAAC;IAxDC;;OAEG;IACI,uBAAuB,CAAC,eAAgC;QAC7D,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACI,kBAAkB,CAAC,eAAgC;QACxD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC/C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,iBAAiB,CAAC,eAAgD,EAAE,QAAsB;QACrG,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACzD,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,gGAAgG;IACxF,KAAK,CAAC,uBAAuB,CAAC,KAAsB;QAC1D,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,EAAE;YAC1D,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,gBAAgB;gBACtC,SAAS;YACX,KAAK,MAAM,eAAe,IAAI,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE;gBACjE,IAAI,eAAe,KAAK,KAAK,EAAE;oBAC7B,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,8DAA8D;iBACxF;aACF;SACF;IACH,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,WAAW,CAAC,MAAkC;QAC1D,MAAM,QAAQ,GAAI,MAAM,MAAM,CAAC;QAC/B,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,wHAAwH;IACxH,qHAAqH;IACrH,8BAA8B;IAC9B,uBAAuB;IACvB,EAAE;IACF,4HAA4H;IAC5H,6BAA6B;IACrB,KAAK,CAAC,OAAO,CAAC,SAA8B;QAClD,IAAI,SAAS,CAAC,QAAQ;YACpB,OAAO,SAAS,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;CAEF","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\nimport type { ActivationEvent, BuildExtensionManifest, ExtensionLoader, ExtensionManifest, LocalExtensionProps, ResolveFunc } from \"./Extension\";\r\n\r\n/** The Extensions loading system has the following goals:\r\n * 1. Only fetch what is needed when it is required\r\n * 1. Load a manifest file\r\n * 2. Load the the main module when necessary\r\n * 2. Download the extension's files\r\n *\r\n * 2 ways to load an Extension into the system:\r\n *\r\n * 1. At build-time provide the function to load both the Extension Manifest and import the main module of the extension.\r\n * The main module must contain the activate() function.\r\n * 2. A minimum set of ExtensionLoaderProps that provide enough information to get the manifest\r\n *\r\n * An Extension can be in 3 different states:\r\n * - Known\r\n * - The Extension Admin has the minimal information needed to fetch the manifest for the Extension.\r\n * knows the Extension exists but has not yet loaded the manifest\r\n * - Installed\r\n * - The Extension has the full manifest loaded and can be executed on the activation events\r\n * - Disabled\r\n * - The Extension has the full manifest but is not currently enabled and will not be executed based on the\r\n * activation events.\r\n */\r\n\r\n/** The Extension Admin controls the list of currently known, loaded and executing an Extension.\r\n * Handles the loading of Extensions and maintains a list of the currently loaded Extensions.\r\n *\r\n * @alpha\r\n */\r\nexport class ExtensionAdmin {\r\n /** The list of places to download an Extension. */\r\n private _extensionLoaders: ExtensionLoader[] = [];\r\n\r\n /** Defines the set of extensions that are currently known and can be invoked during activation events. */\r\n private _installedExtensions: Map<string, LocalExtensionProps> = new Map<string, LocalExtensionProps>();\r\n\r\n /** Fired when an Extension has been added or removed.\r\n * @internal\r\n */\r\n public onStartup = async () => {\r\n await this.activateExtensionEvents(\"onStartup\");\r\n };\r\n\r\n /** Add an ExtensionLoader to the front of the list of extension loaders. Extension loaders are invoked front to back.\r\n * @param extensionLoader Extension loader to add\r\n */\r\n public addExtensionLoaderFront(extensionLoader: ExtensionLoader) {\r\n this._extensionLoaders.unshift(extensionLoader);\r\n }\r\n\r\n /** Add an ExtensionLoader to the list of extension loaders in use.\r\n * @param extensionLoader Extension loader to add\r\n */\r\n public addExtensionLoader(extensionLoader: ExtensionLoader) {\r\n this._extensionLoaders.push(extensionLoader);\r\n }\r\n\r\n /** Add an Extension intend to be bundled during compilation.\r\n * @param manifestLoader A function that loads the manifest file.\r\n * @param mainFunc The main function to be executed upon\r\n */\r\n public async addBuildExtension(manifestPromise: Promise<BuildExtensionManifest>, mainFunc?: ResolveFunc): Promise<void> {\r\n const manifest = await this.getManifest(manifestPromise);\r\n this._installedExtensions.set(manifest.name, { manifest, mainFunc });\r\n }\r\n\r\n /** Loops over all enabled Extensions and triggers each one if the provided event is defined. */\r\n private async activateExtensionEvents(event: ActivationEvent) {\r\n for (const extension of this._installedExtensions.values()) {\r\n if (!extension.manifest.activationEvents)\r\n continue;\r\n for (const activationEvent of extension.manifest.activationEvents) {\r\n if (activationEvent === event) {\r\n this.execute(extension); // eslint-disable-line @typescript-eslint/no-floating-promises\r\n }\r\n }\r\n }\r\n }\r\n\r\n /** Resolves an import function provided for build-time Extensions that should return a valid\r\n * Extension Manifest.\r\n */\r\n private async getManifest(loader: Promise<ExtensionManifest>): Promise<ExtensionManifest> {\r\n const manifest = await loader;\r\n return manifest;\r\n }\r\n\r\n // Important: The Function constructor is used here to isolate the context in which the Extension javascript has access.\r\n // By using the Function constructor to create and then execute the extension it will only have access to two scopes:\r\n // 1. It's own function scope\r\n // 2. The global scope\r\n //\r\n // The global scope is important for an Extension as that is where the reference to the Extension Implementation is supplied\r\n // from the application side.\r\n private async execute(extension: LocalExtensionProps): Promise<void> {\r\n if (extension.mainFunc)\r\n return extension.mainFunc();\r\n }\r\n\r\n}\r\n"]}