@itwin/core-frontend 3.2.0-dev.9 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1236) hide show
  1. package/CHANGELOG.md +103 -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 +57 -49
  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/BriefcaseConnection.d.ts +35 -1
  26. package/lib/cjs/BriefcaseConnection.d.ts.map +1 -1
  27. package/lib/cjs/BriefcaseConnection.js +52 -1
  28. package/lib/cjs/BriefcaseConnection.js.map +1 -1
  29. package/lib/cjs/CategorySelectorState.d.ts +1 -0
  30. package/lib/cjs/CategorySelectorState.d.ts.map +1 -1
  31. package/lib/cjs/CategorySelectorState.js +1 -0
  32. package/lib/cjs/CategorySelectorState.js.map +1 -1
  33. package/lib/cjs/ChangeFlags.d.ts +1 -0
  34. package/lib/cjs/ChangeFlags.d.ts.map +1 -1
  35. package/lib/cjs/ChangeFlags.js +1 -0
  36. package/lib/cjs/ChangeFlags.js.map +1 -1
  37. package/lib/cjs/ContextRealityModelState.d.ts +1 -0
  38. package/lib/cjs/ContextRealityModelState.d.ts.map +1 -1
  39. package/lib/cjs/ContextRealityModelState.js +1 -0
  40. package/lib/cjs/ContextRealityModelState.js.map +1 -1
  41. package/lib/cjs/CoordSystem.d.ts +1 -0
  42. package/lib/cjs/CoordSystem.d.ts.map +1 -1
  43. package/lib/cjs/CoordSystem.js +1 -0
  44. package/lib/cjs/CoordSystem.js.map +1 -1
  45. package/lib/cjs/DisplayStyleState.d.ts +4 -0
  46. package/lib/cjs/DisplayStyleState.d.ts.map +1 -1
  47. package/lib/cjs/DisplayStyleState.js +9 -4
  48. package/lib/cjs/DisplayStyleState.js.map +1 -1
  49. package/lib/cjs/DrawingViewState.d.ts +5 -2
  50. package/lib/cjs/DrawingViewState.d.ts.map +1 -1
  51. package/lib/cjs/DrawingViewState.js +34 -3
  52. package/lib/cjs/DrawingViewState.js.map +1 -1
  53. package/lib/cjs/ElementLocateManager.d.ts +23 -5
  54. package/lib/cjs/ElementLocateManager.d.ts.map +1 -1
  55. package/lib/cjs/ElementLocateManager.js +19 -4
  56. package/lib/cjs/ElementLocateManager.js.map +1 -1
  57. package/lib/cjs/EmphasizeElements.d.ts +1 -0
  58. package/lib/cjs/EmphasizeElements.d.ts.map +1 -1
  59. package/lib/cjs/EmphasizeElements.js +1 -0
  60. package/lib/cjs/EmphasizeElements.js.map +1 -1
  61. package/lib/cjs/EntityState.d.ts +2 -0
  62. package/lib/cjs/EntityState.d.ts.map +1 -1
  63. package/lib/cjs/EntityState.js +2 -0
  64. package/lib/cjs/EntityState.js.map +1 -1
  65. package/lib/cjs/FeatureOverrideProvider.d.ts +1 -0
  66. package/lib/cjs/FeatureOverrideProvider.d.ts.map +1 -1
  67. package/lib/cjs/FeatureOverrideProvider.js.map +1 -1
  68. package/lib/cjs/FlashSettings.d.ts +3 -0
  69. package/lib/cjs/FlashSettings.d.ts.map +1 -1
  70. package/lib/cjs/FlashSettings.js +2 -0
  71. package/lib/cjs/FlashSettings.js.map +1 -1
  72. package/lib/cjs/FrontendHubAccess.d.ts +4 -1
  73. package/lib/cjs/FrontendHubAccess.d.ts.map +1 -1
  74. package/lib/cjs/FrontendHubAccess.js.map +1 -1
  75. package/lib/cjs/FrontendLoggerCategory.d.ts +6 -1
  76. package/lib/cjs/FrontendLoggerCategory.d.ts.map +1 -1
  77. package/lib/cjs/FrontendLoggerCategory.js +5 -0
  78. package/lib/cjs/FrontendLoggerCategory.js.map +1 -1
  79. package/lib/cjs/FrustumAnimator.d.ts +2 -0
  80. package/lib/cjs/FrustumAnimator.d.ts.map +1 -1
  81. package/lib/cjs/FrustumAnimator.js +2 -0
  82. package/lib/cjs/FrustumAnimator.js.map +1 -1
  83. package/lib/cjs/FuzzySearch.d.ts +1 -0
  84. package/lib/cjs/FuzzySearch.d.ts.map +1 -1
  85. package/lib/cjs/FuzzySearch.js.map +1 -1
  86. package/lib/cjs/GlobeAnimator.d.ts +1 -0
  87. package/lib/cjs/GlobeAnimator.d.ts.map +1 -1
  88. package/lib/cjs/GlobeAnimator.js +1 -0
  89. package/lib/cjs/GlobeAnimator.js.map +1 -1
  90. package/lib/cjs/HitDetail.d.ts +26 -5
  91. package/lib/cjs/HitDetail.d.ts.map +1 -1
  92. package/lib/cjs/HitDetail.js +26 -5
  93. package/lib/cjs/HitDetail.js.map +1 -1
  94. package/lib/cjs/IModelApp.d.ts +9 -0
  95. package/lib/cjs/IModelApp.d.ts.map +1 -1
  96. package/lib/cjs/IModelApp.js +39 -24
  97. package/lib/cjs/IModelApp.js.map +1 -1
  98. package/lib/cjs/IModelConnection.d.ts +11 -2
  99. package/lib/cjs/IModelConnection.d.ts.map +1 -1
  100. package/lib/cjs/IModelConnection.js +23 -2
  101. package/lib/cjs/IModelConnection.js.map +1 -1
  102. package/lib/cjs/ImageUtil.d.ts +15 -2
  103. package/lib/cjs/ImageUtil.d.ts.map +1 -1
  104. package/lib/cjs/ImageUtil.js +19 -4
  105. package/lib/cjs/ImageUtil.js.map +1 -1
  106. package/lib/cjs/IpcApp.d.ts +1 -0
  107. package/lib/cjs/IpcApp.d.ts.map +1 -1
  108. package/lib/cjs/IpcApp.js +1 -0
  109. package/lib/cjs/IpcApp.js.map +1 -1
  110. package/lib/cjs/MarginPercent.d.ts +1 -0
  111. package/lib/cjs/MarginPercent.d.ts.map +1 -1
  112. package/lib/cjs/MarginPercent.js +1 -0
  113. package/lib/cjs/MarginPercent.js.map +1 -1
  114. package/lib/cjs/Marker.d.ts +16 -3
  115. package/lib/cjs/Marker.d.ts.map +1 -1
  116. package/lib/cjs/Marker.js +3 -0
  117. package/lib/cjs/Marker.js.map +1 -1
  118. package/lib/cjs/ModelSelectorState.d.ts +1 -0
  119. package/lib/cjs/ModelSelectorState.d.ts.map +1 -1
  120. package/lib/cjs/ModelSelectorState.js +1 -0
  121. package/lib/cjs/ModelSelectorState.js.map +1 -1
  122. package/lib/cjs/ModelState.d.ts +10 -0
  123. package/lib/cjs/ModelState.d.ts.map +1 -1
  124. package/lib/cjs/ModelState.js +10 -0
  125. package/lib/cjs/ModelState.js.map +1 -1
  126. package/lib/cjs/NotificationManager.d.ts +11 -0
  127. package/lib/cjs/NotificationManager.d.ts.map +1 -1
  128. package/lib/cjs/NotificationManager.js +10 -0
  129. package/lib/cjs/NotificationManager.js.map +1 -1
  130. package/lib/cjs/PerModelCategoryVisibility.d.ts +1 -0
  131. package/lib/cjs/PerModelCategoryVisibility.d.ts.map +1 -1
  132. package/lib/cjs/PerModelCategoryVisibility.js +1 -0
  133. package/lib/cjs/PerModelCategoryVisibility.js.map +1 -1
  134. package/lib/cjs/SelectionSet.d.ts +7 -0
  135. package/lib/cjs/SelectionSet.d.ts.map +1 -1
  136. package/lib/cjs/SelectionSet.js +3 -0
  137. package/lib/cjs/SelectionSet.js.map +1 -1
  138. package/lib/cjs/SheetViewState.d.ts +6 -5
  139. package/lib/cjs/SheetViewState.d.ts.map +1 -1
  140. package/lib/cjs/SheetViewState.js +58 -6
  141. package/lib/cjs/SheetViewState.js.map +1 -1
  142. package/lib/cjs/SpatialViewState.d.ts +7 -2
  143. package/lib/cjs/SpatialViewState.d.ts.map +1 -1
  144. package/lib/cjs/SpatialViewState.js +17 -3
  145. package/lib/cjs/SpatialViewState.js.map +1 -1
  146. package/lib/cjs/Sprites.d.ts +3 -0
  147. package/lib/cjs/Sprites.d.ts.map +1 -1
  148. package/lib/cjs/Sprites.js +3 -0
  149. package/lib/cjs/Sprites.js.map +1 -1
  150. package/lib/cjs/StandardView.d.ts +1 -0
  151. package/lib/cjs/StandardView.d.ts.map +1 -1
  152. package/lib/cjs/StandardView.js +1 -0
  153. package/lib/cjs/StandardView.js.map +1 -1
  154. package/lib/cjs/SubCategoriesCache.d.ts +14 -7
  155. package/lib/cjs/SubCategoriesCache.d.ts.map +1 -1
  156. package/lib/cjs/SubCategoriesCache.js +36 -8
  157. package/lib/cjs/SubCategoriesCache.js.map +1 -1
  158. package/lib/cjs/TentativePoint.d.ts +4 -1
  159. package/lib/cjs/TentativePoint.d.ts.map +1 -1
  160. package/lib/cjs/TentativePoint.js +4 -1
  161. package/lib/cjs/TentativePoint.js.map +1 -1
  162. package/lib/cjs/Tiles.d.ts +1 -0
  163. package/lib/cjs/Tiles.d.ts.map +1 -1
  164. package/lib/cjs/Tiles.js +1 -0
  165. package/lib/cjs/Tiles.js.map +1 -1
  166. package/lib/cjs/ViewAnimation.d.ts +6 -0
  167. package/lib/cjs/ViewAnimation.d.ts.map +1 -1
  168. package/lib/cjs/ViewAnimation.js.map +1 -1
  169. package/lib/cjs/ViewCreator2d.d.ts +2 -0
  170. package/lib/cjs/ViewCreator2d.d.ts.map +1 -1
  171. package/lib/cjs/ViewCreator2d.js +1 -0
  172. package/lib/cjs/ViewCreator2d.js.map +1 -1
  173. package/lib/cjs/ViewCreator3d.d.ts +2 -8
  174. package/lib/cjs/ViewCreator3d.d.ts.map +1 -1
  175. package/lib/cjs/ViewCreator3d.js +12 -38
  176. package/lib/cjs/ViewCreator3d.js.map +1 -1
  177. package/lib/cjs/ViewGlobalLocation.d.ts +3 -0
  178. package/lib/cjs/ViewGlobalLocation.d.ts.map +1 -1
  179. package/lib/cjs/ViewGlobalLocation.js +1 -0
  180. package/lib/cjs/ViewGlobalLocation.js.map +1 -1
  181. package/lib/cjs/ViewManager.d.ts +3 -0
  182. package/lib/cjs/ViewManager.d.ts.map +1 -1
  183. package/lib/cjs/ViewManager.js +2 -0
  184. package/lib/cjs/ViewManager.js.map +1 -1
  185. package/lib/cjs/ViewPose.d.ts +1 -0
  186. package/lib/cjs/ViewPose.d.ts.map +1 -1
  187. package/lib/cjs/ViewPose.js +1 -0
  188. package/lib/cjs/ViewPose.js.map +1 -1
  189. package/lib/cjs/ViewRect.d.ts +1 -0
  190. package/lib/cjs/ViewRect.d.ts.map +1 -1
  191. package/lib/cjs/ViewRect.js +1 -0
  192. package/lib/cjs/ViewRect.js.map +1 -1
  193. package/lib/cjs/ViewState.d.ts +17 -2
  194. package/lib/cjs/ViewState.d.ts.map +1 -1
  195. package/lib/cjs/ViewState.js +40 -9
  196. package/lib/cjs/ViewState.js.map +1 -1
  197. package/lib/cjs/ViewStatus.d.ts +1 -0
  198. package/lib/cjs/ViewStatus.d.ts.map +1 -1
  199. package/lib/cjs/ViewStatus.js +1 -0
  200. package/lib/cjs/ViewStatus.js.map +1 -1
  201. package/lib/cjs/ViewingSpace.d.ts +1 -0
  202. package/lib/cjs/ViewingSpace.d.ts.map +1 -1
  203. package/lib/cjs/ViewingSpace.js +1 -0
  204. package/lib/cjs/ViewingSpace.js.map +1 -1
  205. package/lib/cjs/Viewport.d.ts +6 -2
  206. package/lib/cjs/Viewport.d.ts.map +1 -1
  207. package/lib/cjs/Viewport.js +12 -4
  208. package/lib/cjs/Viewport.js.map +1 -1
  209. package/lib/cjs/ViewportSync.d.ts +119 -0
  210. package/lib/cjs/ViewportSync.d.ts.map +1 -0
  211. package/lib/cjs/ViewportSync.js +187 -0
  212. package/lib/cjs/ViewportSync.js.map +1 -0
  213. package/lib/cjs/core-frontend.d.ts +10 -6
  214. package/lib/cjs/core-frontend.d.ts.map +1 -1
  215. package/lib/cjs/core-frontend.js +11 -6
  216. package/lib/cjs/core-frontend.js.map +1 -1
  217. package/lib/cjs/extension/Extension.d.ts +24 -15
  218. package/lib/cjs/extension/Extension.d.ts.map +1 -1
  219. package/lib/cjs/extension/Extension.js +0 -8
  220. package/lib/cjs/extension/Extension.js.map +1 -1
  221. package/lib/cjs/extension/ExtensionAdmin.d.ts +21 -44
  222. package/lib/cjs/extension/ExtensionAdmin.d.ts.map +1 -1
  223. package/lib/cjs/extension/ExtensionAdmin.js +55 -64
  224. package/lib/cjs/extension/ExtensionAdmin.js.map +1 -1
  225. package/lib/cjs/extension/ExtensionRuntime.js +238 -59
  226. package/lib/cjs/extension/ExtensionRuntime.js.map +1 -1
  227. package/lib/cjs/extension/providers/ExtensionLoadScript.d.ts +12 -0
  228. package/lib/cjs/extension/providers/ExtensionLoadScript.d.ts.map +1 -0
  229. package/lib/cjs/extension/providers/ExtensionLoadScript.js +38 -0
  230. package/lib/cjs/extension/providers/ExtensionLoadScript.js.map +1 -0
  231. package/lib/cjs/extension/providers/ExtensionServiceClient.d.ts +52 -0
  232. package/lib/cjs/extension/providers/ExtensionServiceClient.d.ts.map +1 -0
  233. package/lib/cjs/extension/providers/ExtensionServiceClient.js +131 -0
  234. package/lib/cjs/extension/providers/ExtensionServiceClient.js.map +1 -0
  235. package/lib/cjs/extension/providers/LocalExtensionProvider.d.ts +26 -0
  236. package/lib/cjs/extension/providers/LocalExtensionProvider.d.ts.map +1 -0
  237. package/lib/cjs/extension/providers/LocalExtensionProvider.js +24 -0
  238. package/lib/cjs/extension/providers/LocalExtensionProvider.js.map +1 -0
  239. package/lib/cjs/extension/providers/RemoteExtensionProvider.d.ts +36 -0
  240. package/lib/cjs/extension/providers/RemoteExtensionProvider.d.ts.map +1 -0
  241. package/lib/cjs/extension/providers/RemoteExtensionProvider.js +53 -0
  242. package/lib/cjs/extension/providers/RemoteExtensionProvider.js.map +1 -0
  243. package/lib/cjs/extension/providers/ServiceExtensionProvider.d.ts +40 -0
  244. package/lib/cjs/extension/providers/ServiceExtensionProvider.d.ts.map +1 -0
  245. package/lib/cjs/extension/providers/ServiceExtensionProvider.js +84 -0
  246. package/lib/cjs/extension/providers/ServiceExtensionProvider.js.map +1 -0
  247. package/lib/cjs/quantity-formatting/QuantityFormatter.d.ts.map +1 -1
  248. package/lib/cjs/quantity-formatting/QuantityFormatter.js +2 -1
  249. package/lib/cjs/quantity-formatting/QuantityFormatter.js.map +1 -1
  250. package/lib/cjs/render/CanvasDecoration.d.ts +2 -0
  251. package/lib/cjs/render/CanvasDecoration.d.ts.map +1 -1
  252. package/lib/cjs/render/CanvasDecoration.js.map +1 -1
  253. package/lib/cjs/render/Decorations.d.ts +1 -0
  254. package/lib/cjs/render/Decorations.d.ts.map +1 -1
  255. package/lib/cjs/render/Decorations.js +1 -0
  256. package/lib/cjs/render/Decorations.js.map +1 -1
  257. package/lib/cjs/render/FeatureSymbology.d.ts +1 -0
  258. package/lib/cjs/render/FeatureSymbology.d.ts.map +1 -1
  259. package/lib/cjs/render/FeatureSymbology.js +1 -0
  260. package/lib/cjs/render/FeatureSymbology.js.map +1 -1
  261. package/lib/cjs/render/GraphicBranch.d.ts +2 -0
  262. package/lib/cjs/render/GraphicBranch.d.ts.map +1 -1
  263. package/lib/cjs/render/GraphicBranch.js +1 -0
  264. package/lib/cjs/render/GraphicBranch.js.map +1 -1
  265. package/lib/cjs/render/GraphicBuilder.d.ts +33 -2
  266. package/lib/cjs/render/GraphicBuilder.d.ts.map +1 -1
  267. package/lib/cjs/render/GraphicBuilder.js +26 -0
  268. package/lib/cjs/render/GraphicBuilder.js.map +1 -1
  269. package/lib/cjs/render/GraphicPrimitive.d.ts +14 -0
  270. package/lib/cjs/render/GraphicPrimitive.d.ts.map +1 -1
  271. package/lib/cjs/render/GraphicPrimitive.js.map +1 -1
  272. package/lib/cjs/render/ParticleCollectionBuilder.d.ts +3 -0
  273. package/lib/cjs/render/ParticleCollectionBuilder.d.ts.map +1 -1
  274. package/lib/cjs/render/ParticleCollectionBuilder.js.map +1 -1
  275. package/lib/cjs/render/Pixel.d.ts +1 -0
  276. package/lib/cjs/render/Pixel.d.ts.map +1 -1
  277. package/lib/cjs/render/Pixel.js +1 -0
  278. package/lib/cjs/render/Pixel.js.map +1 -1
  279. package/lib/cjs/render/RenderClipVolume.d.ts +1 -0
  280. package/lib/cjs/render/RenderClipVolume.d.ts.map +1 -1
  281. package/lib/cjs/render/RenderClipVolume.js +1 -0
  282. package/lib/cjs/render/RenderClipVolume.js.map +1 -1
  283. package/lib/cjs/render/RenderGraphic.d.ts +3 -0
  284. package/lib/cjs/render/RenderGraphic.d.ts.map +1 -1
  285. package/lib/cjs/render/RenderGraphic.js +2 -0
  286. package/lib/cjs/render/RenderGraphic.js.map +1 -1
  287. package/lib/cjs/render/RenderSystem.d.ts +9 -3
  288. package/lib/cjs/render/RenderSystem.d.ts.map +1 -1
  289. package/lib/cjs/render/RenderSystem.js +4 -3
  290. package/lib/cjs/render/RenderSystem.js.map +1 -1
  291. package/lib/cjs/render/RenderTexture.d.ts +7 -0
  292. package/lib/cjs/render/RenderTexture.d.ts.map +1 -1
  293. package/lib/cjs/render/RenderTexture.js.map +1 -1
  294. package/lib/cjs/render/Scene.d.ts +1 -0
  295. package/lib/cjs/render/Scene.d.ts.map +1 -1
  296. package/lib/cjs/render/Scene.js +1 -0
  297. package/lib/cjs/render/Scene.js.map +1 -1
  298. package/lib/cjs/render/ScreenSpaceEffectBuilder.d.ts +10 -0
  299. package/lib/cjs/render/ScreenSpaceEffectBuilder.d.ts.map +1 -1
  300. package/lib/cjs/render/ScreenSpaceEffectBuilder.js +2 -0
  301. package/lib/cjs/render/ScreenSpaceEffectBuilder.js.map +1 -1
  302. package/lib/cjs/render/primitives/VertexKey.d.ts +4 -2
  303. package/lib/cjs/render/primitives/VertexKey.d.ts.map +1 -1
  304. package/lib/cjs/render/primitives/VertexKey.js +23 -12
  305. package/lib/cjs/render/primitives/VertexKey.js.map +1 -1
  306. package/lib/cjs/render/primitives/VertexTable.d.ts +1 -1
  307. package/lib/cjs/render/primitives/VertexTable.js +30 -2
  308. package/lib/cjs/render/primitives/VertexTable.js.map +1 -1
  309. package/lib/cjs/render/primitives/geometry/GeometryAccumulator.d.ts +12 -4
  310. package/lib/cjs/render/primitives/geometry/GeometryAccumulator.d.ts.map +1 -1
  311. package/lib/cjs/render/primitives/geometry/GeometryAccumulator.js +20 -15
  312. package/lib/cjs/render/primitives/geometry/GeometryAccumulator.js.map +1 -1
  313. package/lib/cjs/render/primitives/geometry/GeometryListBuilder.d.ts +2 -1
  314. package/lib/cjs/render/primitives/geometry/GeometryListBuilder.d.ts.map +1 -1
  315. package/lib/cjs/render/primitives/geometry/GeometryListBuilder.js +9 -2
  316. package/lib/cjs/render/primitives/geometry/GeometryListBuilder.js.map +1 -1
  317. package/lib/cjs/render/primitives/geometry/GeometryPrimitives.d.ts +14 -12
  318. package/lib/cjs/render/primitives/geometry/GeometryPrimitives.d.ts.map +1 -1
  319. package/lib/cjs/render/primitives/geometry/GeometryPrimitives.js +26 -25
  320. package/lib/cjs/render/primitives/geometry/GeometryPrimitives.js.map +1 -1
  321. package/lib/cjs/render/primitives/mesh/MeshBuilder.d.ts +8 -8
  322. package/lib/cjs/render/primitives/mesh/MeshBuilder.d.ts.map +1 -1
  323. package/lib/cjs/render/primitives/mesh/MeshBuilder.js +15 -15
  324. package/lib/cjs/render/primitives/mesh/MeshBuilder.js.map +1 -1
  325. package/lib/cjs/render/primitives/mesh/MeshBuilderMap.d.ts +11 -6
  326. package/lib/cjs/render/primitives/mesh/MeshBuilderMap.d.ts.map +1 -1
  327. package/lib/cjs/render/primitives/mesh/MeshBuilderMap.js +12 -15
  328. package/lib/cjs/render/primitives/mesh/MeshBuilderMap.js.map +1 -1
  329. package/lib/cjs/render/primitives/mesh/MeshPrimitives.d.ts +1 -1
  330. package/lib/cjs/render/primitives/mesh/MeshPrimitives.d.ts.map +1 -1
  331. package/lib/cjs/render/primitives/mesh/MeshPrimitives.js +6 -2
  332. package/lib/cjs/render/primitives/mesh/MeshPrimitives.js.map +1 -1
  333. package/lib/cjs/render/webgl/AttributeMap.js +1 -1
  334. package/lib/cjs/render/webgl/CachedGeometry.d.ts +7 -1
  335. package/lib/cjs/render/webgl/CachedGeometry.d.ts.map +1 -1
  336. package/lib/cjs/render/webgl/CachedGeometry.js +20 -10
  337. package/lib/cjs/render/webgl/CachedGeometry.js.map +1 -1
  338. package/lib/cjs/render/webgl/DrawCommand.d.ts.map +1 -1
  339. package/lib/cjs/render/webgl/DrawCommand.js +2 -1
  340. package/lib/cjs/render/webgl/DrawCommand.js.map +1 -1
  341. package/lib/cjs/render/webgl/InstancedGeometry.d.ts +1 -0
  342. package/lib/cjs/render/webgl/InstancedGeometry.d.ts.map +1 -1
  343. package/lib/cjs/render/webgl/InstancedGeometry.js +1 -0
  344. package/lib/cjs/render/webgl/InstancedGeometry.js.map +1 -1
  345. package/lib/cjs/render/webgl/RealityMesh.d.ts +14 -11
  346. package/lib/cjs/render/webgl/RealityMesh.d.ts.map +1 -1
  347. package/lib/cjs/render/webgl/RealityMesh.js +26 -17
  348. package/lib/cjs/render/webgl/RealityMesh.js.map +1 -1
  349. package/lib/cjs/render/webgl/SceneCompositor.d.ts +2 -0
  350. package/lib/cjs/render/webgl/SceneCompositor.d.ts.map +1 -1
  351. package/lib/cjs/render/webgl/SceneCompositor.js +219 -52
  352. package/lib/cjs/render/webgl/SceneCompositor.js.map +1 -1
  353. package/lib/cjs/render/webgl/ShaderBuilder.d.ts +5 -4
  354. package/lib/cjs/render/webgl/ShaderBuilder.d.ts.map +1 -1
  355. package/lib/cjs/render/webgl/ShaderBuilder.js +7 -6
  356. package/lib/cjs/render/webgl/ShaderBuilder.js.map +1 -1
  357. package/lib/cjs/render/webgl/ShaderProgram.js +1 -1
  358. package/lib/cjs/render/webgl/ShaderProgram.js.map +1 -1
  359. package/lib/cjs/render/webgl/System.d.ts +4 -4
  360. package/lib/cjs/render/webgl/System.d.ts.map +1 -1
  361. package/lib/cjs/render/webgl/System.js +6 -6
  362. package/lib/cjs/render/webgl/System.js.map +1 -1
  363. package/lib/cjs/render/webgl/Target.d.ts +6 -1
  364. package/lib/cjs/render/webgl/Target.d.ts.map +1 -1
  365. package/lib/cjs/render/webgl/Target.js +64 -13
  366. package/lib/cjs/render/webgl/Target.js.map +1 -1
  367. package/lib/cjs/render/webgl/Technique.d.ts +4 -2
  368. package/lib/cjs/render/webgl/Technique.d.ts.map +1 -1
  369. package/lib/cjs/render/webgl/Technique.js +166 -135
  370. package/lib/cjs/render/webgl/Technique.js.map +1 -1
  371. package/lib/cjs/render/webgl/TechniqueFlags.d.ts +7 -3
  372. package/lib/cjs/render/webgl/TechniqueFlags.d.ts.map +1 -1
  373. package/lib/cjs/render/webgl/TechniqueFlags.js +17 -4
  374. package/lib/cjs/render/webgl/TechniqueFlags.js.map +1 -1
  375. package/lib/cjs/render/webgl/TechniqueId.d.ts +8 -7
  376. package/lib/cjs/render/webgl/TechniqueId.d.ts.map +1 -1
  377. package/lib/cjs/render/webgl/TechniqueId.js.map +1 -1
  378. package/lib/cjs/render/webgl/UniformHandle.d.ts +2 -1
  379. package/lib/cjs/render/webgl/UniformHandle.d.ts.map +1 -1
  380. package/lib/cjs/render/webgl/UniformHandle.js +15 -3
  381. package/lib/cjs/render/webgl/UniformHandle.js.map +1 -1
  382. package/lib/cjs/render/webgl/glsl/Animation.d.ts.map +1 -1
  383. package/lib/cjs/render/webgl/glsl/Animation.js +2 -0
  384. package/lib/cjs/render/webgl/glsl/Animation.js.map +1 -1
  385. package/lib/cjs/render/webgl/glsl/Blur.d.ts +2 -1
  386. package/lib/cjs/render/webgl/glsl/Blur.d.ts.map +1 -1
  387. package/lib/cjs/render/webgl/glsl/Blur.js +38 -6
  388. package/lib/cjs/render/webgl/glsl/Blur.js.map +1 -1
  389. package/lib/cjs/render/webgl/glsl/Color.d.ts.map +1 -1
  390. package/lib/cjs/render/webgl/glsl/Color.js +8 -7
  391. package/lib/cjs/render/webgl/glsl/Color.js.map +1 -1
  392. package/lib/cjs/render/webgl/glsl/CopyStencil.js +1 -1
  393. package/lib/cjs/render/webgl/glsl/Decode.d.ts +2 -1
  394. package/lib/cjs/render/webgl/glsl/Decode.d.ts.map +1 -1
  395. package/lib/cjs/render/webgl/glsl/Decode.js +16 -2
  396. package/lib/cjs/render/webgl/glsl/Decode.js.map +1 -1
  397. package/lib/cjs/render/webgl/glsl/Edge.d.ts +2 -2
  398. package/lib/cjs/render/webgl/glsl/Edge.d.ts.map +1 -1
  399. package/lib/cjs/render/webgl/glsl/Edge.js +6 -19
  400. package/lib/cjs/render/webgl/glsl/Edge.js.map +1 -1
  401. package/lib/cjs/render/webgl/glsl/FeatureSymbology.d.ts.map +1 -1
  402. package/lib/cjs/render/webgl/glsl/FeatureSymbology.js +0 -2
  403. package/lib/cjs/render/webgl/glsl/FeatureSymbology.js.map +1 -1
  404. package/lib/cjs/render/webgl/glsl/PointString.d.ts +3 -3
  405. package/lib/cjs/render/webgl/glsl/PointString.d.ts.map +1 -1
  406. package/lib/cjs/render/webgl/glsl/PointString.js +6 -6
  407. package/lib/cjs/render/webgl/glsl/PointString.js.map +1 -1
  408. package/lib/cjs/render/webgl/glsl/Polyline.d.ts +3 -3
  409. package/lib/cjs/render/webgl/glsl/Polyline.d.ts.map +1 -1
  410. package/lib/cjs/render/webgl/glsl/Polyline.js +6 -21
  411. package/lib/cjs/render/webgl/glsl/Polyline.js.map +1 -1
  412. package/lib/cjs/render/webgl/glsl/RealityMesh.d.ts.map +1 -1
  413. package/lib/cjs/render/webgl/glsl/RealityMesh.js +5 -2
  414. package/lib/cjs/render/webgl/glsl/RealityMesh.js.map +1 -1
  415. package/lib/cjs/render/webgl/glsl/Surface.d.ts +2 -2
  416. package/lib/cjs/render/webgl/glsl/Surface.d.ts.map +1 -1
  417. package/lib/cjs/render/webgl/glsl/Surface.js +50 -34
  418. package/lib/cjs/render/webgl/glsl/Surface.js.map +1 -1
  419. package/lib/cjs/render/webgl/glsl/Vertex.d.ts +3 -3
  420. package/lib/cjs/render/webgl/glsl/Vertex.d.ts.map +1 -1
  421. package/lib/cjs/render/webgl/glsl/Vertex.js +143 -57
  422. package/lib/cjs/render/webgl/glsl/Vertex.js.map +1 -1
  423. package/lib/cjs/tile/ClassifierTileTree.d.ts.map +1 -1
  424. package/lib/cjs/tile/ClassifierTileTree.js +3 -4
  425. package/lib/cjs/tile/ClassifierTileTree.js.map +1 -1
  426. package/lib/cjs/tile/DisclosedTileTreeSet.d.ts +2 -0
  427. package/lib/cjs/tile/DisclosedTileTreeSet.d.ts.map +1 -1
  428. package/lib/cjs/tile/DisclosedTileTreeSet.js +1 -0
  429. package/lib/cjs/tile/DisclosedTileTreeSet.js.map +1 -1
  430. package/lib/cjs/tile/DynamicIModelTile.js +4 -2
  431. package/lib/cjs/tile/DynamicIModelTile.js.map +1 -1
  432. package/lib/cjs/tile/GltfReader.d.ts +19 -9
  433. package/lib/cjs/tile/GltfReader.d.ts.map +1 -1
  434. package/lib/cjs/tile/GltfReader.js +24 -7
  435. package/lib/cjs/tile/GltfReader.js.map +1 -1
  436. package/lib/cjs/tile/IModelTile.js +1 -1
  437. package/lib/cjs/tile/IModelTile.js.map +1 -1
  438. package/lib/cjs/tile/IModelTileRequestChannels.d.ts +3 -3
  439. package/lib/cjs/tile/IModelTileRequestChannels.d.ts.map +1 -1
  440. package/lib/cjs/tile/IModelTileRequestChannels.js +7 -11
  441. package/lib/cjs/tile/IModelTileRequestChannels.js.map +1 -1
  442. package/lib/cjs/tile/IModelTileTree.d.ts +3 -3
  443. package/lib/cjs/tile/IModelTileTree.d.ts.map +1 -1
  444. package/lib/cjs/tile/IModelTileTree.js +1 -1
  445. package/lib/cjs/tile/IModelTileTree.js.map +1 -1
  446. package/lib/cjs/tile/ImdlReader.d.ts +2 -0
  447. package/lib/cjs/tile/ImdlReader.d.ts.map +1 -1
  448. package/lib/cjs/tile/ImdlReader.js +2 -0
  449. package/lib/cjs/tile/ImdlReader.js.map +1 -1
  450. package/lib/cjs/tile/OPCFormatInterpreter.d.ts.map +1 -1
  451. package/lib/cjs/tile/OPCFormatInterpreter.js +1 -2
  452. package/lib/cjs/tile/OPCFormatInterpreter.js.map +1 -1
  453. package/lib/cjs/tile/PrimaryTileTree.d.ts.map +1 -1
  454. package/lib/cjs/tile/PrimaryTileTree.js +4 -4
  455. package/lib/cjs/tile/PrimaryTileTree.js.map +1 -1
  456. package/lib/cjs/tile/RealityTileLoader.d.ts +1 -1
  457. package/lib/cjs/tile/RealityTileLoader.d.ts.map +1 -1
  458. package/lib/cjs/tile/RealityTileLoader.js +34 -6
  459. package/lib/cjs/tile/RealityTileLoader.js.map +1 -1
  460. package/lib/cjs/tile/Tile.d.ts +5 -0
  461. package/lib/cjs/tile/Tile.d.ts.map +1 -1
  462. package/lib/cjs/tile/Tile.js +5 -0
  463. package/lib/cjs/tile/Tile.js.map +1 -1
  464. package/lib/cjs/tile/TileAdmin.d.ts +18 -1
  465. package/lib/cjs/tile/TileAdmin.d.ts.map +1 -1
  466. package/lib/cjs/tile/TileAdmin.js +28 -19
  467. package/lib/cjs/tile/TileAdmin.js.map +1 -1
  468. package/lib/cjs/tile/TileContent.d.ts +1 -0
  469. package/lib/cjs/tile/TileContent.d.ts.map +1 -1
  470. package/lib/cjs/tile/TileContent.js.map +1 -1
  471. package/lib/cjs/tile/TileDrawArgs.d.ts +2 -0
  472. package/lib/cjs/tile/TileDrawArgs.d.ts.map +1 -1
  473. package/lib/cjs/tile/TileDrawArgs.js +1 -0
  474. package/lib/cjs/tile/TileDrawArgs.js.map +1 -1
  475. package/lib/cjs/tile/TileParams.d.ts +1 -0
  476. package/lib/cjs/tile/TileParams.d.ts.map +1 -1
  477. package/lib/cjs/tile/TileParams.js.map +1 -1
  478. package/lib/cjs/tile/TileRequest.d.ts +1 -0
  479. package/lib/cjs/tile/TileRequest.d.ts.map +1 -1
  480. package/lib/cjs/tile/TileRequest.js +1 -0
  481. package/lib/cjs/tile/TileRequest.js.map +1 -1
  482. package/lib/cjs/tile/TileRequestChannel.d.ts +2 -0
  483. package/lib/cjs/tile/TileRequestChannel.d.ts.map +1 -1
  484. package/lib/cjs/tile/TileRequestChannel.js +2 -0
  485. package/lib/cjs/tile/TileRequestChannel.js.map +1 -1
  486. package/lib/cjs/tile/TileRequestChannels.d.ts +1 -4
  487. package/lib/cjs/tile/TileRequestChannels.d.ts.map +1 -1
  488. package/lib/cjs/tile/TileRequestChannels.js +2 -6
  489. package/lib/cjs/tile/TileRequestChannels.js.map +1 -1
  490. package/lib/cjs/tile/TileTree.d.ts +2 -0
  491. package/lib/cjs/tile/TileTree.d.ts.map +1 -1
  492. package/lib/cjs/tile/TileTree.js +2 -0
  493. package/lib/cjs/tile/TileTree.js.map +1 -1
  494. package/lib/cjs/tile/TileTreeOwner.d.ts +1 -0
  495. package/lib/cjs/tile/TileTreeOwner.d.ts.map +1 -1
  496. package/lib/cjs/tile/TileTreeOwner.js.map +1 -1
  497. package/lib/cjs/tile/TileTreeParams.d.ts +1 -0
  498. package/lib/cjs/tile/TileTreeParams.d.ts.map +1 -1
  499. package/lib/cjs/tile/TileTreeParams.js.map +1 -1
  500. package/lib/cjs/tile/TileTreeReference.d.ts +2 -0
  501. package/lib/cjs/tile/TileTreeReference.d.ts.map +1 -1
  502. package/lib/cjs/tile/TileTreeReference.js +2 -0
  503. package/lib/cjs/tile/TileTreeReference.js.map +1 -1
  504. package/lib/cjs/tile/TileTreeSupplier.d.ts +1 -0
  505. package/lib/cjs/tile/TileTreeSupplier.d.ts.map +1 -1
  506. package/lib/cjs/tile/TileTreeSupplier.js.map +1 -1
  507. package/lib/cjs/tile/TileUsageMarker.d.ts +1 -0
  508. package/lib/cjs/tile/TileUsageMarker.d.ts.map +1 -1
  509. package/lib/cjs/tile/TileUsageMarker.js +1 -0
  510. package/lib/cjs/tile/TileUsageMarker.js.map +1 -1
  511. package/lib/cjs/tile/TiledGraphicsProvider.d.ts +1 -0
  512. package/lib/cjs/tile/TiledGraphicsProvider.d.ts.map +1 -1
  513. package/lib/cjs/tile/TiledGraphicsProvider.js.map +1 -1
  514. package/lib/cjs/tile/internal.d.ts +0 -2
  515. package/lib/cjs/tile/internal.d.ts.map +1 -1
  516. package/lib/cjs/tile/internal.js +0 -2
  517. package/lib/cjs/tile/internal.js.map +1 -1
  518. package/lib/cjs/tile/map/ArcGisUtilities.d.ts +2 -1
  519. package/lib/cjs/tile/map/ArcGisUtilities.d.ts.map +1 -1
  520. package/lib/cjs/tile/map/ArcGisUtilities.js +31 -20
  521. package/lib/cjs/tile/map/ArcGisUtilities.js.map +1 -1
  522. package/lib/cjs/tile/map/BingElevation.d.ts +1 -0
  523. package/lib/cjs/tile/map/BingElevation.d.ts.map +1 -1
  524. package/lib/cjs/tile/map/BingElevation.js +1 -0
  525. package/lib/cjs/tile/map/BingElevation.js.map +1 -1
  526. package/lib/cjs/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts +2 -1
  527. package/lib/cjs/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts.map +1 -1
  528. package/lib/cjs/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js +50 -27
  529. package/lib/cjs/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js.map +1 -1
  530. package/lib/cjs/tile/map/ImageryProviders/WmsMapLayerImageryProvider.d.ts +0 -1
  531. package/lib/cjs/tile/map/ImageryProviders/WmsMapLayerImageryProvider.d.ts.map +1 -1
  532. package/lib/cjs/tile/map/ImageryProviders/WmsMapLayerImageryProvider.js +12 -10
  533. package/lib/cjs/tile/map/ImageryProviders/WmsMapLayerImageryProvider.js.map +1 -1
  534. package/lib/cjs/tile/map/MapLayerAuthentication.d.ts +20 -9
  535. package/lib/cjs/tile/map/MapLayerAuthentication.d.ts.map +1 -1
  536. package/lib/cjs/tile/map/MapLayerAuthentication.js +0 -8
  537. package/lib/cjs/tile/map/MapLayerAuthentication.js.map +1 -1
  538. package/lib/cjs/tile/map/MapLayerFormatRegistry.d.ts +24 -6
  539. package/lib/cjs/tile/map/MapLayerFormatRegistry.d.ts.map +1 -1
  540. package/lib/cjs/tile/map/MapLayerFormatRegistry.js +28 -7
  541. package/lib/cjs/tile/map/MapLayerFormatRegistry.js.map +1 -1
  542. package/lib/cjs/tile/map/MapLayerImageryFormats.d.ts.map +1 -1
  543. package/lib/cjs/tile/map/MapLayerImageryFormats.js +1 -3
  544. package/lib/cjs/tile/map/MapLayerImageryFormats.js.map +1 -1
  545. package/lib/cjs/tile/map/MapLayerSources.d.ts +1 -1
  546. package/lib/cjs/tile/map/MapLayerSources.d.ts.map +1 -1
  547. package/lib/cjs/tile/map/MapLayerSources.js +1 -1
  548. package/lib/cjs/tile/map/MapLayerSources.js.map +1 -1
  549. package/lib/cjs/tile/map/MapTile.js +2 -2
  550. package/lib/cjs/tile/map/MapTile.js.map +1 -1
  551. package/lib/cjs/tile/map/MapTileLoader.js +1 -1
  552. package/lib/cjs/tile/map/MapTileLoader.js.map +1 -1
  553. package/lib/cjs/tile/map/MapTileTree.js +2 -2
  554. package/lib/cjs/tile/map/MapTileTree.js.map +1 -1
  555. package/lib/cjs/tile/map/WmsCapabilities.d.ts +3 -2
  556. package/lib/cjs/tile/map/WmsCapabilities.d.ts.map +1 -1
  557. package/lib/cjs/tile/map/WmsCapabilities.js +11 -10
  558. package/lib/cjs/tile/map/WmsCapabilities.js.map +1 -1
  559. package/lib/cjs/tools/ClipViewTool.d.ts +5 -3
  560. package/lib/cjs/tools/ClipViewTool.d.ts.map +1 -1
  561. package/lib/cjs/tools/ClipViewTool.js +4 -3
  562. package/lib/cjs/tools/ClipViewTool.js.map +1 -1
  563. package/lib/cjs/tools/EditManipulator.d.ts +1 -0
  564. package/lib/cjs/tools/EditManipulator.d.ts.map +1 -1
  565. package/lib/cjs/tools/EditManipulator.js +1 -0
  566. package/lib/cjs/tools/EditManipulator.js.map +1 -1
  567. package/lib/cjs/tools/EventController.d.ts +1 -0
  568. package/lib/cjs/tools/EventController.d.ts.map +1 -1
  569. package/lib/cjs/tools/EventController.js +1 -0
  570. package/lib/cjs/tools/EventController.js.map +1 -1
  571. package/lib/cjs/tools/PrimitiveTool.d.ts +4 -0
  572. package/lib/cjs/tools/PrimitiveTool.d.ts.map +1 -1
  573. package/lib/cjs/tools/PrimitiveTool.js +7 -0
  574. package/lib/cjs/tools/PrimitiveTool.js.map +1 -1
  575. package/lib/cjs/tools/SelectTool.d.ts +3 -0
  576. package/lib/cjs/tools/SelectTool.d.ts.map +1 -1
  577. package/lib/cjs/tools/SelectTool.js +3 -0
  578. package/lib/cjs/tools/SelectTool.js.map +1 -1
  579. package/lib/cjs/tools/Tool.d.ts +41 -6
  580. package/lib/cjs/tools/Tool.d.ts.map +1 -1
  581. package/lib/cjs/tools/Tool.js +27 -4
  582. package/lib/cjs/tools/Tool.js.map +1 -1
  583. package/lib/cjs/tools/ToolAdmin.d.ts +16 -22
  584. package/lib/cjs/tools/ToolAdmin.d.ts.map +1 -1
  585. package/lib/cjs/tools/ToolAdmin.js +47 -8
  586. package/lib/cjs/tools/ToolAdmin.js.map +1 -1
  587. package/lib/cjs/tools/ToolAssistance.d.ts +7 -0
  588. package/lib/cjs/tools/ToolAssistance.d.ts.map +1 -1
  589. package/lib/cjs/tools/ToolAssistance.js +3 -0
  590. package/lib/cjs/tools/ToolAssistance.js.map +1 -1
  591. package/lib/cjs/tools/ToolSettings.d.ts +3 -0
  592. package/lib/cjs/tools/ToolSettings.d.ts.map +1 -1
  593. package/lib/cjs/tools/ToolSettings.js +3 -0
  594. package/lib/cjs/tools/ToolSettings.js.map +1 -1
  595. package/lib/cjs/tools/ViewTool.d.ts +3 -1
  596. package/lib/cjs/tools/ViewTool.d.ts.map +1 -1
  597. package/lib/cjs/tools/ViewTool.js +9 -5
  598. package/lib/cjs/tools/ViewTool.js.map +1 -1
  599. package/lib/esm/AccuDraw.d.ts +2 -0
  600. package/lib/esm/AccuDraw.d.ts.map +1 -1
  601. package/lib/esm/AccuDraw.js +2 -0
  602. package/lib/esm/AccuDraw.js.map +1 -1
  603. package/lib/esm/AccuSnap.d.ts +1 -0
  604. package/lib/esm/AccuSnap.d.ts.map +1 -1
  605. package/lib/esm/AccuSnap.js +57 -49
  606. package/lib/esm/AccuSnap.js.map +1 -1
  607. package/lib/esm/ApproximateTerrainHeights.d.ts.map +1 -1
  608. package/lib/esm/ApproximateTerrainHeights.js +4 -2
  609. package/lib/esm/ApproximateTerrainHeights.js.map +1 -1
  610. package/lib/esm/ApproximateTerrainHeightsProps.d.ts +1 -1
  611. package/lib/esm/ApproximateTerrainHeightsProps.d.ts.map +1 -1
  612. package/lib/esm/ApproximateTerrainHeightsProps.js +1 -1
  613. package/lib/esm/ApproximateTerrainHeightsProps.js.map +1 -1
  614. package/lib/esm/AuxCoordSys.d.ts +12 -2
  615. package/lib/esm/AuxCoordSys.d.ts.map +1 -1
  616. package/lib/esm/AuxCoordSys.js +12 -2
  617. package/lib/esm/AuxCoordSys.js.map +1 -1
  618. package/lib/esm/BingLocation.d.ts +1 -0
  619. package/lib/esm/BingLocation.d.ts.map +1 -1
  620. package/lib/esm/BingLocation.js +1 -0
  621. package/lib/esm/BingLocation.js.map +1 -1
  622. package/lib/esm/BriefcaseConnection.d.ts +35 -1
  623. package/lib/esm/BriefcaseConnection.d.ts.map +1 -1
  624. package/lib/esm/BriefcaseConnection.js +50 -0
  625. package/lib/esm/BriefcaseConnection.js.map +1 -1
  626. package/lib/esm/CategorySelectorState.d.ts +1 -0
  627. package/lib/esm/CategorySelectorState.d.ts.map +1 -1
  628. package/lib/esm/CategorySelectorState.js +1 -0
  629. package/lib/esm/CategorySelectorState.js.map +1 -1
  630. package/lib/esm/ChangeFlags.d.ts +1 -0
  631. package/lib/esm/ChangeFlags.d.ts.map +1 -1
  632. package/lib/esm/ChangeFlags.js +1 -0
  633. package/lib/esm/ChangeFlags.js.map +1 -1
  634. package/lib/esm/ContextRealityModelState.d.ts +1 -0
  635. package/lib/esm/ContextRealityModelState.d.ts.map +1 -1
  636. package/lib/esm/ContextRealityModelState.js +1 -0
  637. package/lib/esm/ContextRealityModelState.js.map +1 -1
  638. package/lib/esm/CoordSystem.d.ts +1 -0
  639. package/lib/esm/CoordSystem.d.ts.map +1 -1
  640. package/lib/esm/CoordSystem.js +1 -0
  641. package/lib/esm/CoordSystem.js.map +1 -1
  642. package/lib/esm/DisplayStyleState.d.ts +4 -0
  643. package/lib/esm/DisplayStyleState.d.ts.map +1 -1
  644. package/lib/esm/DisplayStyleState.js +9 -4
  645. package/lib/esm/DisplayStyleState.js.map +1 -1
  646. package/lib/esm/DrawingViewState.d.ts +5 -2
  647. package/lib/esm/DrawingViewState.d.ts.map +1 -1
  648. package/lib/esm/DrawingViewState.js +34 -3
  649. package/lib/esm/DrawingViewState.js.map +1 -1
  650. package/lib/esm/ElementLocateManager.d.ts +23 -5
  651. package/lib/esm/ElementLocateManager.d.ts.map +1 -1
  652. package/lib/esm/ElementLocateManager.js +19 -4
  653. package/lib/esm/ElementLocateManager.js.map +1 -1
  654. package/lib/esm/EmphasizeElements.d.ts +1 -0
  655. package/lib/esm/EmphasizeElements.d.ts.map +1 -1
  656. package/lib/esm/EmphasizeElements.js +1 -0
  657. package/lib/esm/EmphasizeElements.js.map +1 -1
  658. package/lib/esm/EntityState.d.ts +2 -0
  659. package/lib/esm/EntityState.d.ts.map +1 -1
  660. package/lib/esm/EntityState.js +2 -0
  661. package/lib/esm/EntityState.js.map +1 -1
  662. package/lib/esm/FeatureOverrideProvider.d.ts +1 -0
  663. package/lib/esm/FeatureOverrideProvider.d.ts.map +1 -1
  664. package/lib/esm/FeatureOverrideProvider.js.map +1 -1
  665. package/lib/esm/FlashSettings.d.ts +3 -0
  666. package/lib/esm/FlashSettings.d.ts.map +1 -1
  667. package/lib/esm/FlashSettings.js +2 -0
  668. package/lib/esm/FlashSettings.js.map +1 -1
  669. package/lib/esm/FrontendHubAccess.d.ts +4 -1
  670. package/lib/esm/FrontendHubAccess.d.ts.map +1 -1
  671. package/lib/esm/FrontendHubAccess.js.map +1 -1
  672. package/lib/esm/FrontendLoggerCategory.d.ts +6 -1
  673. package/lib/esm/FrontendLoggerCategory.d.ts.map +1 -1
  674. package/lib/esm/FrontendLoggerCategory.js +5 -0
  675. package/lib/esm/FrontendLoggerCategory.js.map +1 -1
  676. package/lib/esm/FrustumAnimator.d.ts +2 -0
  677. package/lib/esm/FrustumAnimator.d.ts.map +1 -1
  678. package/lib/esm/FrustumAnimator.js +2 -0
  679. package/lib/esm/FrustumAnimator.js.map +1 -1
  680. package/lib/esm/FuzzySearch.d.ts +1 -0
  681. package/lib/esm/FuzzySearch.d.ts.map +1 -1
  682. package/lib/esm/FuzzySearch.js.map +1 -1
  683. package/lib/esm/GlobeAnimator.d.ts +1 -0
  684. package/lib/esm/GlobeAnimator.d.ts.map +1 -1
  685. package/lib/esm/GlobeAnimator.js +1 -0
  686. package/lib/esm/GlobeAnimator.js.map +1 -1
  687. package/lib/esm/HitDetail.d.ts +26 -5
  688. package/lib/esm/HitDetail.d.ts.map +1 -1
  689. package/lib/esm/HitDetail.js +26 -5
  690. package/lib/esm/HitDetail.js.map +1 -1
  691. package/lib/esm/IModelApp.d.ts +9 -0
  692. package/lib/esm/IModelApp.d.ts.map +1 -1
  693. package/lib/esm/IModelApp.js +39 -24
  694. package/lib/esm/IModelApp.js.map +1 -1
  695. package/lib/esm/IModelConnection.d.ts +11 -2
  696. package/lib/esm/IModelConnection.d.ts.map +1 -1
  697. package/lib/esm/IModelConnection.js +23 -2
  698. package/lib/esm/IModelConnection.js.map +1 -1
  699. package/lib/esm/ImageUtil.d.ts +15 -2
  700. package/lib/esm/ImageUtil.d.ts.map +1 -1
  701. package/lib/esm/ImageUtil.js +19 -4
  702. package/lib/esm/ImageUtil.js.map +1 -1
  703. package/lib/esm/IpcApp.d.ts +1 -0
  704. package/lib/esm/IpcApp.d.ts.map +1 -1
  705. package/lib/esm/IpcApp.js +1 -0
  706. package/lib/esm/IpcApp.js.map +1 -1
  707. package/lib/esm/MarginPercent.d.ts +1 -0
  708. package/lib/esm/MarginPercent.d.ts.map +1 -1
  709. package/lib/esm/MarginPercent.js +1 -0
  710. package/lib/esm/MarginPercent.js.map +1 -1
  711. package/lib/esm/Marker.d.ts +16 -3
  712. package/lib/esm/Marker.d.ts.map +1 -1
  713. package/lib/esm/Marker.js +3 -0
  714. package/lib/esm/Marker.js.map +1 -1
  715. package/lib/esm/ModelSelectorState.d.ts +1 -0
  716. package/lib/esm/ModelSelectorState.d.ts.map +1 -1
  717. package/lib/esm/ModelSelectorState.js +1 -0
  718. package/lib/esm/ModelSelectorState.js.map +1 -1
  719. package/lib/esm/ModelState.d.ts +10 -0
  720. package/lib/esm/ModelState.d.ts.map +1 -1
  721. package/lib/esm/ModelState.js +10 -0
  722. package/lib/esm/ModelState.js.map +1 -1
  723. package/lib/esm/NotificationManager.d.ts +11 -0
  724. package/lib/esm/NotificationManager.d.ts.map +1 -1
  725. package/lib/esm/NotificationManager.js +10 -0
  726. package/lib/esm/NotificationManager.js.map +1 -1
  727. package/lib/esm/PerModelCategoryVisibility.d.ts +1 -0
  728. package/lib/esm/PerModelCategoryVisibility.d.ts.map +1 -1
  729. package/lib/esm/PerModelCategoryVisibility.js +1 -0
  730. package/lib/esm/PerModelCategoryVisibility.js.map +1 -1
  731. package/lib/esm/SelectionSet.d.ts +7 -0
  732. package/lib/esm/SelectionSet.d.ts.map +1 -1
  733. package/lib/esm/SelectionSet.js +3 -0
  734. package/lib/esm/SelectionSet.js.map +1 -1
  735. package/lib/esm/SheetViewState.d.ts +6 -5
  736. package/lib/esm/SheetViewState.d.ts.map +1 -1
  737. package/lib/esm/SheetViewState.js +59 -7
  738. package/lib/esm/SheetViewState.js.map +1 -1
  739. package/lib/esm/SpatialViewState.d.ts +7 -2
  740. package/lib/esm/SpatialViewState.d.ts.map +1 -1
  741. package/lib/esm/SpatialViewState.js +18 -4
  742. package/lib/esm/SpatialViewState.js.map +1 -1
  743. package/lib/esm/Sprites.d.ts +3 -0
  744. package/lib/esm/Sprites.d.ts.map +1 -1
  745. package/lib/esm/Sprites.js +3 -0
  746. package/lib/esm/Sprites.js.map +1 -1
  747. package/lib/esm/StandardView.d.ts +1 -0
  748. package/lib/esm/StandardView.d.ts.map +1 -1
  749. package/lib/esm/StandardView.js +1 -0
  750. package/lib/esm/StandardView.js.map +1 -1
  751. package/lib/esm/SubCategoriesCache.d.ts +14 -7
  752. package/lib/esm/SubCategoriesCache.d.ts.map +1 -1
  753. package/lib/esm/SubCategoriesCache.js +37 -9
  754. package/lib/esm/SubCategoriesCache.js.map +1 -1
  755. package/lib/esm/TentativePoint.d.ts +4 -1
  756. package/lib/esm/TentativePoint.d.ts.map +1 -1
  757. package/lib/esm/TentativePoint.js +4 -1
  758. package/lib/esm/TentativePoint.js.map +1 -1
  759. package/lib/esm/Tiles.d.ts +1 -0
  760. package/lib/esm/Tiles.d.ts.map +1 -1
  761. package/lib/esm/Tiles.js +1 -0
  762. package/lib/esm/Tiles.js.map +1 -1
  763. package/lib/esm/ViewAnimation.d.ts +6 -0
  764. package/lib/esm/ViewAnimation.d.ts.map +1 -1
  765. package/lib/esm/ViewAnimation.js.map +1 -1
  766. package/lib/esm/ViewCreator2d.d.ts +2 -0
  767. package/lib/esm/ViewCreator2d.d.ts.map +1 -1
  768. package/lib/esm/ViewCreator2d.js +1 -0
  769. package/lib/esm/ViewCreator2d.js.map +1 -1
  770. package/lib/esm/ViewCreator3d.d.ts +2 -8
  771. package/lib/esm/ViewCreator3d.d.ts.map +1 -1
  772. package/lib/esm/ViewCreator3d.js +12 -38
  773. package/lib/esm/ViewCreator3d.js.map +1 -1
  774. package/lib/esm/ViewGlobalLocation.d.ts +3 -0
  775. package/lib/esm/ViewGlobalLocation.d.ts.map +1 -1
  776. package/lib/esm/ViewGlobalLocation.js +1 -0
  777. package/lib/esm/ViewGlobalLocation.js.map +1 -1
  778. package/lib/esm/ViewManager.d.ts +3 -0
  779. package/lib/esm/ViewManager.d.ts.map +1 -1
  780. package/lib/esm/ViewManager.js +2 -0
  781. package/lib/esm/ViewManager.js.map +1 -1
  782. package/lib/esm/ViewPose.d.ts +1 -0
  783. package/lib/esm/ViewPose.d.ts.map +1 -1
  784. package/lib/esm/ViewPose.js +1 -0
  785. package/lib/esm/ViewPose.js.map +1 -1
  786. package/lib/esm/ViewRect.d.ts +1 -0
  787. package/lib/esm/ViewRect.d.ts.map +1 -1
  788. package/lib/esm/ViewRect.js +1 -0
  789. package/lib/esm/ViewRect.js.map +1 -1
  790. package/lib/esm/ViewState.d.ts +17 -2
  791. package/lib/esm/ViewState.d.ts.map +1 -1
  792. package/lib/esm/ViewState.js +41 -10
  793. package/lib/esm/ViewState.js.map +1 -1
  794. package/lib/esm/ViewStatus.d.ts +1 -0
  795. package/lib/esm/ViewStatus.d.ts.map +1 -1
  796. package/lib/esm/ViewStatus.js +1 -0
  797. package/lib/esm/ViewStatus.js.map +1 -1
  798. package/lib/esm/ViewingSpace.d.ts +1 -0
  799. package/lib/esm/ViewingSpace.d.ts.map +1 -1
  800. package/lib/esm/ViewingSpace.js +1 -0
  801. package/lib/esm/ViewingSpace.js.map +1 -1
  802. package/lib/esm/Viewport.d.ts +6 -2
  803. package/lib/esm/Viewport.d.ts.map +1 -1
  804. package/lib/esm/Viewport.js +12 -4
  805. package/lib/esm/Viewport.js.map +1 -1
  806. package/lib/esm/ViewportSync.d.ts +119 -0
  807. package/lib/esm/ViewportSync.d.ts.map +1 -0
  808. package/lib/esm/ViewportSync.js +177 -0
  809. package/lib/esm/ViewportSync.js.map +1 -0
  810. package/lib/esm/core-frontend.d.ts +10 -6
  811. package/lib/esm/core-frontend.d.ts.map +1 -1
  812. package/lib/esm/core-frontend.js +11 -6
  813. package/lib/esm/core-frontend.js.map +1 -1
  814. package/lib/esm/extension/Extension.d.ts +24 -15
  815. package/lib/esm/extension/Extension.d.ts.map +1 -1
  816. package/lib/esm/extension/Extension.js +1 -7
  817. package/lib/esm/extension/Extension.js.map +1 -1
  818. package/lib/esm/extension/ExtensionAdmin.d.ts +21 -44
  819. package/lib/esm/extension/ExtensionAdmin.d.ts.map +1 -1
  820. package/lib/esm/extension/ExtensionAdmin.js +55 -64
  821. package/lib/esm/extension/ExtensionAdmin.js.map +1 -1
  822. package/lib/esm/extension/ExtensionRuntime.js +246 -59
  823. package/lib/esm/extension/ExtensionRuntime.js.map +1 -1
  824. package/lib/esm/extension/providers/ExtensionLoadScript.d.ts +12 -0
  825. package/lib/esm/extension/providers/ExtensionLoadScript.d.ts.map +1 -0
  826. package/lib/esm/extension/providers/ExtensionLoadScript.js +34 -0
  827. package/lib/esm/extension/providers/ExtensionLoadScript.js.map +1 -0
  828. package/lib/esm/extension/providers/ExtensionServiceClient.d.ts +52 -0
  829. package/lib/esm/extension/providers/ExtensionServiceClient.d.ts.map +1 -0
  830. package/lib/esm/extension/providers/ExtensionServiceClient.js +127 -0
  831. package/lib/esm/extension/providers/ExtensionServiceClient.js.map +1 -0
  832. package/lib/esm/extension/providers/LocalExtensionProvider.d.ts +26 -0
  833. package/lib/esm/extension/providers/LocalExtensionProvider.d.ts.map +1 -0
  834. package/lib/esm/extension/providers/LocalExtensionProvider.js +20 -0
  835. package/lib/esm/extension/providers/LocalExtensionProvider.js.map +1 -0
  836. package/lib/esm/extension/providers/RemoteExtensionProvider.d.ts +36 -0
  837. package/lib/esm/extension/providers/RemoteExtensionProvider.d.ts.map +1 -0
  838. package/lib/esm/extension/providers/RemoteExtensionProvider.js +49 -0
  839. package/lib/esm/extension/providers/RemoteExtensionProvider.js.map +1 -0
  840. package/lib/esm/extension/providers/ServiceExtensionProvider.d.ts +40 -0
  841. package/lib/esm/extension/providers/ServiceExtensionProvider.d.ts.map +1 -0
  842. package/lib/esm/extension/providers/ServiceExtensionProvider.js +80 -0
  843. package/lib/esm/extension/providers/ServiceExtensionProvider.js.map +1 -0
  844. package/lib/esm/quantity-formatting/QuantityFormatter.d.ts.map +1 -1
  845. package/lib/esm/quantity-formatting/QuantityFormatter.js +3 -2
  846. package/lib/esm/quantity-formatting/QuantityFormatter.js.map +1 -1
  847. package/lib/esm/render/CanvasDecoration.d.ts +2 -0
  848. package/lib/esm/render/CanvasDecoration.d.ts.map +1 -1
  849. package/lib/esm/render/CanvasDecoration.js.map +1 -1
  850. package/lib/esm/render/Decorations.d.ts +1 -0
  851. package/lib/esm/render/Decorations.d.ts.map +1 -1
  852. package/lib/esm/render/Decorations.js +1 -0
  853. package/lib/esm/render/Decorations.js.map +1 -1
  854. package/lib/esm/render/FeatureSymbology.d.ts +1 -0
  855. package/lib/esm/render/FeatureSymbology.d.ts.map +1 -1
  856. package/lib/esm/render/FeatureSymbology.js +1 -0
  857. package/lib/esm/render/FeatureSymbology.js.map +1 -1
  858. package/lib/esm/render/GraphicBranch.d.ts +2 -0
  859. package/lib/esm/render/GraphicBranch.d.ts.map +1 -1
  860. package/lib/esm/render/GraphicBranch.js +1 -0
  861. package/lib/esm/render/GraphicBranch.js.map +1 -1
  862. package/lib/esm/render/GraphicBuilder.d.ts +33 -2
  863. package/lib/esm/render/GraphicBuilder.d.ts.map +1 -1
  864. package/lib/esm/render/GraphicBuilder.js +27 -1
  865. package/lib/esm/render/GraphicBuilder.js.map +1 -1
  866. package/lib/esm/render/GraphicPrimitive.d.ts +14 -0
  867. package/lib/esm/render/GraphicPrimitive.d.ts.map +1 -1
  868. package/lib/esm/render/GraphicPrimitive.js.map +1 -1
  869. package/lib/esm/render/ParticleCollectionBuilder.d.ts +3 -0
  870. package/lib/esm/render/ParticleCollectionBuilder.d.ts.map +1 -1
  871. package/lib/esm/render/ParticleCollectionBuilder.js.map +1 -1
  872. package/lib/esm/render/Pixel.d.ts +1 -0
  873. package/lib/esm/render/Pixel.d.ts.map +1 -1
  874. package/lib/esm/render/Pixel.js +1 -0
  875. package/lib/esm/render/Pixel.js.map +1 -1
  876. package/lib/esm/render/RenderClipVolume.d.ts +1 -0
  877. package/lib/esm/render/RenderClipVolume.d.ts.map +1 -1
  878. package/lib/esm/render/RenderClipVolume.js +1 -0
  879. package/lib/esm/render/RenderClipVolume.js.map +1 -1
  880. package/lib/esm/render/RenderGraphic.d.ts +3 -0
  881. package/lib/esm/render/RenderGraphic.d.ts.map +1 -1
  882. package/lib/esm/render/RenderGraphic.js +2 -0
  883. package/lib/esm/render/RenderGraphic.js.map +1 -1
  884. package/lib/esm/render/RenderSystem.d.ts +9 -3
  885. package/lib/esm/render/RenderSystem.d.ts.map +1 -1
  886. package/lib/esm/render/RenderSystem.js +4 -3
  887. package/lib/esm/render/RenderSystem.js.map +1 -1
  888. package/lib/esm/render/RenderTexture.d.ts +7 -0
  889. package/lib/esm/render/RenderTexture.d.ts.map +1 -1
  890. package/lib/esm/render/RenderTexture.js.map +1 -1
  891. package/lib/esm/render/Scene.d.ts +1 -0
  892. package/lib/esm/render/Scene.d.ts.map +1 -1
  893. package/lib/esm/render/Scene.js +1 -0
  894. package/lib/esm/render/Scene.js.map +1 -1
  895. package/lib/esm/render/ScreenSpaceEffectBuilder.d.ts +10 -0
  896. package/lib/esm/render/ScreenSpaceEffectBuilder.d.ts.map +1 -1
  897. package/lib/esm/render/ScreenSpaceEffectBuilder.js +2 -0
  898. package/lib/esm/render/ScreenSpaceEffectBuilder.js.map +1 -1
  899. package/lib/esm/render/primitives/VertexKey.d.ts +4 -2
  900. package/lib/esm/render/primitives/VertexKey.d.ts.map +1 -1
  901. package/lib/esm/render/primitives/VertexKey.js +24 -13
  902. package/lib/esm/render/primitives/VertexKey.js.map +1 -1
  903. package/lib/esm/render/primitives/VertexTable.d.ts +1 -1
  904. package/lib/esm/render/primitives/VertexTable.js +30 -2
  905. package/lib/esm/render/primitives/VertexTable.js.map +1 -1
  906. package/lib/esm/render/primitives/geometry/GeometryAccumulator.d.ts +12 -4
  907. package/lib/esm/render/primitives/geometry/GeometryAccumulator.d.ts.map +1 -1
  908. package/lib/esm/render/primitives/geometry/GeometryAccumulator.js +20 -15
  909. package/lib/esm/render/primitives/geometry/GeometryAccumulator.js.map +1 -1
  910. package/lib/esm/render/primitives/geometry/GeometryListBuilder.d.ts +2 -1
  911. package/lib/esm/render/primitives/geometry/GeometryListBuilder.d.ts.map +1 -1
  912. package/lib/esm/render/primitives/geometry/GeometryListBuilder.js +10 -3
  913. package/lib/esm/render/primitives/geometry/GeometryListBuilder.js.map +1 -1
  914. package/lib/esm/render/primitives/geometry/GeometryPrimitives.d.ts +14 -12
  915. package/lib/esm/render/primitives/geometry/GeometryPrimitives.d.ts.map +1 -1
  916. package/lib/esm/render/primitives/geometry/GeometryPrimitives.js +26 -25
  917. package/lib/esm/render/primitives/geometry/GeometryPrimitives.js.map +1 -1
  918. package/lib/esm/render/primitives/mesh/MeshBuilder.d.ts +8 -8
  919. package/lib/esm/render/primitives/mesh/MeshBuilder.d.ts.map +1 -1
  920. package/lib/esm/render/primitives/mesh/MeshBuilder.js +15 -15
  921. package/lib/esm/render/primitives/mesh/MeshBuilder.js.map +1 -1
  922. package/lib/esm/render/primitives/mesh/MeshBuilderMap.d.ts +11 -6
  923. package/lib/esm/render/primitives/mesh/MeshBuilderMap.d.ts.map +1 -1
  924. package/lib/esm/render/primitives/mesh/MeshBuilderMap.js +13 -16
  925. package/lib/esm/render/primitives/mesh/MeshBuilderMap.js.map +1 -1
  926. package/lib/esm/render/primitives/mesh/MeshPrimitives.d.ts +1 -1
  927. package/lib/esm/render/primitives/mesh/MeshPrimitives.d.ts.map +1 -1
  928. package/lib/esm/render/primitives/mesh/MeshPrimitives.js +6 -2
  929. package/lib/esm/render/primitives/mesh/MeshPrimitives.js.map +1 -1
  930. package/lib/esm/render/webgl/AttributeMap.js +1 -1
  931. package/lib/esm/render/webgl/CachedGeometry.d.ts +7 -1
  932. package/lib/esm/render/webgl/CachedGeometry.d.ts.map +1 -1
  933. package/lib/esm/render/webgl/CachedGeometry.js +19 -9
  934. package/lib/esm/render/webgl/CachedGeometry.js.map +1 -1
  935. package/lib/esm/render/webgl/DrawCommand.d.ts.map +1 -1
  936. package/lib/esm/render/webgl/DrawCommand.js +2 -1
  937. package/lib/esm/render/webgl/DrawCommand.js.map +1 -1
  938. package/lib/esm/render/webgl/InstancedGeometry.d.ts +1 -0
  939. package/lib/esm/render/webgl/InstancedGeometry.d.ts.map +1 -1
  940. package/lib/esm/render/webgl/InstancedGeometry.js +1 -0
  941. package/lib/esm/render/webgl/InstancedGeometry.js.map +1 -1
  942. package/lib/esm/render/webgl/RealityMesh.d.ts +14 -11
  943. package/lib/esm/render/webgl/RealityMesh.d.ts.map +1 -1
  944. package/lib/esm/render/webgl/RealityMesh.js +27 -18
  945. package/lib/esm/render/webgl/RealityMesh.js.map +1 -1
  946. package/lib/esm/render/webgl/SceneCompositor.d.ts +2 -0
  947. package/lib/esm/render/webgl/SceneCompositor.d.ts.map +1 -1
  948. package/lib/esm/render/webgl/SceneCompositor.js +220 -53
  949. package/lib/esm/render/webgl/SceneCompositor.js.map +1 -1
  950. package/lib/esm/render/webgl/ShaderBuilder.d.ts +5 -4
  951. package/lib/esm/render/webgl/ShaderBuilder.d.ts.map +1 -1
  952. package/lib/esm/render/webgl/ShaderBuilder.js +7 -6
  953. package/lib/esm/render/webgl/ShaderBuilder.js.map +1 -1
  954. package/lib/esm/render/webgl/ShaderProgram.js +1 -1
  955. package/lib/esm/render/webgl/ShaderProgram.js.map +1 -1
  956. package/lib/esm/render/webgl/System.d.ts +4 -4
  957. package/lib/esm/render/webgl/System.d.ts.map +1 -1
  958. package/lib/esm/render/webgl/System.js +6 -6
  959. package/lib/esm/render/webgl/System.js.map +1 -1
  960. package/lib/esm/render/webgl/Target.d.ts +6 -1
  961. package/lib/esm/render/webgl/Target.d.ts.map +1 -1
  962. package/lib/esm/render/webgl/Target.js +64 -13
  963. package/lib/esm/render/webgl/Target.js.map +1 -1
  964. package/lib/esm/render/webgl/Technique.d.ts +4 -2
  965. package/lib/esm/render/webgl/Technique.d.ts.map +1 -1
  966. package/lib/esm/render/webgl/Technique.js +166 -135
  967. package/lib/esm/render/webgl/Technique.js.map +1 -1
  968. package/lib/esm/render/webgl/TechniqueFlags.d.ts +7 -3
  969. package/lib/esm/render/webgl/TechniqueFlags.d.ts.map +1 -1
  970. package/lib/esm/render/webgl/TechniqueFlags.js +17 -4
  971. package/lib/esm/render/webgl/TechniqueFlags.js.map +1 -1
  972. package/lib/esm/render/webgl/TechniqueId.d.ts +8 -7
  973. package/lib/esm/render/webgl/TechniqueId.d.ts.map +1 -1
  974. package/lib/esm/render/webgl/TechniqueId.js.map +1 -1
  975. package/lib/esm/render/webgl/UniformHandle.d.ts +2 -1
  976. package/lib/esm/render/webgl/UniformHandle.d.ts.map +1 -1
  977. package/lib/esm/render/webgl/UniformHandle.js +15 -3
  978. package/lib/esm/render/webgl/UniformHandle.js.map +1 -1
  979. package/lib/esm/render/webgl/glsl/Animation.d.ts.map +1 -1
  980. package/lib/esm/render/webgl/glsl/Animation.js +2 -0
  981. package/lib/esm/render/webgl/glsl/Animation.js.map +1 -1
  982. package/lib/esm/render/webgl/glsl/Blur.d.ts +2 -1
  983. package/lib/esm/render/webgl/glsl/Blur.d.ts.map +1 -1
  984. package/lib/esm/render/webgl/glsl/Blur.js +38 -6
  985. package/lib/esm/render/webgl/glsl/Blur.js.map +1 -1
  986. package/lib/esm/render/webgl/glsl/Color.d.ts.map +1 -1
  987. package/lib/esm/render/webgl/glsl/Color.js +8 -7
  988. package/lib/esm/render/webgl/glsl/Color.js.map +1 -1
  989. package/lib/esm/render/webgl/glsl/CopyStencil.js +1 -1
  990. package/lib/esm/render/webgl/glsl/Decode.d.ts +2 -1
  991. package/lib/esm/render/webgl/glsl/Decode.d.ts.map +1 -1
  992. package/lib/esm/render/webgl/glsl/Decode.js +15 -1
  993. package/lib/esm/render/webgl/glsl/Decode.js.map +1 -1
  994. package/lib/esm/render/webgl/glsl/Edge.d.ts +2 -2
  995. package/lib/esm/render/webgl/glsl/Edge.d.ts.map +1 -1
  996. package/lib/esm/render/webgl/glsl/Edge.js +7 -20
  997. package/lib/esm/render/webgl/glsl/Edge.js.map +1 -1
  998. package/lib/esm/render/webgl/glsl/FeatureSymbology.d.ts.map +1 -1
  999. package/lib/esm/render/webgl/glsl/FeatureSymbology.js +1 -3
  1000. package/lib/esm/render/webgl/glsl/FeatureSymbology.js.map +1 -1
  1001. package/lib/esm/render/webgl/glsl/PointString.d.ts +3 -3
  1002. package/lib/esm/render/webgl/glsl/PointString.d.ts.map +1 -1
  1003. package/lib/esm/render/webgl/glsl/PointString.js +6 -6
  1004. package/lib/esm/render/webgl/glsl/PointString.js.map +1 -1
  1005. package/lib/esm/render/webgl/glsl/Polyline.d.ts +3 -3
  1006. package/lib/esm/render/webgl/glsl/Polyline.d.ts.map +1 -1
  1007. package/lib/esm/render/webgl/glsl/Polyline.js +7 -22
  1008. package/lib/esm/render/webgl/glsl/Polyline.js.map +1 -1
  1009. package/lib/esm/render/webgl/glsl/RealityMesh.d.ts.map +1 -1
  1010. package/lib/esm/render/webgl/glsl/RealityMesh.js +5 -2
  1011. package/lib/esm/render/webgl/glsl/RealityMesh.js.map +1 -1
  1012. package/lib/esm/render/webgl/glsl/Surface.d.ts +2 -2
  1013. package/lib/esm/render/webgl/glsl/Surface.d.ts.map +1 -1
  1014. package/lib/esm/render/webgl/glsl/Surface.js +51 -35
  1015. package/lib/esm/render/webgl/glsl/Surface.js.map +1 -1
  1016. package/lib/esm/render/webgl/glsl/Vertex.d.ts +3 -3
  1017. package/lib/esm/render/webgl/glsl/Vertex.d.ts.map +1 -1
  1018. package/lib/esm/render/webgl/glsl/Vertex.js +142 -56
  1019. package/lib/esm/render/webgl/glsl/Vertex.js.map +1 -1
  1020. package/lib/esm/tile/ClassifierTileTree.d.ts.map +1 -1
  1021. package/lib/esm/tile/ClassifierTileTree.js +3 -4
  1022. package/lib/esm/tile/ClassifierTileTree.js.map +1 -1
  1023. package/lib/esm/tile/DisclosedTileTreeSet.d.ts +2 -0
  1024. package/lib/esm/tile/DisclosedTileTreeSet.d.ts.map +1 -1
  1025. package/lib/esm/tile/DisclosedTileTreeSet.js +1 -0
  1026. package/lib/esm/tile/DisclosedTileTreeSet.js.map +1 -1
  1027. package/lib/esm/tile/DynamicIModelTile.js +4 -2
  1028. package/lib/esm/tile/DynamicIModelTile.js.map +1 -1
  1029. package/lib/esm/tile/GltfReader.d.ts +19 -9
  1030. package/lib/esm/tile/GltfReader.d.ts.map +1 -1
  1031. package/lib/esm/tile/GltfReader.js +23 -6
  1032. package/lib/esm/tile/GltfReader.js.map +1 -1
  1033. package/lib/esm/tile/IModelTile.js +1 -1
  1034. package/lib/esm/tile/IModelTile.js.map +1 -1
  1035. package/lib/esm/tile/IModelTileRequestChannels.d.ts +3 -3
  1036. package/lib/esm/tile/IModelTileRequestChannels.d.ts.map +1 -1
  1037. package/lib/esm/tile/IModelTileRequestChannels.js +7 -11
  1038. package/lib/esm/tile/IModelTileRequestChannels.js.map +1 -1
  1039. package/lib/esm/tile/IModelTileTree.d.ts +3 -3
  1040. package/lib/esm/tile/IModelTileTree.d.ts.map +1 -1
  1041. package/lib/esm/tile/IModelTileTree.js +1 -1
  1042. package/lib/esm/tile/IModelTileTree.js.map +1 -1
  1043. package/lib/esm/tile/ImdlReader.d.ts +2 -0
  1044. package/lib/esm/tile/ImdlReader.d.ts.map +1 -1
  1045. package/lib/esm/tile/ImdlReader.js +2 -0
  1046. package/lib/esm/tile/ImdlReader.js.map +1 -1
  1047. package/lib/esm/tile/OPCFormatInterpreter.d.ts.map +1 -1
  1048. package/lib/esm/tile/OPCFormatInterpreter.js +2 -3
  1049. package/lib/esm/tile/OPCFormatInterpreter.js.map +1 -1
  1050. package/lib/esm/tile/PrimaryTileTree.d.ts.map +1 -1
  1051. package/lib/esm/tile/PrimaryTileTree.js +5 -5
  1052. package/lib/esm/tile/PrimaryTileTree.js.map +1 -1
  1053. package/lib/esm/tile/RealityTileLoader.d.ts +1 -1
  1054. package/lib/esm/tile/RealityTileLoader.d.ts.map +1 -1
  1055. package/lib/esm/tile/RealityTileLoader.js +36 -8
  1056. package/lib/esm/tile/RealityTileLoader.js.map +1 -1
  1057. package/lib/esm/tile/Tile.d.ts +5 -0
  1058. package/lib/esm/tile/Tile.d.ts.map +1 -1
  1059. package/lib/esm/tile/Tile.js +5 -0
  1060. package/lib/esm/tile/Tile.js.map +1 -1
  1061. package/lib/esm/tile/TileAdmin.d.ts +18 -1
  1062. package/lib/esm/tile/TileAdmin.d.ts.map +1 -1
  1063. package/lib/esm/tile/TileAdmin.js +29 -20
  1064. package/lib/esm/tile/TileAdmin.js.map +1 -1
  1065. package/lib/esm/tile/TileContent.d.ts +1 -0
  1066. package/lib/esm/tile/TileContent.d.ts.map +1 -1
  1067. package/lib/esm/tile/TileContent.js.map +1 -1
  1068. package/lib/esm/tile/TileDrawArgs.d.ts +2 -0
  1069. package/lib/esm/tile/TileDrawArgs.d.ts.map +1 -1
  1070. package/lib/esm/tile/TileDrawArgs.js +1 -0
  1071. package/lib/esm/tile/TileDrawArgs.js.map +1 -1
  1072. package/lib/esm/tile/TileParams.d.ts +1 -0
  1073. package/lib/esm/tile/TileParams.d.ts.map +1 -1
  1074. package/lib/esm/tile/TileParams.js.map +1 -1
  1075. package/lib/esm/tile/TileRequest.d.ts +1 -0
  1076. package/lib/esm/tile/TileRequest.d.ts.map +1 -1
  1077. package/lib/esm/tile/TileRequest.js +1 -0
  1078. package/lib/esm/tile/TileRequest.js.map +1 -1
  1079. package/lib/esm/tile/TileRequestChannel.d.ts +2 -0
  1080. package/lib/esm/tile/TileRequestChannel.d.ts.map +1 -1
  1081. package/lib/esm/tile/TileRequestChannel.js +2 -0
  1082. package/lib/esm/tile/TileRequestChannel.js.map +1 -1
  1083. package/lib/esm/tile/TileRequestChannels.d.ts +1 -4
  1084. package/lib/esm/tile/TileRequestChannels.d.ts.map +1 -1
  1085. package/lib/esm/tile/TileRequestChannels.js +2 -6
  1086. package/lib/esm/tile/TileRequestChannels.js.map +1 -1
  1087. package/lib/esm/tile/TileTree.d.ts +2 -0
  1088. package/lib/esm/tile/TileTree.d.ts.map +1 -1
  1089. package/lib/esm/tile/TileTree.js +2 -0
  1090. package/lib/esm/tile/TileTree.js.map +1 -1
  1091. package/lib/esm/tile/TileTreeOwner.d.ts +1 -0
  1092. package/lib/esm/tile/TileTreeOwner.d.ts.map +1 -1
  1093. package/lib/esm/tile/TileTreeOwner.js.map +1 -1
  1094. package/lib/esm/tile/TileTreeParams.d.ts +1 -0
  1095. package/lib/esm/tile/TileTreeParams.d.ts.map +1 -1
  1096. package/lib/esm/tile/TileTreeParams.js.map +1 -1
  1097. package/lib/esm/tile/TileTreeReference.d.ts +2 -0
  1098. package/lib/esm/tile/TileTreeReference.d.ts.map +1 -1
  1099. package/lib/esm/tile/TileTreeReference.js +2 -0
  1100. package/lib/esm/tile/TileTreeReference.js.map +1 -1
  1101. package/lib/esm/tile/TileTreeSupplier.d.ts +1 -0
  1102. package/lib/esm/tile/TileTreeSupplier.d.ts.map +1 -1
  1103. package/lib/esm/tile/TileTreeSupplier.js.map +1 -1
  1104. package/lib/esm/tile/TileUsageMarker.d.ts +1 -0
  1105. package/lib/esm/tile/TileUsageMarker.d.ts.map +1 -1
  1106. package/lib/esm/tile/TileUsageMarker.js +1 -0
  1107. package/lib/esm/tile/TileUsageMarker.js.map +1 -1
  1108. package/lib/esm/tile/TiledGraphicsProvider.d.ts +1 -0
  1109. package/lib/esm/tile/TiledGraphicsProvider.d.ts.map +1 -1
  1110. package/lib/esm/tile/TiledGraphicsProvider.js.map +1 -1
  1111. package/lib/esm/tile/internal.d.ts +0 -2
  1112. package/lib/esm/tile/internal.d.ts.map +1 -1
  1113. package/lib/esm/tile/internal.js +0 -2
  1114. package/lib/esm/tile/internal.js.map +1 -1
  1115. package/lib/esm/tile/map/ArcGisUtilities.d.ts +2 -1
  1116. package/lib/esm/tile/map/ArcGisUtilities.d.ts.map +1 -1
  1117. package/lib/esm/tile/map/ArcGisUtilities.js +32 -21
  1118. package/lib/esm/tile/map/ArcGisUtilities.js.map +1 -1
  1119. package/lib/esm/tile/map/BingElevation.d.ts +1 -0
  1120. package/lib/esm/tile/map/BingElevation.d.ts.map +1 -1
  1121. package/lib/esm/tile/map/BingElevation.js +1 -0
  1122. package/lib/esm/tile/map/BingElevation.js.map +1 -1
  1123. package/lib/esm/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts +2 -1
  1124. package/lib/esm/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.d.ts.map +1 -1
  1125. package/lib/esm/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js +51 -28
  1126. package/lib/esm/tile/map/ImageryProviders/ArcGISMapLayerImageryProvider.js.map +1 -1
  1127. package/lib/esm/tile/map/ImageryProviders/WmsMapLayerImageryProvider.d.ts +0 -1
  1128. package/lib/esm/tile/map/ImageryProviders/WmsMapLayerImageryProvider.d.ts.map +1 -1
  1129. package/lib/esm/tile/map/ImageryProviders/WmsMapLayerImageryProvider.js +12 -10
  1130. package/lib/esm/tile/map/ImageryProviders/WmsMapLayerImageryProvider.js.map +1 -1
  1131. package/lib/esm/tile/map/MapLayerAuthentication.d.ts +20 -9
  1132. package/lib/esm/tile/map/MapLayerAuthentication.d.ts.map +1 -1
  1133. package/lib/esm/tile/map/MapLayerAuthentication.js +1 -7
  1134. package/lib/esm/tile/map/MapLayerAuthentication.js.map +1 -1
  1135. package/lib/esm/tile/map/MapLayerFormatRegistry.d.ts +24 -6
  1136. package/lib/esm/tile/map/MapLayerFormatRegistry.d.ts.map +1 -1
  1137. package/lib/esm/tile/map/MapLayerFormatRegistry.js +28 -7
  1138. package/lib/esm/tile/map/MapLayerFormatRegistry.js.map +1 -1
  1139. package/lib/esm/tile/map/MapLayerImageryFormats.d.ts.map +1 -1
  1140. package/lib/esm/tile/map/MapLayerImageryFormats.js +2 -4
  1141. package/lib/esm/tile/map/MapLayerImageryFormats.js.map +1 -1
  1142. package/lib/esm/tile/map/MapLayerSources.d.ts +1 -1
  1143. package/lib/esm/tile/map/MapLayerSources.d.ts.map +1 -1
  1144. package/lib/esm/tile/map/MapLayerSources.js +1 -1
  1145. package/lib/esm/tile/map/MapLayerSources.js.map +1 -1
  1146. package/lib/esm/tile/map/MapTile.js +2 -2
  1147. package/lib/esm/tile/map/MapTile.js.map +1 -1
  1148. package/lib/esm/tile/map/MapTileLoader.js +1 -1
  1149. package/lib/esm/tile/map/MapTileLoader.js.map +1 -1
  1150. package/lib/esm/tile/map/MapTileTree.js +2 -2
  1151. package/lib/esm/tile/map/MapTileTree.js.map +1 -1
  1152. package/lib/esm/tile/map/WmsCapabilities.d.ts +3 -2
  1153. package/lib/esm/tile/map/WmsCapabilities.d.ts.map +1 -1
  1154. package/lib/esm/tile/map/WmsCapabilities.js +11 -10
  1155. package/lib/esm/tile/map/WmsCapabilities.js.map +1 -1
  1156. package/lib/esm/tools/ClipViewTool.d.ts +5 -3
  1157. package/lib/esm/tools/ClipViewTool.d.ts.map +1 -1
  1158. package/lib/esm/tools/ClipViewTool.js +4 -3
  1159. package/lib/esm/tools/ClipViewTool.js.map +1 -1
  1160. package/lib/esm/tools/EditManipulator.d.ts +1 -0
  1161. package/lib/esm/tools/EditManipulator.d.ts.map +1 -1
  1162. package/lib/esm/tools/EditManipulator.js +1 -0
  1163. package/lib/esm/tools/EditManipulator.js.map +1 -1
  1164. package/lib/esm/tools/EventController.d.ts +1 -0
  1165. package/lib/esm/tools/EventController.d.ts.map +1 -1
  1166. package/lib/esm/tools/EventController.js +1 -0
  1167. package/lib/esm/tools/EventController.js.map +1 -1
  1168. package/lib/esm/tools/PrimitiveTool.d.ts +4 -0
  1169. package/lib/esm/tools/PrimitiveTool.d.ts.map +1 -1
  1170. package/lib/esm/tools/PrimitiveTool.js +7 -0
  1171. package/lib/esm/tools/PrimitiveTool.js.map +1 -1
  1172. package/lib/esm/tools/SelectTool.d.ts +3 -0
  1173. package/lib/esm/tools/SelectTool.d.ts.map +1 -1
  1174. package/lib/esm/tools/SelectTool.js +3 -0
  1175. package/lib/esm/tools/SelectTool.js.map +1 -1
  1176. package/lib/esm/tools/Tool.d.ts +41 -6
  1177. package/lib/esm/tools/Tool.d.ts.map +1 -1
  1178. package/lib/esm/tools/Tool.js +27 -4
  1179. package/lib/esm/tools/Tool.js.map +1 -1
  1180. package/lib/esm/tools/ToolAdmin.d.ts +16 -22
  1181. package/lib/esm/tools/ToolAdmin.d.ts.map +1 -1
  1182. package/lib/esm/tools/ToolAdmin.js +48 -9
  1183. package/lib/esm/tools/ToolAdmin.js.map +1 -1
  1184. package/lib/esm/tools/ToolAssistance.d.ts +7 -0
  1185. package/lib/esm/tools/ToolAssistance.d.ts.map +1 -1
  1186. package/lib/esm/tools/ToolAssistance.js +3 -0
  1187. package/lib/esm/tools/ToolAssistance.js.map +1 -1
  1188. package/lib/esm/tools/ToolSettings.d.ts +3 -0
  1189. package/lib/esm/tools/ToolSettings.d.ts.map +1 -1
  1190. package/lib/esm/tools/ToolSettings.js +3 -0
  1191. package/lib/esm/tools/ToolSettings.js.map +1 -1
  1192. package/lib/esm/tools/ViewTool.d.ts +3 -1
  1193. package/lib/esm/tools/ViewTool.d.ts.map +1 -1
  1194. package/lib/esm/tools/ViewTool.js +9 -5
  1195. package/lib/esm/tools/ViewTool.js.map +1 -1
  1196. package/package.json +34 -25
  1197. package/lib/cjs/TwoWayViewportSync.d.ts +0 -51
  1198. package/lib/cjs/TwoWayViewportSync.d.ts.map +0 -1
  1199. package/lib/cjs/TwoWayViewportSync.js +0 -87
  1200. package/lib/cjs/TwoWayViewportSync.js.map +0 -1
  1201. package/lib/cjs/extension/ExtensionLoader.d.ts +0 -26
  1202. package/lib/cjs/extension/ExtensionLoader.d.ts.map +0 -1
  1203. package/lib/cjs/extension/ExtensionLoader.js +0 -10
  1204. package/lib/cjs/extension/ExtensionLoader.js.map +0 -1
  1205. package/lib/cjs/extension/extensions.d.ts +0 -19
  1206. package/lib/cjs/extension/extensions.d.ts.map +0 -1
  1207. package/lib/cjs/extension/extensions.js +0 -36
  1208. package/lib/cjs/extension/extensions.js.map +0 -1
  1209. package/lib/cjs/tile/map/ArcGisTokenGenerator.d.ts +0 -35
  1210. package/lib/cjs/tile/map/ArcGisTokenGenerator.d.ts.map +0 -1
  1211. package/lib/cjs/tile/map/ArcGisTokenGenerator.js +0 -116
  1212. package/lib/cjs/tile/map/ArcGisTokenGenerator.js.map +0 -1
  1213. package/lib/cjs/tile/map/ArcGisTokenManager.d.ts +0 -13
  1214. package/lib/cjs/tile/map/ArcGisTokenManager.d.ts.map +0 -1
  1215. package/lib/cjs/tile/map/ArcGisTokenManager.js +0 -39
  1216. package/lib/cjs/tile/map/ArcGisTokenManager.js.map +0 -1
  1217. package/lib/esm/TwoWayViewportSync.d.ts +0 -51
  1218. package/lib/esm/TwoWayViewportSync.d.ts.map +0 -1
  1219. package/lib/esm/TwoWayViewportSync.js +0 -82
  1220. package/lib/esm/TwoWayViewportSync.js.map +0 -1
  1221. package/lib/esm/extension/ExtensionLoader.d.ts +0 -26
  1222. package/lib/esm/extension/ExtensionLoader.d.ts.map +0 -1
  1223. package/lib/esm/extension/ExtensionLoader.js +0 -9
  1224. package/lib/esm/extension/ExtensionLoader.js.map +0 -1
  1225. package/lib/esm/extension/extensions.d.ts +0 -19
  1226. package/lib/esm/extension/extensions.d.ts.map +0 -1
  1227. package/lib/esm/extension/extensions.js +0 -24
  1228. package/lib/esm/extension/extensions.js.map +0 -1
  1229. package/lib/esm/tile/map/ArcGisTokenGenerator.d.ts +0 -35
  1230. package/lib/esm/tile/map/ArcGisTokenGenerator.d.ts.map +0 -1
  1231. package/lib/esm/tile/map/ArcGisTokenGenerator.js +0 -112
  1232. package/lib/esm/tile/map/ArcGisTokenGenerator.js.map +0 -1
  1233. package/lib/esm/tile/map/ArcGisTokenManager.d.ts +0 -13
  1234. package/lib/esm/tile/map/ArcGisTokenManager.d.ts.map +0 -1
  1235. package/lib/esm/tile/map/ArcGisTokenManager.js +0 -35
  1236. package/lib/esm/tile/map/ArcGisTokenManager.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Decorations.js","sourceRoot":"","sources":["../../../src/render/Decorations.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,YAAY,EAAe,MAAM,qBAAqB,CAAC;AAIzE;;GAEG;AACH,MAAM,OAAO,WAAW;IAUtB,uHAAuH;IACvH,IAAW,MAAM,KAAgC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,IAAW,MAAM,CAAC,MAAiC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;IACtG,kGAAkG;IAClG,IAAW,cAAc,KAAgC,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IACvF,IAAW,cAAc,CAAC,cAAyC,IAAI,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC,CAAC,CAAC;IAC9I,uFAAuF;IACvF,IAAW,MAAM,KAA8B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,IAAW,MAAM,CAAC,MAA+B,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;IACzG,wIAAwI;IACxI,IAAW,KAAK,KAA8B,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,IAAW,KAAK,CAAC,KAA8B,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;IACpG,yFAAyF;IACzF,IAAW,YAAY,KAA8B,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IACjF,IAAW,YAAY,CAAC,YAAqC,IAAI,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,CAAC,CAAC;IACvI,uFAAuF;IACvF,IAAW,WAAW,KAA8B,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/E,IAAW,WAAW,CAAC,WAAoC,IAAI,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC;IAE3H,OAAO;QACZ,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IAC1B,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { dispose, disposeArray, IDisposable } from \"@itwin/core-bentley\";\r\nimport { CanvasDecorationList } from \"./CanvasDecoration\";\r\nimport { GraphicList, RenderGraphic } from \"./RenderGraphic\";\r\n\r\n/** A set of [[RenderGraphic]]s and [[CanvasDecoration]]s produced by [[Tool]]s and [[Decorator]]s, used to decorate the contents of a [[Viewport]].\r\n * @public\r\n */\r\nexport class Decorations implements IDisposable {\r\n private _skyBox?: RenderGraphic;\r\n private _viewBackground?: RenderGraphic; // drawn first, view units, with no zbuffer, smooth shading, default lighting. e.g., a skybox\r\n private _normal?: GraphicList; // drawn with zbuffer, with scene lighting\r\n private _world?: GraphicList; // drawn with zbuffer, with default lighting, smooth shading\r\n private _worldOverlay?: GraphicList; // drawn in overlay mode, world units\r\n private _viewOverlay?: GraphicList; // drawn in overlay mode, view units\r\n\r\n public canvasDecorations?: CanvasDecorationList;\r\n\r\n /** A view decoration created from a [[SkyBox]] rendered behind all other geometry to provide environmental context. */\r\n public get skyBox(): RenderGraphic | undefined { return this._skyBox; }\r\n public set skyBox(skyBox: RenderGraphic | undefined) { dispose(this._skyBox); this._skyBox = skyBox; }\r\n /** A view decoration drawn as the background of the view. @see [[GraphicType.ViewBackground]]. */\r\n public get viewBackground(): RenderGraphic | undefined { return this._viewBackground; }\r\n public set viewBackground(viewBackground: RenderGraphic | undefined) { dispose(this._viewBackground); this._viewBackground = viewBackground; }\r\n /** Decorations drawn as if they were part of the scene. @see [[GraphicType.Scene]]. */\r\n public get normal(): GraphicList | undefined { return this._normal; }\r\n public set normal(normal: GraphicList | undefined) { disposeArray(this._normal); this._normal = normal; }\r\n /** Decorations drawn as if they were part of the world, but ignoring the view's [[ViewFlags]]. @see [[GraphicType.WorldDecoration]]. */\r\n public get world(): GraphicList | undefined { return this._world; }\r\n public set world(world: GraphicList | undefined) { disposeArray(this._world); this._world = world; }\r\n /** Overlay decorations drawn in world coordinates. @see [[GraphicType.WorldOverlay]]. */\r\n public get worldOverlay(): GraphicList | undefined { return this._worldOverlay; }\r\n public set worldOverlay(worldOverlay: GraphicList | undefined) { disposeArray(this._worldOverlay); this._worldOverlay = worldOverlay; }\r\n /** Overlay decorations drawn in view coordinates. @see [[GraphicType.ViewOverlay]]. */\r\n public get viewOverlay(): GraphicList | undefined { return this._viewOverlay; }\r\n public set viewOverlay(viewOverlay: GraphicList | undefined) { disposeArray(this._viewOverlay); this._viewOverlay = viewOverlay; }\r\n\r\n public dispose() {\r\n this.skyBox = undefined;\r\n this.viewBackground = undefined;\r\n this.world = undefined;\r\n this.worldOverlay = undefined;\r\n this.viewOverlay = undefined;\r\n this.normal = undefined;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Decorations.js","sourceRoot":"","sources":["../../../src/render/Decorations.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,YAAY,EAAe,MAAM,qBAAqB,CAAC;AAIzE;;;GAGG;AACH,MAAM,OAAO,WAAW;IAUtB,uHAAuH;IACvH,IAAW,MAAM,KAAgC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,IAAW,MAAM,CAAC,MAAiC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;IACtG,kGAAkG;IAClG,IAAW,cAAc,KAAgC,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IACvF,IAAW,cAAc,CAAC,cAAyC,IAAI,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC,CAAC,CAAC;IAC9I,uFAAuF;IACvF,IAAW,MAAM,KAA8B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,IAAW,MAAM,CAAC,MAA+B,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;IACzG,wIAAwI;IACxI,IAAW,KAAK,KAA8B,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,IAAW,KAAK,CAAC,KAA8B,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;IACpG,yFAAyF;IACzF,IAAW,YAAY,KAA8B,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IACjF,IAAW,YAAY,CAAC,YAAqC,IAAI,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,CAAC,CAAC;IACvI,uFAAuF;IACvF,IAAW,WAAW,KAA8B,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/E,IAAW,WAAW,CAAC,WAAoC,IAAI,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC;IAE3H,OAAO;QACZ,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IAC1B,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { dispose, disposeArray, IDisposable } from \"@itwin/core-bentley\";\r\nimport { CanvasDecorationList } from \"./CanvasDecoration\";\r\nimport { GraphicList, RenderGraphic } from \"./RenderGraphic\";\r\n\r\n/** A set of [[RenderGraphic]]s and [[CanvasDecoration]]s produced by [[Tool]]s and [[Decorator]]s, used to decorate the contents of a [[Viewport]].\r\n * @public\r\n * @extensions\r\n */\r\nexport class Decorations implements IDisposable {\r\n private _skyBox?: RenderGraphic;\r\n private _viewBackground?: RenderGraphic; // drawn first, view units, with no zbuffer, smooth shading, default lighting. e.g., a skybox\r\n private _normal?: GraphicList; // drawn with zbuffer, with scene lighting\r\n private _world?: GraphicList; // drawn with zbuffer, with default lighting, smooth shading\r\n private _worldOverlay?: GraphicList; // drawn in overlay mode, world units\r\n private _viewOverlay?: GraphicList; // drawn in overlay mode, view units\r\n\r\n public canvasDecorations?: CanvasDecorationList;\r\n\r\n /** A view decoration created from a [[SkyBox]] rendered behind all other geometry to provide environmental context. */\r\n public get skyBox(): RenderGraphic | undefined { return this._skyBox; }\r\n public set skyBox(skyBox: RenderGraphic | undefined) { dispose(this._skyBox); this._skyBox = skyBox; }\r\n /** A view decoration drawn as the background of the view. @see [[GraphicType.ViewBackground]]. */\r\n public get viewBackground(): RenderGraphic | undefined { return this._viewBackground; }\r\n public set viewBackground(viewBackground: RenderGraphic | undefined) { dispose(this._viewBackground); this._viewBackground = viewBackground; }\r\n /** Decorations drawn as if they were part of the scene. @see [[GraphicType.Scene]]. */\r\n public get normal(): GraphicList | undefined { return this._normal; }\r\n public set normal(normal: GraphicList | undefined) { disposeArray(this._normal); this._normal = normal; }\r\n /** Decorations drawn as if they were part of the world, but ignoring the view's [[ViewFlags]]. @see [[GraphicType.WorldDecoration]]. */\r\n public get world(): GraphicList | undefined { return this._world; }\r\n public set world(world: GraphicList | undefined) { disposeArray(this._world); this._world = world; }\r\n /** Overlay decorations drawn in world coordinates. @see [[GraphicType.WorldOverlay]]. */\r\n public get worldOverlay(): GraphicList | undefined { return this._worldOverlay; }\r\n public set worldOverlay(worldOverlay: GraphicList | undefined) { disposeArray(this._worldOverlay); this._worldOverlay = worldOverlay; }\r\n /** Overlay decorations drawn in view coordinates. @see [[GraphicType.ViewOverlay]]. */\r\n public get viewOverlay(): GraphicList | undefined { return this._viewOverlay; }\r\n public set viewOverlay(viewOverlay: GraphicList | undefined) { disposeArray(this._viewOverlay); this._viewOverlay = viewOverlay; }\r\n\r\n public dispose() {\r\n this.skyBox = undefined;\r\n this.viewBackground = undefined;\r\n this.world = undefined;\r\n this.worldOverlay = undefined;\r\n this.viewOverlay = undefined;\r\n this.normal = undefined;\r\n }\r\n}\r\n"]}
@@ -7,6 +7,7 @@ import { Viewport } from "../Viewport";
7
7
  import { ViewState } from "../ViewState";
8
8
  /** Contains types that enable an application to customize how [Feature]($common)s are drawn within a [[Viewport]].
9
9
  * @public
10
+ * @extensions
10
11
  */
11
12
  export declare namespace FeatureSymbology {
12
13
  /** An object that serves as the source of a [[FeatureSymbology.Overrides]].
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureSymbology.d.ts","sourceRoot":"","sources":["../../../src/render/FeatureSymbology.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAqB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC;;GAEG;AACH,yBAAiB,gBAAgB,CAAC;IAChC;;;;;;;;OAQG;IACH,UAAiB,MAAM;QACrB;;;WAGG;QACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;KAChD;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAa,SAAU,SAAQ,gBAAgB;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAS;QAEzB,aAAa;QACb,IAAW,MAAM,IAAI,MAAM,GAAG,SAAS,CAEtC;QAED;;WAEG;oBACgB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ;QAU9C;;WAEG;eACW,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS;QAMhF;;WAEG;QACI,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;QAK1C;;WAEG;QACI,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;QAiBjD,OAAO,CAAC,aAAa;QAyDrB,OAAO,CAAC,yBAAyB;KA6BlC;CACF"}
1
+ {"version":3,"file":"FeatureSymbology.d.ts","sourceRoot":"","sources":["../../../src/render/FeatureSymbology.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAqB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC;;;;;;;;OAQG;IACH,UAAiB,MAAM;QACrB;;;WAGG;QACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;KAChD;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAa,SAAU,SAAQ,gBAAgB;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAS;QAEzB,aAAa;QACb,IAAW,MAAM,IAAI,MAAM,GAAG,SAAS,CAEtC;QAED;;WAEG;oBACgB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ;QAU9C;;WAEG;eACW,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS;QAMhF;;WAEG;QACI,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;QAK1C;;WAEG;QACI,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;QAiBjD,OAAO,CAAC,aAAa;QAyDrB,OAAO,CAAC,yBAAyB;KA6BlC;CACF"}
@@ -11,6 +11,7 @@ import { Viewport } from "../Viewport";
11
11
  // cspell:ignore subcat subcats
12
12
  /** Contains types that enable an application to customize how [Feature]($common)s are drawn within a [[Viewport]].
13
13
  * @public
14
+ * @extensions
14
15
  */
15
16
  export var FeatureSymbology;
16
17
  (function (Fe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IAAY,EAAE,IAAY,EAAE,EAAE;gBAChE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAC1B,CAAC,CAAC,CAAC;YAEH,kFAAkF;YAClF,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC,UAAkB,EAAE,UAAkB,EAAE,OAAuB,EAAE,EAAE;gBAC1G,OAAO,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,IAAY,EAAE,EAAE;oBAC7C,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;wBAC1C,sFAAsF;wBACtF,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;qBACzB;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;KACF;IAhJY,0BAAS,YAgJrB,CAAA;AACH,CAAC,EA1LgB,gBAAgB,KAAhB,gBAAgB,QA0LhC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { BeEvent, Id64 } from \"@itwin/core-bentley\";\r\nimport { FeatureAppearance, FeatureOverrides } from \"@itwin/core-common\";\r\nimport { Viewport } from \"../Viewport\";\r\nimport { ViewState } from \"../ViewState\";\r\n\r\n// cspell:ignore subcat subcats\r\n\r\n/** Contains types that enable an application to customize how [Feature]($common)s are drawn within a [[Viewport]].\r\n * @public\r\n */\r\nexport namespace FeatureSymbology {\r\n /** An object that serves as the source of a [[FeatureSymbology.Overrides]].\r\n * Use this if you are drawing the same tiles into a single Viewport and overriding the FeatureSymbology.Overrides applied to them\r\n * by settings [[GraphicBranch.symbologyOverrides]].\r\n * Each tile will have a separate set of feature overrides per combination of Source and Viewport. This prevents the display system\r\n * from constantly recomputing the feature overrides for a tile.\r\n * You must call `onSourceDisposed.raiseEvent()` when the source is no longer being used by the Viewport to allow the feature overrides\r\n * and their WebGL resources to be freed - failure to do so will result in memory leaks, which may eventually produce WebGL context loss.\r\n * @alpha\r\n */\r\n export interface Source {\r\n /** An event raised when this source becomes disassociated with the viewport, indicating any WebGL resources allocated for it\r\n * can be freed.\r\n * Failure to invoke this event appropriately will result in memory leaks, which may eventually produce WebGL context loss.\r\n */\r\n readonly onSourceDisposed: BeEvent<() => void>;\r\n }\r\n\r\n /** Allows a [[Viewport]] to customize the appearance of individual [Feature]($common)s within it.\r\n *\r\n * The Viewport computes its base Overrides based on the following:\r\n * - The set of categories enabled for display in its [[CategorySelectorState]]. Every [[SubCategory]] belonging to an enabled [[Category]] is added to the set of visible subcategories - all other subcategories are assumed to be invisible.\r\n * - For the set of visible subcategories, any [[SubCategoryOverride]]s defined by the view's [[DisplayStyleState]] are applied. This may render some subcategories invisible, and change the symbology of others.\r\n * - The visibility of each [GeometryClass]($common) is set based on the view's [ViewFlags]($common).\r\n * - The line weight is overridden to 1 pixel for all Features if line weight has been disabled by the view's [ViewFlags]($common).\r\n * - The sets of elements which are always drawn and never drawn are initialized from the [[Viewport]]'s sets.\r\n * An application can further customize the symbology of any Features by registering a [[FeatureOverrideProvider]] with a [[Viewport]]. That provider's addFeatureOverrides function will be invoked\r\n * whenever the Overrides need to be regenerated.\r\n *\r\n * To override the symbology of *most* Features within a view, specify a `defaultOverrides` to be applied to any Feature not explicitly overridden.\r\n * If default overrides are defined and some Features should draw normally without being affected by the default overrides, override that Feature with\r\n * an Appearance which defines no overrides.\r\n *\r\n * It is possible to override multiple aspects of a Feature. For example, you might specify that all elements belonging to subcategory \"A\" should be drawn in red, and\r\n * that the element with Id \"0x123\" should be drawn with 0.25 transparency. In this case, when drawing a Feature with subcategory \"A\" and element Id \"0x123\", the two overrides will\r\n * be merged, causing the Feature's geometry to draw 25% transparent red. On the other hand, if subcategory \"A\" is specified to draw in red and element \"0x123\" to draw in green,\r\n * the color specified by the element override will take precedence over that specified for the subcategory, resulting in a green Feature.\r\n *\r\n * @see [[Viewport.alwaysDrawn]]\r\n * @see [[Viewport.neverDrawn]]\r\n */\r\n export class Overrides extends FeatureOverrides {\r\n private _source?: Source;\r\n\r\n /** @alpha */\r\n public get source(): Source | undefined {\r\n return this._source;\r\n }\r\n\r\n /** Construct a new Overrides. The result is an empty set of overrides if no view or viewport is supplied.\r\n * @param view If supplied, the overrides will be initialized based on the current state of the view or viewport.\r\n */\r\n public constructor(view?: ViewState | Viewport) {\r\n super();\r\n if (undefined !== view) {\r\n if (view instanceof Viewport)\r\n this.initFromViewport(view);\r\n else\r\n this.initFromView(view);\r\n }\r\n }\r\n\r\n /** Create symbology overrides associated with a [[FeatureSymbology.Source]].\r\n * @alpha\r\n */\r\n public static withSource(source: Source, view?: ViewState | Viewport): Overrides {\r\n const ovrs = new Overrides(view);\r\n ovrs._source = source;\r\n return ovrs;\r\n }\r\n\r\n /** Initialize these Overrides based on a specific view.\r\n * @internal\r\n */\r\n public initFromView(view: ViewState): void {\r\n this._initFromView(view);\r\n this._initSubCategoryOverrides(view);\r\n }\r\n\r\n /** Initialize these Overrides based on a specific viewport.\r\n * @internal\r\n */\r\n public initFromViewport(viewport: Viewport): void {\r\n const view = viewport.view;\r\n this._initFromView(view);\r\n\r\n if (undefined !== viewport.neverDrawn)\r\n this.setNeverDrawnSet(viewport.neverDrawn);\r\n\r\n if (undefined !== viewport.alwaysDrawn)\r\n this.setAlwaysDrawnSet(viewport.alwaysDrawn, viewport.isAlwaysDrawnExclusive);\r\n\r\n viewport.addFeatureOverrides(this);\r\n viewport.addModelSubCategoryVisibilityOverrides(this, this._modelSubCategoryOverrides);\r\n\r\n // This will include any per-model subcategory visibility overrides added above.\r\n this._initSubCategoryOverrides(view);\r\n }\r\n\r\n private _initFromView(view: ViewState): void {\r\n const { viewFlags } = view;\r\n const { constructions, dimensions, patterns } = viewFlags;\r\n\r\n this.neverDrawnAnimationNodes.clear();\r\n this.animationNodeOverrides.clear();\r\n\r\n for (const excluded of view.displayStyle.settings.excludedElementIds)\r\n this.setNeverDrawn(excluded);\r\n\r\n this._constructions = constructions;\r\n this._dimensions = dimensions;\r\n this._patterns = patterns;\r\n this._lineWeights = viewFlags.weights;\r\n\r\n for (const categoryId of view.categorySelector.categories) {\r\n const subCategoryIds = view.iModel.subcategories.getSubCategories(categoryId);\r\n if (undefined === subCategoryIds)\r\n continue;\r\n\r\n for (const subCategoryId of subCategoryIds) {\r\n if (view.isSubCategoryVisible(subCategoryId)) {\r\n const idLo = Id64.getLowerUint32(subCategoryId);\r\n const idHi = Id64.getUpperUint32(subCategoryId);\r\n this._visibleSubCategories.add(idLo, idHi);\r\n\r\n const app = view.iModel.subcategories.getSubCategoryAppearance(subCategoryId);\r\n if (undefined !== app)\r\n this._subCategoryPriorities.set(idLo, idHi, app.priority);\r\n }\r\n }\r\n }\r\n const style = view.displayStyle;\r\n style.settings.modelAppearanceOverrides.forEach((appearance, modelId) => this.override({ modelId, appearance, onConflict: \"skip\" }));\r\n\r\n style.forEachRealityModel((realityModel) => {\r\n if (realityModel.appearanceOverrides && realityModel.modelId)\r\n this.override({ modelId: realityModel.modelId, appearance: realityModel.appearanceOverrides });\r\n });\r\n\r\n const script = style.scheduleState;\r\n if (script)\r\n script.getSymbologyOverrides(this, style.settings.timePoint ?? 0);\r\n\r\n if (!view.is3d())\r\n return;\r\n\r\n const planProjectionSettings = view.getDisplayStyle3d().settings.planProjectionSettings;\r\n if (undefined === planProjectionSettings)\r\n return;\r\n\r\n for (const [modelId, projSettings] of planProjectionSettings) {\r\n if (undefined !== projSettings.transparency)\r\n this.override({ modelId, appearance: FeatureAppearance.fromJSON({ transparency: projSettings.transparency }) });\r\n }\r\n }\r\n\r\n private _initSubCategoryOverrides(view: ViewState): void {\r\n const addOverride = (idLo: number, idHi: number) => {\r\n const subCategoryId = Id64.fromUint32Pair(idLo, idHi);\r\n const ovr = view.getSubCategoryOverride(subCategoryId);\r\n if (undefined !== ovr) {\r\n const app = FeatureAppearance.fromSubCategoryOverride(ovr);\r\n if (app.overridesSymbology)\r\n this._subCategoryOverrides.set(idLo, idHi, app);\r\n\r\n if (undefined !== ovr.priority)\r\n this._subCategoryPriorities.set(idLo, idHi, ovr.priority);\r\n }\r\n };\r\n\r\n // Add overrides for all subcategories visible in the view\r\n this._visibleSubCategories.forEach((idLo: number, idHi: number) => {\r\n addOverride(idLo, idHi);\r\n });\r\n\r\n // Add overrides for all subcategories overridden to be visible in specific models\r\n this._modelSubCategoryOverrides.forEach((_modelIdLo: number, _modelIdHi: number, subcats: Id64.Uint32Set) => {\r\n subcats.forEach((idLo: number, idHi: number) => {\r\n if (!this.isSubCategoryVisible(idLo, idHi)) {\r\n // Overridden to be visible in one or more models - will need the appearance overrides\r\n addOverride(idLo, idHi);\r\n }\r\n });\r\n });\r\n }\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"FeatureSymbology.js","sourceRoot":"","sources":["../../../src/render/FeatureSymbology.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAW,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,+BAA+B;AAE/B;;;GAGG;AACH,MAAM,KAAW,gBAAgB,CA0LhC;AA1LD,WAAiB,gBAAgB;IAkB/B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAa,SAAU,SAAQ,gBAAgB;QAQ7C;;WAEG;QACH,YAAmB,IAA2B;YAC5C,KAAK,EAAE,CAAC;YACR,IAAI,SAAS,KAAK,IAAI,EAAE;gBACtB,IAAI,IAAI,YAAY,QAAQ;oBAC1B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;;oBAE5B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;aAC3B;QACH,CAAC;QAhBD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,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC;gBACvD,IAAI,SAAS,KAAK,GAAG,EAAE;oBACrB,MAAM,GAAG,GAAG,iBAAiB,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;oBAC3D,IAAI,GAAG,CAAC,kBAAkB;wBACxB,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;oBAElD,IAAI,SAAS,KAAK,GAAG,CAAC,QAAQ;wBAC5B,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;iBAC7D;YACH,CAAC,CAAC;YAEF,0DAA0D;YAC1D,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,IAAY,EAAE,EAAE;gBAChE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAC1B,CAAC,CAAC,CAAC;YAEH,kFAAkF;YAClF,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC,UAAkB,EAAE,UAAkB,EAAE,OAAuB,EAAE,EAAE;gBAC1G,OAAO,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,IAAY,EAAE,EAAE;oBAC7C,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;wBAC1C,sFAAsF;wBACtF,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;qBACzB;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;KACF;IAhJY,0BAAS,YAgJrB,CAAA;AACH,CAAC,EA1LgB,gBAAgB,KAAhB,gBAAgB,QA0LhC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { BeEvent, Id64 } from \"@itwin/core-bentley\";\r\nimport { FeatureAppearance, FeatureOverrides } from \"@itwin/core-common\";\r\nimport { Viewport } from \"../Viewport\";\r\nimport { ViewState } from \"../ViewState\";\r\n\r\n// cspell:ignore subcat subcats\r\n\r\n/** Contains types that enable an application to customize how [Feature]($common)s are drawn within a [[Viewport]].\r\n * @public\r\n * @extensions\r\n */\r\nexport namespace FeatureSymbology {\r\n /** An object that serves as the source of a [[FeatureSymbology.Overrides]].\r\n * Use this if you are drawing the same tiles into a single Viewport and overriding the FeatureSymbology.Overrides applied to them\r\n * by settings [[GraphicBranch.symbologyOverrides]].\r\n * Each tile will have a separate set of feature overrides per combination of Source and Viewport. This prevents the display system\r\n * from constantly recomputing the feature overrides for a tile.\r\n * You must call `onSourceDisposed.raiseEvent()` when the source is no longer being used by the Viewport to allow the feature overrides\r\n * and their WebGL resources to be freed - failure to do so will result in memory leaks, which may eventually produce WebGL context loss.\r\n * @alpha\r\n */\r\n export interface Source {\r\n /** An event raised when this source becomes disassociated with the viewport, indicating any WebGL resources allocated for it\r\n * can be freed.\r\n * Failure to invoke this event appropriately will result in memory leaks, which may eventually produce WebGL context loss.\r\n */\r\n readonly onSourceDisposed: BeEvent<() => void>;\r\n }\r\n\r\n /** Allows a [[Viewport]] to customize the appearance of individual [Feature]($common)s within it.\r\n *\r\n * The Viewport computes its base Overrides based on the following:\r\n * - The set of categories enabled for display in its [[CategorySelectorState]]. Every [[SubCategory]] belonging to an enabled [[Category]] is added to the set of visible subcategories - all other subcategories are assumed to be invisible.\r\n * - For the set of visible subcategories, any [[SubCategoryOverride]]s defined by the view's [[DisplayStyleState]] are applied. This may render some subcategories invisible, and change the symbology of others.\r\n * - The visibility of each [GeometryClass]($common) is set based on the view's [ViewFlags]($common).\r\n * - The line weight is overridden to 1 pixel for all Features if line weight has been disabled by the view's [ViewFlags]($common).\r\n * - The sets of elements which are always drawn and never drawn are initialized from the [[Viewport]]'s sets.\r\n * An application can further customize the symbology of any Features by registering a [[FeatureOverrideProvider]] with a [[Viewport]]. That provider's addFeatureOverrides function will be invoked\r\n * whenever the Overrides need to be regenerated.\r\n *\r\n * To override the symbology of *most* Features within a view, specify a `defaultOverrides` to be applied to any Feature not explicitly overridden.\r\n * If default overrides are defined and some Features should draw normally without being affected by the default overrides, override that Feature with\r\n * an Appearance which defines no overrides.\r\n *\r\n * It is possible to override multiple aspects of a Feature. For example, you might specify that all elements belonging to subcategory \"A\" should be drawn in red, and\r\n * that the element with Id \"0x123\" should be drawn with 0.25 transparency. In this case, when drawing a Feature with subcategory \"A\" and element Id \"0x123\", the two overrides will\r\n * be merged, causing the Feature's geometry to draw 25% transparent red. On the other hand, if subcategory \"A\" is specified to draw in red and element \"0x123\" to draw in green,\r\n * the color specified by the element override will take precedence over that specified for the subcategory, resulting in a green Feature.\r\n *\r\n * @see [[Viewport.alwaysDrawn]]\r\n * @see [[Viewport.neverDrawn]]\r\n */\r\n export class Overrides extends FeatureOverrides {\r\n private _source?: Source;\r\n\r\n /** @alpha */\r\n public get source(): Source | undefined {\r\n return this._source;\r\n }\r\n\r\n /** Construct a new Overrides. The result is an empty set of overrides if no view or viewport is supplied.\r\n * @param view If supplied, the overrides will be initialized based on the current state of the view or viewport.\r\n */\r\n public constructor(view?: ViewState | Viewport) {\r\n super();\r\n if (undefined !== view) {\r\n if (view instanceof Viewport)\r\n this.initFromViewport(view);\r\n else\r\n this.initFromView(view);\r\n }\r\n }\r\n\r\n /** Create symbology overrides associated with a [[FeatureSymbology.Source]].\r\n * @alpha\r\n */\r\n public static withSource(source: Source, view?: ViewState | Viewport): Overrides {\r\n const ovrs = new Overrides(view);\r\n ovrs._source = source;\r\n return ovrs;\r\n }\r\n\r\n /** Initialize these Overrides based on a specific view.\r\n * @internal\r\n */\r\n public initFromView(view: ViewState): void {\r\n this._initFromView(view);\r\n this._initSubCategoryOverrides(view);\r\n }\r\n\r\n /** Initialize these Overrides based on a specific viewport.\r\n * @internal\r\n */\r\n public initFromViewport(viewport: Viewport): void {\r\n const view = viewport.view;\r\n this._initFromView(view);\r\n\r\n if (undefined !== viewport.neverDrawn)\r\n this.setNeverDrawnSet(viewport.neverDrawn);\r\n\r\n if (undefined !== viewport.alwaysDrawn)\r\n this.setAlwaysDrawnSet(viewport.alwaysDrawn, viewport.isAlwaysDrawnExclusive);\r\n\r\n viewport.addFeatureOverrides(this);\r\n viewport.addModelSubCategoryVisibilityOverrides(this, this._modelSubCategoryOverrides);\r\n\r\n // This will include any per-model subcategory visibility overrides added above.\r\n this._initSubCategoryOverrides(view);\r\n }\r\n\r\n private _initFromView(view: ViewState): void {\r\n const { viewFlags } = view;\r\n const { constructions, dimensions, patterns } = viewFlags;\r\n\r\n this.neverDrawnAnimationNodes.clear();\r\n this.animationNodeOverrides.clear();\r\n\r\n for (const excluded of view.displayStyle.settings.excludedElementIds)\r\n this.setNeverDrawn(excluded);\r\n\r\n this._constructions = constructions;\r\n this._dimensions = dimensions;\r\n this._patterns = patterns;\r\n this._lineWeights = viewFlags.weights;\r\n\r\n for (const categoryId of view.categorySelector.categories) {\r\n const subCategoryIds = view.iModel.subcategories.getSubCategories(categoryId);\r\n if (undefined === subCategoryIds)\r\n continue;\r\n\r\n for (const subCategoryId of subCategoryIds) {\r\n if (view.isSubCategoryVisible(subCategoryId)) {\r\n const idLo = Id64.getLowerUint32(subCategoryId);\r\n const idHi = Id64.getUpperUint32(subCategoryId);\r\n this._visibleSubCategories.add(idLo, idHi);\r\n\r\n const app = view.iModel.subcategories.getSubCategoryAppearance(subCategoryId);\r\n if (undefined !== app)\r\n this._subCategoryPriorities.set(idLo, idHi, app.priority);\r\n }\r\n }\r\n }\r\n const style = view.displayStyle;\r\n style.settings.modelAppearanceOverrides.forEach((appearance, modelId) => this.override({ modelId, appearance, onConflict: \"skip\" }));\r\n\r\n style.forEachRealityModel((realityModel) => {\r\n if (realityModel.appearanceOverrides && realityModel.modelId)\r\n this.override({ modelId: realityModel.modelId, appearance: realityModel.appearanceOverrides });\r\n });\r\n\r\n const script = style.scheduleState;\r\n if (script)\r\n script.getSymbologyOverrides(this, style.settings.timePoint ?? 0);\r\n\r\n if (!view.is3d())\r\n return;\r\n\r\n const planProjectionSettings = view.getDisplayStyle3d().settings.planProjectionSettings;\r\n if (undefined === planProjectionSettings)\r\n return;\r\n\r\n for (const [modelId, projSettings] of planProjectionSettings) {\r\n if (undefined !== projSettings.transparency)\r\n this.override({ modelId, appearance: FeatureAppearance.fromJSON({ transparency: projSettings.transparency }) });\r\n }\r\n }\r\n\r\n private _initSubCategoryOverrides(view: ViewState): void {\r\n const addOverride = (idLo: number, idHi: number) => {\r\n const subCategoryId = Id64.fromUint32Pair(idLo, idHi);\r\n const ovr = view.getSubCategoryOverride(subCategoryId);\r\n if (undefined !== ovr) {\r\n const app = FeatureAppearance.fromSubCategoryOverride(ovr);\r\n if (app.overridesSymbology)\r\n this._subCategoryOverrides.set(idLo, idHi, app);\r\n\r\n if (undefined !== ovr.priority)\r\n this._subCategoryPriorities.set(idLo, idHi, ovr.priority);\r\n }\r\n };\r\n\r\n // Add overrides for all subcategories visible in the view\r\n this._visibleSubCategories.forEach((idLo: number, idHi: number) => {\r\n addOverride(idLo, idHi);\r\n });\r\n\r\n // Add overrides for all subcategories overridden to be visible in specific models\r\n this._modelSubCategoryOverrides.forEach((_modelIdLo: number, _modelIdHi: number, subcats: Id64.Uint32Set) => {\r\n subcats.forEach((idLo: number, idHi: number) => {\r\n if (!this.isSubCategoryVisible(idLo, idHi)) {\r\n // Overridden to be visible in one or more models - will need the appearance overrides\r\n addOverride(idLo, idHi);\r\n }\r\n });\r\n });\r\n }\r\n }\r\n}\r\n"]}
@@ -33,6 +33,7 @@ export declare enum AnimationNodeId {
33
33
  * Branches can be nested to build an arbitrarily-complex scene graph.
34
34
  * @see [[RenderSystem.createBranch]]
35
35
  * @public
36
+ * @extensions
36
37
  */
37
38
  export declare class GraphicBranch implements IDisposable {
38
39
  /** The child nodes of this branch */
@@ -79,6 +80,7 @@ export declare class GraphicBranch implements IDisposable {
79
80
  }
80
81
  /** Options passed to [[RenderSystem.createGraphicBranch]].
81
82
  * @public
83
+ * @extensions
82
84
  */
83
85
  export interface GraphicBranchOptions {
84
86
  /** Clip applied to the graphics in the branch. */
@@ -1 +1 @@
1
- {"version":3,"file":"GraphicBranch.d.ts","sourceRoot":"","sources":["../../../src/render/GraphicBranch.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE;QACL,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;CACH;AAED,OAAO,EAAgB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACzG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,oBAAY,eAAe;IACzB,aAAa,aAAa;CAC3B;AAED;;;;;;GAMG;AACH,qBAAa,aAAc,YAAW,WAAW;IAC/C,qCAAqC;IACrC,SAAgB,OAAO,EAAE,aAAa,EAAE,CAAM;IAC9C,6GAA6G;IAC7G,SAAgB,WAAW,EAAE,OAAO,CAAC;IACrC;;OAEG;IACI,iBAAiB,EAAE,iBAAiB,CAAM;IACjD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AC,CAAC;CAC5D;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACzD,2CAA2C;IAC3C,QAAQ,CAAC,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAChD"}
@@ -20,6 +20,7 @@ export var AnimationNodeId;
20
20
  * Branches can be nested to build an arbitrarily-complex scene graph.
21
21
  * @see [[RenderSystem.createBranch]]
22
22
  * @public
23
+ * @extensions
23
24
  */
24
25
  export class GraphicBranch {
25
26
  /** Constructor
@@ -1 +1 @@
1
- {"version":3,"file":"GraphicBranch.js","sourceRoot":"","sources":["../../../src/render/GraphicBranch.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAaH,OAAO,EAAE,YAAY,EAAe,MAAM,qBAAqB,CAAC;AAUhE;;;GAGG;AACH,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,gFAA0B,CAAA;AAC5B,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B;AAED;;;;;;GAMG;AACH,MAAM,OAAO,aAAa;IAoBxB;;OAEG;IACH,YAAmB,cAAuB,KAAK;QAtB/C,qCAAqC;QACrB,YAAO,GAAoB,EAAE,CAAC;QAG9C;;WAEG;QACI,sBAAiB,GAAsB,EAAE,CAAC;QAgB/C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,oCAAoC;IAC7B,GAAG,CAAC,OAAsB;QAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,YAAY,CAAC,KAAgB;QAClC,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAChD,CAAC;IAED,uFAAuF;IAChF,YAAY,CAAC,KAAgB;QAClC,IAAI,CAAC,iBAAiB,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;IACxC,CAAC;IAED,oCAAoC;IAC7B,oBAAoB,CAAC,GAAsB;QAChD,IAAI,CAAC,iBAAiB,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;IACtC,CAAC;IAED,uFAAuF;IAChF,OAAO;QACZ,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,wDAAwD;IACxD,IAAW,OAAO;QAChB,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IACnC,CAAC;IAED,sIAAsI;IAC/H,KAAK;QACV,IAAI,IAAI,CAAC,WAAW;YAClB,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;;YAE3B,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,gBAAgB;IACT,iBAAiB,CAAC,KAA8B;QACrD,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO;YAC9B,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\n/** Carries information in a GraphicBranchOptions about a GraphicBranch produced by drawing one view into the context of another.\r\n * @internal\r\n */\r\nexport interface GraphicBranchFrustum {\r\n is3d: boolean;\r\n scale: {\r\n x: number;\r\n y: number;\r\n };\r\n}\r\n\r\nimport { disposeArray, IDisposable } from \"@itwin/core-bentley\";\r\nimport { FeatureAppearanceProvider, HiddenLine, ViewFlagOverrides, ViewFlags } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\nimport { FeatureSymbology } from \"./FeatureSymbology\";\r\nimport { RenderClipVolume } from \"./RenderClipVolume\";\r\nimport { RenderGraphic } from \"./RenderGraphic\";\r\nimport { RenderMemory } from \"./RenderMemory\";\r\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\r\nimport { RenderTextureDrape } from \"./RenderSystem\";\r\n\r\n/** Special values of [[GraphicBranch.animationNodeId]].\r\n * All other values refer to an [ElementTimeline.batchId]($common) that applies a transform to the graphics in the branch.\r\n * @internal\r\n */\r\nexport enum AnimationNodeId {\r\n Untransformed = 0xffffffff,\r\n}\r\n\r\n/**\r\n * A node in a scene graph. The branch itself is not renderable. Instead it contains a list of RenderGraphics,\r\n * and a transform, symbology overrides, and clip volume which are to be applied when rendering them.\r\n * Branches can be nested to build an arbitrarily-complex scene graph.\r\n * @see [[RenderSystem.createBranch]]\r\n * @public\r\n */\r\nexport class GraphicBranch implements IDisposable /* , RenderMemory.Consumer */ {\r\n /** The child nodes of this branch */\r\n public readonly entries: RenderGraphic[] = [];\r\n /** If true, when the branch is disposed of, the RenderGraphics in its entries array will also be disposed */\r\n public readonly ownsEntries: boolean;\r\n /** Selectively overrides the view's [ViewFlags]($common) while drawing graphics within this branch. The default overrides nothing.\r\n * @see [[setViewFlagOverrides]].\r\n */\r\n public viewFlagOverrides: ViewFlagOverrides = {};\r\n /** Optional symbology overrides to be applied to all graphics in this branch */\r\n public symbologyOverrides?: FeatureSymbology.Overrides;\r\n /** Optional animation branch Id that incorporates the model Id and, for element timelines, the batch Id.\r\n * @internal\r\n */\r\n public animationId?: string;\r\n /** Identifies the node in the [RenderSchedule.Script]($backend) with which this branch is associated.\r\n * @internal\r\n */\r\n public animationNodeId?: AnimationNodeId | number;\r\n\r\n /** Constructor\r\n * @param ownsEntries If true, when this branch is [[dispose]]d, all of the [[RenderGraphic]]s it contains will also be disposed.\r\n */\r\n public constructor(ownsEntries: boolean = false) {\r\n this.ownsEntries = ownsEntries;\r\n }\r\n\r\n /** Add a graphic to this branch. */\r\n public add(graphic: RenderGraphic): void {\r\n this.entries.push(graphic);\r\n }\r\n\r\n /** Compute the view flags that result from applying this branch's [[viewFlagOverrides]] to the input flags.\r\n * @param flags The input view flags, e.g., from the view's [[DisplayStyleState]].\r\n * @returns The result of applying [[viewFlagOverrides]] to `flags`.\r\n */\r\n public getViewFlags(flags: ViewFlags): ViewFlags {\r\n return flags.override(this.viewFlagOverrides);\r\n }\r\n\r\n /** Set [[viewFlagOverrides]] to override **all** ViewFlags as specified by `flags`. */\r\n public setViewFlags(flags: ViewFlags): void {\r\n this.viewFlagOverrides = { ...flags };\r\n }\r\n\r\n /** Change [[viewFlagOverrides]]. */\r\n public setViewFlagOverrides(ovr: ViewFlagOverrides): void {\r\n this.viewFlagOverrides = { ...ovr };\r\n }\r\n\r\n /** Disposes of all graphics in this branch, if and only if [[ownsEntries]] is true. */\r\n public dispose() {\r\n this.clear();\r\n }\r\n\r\n /** Returns true if this branch contains no graphics. */\r\n public get isEmpty(): boolean {\r\n return 0 === this.entries.length;\r\n }\r\n\r\n /** Empties the list of [[RenderGraphic]]s contained in this branch, and if the [[ownsEntries]] flag is set, also disposes of them. */\r\n public clear(): void {\r\n if (this.ownsEntries)\r\n disposeArray(this.entries);\r\n else\r\n this.entries.length = 0;\r\n }\r\n\r\n /** @internal */\r\n public collectStatistics(stats: RenderMemory.Statistics): void {\r\n for (const entry of this.entries)\r\n entry.collectStatistics(stats);\r\n }\r\n}\r\n\r\n/** Options passed to [[RenderSystem.createGraphicBranch]].\r\n * @public\r\n */\r\nexport interface GraphicBranchOptions {\r\n /** Clip applied to the graphics in the branch. */\r\n clipVolume?: RenderClipVolume;\r\n /** @internal */\r\n classifierOrDrape?: RenderPlanarClassifier | RenderTextureDrape;\r\n /** Optionally replaces the view's hidden line settings when drawing the branch. */\r\n hline?: HiddenLine.Settings;\r\n /** The iModel from which the graphics originate, if different than that associated with the view. */\r\n iModel?: IModelConnection;\r\n /** @internal */\r\n frustum?: GraphicBranchFrustum;\r\n /** Supplements the view's [[FeatureSymbology.Overrides]] for graphics in the branch. */\r\n appearanceProvider?: FeatureAppearanceProvider;\r\n /** @internal Secondary planar classifiers (map layers) */\r\n secondaryClassifiers?: Map<number, RenderPlanarClassifier>;\r\n}\r\n\r\n/** Clip/Transform for a branch that are varied over time.\r\n * @internal\r\n */\r\nexport interface AnimationBranchState {\r\n readonly clip?: RenderClipVolume;\r\n readonly omit?: boolean;\r\n}\r\n\r\n/** Mapping from node/branch IDs to animation branch state\r\n * @internal\r\n */\r\nexport interface AnimationBranchStates {\r\n /** Maps node Id to branch state. */\r\n readonly branchStates: Map<string, AnimationBranchState>;\r\n /** Ids of nodes that apply a transform. */\r\n readonly transformNodeIds: ReadonlySet<number>;\r\n}\r\n"]}
1
+ {"version":3,"file":"GraphicBranch.js","sourceRoot":"","sources":["../../../src/render/GraphicBranch.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAaH,OAAO,EAAE,YAAY,EAAe,MAAM,qBAAqB,CAAC;AAUhE;;;GAGG;AACH,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,gFAA0B,CAAA;AAC5B,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,aAAa;IAoBxB;;OAEG;IACH,YAAmB,cAAuB,KAAK;QAtB/C,qCAAqC;QACrB,YAAO,GAAoB,EAAE,CAAC;QAG9C;;WAEG;QACI,sBAAiB,GAAsB,EAAE,CAAC;QAgB/C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,oCAAoC;IAC7B,GAAG,CAAC,OAAsB;QAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,YAAY,CAAC,KAAgB;QAClC,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAChD,CAAC;IAED,uFAAuF;IAChF,YAAY,CAAC,KAAgB;QAClC,IAAI,CAAC,iBAAiB,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;IACxC,CAAC;IAED,oCAAoC;IAC7B,oBAAoB,CAAC,GAAsB;QAChD,IAAI,CAAC,iBAAiB,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;IACtC,CAAC;IAED,uFAAuF;IAChF,OAAO;QACZ,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,wDAAwD;IACxD,IAAW,OAAO;QAChB,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IACnC,CAAC;IAED,sIAAsI;IAC/H,KAAK;QACV,IAAI,IAAI,CAAC,WAAW;YAClB,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;;YAE3B,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,gBAAgB;IACT,iBAAiB,CAAC,KAA8B;QACrD,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO;YAC9B,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\n/** Carries information in a GraphicBranchOptions about a GraphicBranch produced by drawing one view into the context of another.\r\n * @internal\r\n */\r\nexport interface GraphicBranchFrustum {\r\n is3d: boolean;\r\n scale: {\r\n x: number;\r\n y: number;\r\n };\r\n}\r\n\r\nimport { disposeArray, IDisposable } from \"@itwin/core-bentley\";\r\nimport { FeatureAppearanceProvider, HiddenLine, ViewFlagOverrides, ViewFlags } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\nimport { FeatureSymbology } from \"./FeatureSymbology\";\r\nimport { RenderClipVolume } from \"./RenderClipVolume\";\r\nimport { RenderGraphic } from \"./RenderGraphic\";\r\nimport { RenderMemory } from \"./RenderMemory\";\r\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\r\nimport { RenderTextureDrape } from \"./RenderSystem\";\r\n\r\n/** Special values of [[GraphicBranch.animationNodeId]].\r\n * All other values refer to an [ElementTimeline.batchId]($common) that applies a transform to the graphics in the branch.\r\n * @internal\r\n */\r\nexport enum AnimationNodeId {\r\n Untransformed = 0xffffffff,\r\n}\r\n\r\n/**\r\n * A node in a scene graph. The branch itself is not renderable. Instead it contains a list of RenderGraphics,\r\n * and a transform, symbology overrides, and clip volume which are to be applied when rendering them.\r\n * Branches can be nested to build an arbitrarily-complex scene graph.\r\n * @see [[RenderSystem.createBranch]]\r\n * @public\r\n * @extensions\r\n */\r\nexport class GraphicBranch implements IDisposable /* , RenderMemory.Consumer */ {\r\n /** The child nodes of this branch */\r\n public readonly entries: RenderGraphic[] = [];\r\n /** If true, when the branch is disposed of, the RenderGraphics in its entries array will also be disposed */\r\n public readonly ownsEntries: boolean;\r\n /** Selectively overrides the view's [ViewFlags]($common) while drawing graphics within this branch. The default overrides nothing.\r\n * @see [[setViewFlagOverrides]].\r\n */\r\n public viewFlagOverrides: ViewFlagOverrides = {};\r\n /** Optional symbology overrides to be applied to all graphics in this branch */\r\n public symbologyOverrides?: FeatureSymbology.Overrides;\r\n /** Optional animation branch Id that incorporates the model Id and, for element timelines, the batch Id.\r\n * @internal\r\n */\r\n public animationId?: string;\r\n /** Identifies the node in the [RenderSchedule.Script]($backend) with which this branch is associated.\r\n * @internal\r\n */\r\n public animationNodeId?: AnimationNodeId | number;\r\n\r\n /** Constructor\r\n * @param ownsEntries If true, when this branch is [[dispose]]d, all of the [[RenderGraphic]]s it contains will also be disposed.\r\n */\r\n public constructor(ownsEntries: boolean = false) {\r\n this.ownsEntries = ownsEntries;\r\n }\r\n\r\n /** Add a graphic to this branch. */\r\n public add(graphic: RenderGraphic): void {\r\n this.entries.push(graphic);\r\n }\r\n\r\n /** Compute the view flags that result from applying this branch's [[viewFlagOverrides]] to the input flags.\r\n * @param flags The input view flags, e.g., from the view's [[DisplayStyleState]].\r\n * @returns The result of applying [[viewFlagOverrides]] to `flags`.\r\n */\r\n public getViewFlags(flags: ViewFlags): ViewFlags {\r\n return flags.override(this.viewFlagOverrides);\r\n }\r\n\r\n /** Set [[viewFlagOverrides]] to override **all** ViewFlags as specified by `flags`. */\r\n public setViewFlags(flags: ViewFlags): void {\r\n this.viewFlagOverrides = { ...flags };\r\n }\r\n\r\n /** Change [[viewFlagOverrides]]. */\r\n public setViewFlagOverrides(ovr: ViewFlagOverrides): void {\r\n this.viewFlagOverrides = { ...ovr };\r\n }\r\n\r\n /** Disposes of all graphics in this branch, if and only if [[ownsEntries]] is true. */\r\n public dispose() {\r\n this.clear();\r\n }\r\n\r\n /** Returns true if this branch contains no graphics. */\r\n public get isEmpty(): boolean {\r\n return 0 === this.entries.length;\r\n }\r\n\r\n /** Empties the list of [[RenderGraphic]]s contained in this branch, and if the [[ownsEntries]] flag is set, also disposes of them. */\r\n public clear(): void {\r\n if (this.ownsEntries)\r\n disposeArray(this.entries);\r\n else\r\n this.entries.length = 0;\r\n }\r\n\r\n /** @internal */\r\n public collectStatistics(stats: RenderMemory.Statistics): void {\r\n for (const entry of this.entries)\r\n entry.collectStatistics(stats);\r\n }\r\n}\r\n\r\n/** Options passed to [[RenderSystem.createGraphicBranch]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GraphicBranchOptions {\r\n /** Clip applied to the graphics in the branch. */\r\n clipVolume?: RenderClipVolume;\r\n /** @internal */\r\n classifierOrDrape?: RenderPlanarClassifier | RenderTextureDrape;\r\n /** Optionally replaces the view's hidden line settings when drawing the branch. */\r\n hline?: HiddenLine.Settings;\r\n /** The iModel from which the graphics originate, if different than that associated with the view. */\r\n iModel?: IModelConnection;\r\n /** @internal */\r\n frustum?: GraphicBranchFrustum;\r\n /** Supplements the view's [[FeatureSymbology.Overrides]] for graphics in the branch. */\r\n appearanceProvider?: FeatureAppearanceProvider;\r\n /** @internal Secondary planar classifiers (map layers) */\r\n secondaryClassifiers?: Map<number, RenderPlanarClassifier>;\r\n}\r\n\r\n/** Clip/Transform for a branch that are varied over time.\r\n * @internal\r\n */\r\nexport interface AnimationBranchState {\r\n readonly clip?: RenderClipVolume;\r\n readonly omit?: boolean;\r\n}\r\n\r\n/** Mapping from node/branch IDs to animation branch state\r\n * @internal\r\n */\r\nexport interface AnimationBranchStates {\r\n /** Maps node Id to branch state. */\r\n readonly branchStates: Map<string, AnimationBranchState>;\r\n /** Ids of nodes that apply a transform. */\r\n readonly transformNodeIds: ReadonlySet<number>;\r\n}\r\n"]}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { Id64String } from "@itwin/core-bentley";
5
5
  import { AnyCurvePrimitive, Arc3d, Loop, Path, Point2d, Point3d, Polyface, Range3d, SolidPrimitive, Transform } from "@itwin/core-geometry";
6
- import { AnalysisStyle, ColorDef, Frustum, GraphicParams, LinePixels } from "@itwin/core-common";
6
+ import { AnalysisStyle, ColorDef, Feature, Frustum, GeometryClass, GraphicParams, LinePixels } from "@itwin/core-common";
7
7
  import { IModelConnection } from "../IModelConnection";
8
8
  import { Viewport } from "../Viewport";
9
9
  import { RenderGraphic } from "./RenderGraphic";
@@ -15,6 +15,7 @@ import { GraphicPrimitive } from "./GraphicPrimitive";
15
15
  * - Within a [[GraphicList]], each [[RenderGraphic]] is rendered in the order in which it appears in the list; and
16
16
  * - Within a single [[RenderGraphic]], each geometric primitive is rendered in the ordered in which it was added to the GraphicBuilder.
17
17
  * @public
18
+ * @extensions
18
19
  */
19
20
  export declare enum GraphicType {
20
21
  /**
@@ -72,6 +73,7 @@ export declare enum GraphicType {
72
73
  * For example, to prevent graphics produced by [[readElementGraphics]] from being hilited when their corresponding element is in the [[SelectionSet]],
73
74
  * pass `{ noHilite: true }` to [[readElementGraphics]].
74
75
  * @public
76
+ * @extensions
75
77
  */
76
78
  export interface BatchOptions {
77
79
  /** Identifies the [[Tile]] associated with the batch, chiefly for debugging purposes.
@@ -89,17 +91,26 @@ export interface BatchOptions {
89
91
  }
90
92
  /** Options used as part of [[GraphicBuilderOptions]] to describe a [pickable]($docs/learning/frontend/ViewDecorations#pickable-view-graphic-decorations) [[RenderGraphic]].
91
93
  * @public
94
+ * @extensions
92
95
  */
93
96
  export interface PickableGraphicOptions extends BatchOptions {
94
- /** Unique identifier for the graphic.
97
+ /** A unique identifier for the graphic.
95
98
  * @see [[IModelConnection.transientIds]] to obtain a unique Id in the context of an iModel.
99
+ * @see [[GraphicBuilder.activatePickableId]] or [[GraphicBuilder.activateFeature]] to change the pickable object while adding geometry.
96
100
  */
97
101
  id: Id64String;
102
+ /** Optional Id of the subcategory with which the graphic should be associated. */
103
+ subCategoryId?: Id64String;
104
+ /** Optional geometry class for the graphic - defaults to [GeometryClass.Primary]($common). */
105
+ geometryClass?: GeometryClass;
106
+ /** The optional Id of the model with which the graphic should be associated. */
107
+ modelId?: Id64String;
98
108
  }
99
109
  /** Options for creating a [[GraphicBuilder]] used by functions like [[DecorateContext.createGraphic]] and [[RenderSystem.createGraphic]].
100
110
  * @see [[ViewportGraphicBuilderOptions]] to create a graphic builder for a [[Viewport]].
101
111
  * @see [[CustomGraphicBuilderOptions]] to create a graphic builder unassociated with any [[Viewport]].
102
112
  * @public
113
+ * @extensions
103
114
  */
104
115
  export interface GraphicBuilderOptions {
105
116
  /** The type of graphic to produce. */
@@ -143,6 +154,7 @@ export interface GraphicBuilderOptions {
143
154
  * Default values for [[GraphicBuilderOptions.wantNormals]] and [[GraphicBuilderOptions.generateEdges]] will be determined by the viewport's [ViewFlags]($common).
144
155
  * The [[GraphicBuilder.iModel]] will be set to the viewport's [[IModelConnection]].
145
156
  * @public
157
+ * @extensions
146
158
  */
147
159
  export interface ViewportGraphicBuilderOptions extends GraphicBuilderOptions {
148
160
  /** The viewport in which the resultant [[RenderGraphic]] is to be drawn. */
@@ -157,6 +169,7 @@ export interface ViewportGraphicBuilderOptions extends GraphicBuilderOptions {
157
169
  * For [[GraphicType.ViewOverlay]] and [[GraphicType.ViewBackground]], which already define their geometry in pixels, the chord tolerance should typically be 1.
158
170
  * @see [[CustomGraphicBuilderOptions.computeChordTolerance]].
159
171
  * @public
172
+ * @extensions
160
173
  */
161
174
  export interface ComputeChordToleranceArgs {
162
175
  /** The graphic builder being used to produce the graphics. */
@@ -169,6 +182,7 @@ export interface ComputeChordToleranceArgs {
169
182
  * This is primarily useful when the same graphic is to be saved and reused for display in multiple viewports and for which a chord tolerance can be computed
170
183
  * independently of each viewport's [Frustum]($common).
171
184
  * @public
185
+ * @extensions
172
186
  */
173
187
  export interface CustomGraphicBuilderOptions extends GraphicBuilderOptions {
174
188
  /** Optionally, the IModelConnection with which the graphic is associated. */
@@ -191,6 +205,7 @@ export interface CustomGraphicBuilderOptions extends GraphicBuilderOptions {
191
205
  * So, for example, if you pass an array of points to addLineString(), you should not subsequently modify that array.
192
206
  *
193
207
  * @public
208
+ * @extensions
194
209
  */
195
210
  export declare abstract class GraphicBuilder {
196
211
  /** The local coordinate system transform applied to this builder's geometry.
@@ -226,6 +241,7 @@ export declare abstract class GraphicBuilder {
226
241
  protected constructor(options: ViewportGraphicBuilderOptions | CustomGraphicBuilderOptions);
227
242
  /** The Id to be associated with the graphic for picking.
228
243
  * @see [[GraphicBuilderOptions.pickable]] for more options.
244
+ * @deprecated This provides only the **first** pickable Id for this graphic - you should keep track of the **current** pickable Id yourself.
229
245
  */
230
246
  get pickId(): Id64String | undefined;
231
247
  /** Whether the builder's geometry is defined in [[CoordSystem.View]] coordinates.
@@ -252,6 +268,21 @@ export declare abstract class GraphicBuilder {
252
268
  * @see [[GraphicBuilder.setSymbology]] for a convenient way to set common symbology options.
253
269
  */
254
270
  abstract activateGraphicParams(graphicParams: GraphicParams): void;
271
+ /** Called by [[activateFeature]] after validation to change the [Feature]($common) to be associated with subsequently-added geometry.
272
+ * This default implementation does nothing.
273
+ */
274
+ protected _activateFeature(_feature: Feature): void;
275
+ /** Change the [Feature]($common) to be associated with subsequently-added geometry. This permits multiple features to be batched together into a single graphic
276
+ * for more efficient rendering.
277
+ * @note This method has no effect if [[GraphicBuilderOptions.pickable]] was not supplied to the GraphicBuilder's constructor.
278
+ */
279
+ activateFeature(feature: Feature): void;
280
+ /** Change the pickable Id to be associated with subsequently-added geometry. This permits multiple pickable objects to be batched together into a single graphic
281
+ * for more efficient rendering. This method calls [[activateFeature]], using the subcategory Id and [GeometryClass]($common) specified in [[GraphicBuilder.pickable]]
282
+ * at construction, if any.
283
+ * @note This method has no effect if [[GraphicBuilderOptions.pickable]] was not supplied to the GraphicBuilder's constructor.
284
+ */
285
+ activatePickableId(id: Id64String): void;
255
286
  /**
256
287
  * Appends a 3d line string to the builder.
257
288
  * @param points Array of vertices in the line string.
@@ -1 +1 @@
1
- {"version":3,"file":"GraphicBuilder.d.ts","sourceRoot":"","sources":["../../../src/render/GraphicBuilder.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EACL,iBAAiB,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EACrG,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAO,MAAM,oBAAoB,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,C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 @@
5
5
  /** @packageDocumentation
6
6
  * @module Rendering
7
7
  */
8
+ import { assert } from "@itwin/core-bentley";
8
9
  import { Path, Transform, } from "@itwin/core-geometry";
9
- import { Frustum, GraphicParams, LinePixels, Npc } from "@itwin/core-common";
10
+ import { Feature, Frustum, GraphicParams, LinePixels, Npc } from "@itwin/core-common";
10
11
  /**
11
12
  * Describes the type of a [[GraphicBuilder]], which defines the coordinate system in which the builder's geometry is defined and
12
13
  * controls the behavior of the [[RenderGraphic]] produced by the builder.
@@ -14,6 +15,7 @@ import { Frustum, GraphicParams, LinePixels, Npc } from "@itwin/core-common";
14
15
  * - Within a [[GraphicList]], each [[RenderGraphic]] is rendered in the order in which it appears in the list; and
15
16
  * - Within a single [[RenderGraphic]], each geometric primitive is rendered in the ordered in which it was added to the GraphicBuilder.
16
17
  * @public
18
+ * @extensions
17
19
  */
18
20
  export var GraphicType;
19
21
  (function (GraphicType) {
@@ -80,6 +82,7 @@ export var GraphicType;
80
82
  * So, for example, if you pass an array of points to addLineString(), you should not subsequently modify that array.
81
83
  *
82
84
  * @public
85
+ * @extensions
83
86
  */
84
87
  export class GraphicBuilder {
85
88
  /** @internal */
@@ -116,6 +119,7 @@ export class GraphicBuilder {
116
119
  }
117
120
  /** The Id to be associated with the graphic for picking.
118
121
  * @see [[GraphicBuilderOptions.pickable]] for more options.
122
+ * @deprecated This provides only the **first** pickable Id for this graphic - you should keep track of the **current** pickable Id yourself.
119
123
  */
120
124
  get pickId() {
121
125
  var _a;
@@ -145,6 +149,28 @@ export class GraphicBuilder {
145
149
  get isOverlay() {
146
150
  return this.type === GraphicType.ViewOverlay || this.type === GraphicType.WorldOverlay;
147
151
  }
152
+ /** Called by [[activateFeature]] after validation to change the [Feature]($common) to be associated with subsequently-added geometry.
153
+ * This default implementation does nothing.
154
+ */
155
+ _activateFeature(_feature) { }
156
+ /** Change the [Feature]($common) to be associated with subsequently-added geometry. This permits multiple features to be batched together into a single graphic
157
+ * for more efficient rendering.
158
+ * @note This method has no effect if [[GraphicBuilderOptions.pickable]] was not supplied to the GraphicBuilder's constructor.
159
+ */
160
+ activateFeature(feature) {
161
+ assert(undefined !== this._options.pickable, "GraphicBuilder.activateFeature has no effect if PickableGraphicOptions were not supplied");
162
+ if (this._options.pickable)
163
+ this._activateFeature(feature);
164
+ }
165
+ /** Change the pickable Id to be associated with subsequently-added geometry. This permits multiple pickable objects to be batched together into a single graphic
166
+ * for more efficient rendering. This method calls [[activateFeature]], using the subcategory Id and [GeometryClass]($common) specified in [[GraphicBuilder.pickable]]
167
+ * at construction, if any.
168
+ * @note This method has no effect if [[GraphicBuilderOptions.pickable]] was not supplied to the GraphicBuilder's constructor.
169
+ */
170
+ activatePickableId(id) {
171
+ const pick = this._options.pickable;
172
+ this.activateFeature(new Feature(id, pick === null || pick === void 0 ? void 0 : pick.subCategoryId, pick === null || pick === void 0 ? void 0 : pick.geometryClass));
173
+ }
148
174
  /** Append a [CurvePrimitive]($core-geometry) to the builder. */
149
175
  addCurvePrimitive(curve) {
150
176
  switch (curve.curvePrimitiveType) {
@@ -1 +1 @@
1
- {"version":3,"file":"GraphicBuilder.js","sourceRoot":"","sources":["../../../src/render/GraphicBuilder.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAGH,OAAO,EAC2B,IAAI,EAAuD,SAAS,GACrG,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAA2B,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAMtG;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,WAkDX;AAlDD,WAAY,WAAW;IACrB;;;;;;;OAOG;IACH,iEAAc,CAAA;IACd,qEAAqE;IACrE;;;;;;OAMG;IACH,+CAAK,CAAA;IACL,8GAA8G;IAC9G;;;;;;OAMG;IACH,mEAAe,CAAA;IACf;;;;;;;;;;OAUG;IACH,6DAAY,CAAA;IACZ;;;;;;;;OAQG;IACH,2DAAW,CAAA;AACb,CAA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UAAU,CAAC,CAAC,CAAC;IACvG,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,SAAmB,IAAI,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CACvH","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport {\r\n AnyCurvePrimitive, Arc3d, Loop, Path, Point2d, Point3d, Polyface, Range3d, SolidPrimitive, Transform,\r\n} from \"@itwin/core-geometry\";\r\nimport { AnalysisStyle, ColorDef, Frustum, GraphicParams, LinePixels, Npc } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\nimport { Viewport } from \"../Viewport\";\r\nimport { RenderGraphic } from \"./RenderGraphic\";\r\nimport { GraphicPrimitive } from \"./GraphicPrimitive\";\r\n\r\n/**\r\n * Describes the type of a [[GraphicBuilder]], which defines the coordinate system in which the builder's geometry is defined and\r\n * controls the behavior of the [[RenderGraphic]] produced by the builder.\r\n * @note For those types for which depth-testing is disabled, the order in which the individual geometric primitives are drawn determines which geometry draws on top of other geometry.\r\n * - Within a [[GraphicList]], each [[RenderGraphic]] is rendered in the order in which it appears in the list; and\r\n * - Within a single [[RenderGraphic]], each geometric primitive is rendered in the ordered in which it was added to the GraphicBuilder.\r\n * @public\r\n */\r\nexport enum GraphicType {\r\n /**\r\n * Renders behind all other graphics. For example, the border of a [[SheetViewState]] is of this type.\r\n * Coordinates: [[CoordSystem.View]].\r\n * [[RenderMode]]: [[RenderMode.SmoothShade]].\r\n * Lighting: none.\r\n * Depth-testing: disabled.\r\n * @see [[Decorations.viewBackground]]\r\n */\r\n ViewBackground,\r\n /** Used for the scene itself, dynamics, and 'normal' decorations. */\r\n /**\r\n * Renders as if it were part of the scene. All of the [[ViewFlags]] applied to the view's normal geometry also applies to these types of decorations.\r\n * Coordinates: [[CoordSystem.World]].\r\n * Lighting and [[RenderMode]]: from view.\r\n * Depth-testing: enabled.\r\n * @see [[Decorations.normal]].\r\n */\r\n Scene,\r\n /** Renders within the scene. Coordinates: world. RenderMode: smooth. Lighting: default. Z-testing: enabled */\r\n /** Renders within the scene, but ignores the view's [[ViewFlags]].\r\n * Coordinates: [[CoordSystem.World]].\r\n * Lighting: default.\r\n * [[RenderMode]]: [[RenderMode.SmoothShade]].\r\n * Depth-testing: enabled.\r\n * @see [[Decorations.world]].\r\n */\r\n WorldDecoration,\r\n /**\r\n * Renders as an overlay on top of the scene. These decorations differ from [[GraphicType.WorldDecoration]] only in that depth-testing is disabled.\r\n * For example, the ACS triad and [[WindowAreaTool]] decorations are of this type.\r\n * Coordinates: [[CoordSystem.World]].\r\n * [[RenderMode]]: [[RenderMode.SmoothShade]]\r\n * Lighting: default.\r\n * Depth-testing: disabled.\r\n * Renders atop the scene. Coordinates: world. RenderMode: smooth. Lighting: none. Z-testing: disabled\r\n * @note Overlay decorations typically employ some degree of transparency to ensure that they do not fully obscure the scene.\r\n * @see [[Decorations.worldOverlay]]\r\n */\r\n WorldOverlay,\r\n /**\r\n * Renders as an overlay on top of the scene. These decorations differ from [[GraphicType.WorldOverlay]] only in that their geometry is defined in view coordinates rather than world.\r\n * Coordinates: [[CoordSystem.View]].\r\n * [[RenderMode]]: [[RenderMode.SmoothShade]]\r\n * Lighting: default.\r\n * Depth-testing: disabled.\r\n * @note For more flexibility in defining view overlay decorations, consider using a [[CanvasDecorationList]].\r\n * @see [[Decorations.viewOverlay]]\r\n */\r\n ViewOverlay,\r\n}\r\n\r\n/** Options used when constructing a `Batch` - that is, a [[RenderGraphic]] with an associated [FeatureTable]($common) describing individual [Feature]($common)s within the\r\n * graphic. Individual features can be resymbolized in a variety of ways including flashing and hiliting.\r\n * For example, to prevent graphics produced by [[readElementGraphics]] from being hilited when their corresponding element is in the [[SelectionSet]],\r\n * pass `{ noHilite: true }` to [[readElementGraphics]].\r\n * @public\r\n */\r\nexport interface BatchOptions {\r\n /** Identifies the [[Tile]] associated with the batch, chiefly for debugging purposes.\r\n * @beta\r\n */\r\n tileId?: string;\r\n /** If true, features within the batch will not be flashed on mouseover. */\r\n noFlash?: boolean;\r\n /** If true, features within the batch will not be hilited when their corresponding element is in the [[SelectionSet]]. */\r\n noHilite?: boolean;\r\n /** If true, features within the batch will not be emphasized when the corresponding [[Feature]] is emphasized using [FeatureOverrides]($common). */\r\n noEmphasis?: boolean;\r\n /** If true, the contents of the batch will only be drawn by [[Viewport.readPixels]], not [[Viewport.renderFrame]], causing them to be locatable but invisible. */\r\n locateOnly?: boolean;\r\n}\r\n\r\n/** Options used as part of [[GraphicBuilderOptions]] to describe a [pickable]($docs/learning/frontend/ViewDecorations#pickable-view-graphic-decorations) [[RenderGraphic]].\r\n * @public\r\n */\r\nexport interface PickableGraphicOptions extends BatchOptions {\r\n /** Unique identifier for the graphic.\r\n * @see [[IModelConnection.transientIds]] to obtain a unique Id in the context of an iModel.\r\n */\r\n id: Id64String;\r\n}\r\n\r\n/** Options for creating a [[GraphicBuilder]] used by functions like [[DecorateContext.createGraphic]] and [[RenderSystem.createGraphic]].\r\n * @see [[ViewportGraphicBuilderOptions]] to create a graphic builder for a [[Viewport]].\r\n * @see [[CustomGraphicBuilderOptions]] to create a graphic builder unassociated with any [[Viewport]].\r\n * @public\r\n */\r\nexport interface GraphicBuilderOptions {\r\n /** The type of graphic to produce. */\r\n type: GraphicType;\r\n\r\n /** The local-to-world transform in which the builder's geometry is to be defined - by default, an identity transform. */\r\n placement?: Transform;\r\n\r\n /** If the graphic is to be pickable, specifies the pickable Id and other options. */\r\n pickable?: PickableGraphicOptions;\r\n\r\n /** If true, the order in which geometry is added to the builder is preserved.\r\n * This is useful for overlay and background graphics because they draw without using the depth buffer. For example, to draw an overlay containing a red shape with a white outline,\r\n * you would add the shape to the GraphicBuilder first, followed by the outline, to ensure the outline draws \"in front of\" the shape.\r\n * It defaults to true for overlays and background graphics, and false for other graphic types.\r\n * It is not useful for other types of graphics and imposes a performance penalty due to increased number of draw calls.\r\n * For overlay and background graphics that do not need to draw in any particular order, the performance penalty can be eliminated by setting this to `false`.\r\n */\r\n preserveOrder?: boolean;\r\n\r\n /** Controls whether normals are generated for surfaces. Normals allow 3d geometry to receive lighting; without them the geometry will be unaffected by lighting.\r\n * By default, normals are generated only for graphics of type [[GraphicType.Scene]]; or for any type of graphic if [[GraphicBuilder.wantEdges]] is true, because\r\n * normals are required to prevent z-fighting between surfaces and their edges. This default can be overridden by explicitly specifying `true` or `false`.\r\n * @see [[GraphicType]] for a description of whether and how different types of graphics are affected by lighting.\r\n */\r\n wantNormals?: boolean;\r\n\r\n /** Controls whether edges are generated for surfaces.\r\n * Edges are only displayed if [ViewFlags.renderMode]($common) is not [RenderMode.SmoothShade]($common) or [ViewFlags.visibleEdges]($common) is `true`.\r\n * Since all decoration graphics except [[GraphicType.Scene]] are drawn in smooth shaded mode with no visible edges, by default edges are only produced for scene graphics, and\r\n * - if a [[Viewport]] is supplied with the options - only if [ViewFlags.edgesRequired]($common) is true for the viewport.\r\n * That default can be overridden by explicitly specifying `true` or `false`. This can be useful for non-scene decorations contained in a [[GraphicBranch]] that applies [ViewFlagOverrides]($common)\r\n * that change the edge display settings; or for scene decorations that might be cached for reuse after the viewport's edge settings are changed.\r\n * @note Edges will tend to z-fight with their surfaces unless the graphic is [[pickable]].\r\n */\r\n generateEdges?: boolean;\r\n\r\n /** If defined, specifies a point about which the graphic will rotate such that it always faces the viewer.\r\n * This can be particular useful for planar regions to create a billboarding effect - e.g., to implement [[Marker]]-like WebGL decorations.\r\n * The graphic's [[placement]] transform is not applied to the point.\r\n * @note This has no effect for graphics displayed in a 2d view.\r\n */\r\n viewIndependentOrigin?: Point3d;\r\n}\r\n\r\n/** Options for creating a [[GraphicBuilder]] to produce a [[RenderGraphic]] to be displayed in a specific [[Viewport]].\r\n * The level of detail of the graphic will be computed from the position of its geometry within the viewport's [Frustum]($common).\r\n * Default values for [[GraphicBuilderOptions.wantNormals]] and [[GraphicBuilderOptions.generateEdges]] will be determined by the viewport's [ViewFlags]($common).\r\n * The [[GraphicBuilder.iModel]] will be set to the viewport's [[IModelConnection]].\r\n * @public\r\n */\r\nexport interface ViewportGraphicBuilderOptions extends GraphicBuilderOptions {\r\n /** The viewport in which the resultant [[RenderGraphic]] is to be drawn. */\r\n viewport: Viewport;\r\n\r\n /** If true, [[ViewState.getAspectRatioSkew]] will be taken into account when computing the level of detail for the produced graphics. */\r\n applyAspectRatioSkew?: boolean;\r\n\r\n iModel?: never;\r\n computeChordTolerance?: never;\r\n}\r\n\r\n/** Arguments used to compute the chord tolerance (level of detail) of the [[RenderGraphic]]s produced by a [[GraphicBuilder]].\r\n * Generally, the chord tolerance should be roughly equivalent to the size in meters of one pixel on screen where the graphic is to be displayed.\r\n * For [[GraphicType.ViewOverlay]] and [[GraphicType.ViewBackground]], which already define their geometry in pixels, the chord tolerance should typically be 1.\r\n * @see [[CustomGraphicBuilderOptions.computeChordTolerance]].\r\n * @public\r\n */\r\nexport interface ComputeChordToleranceArgs {\r\n /** The graphic builder being used to produce the graphics. */\r\n readonly graphic: GraphicBuilder;\r\n /** A function that computes a range enclosing all of the geometry that was added to the builder. */\r\n readonly computeRange: () => Range3d;\r\n}\r\n\r\n/** Options for creating a [[GraphicBuilder]] to produce a [[RenderGraphic]] that is not associated with any particular [[Viewport]] and may not be associated with\r\n * any particular [[IModelConnection]].\r\n * This is primarily useful when the same graphic is to be saved and reused for display in multiple viewports and for which a chord tolerance can be computed\r\n * independently of each viewport's [Frustum]($common).\r\n * @public\r\n */\r\nexport interface CustomGraphicBuilderOptions extends GraphicBuilderOptions {\r\n /** Optionally, the IModelConnection with which the graphic is associated. */\r\n iModel?: IModelConnection;\r\n /** A function that can compute the level of detail for the graphics produced by the builder. */\r\n computeChordTolerance: (args: ComputeChordToleranceArgs) => number;\r\n\r\n applyAspectRatioSkew?: never;\r\n viewport?: never;\r\n}\r\n\r\n/** Provides methods for constructing a [[RenderGraphic]] from geometric primitives.\r\n * GraphicBuilder is primarily used for creating [[Decorations]] to be displayed inside a [[Viewport]].\r\n *\r\n * The typical process for constructing a [[RenderGraphic]] proceeds as follows:\r\n * 1. Use [[DecorateContext.createGraphic]] or [[RenderSystem.createGraphic]] to obtain a builder.\r\n * 2. Set up the symbology using [[GraphicBuilder.activateGraphicParams]] or [[GraphicBuilder.setSymbology]].\r\n * 3. Add one or more geometric primitives using methods like [[GraphicBuilder.addShape]] and [[GraphicBuilder.addLineString]], possibly setting new symbology in between.\r\n * 4. Use [[GraphicBuilder.finish]] to produce the finished [[RenderGraphic]].\r\n *\r\n * @note Most of the methods which add geometry to the builder take ownership of their inputs rather than cloning them.\r\n * So, for example, if you pass an array of points to addLineString(), you should not subsequently modify that array.\r\n *\r\n * @public\r\n */\r\nexport abstract class GraphicBuilder {\r\n /** The local coordinate system transform applied to this builder's geometry.\r\n * @see [[GraphicBuilderOptions.placement]].\r\n */\r\n public readonly placement: Transform;\r\n\r\n /** The iModel associated with this builder, if any. */\r\n public readonly iModel?: IModelConnection;\r\n\r\n /** The type of graphic to be produced by this builder.\r\n * @see [[GraphicBuilderOptions.type]].\r\n */\r\n public readonly type: GraphicType;\r\n\r\n /** If the graphic is to be pickable, specifies the pickable Id and other options. */\r\n public readonly pickable?: Readonly<PickableGraphicOptions>;\r\n\r\n /** If true, the order in which geometry is added to the builder is preserved.\r\n * @see [[GraphicBuilderOptions.preserveOrder]] for more details.\r\n */\r\n public readonly preserveOrder: boolean;\r\n\r\n /** Controls whether normals are generated for surfaces.\r\n * @note Normals are required for proper edge display, so by default they are always produced if [[wantEdges]] is `true`.\r\n * @see [[GraphicBuilderOptions.wantNormals]] for more details.\r\n */\r\n public readonly wantNormals: boolean;\r\n\r\n /** Controls whether edges are generated for surfaces.\r\n * @see [[GraphicBuilderOptions.generateEdges]] for more details.\r\n */\r\n public readonly wantEdges: boolean;\r\n\r\n /** @alpha */\r\n public readonly analysisStyle?: AnalysisStyle;\r\n\r\n protected readonly _computeChordTolerance: (args: ComputeChordToleranceArgs) => number;\r\n protected readonly _options: CustomGraphicBuilderOptions | ViewportGraphicBuilderOptions;\r\n\r\n /** @internal */\r\n protected constructor(options: ViewportGraphicBuilderOptions | CustomGraphicBuilderOptions) {\r\n // Stored for potential use later in creating a new GraphicBuilder from this one (see PrimitiveBuilder.finishGraphic).\r\n this._options = options;\r\n\r\n const vp = options.viewport;\r\n this.placement = options.placement ?? Transform.createIdentity();\r\n this.iModel = vp?.iModel ?? options.iModel;\r\n this.type = options.type;\r\n this.pickable = options.pickable;\r\n this.wantEdges = options.generateEdges ?? (this.type === GraphicType.Scene && (!vp || vp.viewFlags.edgesRequired()));\r\n this.wantNormals = options.wantNormals ?? (this.wantEdges || this.type === GraphicType.Scene);\r\n this.preserveOrder = options.preserveOrder ?? (this.isOverlay || this.isViewBackground);\r\n\r\n if (!options.viewport) {\r\n this._computeChordTolerance = options.computeChordTolerance;\r\n return;\r\n }\r\n\r\n this.analysisStyle = options.viewport.displayStyle.settings.analysisStyle;\r\n\r\n this._computeChordTolerance = (args: ComputeChordToleranceArgs) => {\r\n let pixelSize = 1;\r\n if (!this.isViewCoordinates) {\r\n // Compute the horizontal distance in meters between two adjacent pixels at the center of the geometry.\r\n pixelSize = options.viewport.getPixelSizeAtPoint(args.computeRange().center);\r\n pixelSize = options.viewport.target.adjustPixelSizeForLOD(pixelSize);\r\n\r\n // Aspect ratio skew > 1.0 stretches the view in Y. In that case use the smaller vertical pixel distance for our stroke tolerance.\r\n const skew = options.applyAspectRatioSkew ? options.viewport.view.getAspectRatioSkew() : 0;\r\n if (skew > 1)\r\n pixelSize /= skew;\r\n }\r\n\r\n return pixelSize * 0.25;\r\n };\r\n }\r\n\r\n /** The Id to be associated with the graphic for picking.\r\n * @see [[GraphicBuilderOptions.pickable]] for more options.\r\n */\r\n public get pickId(): Id64String | undefined {\r\n return this.pickable?.id;\r\n }\r\n\r\n /** Whether the builder's geometry is defined in [[CoordSystem.View]] coordinates.\r\n * @see [[isWorldCoordinates]].\r\n */\r\n public get isViewCoordinates(): boolean {\r\n return this.type === GraphicType.ViewBackground || this.type === GraphicType.ViewOverlay;\r\n }\r\n\r\n /** Whether the builder's geometry is defined in [[CoordSystem.World]] coordinates.\r\n * @see [[isViewCoordinates]].\r\n */\r\n public get isWorldCoordinates(): boolean {\r\n return !this.isViewCoordinates;\r\n }\r\n\r\n /** True if the builder produces a graphic of [[GraphicType.Scene]]. */\r\n public get isSceneGraphic(): boolean {\r\n return this.type === GraphicType.Scene;\r\n }\r\n\r\n /** True if the builder produces a graphic of [[GraphicType.ViewBackground]]. */\r\n public get isViewBackground(): boolean {\r\n return this.type === GraphicType.ViewBackground;\r\n }\r\n\r\n /** True if the builder produces a graphic of [[GraphicType.WorldOverlay]] or [[GraphicType.ViewOerlay]]. */\r\n public get isOverlay(): boolean {\r\n return this.type === GraphicType.ViewOverlay || this.type === GraphicType.WorldOverlay;\r\n }\r\n\r\n /**\r\n * Processes the accumulated symbology and geometry to produce a renderable graphic.\r\n * This function can only be called once; after the [[RenderGraphic]] has been extracted the [[GraphicBuilder]] should no longer be used.\r\n */\r\n public abstract finish(): RenderGraphic;\r\n\r\n /** Sets the current active symbology for this builder. Any new geometry subsequently added to the builder will be drawn using the specified symbology.\r\n * @param graphicParams The symbology to apply to subsequent geometry.\r\n * @see [[GraphicBuilder.setSymbology]] for a convenient way to set common symbology options.\r\n */\r\n public abstract activateGraphicParams(graphicParams: GraphicParams): void;\r\n\r\n /**\r\n * Appends a 3d line string to the builder.\r\n * @param points Array of vertices in the line string.\r\n */\r\n public abstract addLineString(points: Point3d[]): void;\r\n\r\n /**\r\n * Appends a 2d line string to the builder.\r\n * @param points Array of vertices in the line string.\r\n * @param zDepth Z value in local coordinates to use for each point.\r\n */\r\n public abstract addLineString2d(points: Point2d[], zDepth: number): void;\r\n\r\n /**\r\n * Appends a 3d point string to the builder. The points are drawn disconnected, with a diameter in pixels defined by the builder's active [[GraphicParams.rasterWidth]].\r\n * @param points Array of vertices in the point string.\r\n */\r\n public abstract addPointString(points: Point3d[]): void;\r\n\r\n /**\r\n * Appends a 2d point string to the builder. The points are drawn disconnected, with a diameter in pixels defined by the builder's active [[GraphicParams.rasterWidth]].\r\n * @param points Array of vertices in the point string.\r\n * @param zDepth Z value in local coordinates to use for each point.\r\n */\r\n public abstract addPointString2d(points: Point2d[], zDepth: number): void;\r\n\r\n /**\r\n * Appends a closed 3d planar region to the builder.\r\n * @param points Array of vertices of the shape.\r\n */\r\n public abstract addShape(points: Point3d[]): void;\r\n\r\n /**\r\n * Appends a closed 2d region to the builder.\r\n * @param points Array of vertices of the shape.\r\n * @param zDepth Z value in local coordinates to use for each point.\r\n */\r\n public abstract addShape2d(points: Point2d[], zDepth: number): void;\r\n\r\n /**\r\n * Appends a 3d open arc or closed ellipse to the builder.\r\n * @param arc Description of the arc or ellipse.\r\n * @param isEllipse If true, and if the arc defines a full sweep, then draw as a closed ellipse instead of an arc.\r\n * @param filled If true, and isEllipse is also true, then draw ellipse filled.\r\n */\r\n public abstract addArc(arc: Arc3d, isEllipse: boolean, filled: boolean): void;\r\n\r\n /**\r\n * Appends a 2d open arc or closed ellipse to the builder.\r\n * @param arc Description of the arc or ellipse.\r\n * @param isEllipse If true, and if the arc defines a full sweep, then draw as a closed ellipse instead of an arc.\r\n * @param filled If true, and isEllipse is also true, then draw ellipse filled.\r\n * @param zDepth Z value in local coordinates to use for each point in the arc or ellipse.\r\n */\r\n public abstract addArc2d(ellipse: Arc3d, isEllipse: boolean, filled: boolean, zDepth: number): void;\r\n\r\n /** Append a 3d open path to the builder. */\r\n public abstract addPath(path: Path): void;\r\n\r\n /** Append a 3d planar region to the builder. */\r\n public abstract addLoop(loop: Loop): void;\r\n\r\n /** Append a [CurvePrimitive]($core-geometry) to the builder. */\r\n public addCurvePrimitive(curve: AnyCurvePrimitive): void {\r\n switch (curve.curvePrimitiveType) {\r\n case \"lineString\":\r\n this.addLineString(curve.points);\r\n break;\r\n case \"lineSegment\":\r\n this.addLineString([curve.startPoint(), curve.endPoint()]);\r\n break;\r\n case \"arc\":\r\n this.addArc(curve, false, false);\r\n break;\r\n default:\r\n const path = new Path();\r\n if (path.tryAddChild(curve))\r\n this.addPath(path);\r\n\r\n break;\r\n }\r\n }\r\n\r\n /** Append a mesh to the builder.\r\n * @param meshData Describes the mesh\r\n * @param filled If the mesh describes a planar region, indicates whether its interior area should be drawn with fill in [[RenderMode.Wireframe]].\r\n */\r\n public abstract addPolyface(meshData: Polyface, filled: boolean): void;\r\n\r\n /** Append a solid primitive to the builder. */\r\n public abstract addSolidPrimitive(solidPrimitive: SolidPrimitive): void;\r\n\r\n /** Append any primitive to the builder.\r\n * @param primitive The graphic primitive to append.\r\n */\r\n public addPrimitive(primitive: GraphicPrimitive): void {\r\n switch (primitive.type) {\r\n case \"linestring\":\r\n this.addLineString(primitive.points);\r\n break;\r\n case \"linestring2d\":\r\n this.addLineString2d(primitive.points, primitive.zDepth);\r\n break;\r\n case \"pointstring\":\r\n this.addPointString(primitive.points);\r\n break;\r\n case \"pointstring2d\":\r\n this.addPointString2d(primitive.points, primitive.zDepth);\r\n break;\r\n case \"shape\":\r\n this.addShape(primitive.points);\r\n break;\r\n case \"shape2d\":\r\n this.addShape2d(primitive.points, primitive.zDepth);\r\n break;\r\n case \"arc\":\r\n this.addArc(primitive.arc, true === primitive.isEllipse, true === primitive.filled);\r\n break;\r\n case \"arc2d\":\r\n this.addArc2d(primitive.arc, true === primitive.isEllipse, true === primitive.filled, primitive.zDepth);\r\n break;\r\n case \"path\":\r\n this.addPath(primitive.path);\r\n break;\r\n case \"loop\":\r\n this.addLoop(primitive.loop);\r\n break;\r\n case \"polyface\":\r\n this.addPolyface(primitive.polyface, true === primitive.filled);\r\n break;\r\n case \"solidPrimitive\":\r\n this.addSolidPrimitive(primitive.solidPrimitive);\r\n break;\r\n }\r\n }\r\n\r\n /** Add Range3d edges. Useful for debugging. */\r\n public addRangeBox(range: Range3d) {\r\n this.addFrustum(Frustum.fromRange(range));\r\n }\r\n\r\n /** Add Frustum edges. Useful for debugging. */\r\n public addFrustum(frustum: Frustum) {\r\n this.addRangeBoxFromCorners(frustum.points);\r\n }\r\n\r\n /** Add range edges from corner points */\r\n public addRangeBoxFromCorners(p: Point3d[]) {\r\n this.addLineString([\r\n p[Npc.LeftBottomFront],\r\n p[Npc.LeftTopFront],\r\n p[Npc.RightTopFront],\r\n p[Npc.RightBottomFront],\r\n p[Npc.RightBottomRear],\r\n p[Npc.RightTopRear],\r\n p[Npc.LeftTopRear],\r\n p[Npc.LeftBottomRear],\r\n p[Npc.LeftBottomFront].clone(),\r\n p[Npc.RightBottomFront].clone(),\r\n ]);\r\n\r\n this.addLineString([p[Npc.LeftTopFront].clone(), p[Npc.LeftTopRear].clone()]);\r\n this.addLineString([p[Npc.RightTopFront].clone(), p[Npc.RightTopRear].clone()]);\r\n this.addLineString([p[Npc.LeftBottomRear].clone(), p[Npc.RightBottomRear].clone()]);\r\n }\r\n\r\n /** Sets the current active symbology for this builder. Any new geometry subsequently added will be drawn using the specified symbology.\r\n * @param lineColor The color in which to draw lines.\r\n * @param fillColor The color in which to draw filled regions.\r\n * @param lineWidth The width in pixels to draw lines. The renderer will clamp this value to an integer in the range [1, 32].\r\n * @param linePixels The pixel pattern in which to draw lines.\r\n * @see [[GraphicBuilder.activateGraphicParams]] for additional symbology options.\r\n */\r\n public setSymbology(lineColor: ColorDef, fillColor: ColorDef, lineWidth: number, linePixels = LinePixels.Solid) {\r\n this.activateGraphicParams(GraphicParams.fromSymbology(lineColor, fillColor, lineWidth, linePixels));\r\n }\r\n\r\n /** Set the current active symbology for this builder to be a blanking fill before adding a planar region.\r\n * A planar region drawn with blanking fill renders behind other geometry in the same graphic.\r\n * Blanking fill is not affected by the fill [[ViewFlags]] being disabled.\r\n * An example would be to add a line to a graphic containing a shape with blanking fill so that the line is always shown in front of the fill.\r\n * @param fillColor The color in which to draw filled regions.\r\n */\r\n public setBlankingFill(fillColor: ColorDef) { this.activateGraphicParams(GraphicParams.fromBlankingFill(fillColor)); }\r\n}\r\n"]}
1
+ {"version":3,"file":"GraphicBuilder.js","sourceRoot":"","sources":["../../../src/render/GraphicBuilder.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAc,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAC2B,IAAI,EAAuD,SAAS,GACrG,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAA2B,OAAO,EAAE,OAAO,EAAiB,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAM9H;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,WAkDX;AAlDD,WAAY,WAAW;IACrB;;;;;;;OAOG;IACH,iEAAc,CAAA;IACd,qEAAqE;IACrE;;;;;;OAMG;IACH,+CAAK,CAAA;IACL,8GAA8G;IAC9G;;;;;;OAMG;IACH,mEAAe,CAAA;IACf;;;;;;;;;;OAUG;IACH,6DAAY,CAAA;IACZ;;;;;;;;OAQG;IACH,2DAAW,CAAA;AACb,CAAC,EAlDW,WAAW,KAAX,WAAW,QAkDtB;AA6ID;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAgB,cAAc;IAuClC,gBAAgB;IAChB,YAAsB,OAAoE;;QACxF,sHAAsH;QACtH,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAExB,MAAM,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC;QAC5B,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,SAAS,CAAC,cAAc,EAAE,CAAC;QACjE,IAAI,CAAC,MAAM,GAAG,MAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,MAAM,mCAAI,OAAO,CAAC,MAAM,CAAC;QAC3C,IAAI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,EAAE,UAAU,GAAG,UAAU,CAAC,KAAK;QAC5G,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACvG,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,SAAmB,IAAI,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CACvH","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Rendering\r\n */\r\n\r\nimport { assert, Id64String } from \"@itwin/core-bentley\";\r\nimport {\r\n AnyCurvePrimitive, Arc3d, Loop, Path, Point2d, Point3d, Polyface, Range3d, SolidPrimitive, Transform,\r\n} from \"@itwin/core-geometry\";\r\nimport { AnalysisStyle, ColorDef, Feature, Frustum, GeometryClass, GraphicParams, LinePixels, Npc } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\nimport { Viewport } from \"../Viewport\";\r\nimport { RenderGraphic } from \"./RenderGraphic\";\r\nimport { GraphicPrimitive } from \"./GraphicPrimitive\";\r\n\r\n/**\r\n * Describes the type of a [[GraphicBuilder]], which defines the coordinate system in which the builder's geometry is defined and\r\n * controls the behavior of the [[RenderGraphic]] produced by the builder.\r\n * @note For those types for which depth-testing is disabled, the order in which the individual geometric primitives are drawn determines which geometry draws on top of other geometry.\r\n * - Within a [[GraphicList]], each [[RenderGraphic]] is rendered in the order in which it appears in the list; and\r\n * - Within a single [[RenderGraphic]], each geometric primitive is rendered in the ordered in which it was added to the GraphicBuilder.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum GraphicType {\r\n /**\r\n * Renders behind all other graphics. For example, the border of a [[SheetViewState]] is of this type.\r\n * Coordinates: [[CoordSystem.View]].\r\n * [[RenderMode]]: [[RenderMode.SmoothShade]].\r\n * Lighting: none.\r\n * Depth-testing: disabled.\r\n * @see [[Decorations.viewBackground]]\r\n */\r\n ViewBackground,\r\n /** Used for the scene itself, dynamics, and 'normal' decorations. */\r\n /**\r\n * Renders as if it were part of the scene. All of the [[ViewFlags]] applied to the view's normal geometry also applies to these types of decorations.\r\n * Coordinates: [[CoordSystem.World]].\r\n * Lighting and [[RenderMode]]: from view.\r\n * Depth-testing: enabled.\r\n * @see [[Decorations.normal]].\r\n */\r\n Scene,\r\n /** Renders within the scene. Coordinates: world. RenderMode: smooth. Lighting: default. Z-testing: enabled */\r\n /** Renders within the scene, but ignores the view's [[ViewFlags]].\r\n * Coordinates: [[CoordSystem.World]].\r\n * Lighting: default.\r\n * [[RenderMode]]: [[RenderMode.SmoothShade]].\r\n * Depth-testing: enabled.\r\n * @see [[Decorations.world]].\r\n */\r\n WorldDecoration,\r\n /**\r\n * Renders as an overlay on top of the scene. These decorations differ from [[GraphicType.WorldDecoration]] only in that depth-testing is disabled.\r\n * For example, the ACS triad and [[WindowAreaTool]] decorations are of this type.\r\n * Coordinates: [[CoordSystem.World]].\r\n * [[RenderMode]]: [[RenderMode.SmoothShade]]\r\n * Lighting: default.\r\n * Depth-testing: disabled.\r\n * Renders atop the scene. Coordinates: world. RenderMode: smooth. Lighting: none. Z-testing: disabled\r\n * @note Overlay decorations typically employ some degree of transparency to ensure that they do not fully obscure the scene.\r\n * @see [[Decorations.worldOverlay]]\r\n */\r\n WorldOverlay,\r\n /**\r\n * Renders as an overlay on top of the scene. These decorations differ from [[GraphicType.WorldOverlay]] only in that their geometry is defined in view coordinates rather than world.\r\n * Coordinates: [[CoordSystem.View]].\r\n * [[RenderMode]]: [[RenderMode.SmoothShade]]\r\n * Lighting: default.\r\n * Depth-testing: disabled.\r\n * @note For more flexibility in defining view overlay decorations, consider using a [[CanvasDecorationList]].\r\n * @see [[Decorations.viewOverlay]]\r\n */\r\n ViewOverlay,\r\n}\r\n\r\n/** Options used when constructing a `Batch` - that is, a [[RenderGraphic]] with an associated [FeatureTable]($common) describing individual [Feature]($common)s within the\r\n * graphic. Individual features can be resymbolized in a variety of ways including flashing and hiliting.\r\n * For example, to prevent graphics produced by [[readElementGraphics]] from being hilited when their corresponding element is in the [[SelectionSet]],\r\n * pass `{ noHilite: true }` to [[readElementGraphics]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface BatchOptions {\r\n /** Identifies the [[Tile]] associated with the batch, chiefly for debugging purposes.\r\n * @beta\r\n */\r\n tileId?: string;\r\n /** If true, features within the batch will not be flashed on mouseover. */\r\n noFlash?: boolean;\r\n /** If true, features within the batch will not be hilited when their corresponding element is in the [[SelectionSet]]. */\r\n noHilite?: boolean;\r\n /** If true, features within the batch will not be emphasized when the corresponding [[Feature]] is emphasized using [FeatureOverrides]($common). */\r\n noEmphasis?: boolean;\r\n /** If true, the contents of the batch will only be drawn by [[Viewport.readPixels]], not [[Viewport.renderFrame]], causing them to be locatable but invisible. */\r\n locateOnly?: boolean;\r\n}\r\n\r\n/** Options used as part of [[GraphicBuilderOptions]] to describe a [pickable]($docs/learning/frontend/ViewDecorations#pickable-view-graphic-decorations) [[RenderGraphic]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface PickableGraphicOptions extends BatchOptions {\r\n /** A unique identifier for the graphic.\r\n * @see [[IModelConnection.transientIds]] to obtain a unique Id in the context of an iModel.\r\n * @see [[GraphicBuilder.activatePickableId]] or [[GraphicBuilder.activateFeature]] to change the pickable object while adding geometry.\r\n */\r\n id: Id64String;\r\n /** Optional Id of the subcategory with which the graphic should be associated. */\r\n subCategoryId?: Id64String;\r\n /** Optional geometry class for the graphic - defaults to [GeometryClass.Primary]($common). */\r\n geometryClass?: GeometryClass;\r\n /** The optional Id of the model with which the graphic should be associated. */\r\n modelId?: Id64String;\r\n}\r\n\r\n/** Options for creating a [[GraphicBuilder]] used by functions like [[DecorateContext.createGraphic]] and [[RenderSystem.createGraphic]].\r\n * @see [[ViewportGraphicBuilderOptions]] to create a graphic builder for a [[Viewport]].\r\n * @see [[CustomGraphicBuilderOptions]] to create a graphic builder unassociated with any [[Viewport]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GraphicBuilderOptions {\r\n /** The type of graphic to produce. */\r\n type: GraphicType;\r\n\r\n /** The local-to-world transform in which the builder's geometry is to be defined - by default, an identity transform. */\r\n placement?: Transform;\r\n\r\n /** If the graphic is to be pickable, specifies the pickable Id and other options. */\r\n pickable?: PickableGraphicOptions;\r\n\r\n /** If true, the order in which geometry is added to the builder is preserved.\r\n * This is useful for overlay and background graphics because they draw without using the depth buffer. For example, to draw an overlay containing a red shape with a white outline,\r\n * you would add the shape to the GraphicBuilder first, followed by the outline, to ensure the outline draws \"in front of\" the shape.\r\n * It defaults to true for overlays and background graphics, and false for other graphic types.\r\n * It is not useful for other types of graphics and imposes a performance penalty due to increased number of draw calls.\r\n * For overlay and background graphics that do not need to draw in any particular order, the performance penalty can be eliminated by setting this to `false`.\r\n */\r\n preserveOrder?: boolean;\r\n\r\n /** Controls whether normals are generated for surfaces. Normals allow 3d geometry to receive lighting; without them the geometry will be unaffected by lighting.\r\n * By default, normals are generated only for graphics of type [[GraphicType.Scene]]; or for any type of graphic if [[GraphicBuilder.wantEdges]] is true, because\r\n * normals are required to prevent z-fighting between surfaces and their edges. This default can be overridden by explicitly specifying `true` or `false`.\r\n * @see [[GraphicType]] for a description of whether and how different types of graphics are affected by lighting.\r\n */\r\n wantNormals?: boolean;\r\n\r\n /** Controls whether edges are generated for surfaces.\r\n * Edges are only displayed if [ViewFlags.renderMode]($common) is not [RenderMode.SmoothShade]($common) or [ViewFlags.visibleEdges]($common) is `true`.\r\n * Since all decoration graphics except [[GraphicType.Scene]] are drawn in smooth shaded mode with no visible edges, by default edges are only produced for scene graphics, and\r\n * - if a [[Viewport]] is supplied with the options - only if [ViewFlags.edgesRequired]($common) is true for the viewport.\r\n * That default can be overridden by explicitly specifying `true` or `false`. This can be useful for non-scene decorations contained in a [[GraphicBranch]] that applies [ViewFlagOverrides]($common)\r\n * that change the edge display settings; or for scene decorations that might be cached for reuse after the viewport's edge settings are changed.\r\n * @note Edges will tend to z-fight with their surfaces unless the graphic is [[pickable]].\r\n */\r\n generateEdges?: boolean;\r\n\r\n /** If defined, specifies a point about which the graphic will rotate such that it always faces the viewer.\r\n * This can be particular useful for planar regions to create a billboarding effect - e.g., to implement [[Marker]]-like WebGL decorations.\r\n * The graphic's [[placement]] transform is not applied to the point.\r\n * @note This has no effect for graphics displayed in a 2d view.\r\n */\r\n viewIndependentOrigin?: Point3d;\r\n}\r\n\r\n/** Options for creating a [[GraphicBuilder]] to produce a [[RenderGraphic]] to be displayed in a specific [[Viewport]].\r\n * The level of detail of the graphic will be computed from the position of its geometry within the viewport's [Frustum]($common).\r\n * Default values for [[GraphicBuilderOptions.wantNormals]] and [[GraphicBuilderOptions.generateEdges]] will be determined by the viewport's [ViewFlags]($common).\r\n * The [[GraphicBuilder.iModel]] will be set to the viewport's [[IModelConnection]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ViewportGraphicBuilderOptions extends GraphicBuilderOptions {\r\n /** The viewport in which the resultant [[RenderGraphic]] is to be drawn. */\r\n viewport: Viewport;\r\n\r\n /** If true, [[ViewState.getAspectRatioSkew]] will be taken into account when computing the level of detail for the produced graphics. */\r\n applyAspectRatioSkew?: boolean;\r\n\r\n iModel?: never;\r\n computeChordTolerance?: never;\r\n}\r\n\r\n/** Arguments used to compute the chord tolerance (level of detail) of the [[RenderGraphic]]s produced by a [[GraphicBuilder]].\r\n * Generally, the chord tolerance should be roughly equivalent to the size in meters of one pixel on screen where the graphic is to be displayed.\r\n * For [[GraphicType.ViewOverlay]] and [[GraphicType.ViewBackground]], which already define their geometry in pixels, the chord tolerance should typically be 1.\r\n * @see [[CustomGraphicBuilderOptions.computeChordTolerance]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ComputeChordToleranceArgs {\r\n /** The graphic builder being used to produce the graphics. */\r\n readonly graphic: GraphicBuilder;\r\n /** A function that computes a range enclosing all of the geometry that was added to the builder. */\r\n readonly computeRange: () => Range3d;\r\n}\r\n\r\n/** Options for creating a [[GraphicBuilder]] to produce a [[RenderGraphic]] that is not associated with any particular [[Viewport]] and may not be associated with\r\n * any particular [[IModelConnection]].\r\n * This is primarily useful when the same graphic is to be saved and reused for display in multiple viewports and for which a chord tolerance can be computed\r\n * independently of each viewport's [Frustum]($common).\r\n * @public\r\n * @extensions\r\n */\r\nexport interface CustomGraphicBuilderOptions extends GraphicBuilderOptions {\r\n /** Optionally, the IModelConnection with which the graphic is associated. */\r\n iModel?: IModelConnection;\r\n /** A function that can compute the level of detail for the graphics produced by the builder. */\r\n computeChordTolerance: (args: ComputeChordToleranceArgs) => number;\r\n\r\n applyAspectRatioSkew?: never;\r\n viewport?: never;\r\n}\r\n\r\n/** Provides methods for constructing a [[RenderGraphic]] from geometric primitives.\r\n * GraphicBuilder is primarily used for creating [[Decorations]] to be displayed inside a [[Viewport]].\r\n *\r\n * The typical process for constructing a [[RenderGraphic]] proceeds as follows:\r\n * 1. Use [[DecorateContext.createGraphic]] or [[RenderSystem.createGraphic]] to obtain a builder.\r\n * 2. Set up the symbology using [[GraphicBuilder.activateGraphicParams]] or [[GraphicBuilder.setSymbology]].\r\n * 3. Add one or more geometric primitives using methods like [[GraphicBuilder.addShape]] and [[GraphicBuilder.addLineString]], possibly setting new symbology in between.\r\n * 4. Use [[GraphicBuilder.finish]] to produce the finished [[RenderGraphic]].\r\n *\r\n * @note Most of the methods which add geometry to the builder take ownership of their inputs rather than cloning them.\r\n * So, for example, if you pass an array of points to addLineString(), you should not subsequently modify that array.\r\n *\r\n * @public\r\n * @extensions\r\n */\r\nexport abstract class GraphicBuilder {\r\n /** The local coordinate system transform applied to this builder's geometry.\r\n * @see [[GraphicBuilderOptions.placement]].\r\n */\r\n public readonly placement: Transform;\r\n\r\n /** The iModel associated with this builder, if any. */\r\n public readonly iModel?: IModelConnection;\r\n\r\n /** The type of graphic to be produced by this builder.\r\n * @see [[GraphicBuilderOptions.type]].\r\n */\r\n public readonly type: GraphicType;\r\n\r\n /** If the graphic is to be pickable, specifies the pickable Id and other options. */\r\n public readonly pickable?: Readonly<PickableGraphicOptions>;\r\n\r\n /** If true, the order in which geometry is added to the builder is preserved.\r\n * @see [[GraphicBuilderOptions.preserveOrder]] for more details.\r\n */\r\n public readonly preserveOrder: boolean;\r\n\r\n /** Controls whether normals are generated for surfaces.\r\n * @note Normals are required for proper edge display, so by default they are always produced if [[wantEdges]] is `true`.\r\n * @see [[GraphicBuilderOptions.wantNormals]] for more details.\r\n */\r\n public readonly wantNormals: boolean;\r\n\r\n /** Controls whether edges are generated for surfaces.\r\n * @see [[GraphicBuilderOptions.generateEdges]] for more details.\r\n */\r\n public readonly wantEdges: boolean;\r\n\r\n /** @alpha */\r\n public readonly analysisStyle?: AnalysisStyle;\r\n\r\n protected readonly _computeChordTolerance: (args: ComputeChordToleranceArgs) => number;\r\n protected readonly _options: CustomGraphicBuilderOptions | ViewportGraphicBuilderOptions;\r\n\r\n /** @internal */\r\n protected constructor(options: ViewportGraphicBuilderOptions | CustomGraphicBuilderOptions) {\r\n // Stored for potential use later in creating a new GraphicBuilder from this one (see PrimitiveBuilder.finishGraphic).\r\n this._options = options;\r\n\r\n const vp = options.viewport;\r\n this.placement = options.placement ?? Transform.createIdentity();\r\n this.iModel = vp?.iModel ?? options.iModel;\r\n this.type = options.type;\r\n this.pickable = options.pickable;\r\n this.wantEdges = options.generateEdges ?? (this.type === GraphicType.Scene && (!vp || vp.viewFlags.edgesRequired()));\r\n this.wantNormals = options.wantNormals ?? (this.wantEdges || this.type === GraphicType.Scene);\r\n this.preserveOrder = options.preserveOrder ?? (this.isOverlay || this.isViewBackground);\r\n\r\n if (!options.viewport) {\r\n this._computeChordTolerance = options.computeChordTolerance;\r\n return;\r\n }\r\n\r\n this.analysisStyle = options.viewport.displayStyle.settings.analysisStyle;\r\n\r\n this._computeChordTolerance = (args: ComputeChordToleranceArgs) => {\r\n let pixelSize = 1;\r\n if (!this.isViewCoordinates) {\r\n // Compute the horizontal distance in meters between two adjacent pixels at the center of the geometry.\r\n pixelSize = options.viewport.getPixelSizeAtPoint(args.computeRange().center);\r\n pixelSize = options.viewport.target.adjustPixelSizeForLOD(pixelSize);\r\n\r\n // Aspect ratio skew > 1.0 stretches the view in Y. In that case use the smaller vertical pixel distance for our stroke tolerance.\r\n const skew = options.applyAspectRatioSkew ? options.viewport.view.getAspectRatioSkew() : 0;\r\n if (skew > 1)\r\n pixelSize /= skew;\r\n }\r\n\r\n return pixelSize * 0.25;\r\n };\r\n }\r\n\r\n /** The Id to be associated with the graphic for picking.\r\n * @see [[GraphicBuilderOptions.pickable]] for more options.\r\n * @deprecated This provides only the **first** pickable Id for this graphic - you should keep track of the **current** pickable Id yourself.\r\n */\r\n public get pickId(): Id64String | undefined {\r\n return this.pickable?.id;\r\n }\r\n\r\n /** Whether the builder's geometry is defined in [[CoordSystem.View]] coordinates.\r\n * @see [[isWorldCoordinates]].\r\n */\r\n public get isViewCoordinates(): boolean {\r\n return this.type === GraphicType.ViewBackground || this.type === GraphicType.ViewOverlay;\r\n }\r\n\r\n /** Whether the builder's geometry is defined in [[CoordSystem.World]] coordinates.\r\n * @see [[isViewCoordinates]].\r\n */\r\n public get isWorldCoordinates(): boolean {\r\n return !this.isViewCoordinates;\r\n }\r\n\r\n /** True if the builder produces a graphic of [[GraphicType.Scene]]. */\r\n public get isSceneGraphic(): boolean {\r\n return this.type === GraphicType.Scene;\r\n }\r\n\r\n /** True if the builder produces a graphic of [[GraphicType.ViewBackground]]. */\r\n public get isViewBackground(): boolean {\r\n return this.type === GraphicType.ViewBackground;\r\n }\r\n\r\n /** True if the builder produces a graphic of [[GraphicType.WorldOverlay]] or [[GraphicType.ViewOerlay]]. */\r\n public get isOverlay(): boolean {\r\n return this.type === GraphicType.ViewOverlay || this.type === GraphicType.WorldOverlay;\r\n }\r\n\r\n /**\r\n * Processes the accumulated symbology and geometry to produce a renderable graphic.\r\n * This function can only be called once; after the [[RenderGraphic]] has been extracted the [[GraphicBuilder]] should no longer be used.\r\n */\r\n public abstract finish(): RenderGraphic;\r\n\r\n /** Sets the current active symbology for this builder. Any new geometry subsequently added to the builder will be drawn using the specified symbology.\r\n * @param graphicParams The symbology to apply to subsequent geometry.\r\n * @see [[GraphicBuilder.setSymbology]] for a convenient way to set common symbology options.\r\n */\r\n public abstract activateGraphicParams(graphicParams: GraphicParams): void;\r\n\r\n /** Called by [[activateFeature]] after validation to change the [Feature]($common) to be associated with subsequently-added geometry.\r\n * This default implementation does nothing.\r\n */\r\n protected _activateFeature(_feature: Feature): void { }\r\n\r\n /** Change the [Feature]($common) to be associated with subsequently-added geometry. This permits multiple features to be batched together into a single graphic\r\n * for more efficient rendering.\r\n * @note This method has no effect if [[GraphicBuilderOptions.pickable]] was not supplied to the GraphicBuilder's constructor.\r\n */\r\n public activateFeature(feature: Feature): void {\r\n assert(undefined !== this._options.pickable, \"GraphicBuilder.activateFeature has no effect if PickableGraphicOptions were not supplied\");\r\n if (this._options.pickable)\r\n this._activateFeature(feature);\r\n }\r\n\r\n /** Change the pickable Id to be associated with subsequently-added geometry. This permits multiple pickable objects to be batched together into a single graphic\r\n * for more efficient rendering. This method calls [[activateFeature]], using the subcategory Id and [GeometryClass]($common) specified in [[GraphicBuilder.pickable]]\r\n * at construction, if any.\r\n * @note This method has no effect if [[GraphicBuilderOptions.pickable]] was not supplied to the GraphicBuilder's constructor.\r\n */\r\n public activatePickableId(id: Id64String): void {\r\n const pick = this._options.pickable;\r\n this.activateFeature(new Feature(id, pick?.subCategoryId, pick?.geometryClass));\r\n }\r\n\r\n /**\r\n * Appends a 3d line string to the builder.\r\n * @param points Array of vertices in the line string.\r\n */\r\n public abstract addLineString(points: Point3d[]): void;\r\n\r\n /**\r\n * Appends a 2d line string to the builder.\r\n * @param points Array of vertices in the line string.\r\n * @param zDepth Z value in local coordinates to use for each point.\r\n */\r\n public abstract addLineString2d(points: Point2d[], zDepth: number): void;\r\n\r\n /**\r\n * Appends a 3d point string to the builder. The points are drawn disconnected, with a diameter in pixels defined by the builder's active [[GraphicParams.rasterWidth]].\r\n * @param points Array of vertices in the point string.\r\n */\r\n public abstract addPointString(points: Point3d[]): void;\r\n\r\n /**\r\n * Appends a 2d point string to the builder. The points are drawn disconnected, with a diameter in pixels defined by the builder's active [[GraphicParams.rasterWidth]].\r\n * @param points Array of vertices in the point string.\r\n * @param zDepth Z value in local coordinates to use for each point.\r\n */\r\n public abstract addPointString2d(points: Point2d[], zDepth: number): void;\r\n\r\n /**\r\n * Appends a closed 3d planar region to the builder.\r\n * @param points Array of vertices of the shape.\r\n */\r\n public abstract addShape(points: Point3d[]): void;\r\n\r\n /**\r\n * Appends a closed 2d region to the builder.\r\n * @param points Array of vertices of the shape.\r\n * @param zDepth Z value in local coordinates to use for each point.\r\n */\r\n public abstract addShape2d(points: Point2d[], zDepth: number): void;\r\n\r\n /**\r\n * Appends a 3d open arc or closed ellipse to the builder.\r\n * @param arc Description of the arc or ellipse.\r\n * @param isEllipse If true, and if the arc defines a full sweep, then draw as a closed ellipse instead of an arc.\r\n * @param filled If true, and isEllipse is also true, then draw ellipse filled.\r\n */\r\n public abstract addArc(arc: Arc3d, isEllipse: boolean, filled: boolean): void;\r\n\r\n /**\r\n * Appends a 2d open arc or closed ellipse to the builder.\r\n * @param arc Description of the arc or ellipse.\r\n * @param isEllipse If true, and if the arc defines a full sweep, then draw as a closed ellipse instead of an arc.\r\n * @param filled If true, and isEllipse is also true, then draw ellipse filled.\r\n * @param zDepth Z value in local coordinates to use for each point in the arc or ellipse.\r\n */\r\n public abstract addArc2d(ellipse: Arc3d, isEllipse: boolean, filled: boolean, zDepth: number): void;\r\n\r\n /** Append a 3d open path to the builder. */\r\n public abstract addPath(path: Path): void;\r\n\r\n /** Append a 3d planar region to the builder. */\r\n public abstract addLoop(loop: Loop): void;\r\n\r\n /** Append a [CurvePrimitive]($core-geometry) to the builder. */\r\n public addCurvePrimitive(curve: AnyCurvePrimitive): void {\r\n switch (curve.curvePrimitiveType) {\r\n case \"lineString\":\r\n this.addLineString(curve.points);\r\n break;\r\n case \"lineSegment\":\r\n this.addLineString([curve.startPoint(), curve.endPoint()]);\r\n break;\r\n case \"arc\":\r\n this.addArc(curve, false, false);\r\n break;\r\n default:\r\n const path = new Path();\r\n if (path.tryAddChild(curve))\r\n this.addPath(path);\r\n\r\n break;\r\n }\r\n }\r\n\r\n /** Append a mesh to the builder.\r\n * @param meshData Describes the mesh\r\n * @param filled If the mesh describes a planar region, indicates whether its interior area should be drawn with fill in [[RenderMode.Wireframe]].\r\n */\r\n public abstract addPolyface(meshData: Polyface, filled: boolean): void;\r\n\r\n /** Append a solid primitive to the builder. */\r\n public abstract addSolidPrimitive(solidPrimitive: SolidPrimitive): void;\r\n\r\n /** Append any primitive to the builder.\r\n * @param primitive The graphic primitive to append.\r\n */\r\n public addPrimitive(primitive: GraphicPrimitive): void {\r\n switch (primitive.type) {\r\n case \"linestring\":\r\n this.addLineString(primitive.points);\r\n break;\r\n case \"linestring2d\":\r\n this.addLineString2d(primitive.points, primitive.zDepth);\r\n break;\r\n case \"pointstring\":\r\n this.addPointString(primitive.points);\r\n break;\r\n case \"pointstring2d\":\r\n this.addPointString2d(primitive.points, primitive.zDepth);\r\n break;\r\n case \"shape\":\r\n this.addShape(primitive.points);\r\n break;\r\n case \"shape2d\":\r\n this.addShape2d(primitive.points, primitive.zDepth);\r\n break;\r\n case \"arc\":\r\n this.addArc(primitive.arc, true === primitive.isEllipse, true === primitive.filled);\r\n break;\r\n case \"arc2d\":\r\n this.addArc2d(primitive.arc, true === primitive.isEllipse, true === primitive.filled, primitive.zDepth);\r\n break;\r\n case \"path\":\r\n this.addPath(primitive.path);\r\n break;\r\n case \"loop\":\r\n this.addLoop(primitive.loop);\r\n break;\r\n case \"polyface\":\r\n this.addPolyface(primitive.polyface, true === primitive.filled);\r\n break;\r\n case \"solidPrimitive\":\r\n this.addSolidPrimitive(primitive.solidPrimitive);\r\n break;\r\n }\r\n }\r\n\r\n /** Add Range3d edges. Useful for debugging. */\r\n public addRangeBox(range: Range3d) {\r\n this.addFrustum(Frustum.fromRange(range));\r\n }\r\n\r\n /** Add Frustum edges. Useful for debugging. */\r\n public addFrustum(frustum: Frustum) {\r\n this.addRangeBoxFromCorners(frustum.points);\r\n }\r\n\r\n /** Add range edges from corner points */\r\n public addRangeBoxFromCorners(p: Point3d[]) {\r\n this.addLineString([\r\n p[Npc.LeftBottomFront],\r\n p[Npc.LeftTopFront],\r\n p[Npc.RightTopFront],\r\n p[Npc.RightBottomFront],\r\n p[Npc.RightBottomRear],\r\n p[Npc.RightTopRear],\r\n p[Npc.LeftTopRear],\r\n p[Npc.LeftBottomRear],\r\n p[Npc.LeftBottomFront].clone(),\r\n p[Npc.RightBottomFront].clone(),\r\n ]);\r\n\r\n this.addLineString([p[Npc.LeftTopFront].clone(), p[Npc.LeftTopRear].clone()]);\r\n this.addLineString([p[Npc.RightTopFront].clone(), p[Npc.RightTopRear].clone()]);\r\n this.addLineString([p[Npc.LeftBottomRear].clone(), p[Npc.RightBottomRear].clone()]);\r\n }\r\n\r\n /** Sets the current active symbology for this builder. Any new geometry subsequently added will be drawn using the specified symbology.\r\n * @param lineColor The color in which to draw lines.\r\n * @param fillColor The color in which to draw filled regions.\r\n * @param lineWidth The width in pixels to draw lines. The renderer will clamp this value to an integer in the range [1, 32].\r\n * @param linePixels The pixel pattern in which to draw lines.\r\n * @see [[GraphicBuilder.activateGraphicParams]] for additional symbology options.\r\n */\r\n public setSymbology(lineColor: ColorDef, fillColor: ColorDef, lineWidth: number, linePixels = LinePixels.Solid) {\r\n this.activateGraphicParams(GraphicParams.fromSymbology(lineColor, fillColor, lineWidth, linePixels));\r\n }\r\n\r\n /** Set the current active symbology for this builder to be a blanking fill before adding a planar region.\r\n * A planar region drawn with blanking fill renders behind other geometry in the same graphic.\r\n * Blanking fill is not affected by the fill [[ViewFlags]] being disabled.\r\n * An example would be to add a line to a graphic containing a shape with blanking fill so that the line is always shown in front of the fill.\r\n * @param fillColor The color in which to draw filled regions.\r\n */\r\n public setBlankingFill(fillColor: ColorDef) { this.activateGraphicParams(GraphicParams.fromBlankingFill(fillColor)); }\r\n}\r\n"]}