@itwin/core-common 5.0.0-dev.7 → 5.0.0-dev.70

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 (776) hide show
  1. package/CHANGELOG.md +33 -1
  2. package/lib/cjs/AmbientOcclusion.js +17 -9
  3. package/lib/cjs/AmbientOcclusion.js.map +1 -1
  4. package/lib/cjs/AnalysisStyle.d.ts +0 -3
  5. package/lib/cjs/AnalysisStyle.d.ts.map +1 -1
  6. package/lib/cjs/AnalysisStyle.js +20 -4
  7. package/lib/cjs/AnalysisStyle.js.map +1 -1
  8. package/lib/cjs/Atmosphere.js +39 -21
  9. package/lib/cjs/Atmosphere.js.map +1 -1
  10. package/lib/cjs/AuthorizationClient.js.map +1 -1
  11. package/lib/cjs/BackgroundMapProvider.js +4 -0
  12. package/lib/cjs/BackgroundMapProvider.js.map +1 -1
  13. package/lib/cjs/BackgroundMapSettings.js +19 -0
  14. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  15. package/lib/cjs/Base64EncodedString.js.map +1 -1
  16. package/lib/cjs/BlobReader.js +8 -6
  17. package/lib/cjs/BlobReader.js.map +1 -1
  18. package/lib/cjs/BriefcaseTypes.d.ts +2 -2
  19. package/lib/cjs/BriefcaseTypes.d.ts.map +1 -1
  20. package/lib/cjs/BriefcaseTypes.js.map +1 -1
  21. package/lib/cjs/Camera.js +3 -0
  22. package/lib/cjs/Camera.js.map +1 -1
  23. package/lib/cjs/ChangedElements.js.map +1 -1
  24. package/lib/cjs/ChangedEntities.js.map +1 -1
  25. package/lib/cjs/ChangesetProps.d.ts +1 -1
  26. package/lib/cjs/ChangesetProps.js.map +1 -1
  27. package/lib/cjs/ClipStyle.js +31 -5
  28. package/lib/cjs/ClipStyle.js.map +1 -1
  29. package/lib/cjs/Code.d.ts +0 -5
  30. package/lib/cjs/Code.d.ts.map +1 -1
  31. package/lib/cjs/Code.js +16 -11
  32. package/lib/cjs/Code.js.map +1 -1
  33. package/lib/cjs/ColorByName.js.map +1 -1
  34. package/lib/cjs/ColorDef.js +11 -10
  35. package/lib/cjs/ColorDef.js.map +1 -1
  36. package/lib/cjs/CommonLoggerCategory.js.map +1 -1
  37. package/lib/cjs/ConcurrentQuery.d.ts +37 -1
  38. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  39. package/lib/cjs/ConcurrentQuery.js +16 -3
  40. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  41. package/lib/cjs/ContextRealityModel.js +53 -27
  42. package/lib/cjs/ContextRealityModel.js.map +1 -1
  43. package/lib/cjs/ContourDisplay.js +40 -5
  44. package/lib/cjs/ContourDisplay.js.map +1 -1
  45. package/lib/cjs/DisplayStyleSettings.js +95 -63
  46. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  47. package/lib/cjs/ECSchemaProps.js.map +1 -1
  48. package/lib/cjs/ECSqlReader.d.ts +2 -0
  49. package/lib/cjs/ECSqlReader.d.ts.map +1 -1
  50. package/lib/cjs/ECSqlReader.js +56 -50
  51. package/lib/cjs/ECSqlReader.js.map +1 -1
  52. package/lib/cjs/ECSqlTypes.js.map +1 -1
  53. package/lib/cjs/ElementMesh.js.map +1 -1
  54. package/lib/cjs/ElementProps.d.ts.map +1 -1
  55. package/lib/cjs/ElementProps.js +7 -3
  56. package/lib/cjs/ElementProps.js.map +1 -1
  57. package/lib/cjs/EmphasizeElementsProps.js.map +1 -1
  58. package/lib/cjs/EntityProps.js +31 -0
  59. package/lib/cjs/EntityProps.js.map +1 -1
  60. package/lib/cjs/EntityReference.js.map +1 -1
  61. package/lib/cjs/Environment.js +25 -2
  62. package/lib/cjs/Environment.js.map +1 -1
  63. package/lib/cjs/FeatureIndex.js +15 -6
  64. package/lib/cjs/FeatureIndex.js.map +1 -1
  65. package/lib/cjs/FeatureSymbology.d.ts +25 -73
  66. package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
  67. package/lib/cjs/FeatureSymbology.js +88 -103
  68. package/lib/cjs/FeatureSymbology.js.map +1 -1
  69. package/lib/cjs/FeatureTable.d.ts +6 -108
  70. package/lib/cjs/FeatureTable.d.ts.map +1 -1
  71. package/lib/cjs/FeatureTable.js +13 -329
  72. package/lib/cjs/FeatureTable.js.map +1 -1
  73. package/lib/cjs/Fonts.d.ts +69 -11
  74. package/lib/cjs/Fonts.d.ts.map +1 -1
  75. package/lib/cjs/Fonts.js +21 -6
  76. package/lib/cjs/Fonts.js.map +1 -1
  77. package/lib/cjs/Frustum.js +2 -2
  78. package/lib/cjs/Frustum.js.map +1 -1
  79. package/lib/cjs/GenericInstanceFilter.js.map +1 -1
  80. package/lib/cjs/GeoCoordinateServices.d.ts +1 -0
  81. package/lib/cjs/GeoCoordinateServices.d.ts.map +1 -1
  82. package/lib/cjs/GeoCoordinateServices.js +2 -1
  83. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  84. package/lib/cjs/GeometryContainment.js.map +1 -1
  85. package/lib/cjs/GeometryParams.js +58 -0
  86. package/lib/cjs/GeometryParams.js.map +1 -1
  87. package/lib/cjs/GeometrySummary.js.map +1 -1
  88. package/lib/cjs/Gradient.d.ts +3 -4
  89. package/lib/cjs/Gradient.d.ts.map +1 -1
  90. package/lib/cjs/Gradient.js +21 -19
  91. package/lib/cjs/Gradient.js.map +1 -1
  92. package/lib/cjs/GraphicParams.js +14 -12
  93. package/lib/cjs/GraphicParams.js.map +1 -1
  94. package/lib/cjs/GroundPlane.js +8 -2
  95. package/lib/cjs/GroundPlane.js.map +1 -1
  96. package/lib/cjs/HSLColor.js +6 -0
  97. package/lib/cjs/HSLColor.js.map +1 -1
  98. package/lib/cjs/HSVColor.js +6 -0
  99. package/lib/cjs/HSVColor.js.map +1 -1
  100. package/lib/cjs/HiddenLine.d.ts +17 -18
  101. package/lib/cjs/HiddenLine.d.ts.map +1 -1
  102. package/lib/cjs/HiddenLine.js +24 -5
  103. package/lib/cjs/HiddenLine.js.map +1 -1
  104. package/lib/cjs/Hilite.js +10 -0
  105. package/lib/cjs/Hilite.js.map +1 -1
  106. package/lib/cjs/IModel.d.ts +3 -12
  107. package/lib/cjs/IModel.d.ts.map +1 -1
  108. package/lib/cjs/IModel.js +47 -23
  109. package/lib/cjs/IModel.js.map +1 -1
  110. package/lib/cjs/IModelError.d.ts +0 -2
  111. package/lib/cjs/IModelError.d.ts.map +1 -1
  112. package/lib/cjs/IModelError.js +3 -8
  113. package/lib/cjs/IModelError.js.map +1 -1
  114. package/lib/cjs/IModelVersion.js +4 -0
  115. package/lib/cjs/IModelVersion.js.map +1 -1
  116. package/lib/cjs/ITwinError.d.ts +1 -1
  117. package/lib/cjs/ITwinError.d.ts.map +1 -1
  118. package/lib/cjs/ITwinError.js +1 -1
  119. package/lib/cjs/ITwinError.js.map +1 -1
  120. package/lib/cjs/Image.d.ts +22 -8
  121. package/lib/cjs/Image.d.ts.map +1 -1
  122. package/lib/cjs/Image.js +20 -4
  123. package/lib/cjs/Image.js.map +1 -1
  124. package/lib/cjs/IpcAppProps.d.ts +2 -0
  125. package/lib/cjs/IpcAppProps.d.ts.map +1 -1
  126. package/lib/cjs/IpcAppProps.js.map +1 -1
  127. package/lib/cjs/LightSettings.js +39 -1
  128. package/lib/cjs/LightSettings.js.map +1 -1
  129. package/lib/cjs/LinePixels.js.map +1 -1
  130. package/lib/cjs/Localization.d.ts +0 -10
  131. package/lib/cjs/Localization.d.ts.map +1 -1
  132. package/lib/cjs/Localization.js +0 -1
  133. package/lib/cjs/Localization.js.map +1 -1
  134. package/lib/cjs/MapImagerySettings.js +3 -2
  135. package/lib/cjs/MapImagerySettings.js.map +1 -1
  136. package/lib/cjs/MapLayerSettings.d.ts +20 -0
  137. package/lib/cjs/MapLayerSettings.d.ts.map +1 -1
  138. package/lib/cjs/MapLayerSettings.js +50 -1
  139. package/lib/cjs/MapLayerSettings.js.map +1 -1
  140. package/lib/cjs/MassProperties.d.ts +2 -0
  141. package/lib/cjs/MassProperties.d.ts.map +1 -1
  142. package/lib/cjs/MassProperties.js.map +1 -1
  143. package/lib/cjs/MaterialProps.js.map +1 -1
  144. package/lib/cjs/ModelClipGroup.js +6 -0
  145. package/lib/cjs/ModelClipGroup.js.map +1 -1
  146. package/lib/cjs/ModelGeometryChanges.js.map +1 -1
  147. package/lib/cjs/ModelProps.js.map +1 -1
  148. package/lib/cjs/NativeAppProps.js.map +1 -1
  149. package/lib/cjs/OctEncodedNormal.js +4 -0
  150. package/lib/cjs/OctEncodedNormal.js.map +1 -1
  151. package/lib/cjs/PlanProjectionSettings.d.ts +1 -2
  152. package/lib/cjs/PlanProjectionSettings.d.ts.map +1 -1
  153. package/lib/cjs/PlanProjectionSettings.js +8 -1
  154. package/lib/cjs/PlanProjectionSettings.js.map +1 -1
  155. package/lib/cjs/PlanarClipMask.d.ts +0 -12
  156. package/lib/cjs/PlanarClipMask.d.ts.map +1 -1
  157. package/lib/cjs/PlanarClipMask.js +24 -2
  158. package/lib/cjs/PlanarClipMask.js.map +1 -1
  159. package/lib/cjs/QPoint.d.ts +5 -5
  160. package/lib/cjs/QPoint.d.ts.map +1 -1
  161. package/lib/cjs/QPoint.js +37 -29
  162. package/lib/cjs/QPoint.js.map +1 -1
  163. package/lib/cjs/RealityDataAccessProps.js.map +1 -1
  164. package/lib/cjs/RealityModelDisplaySettings.js +81 -4
  165. package/lib/cjs/RealityModelDisplaySettings.js.map +1 -1
  166. package/lib/cjs/RenderMaterial.d.ts +0 -43
  167. package/lib/cjs/RenderMaterial.d.ts.map +1 -1
  168. package/lib/cjs/RenderMaterial.js +6 -51
  169. package/lib/cjs/RenderMaterial.js.map +1 -1
  170. package/lib/cjs/RenderPolyline.d.ts +36 -0
  171. package/lib/cjs/RenderPolyline.d.ts.map +1 -0
  172. package/lib/cjs/RenderPolyline.js +26 -0
  173. package/lib/cjs/RenderPolyline.js.map +1 -0
  174. package/lib/cjs/RenderSchedule.d.ts +1 -2
  175. package/lib/cjs/RenderSchedule.d.ts.map +1 -1
  176. package/lib/cjs/RenderSchedule.js +138 -11
  177. package/lib/cjs/RenderSchedule.js.map +1 -1
  178. package/lib/cjs/RenderTexture.d.ts +5 -23
  179. package/lib/cjs/RenderTexture.d.ts.map +1 -1
  180. package/lib/cjs/RenderTexture.js +13 -16
  181. package/lib/cjs/RenderTexture.js.map +1 -1
  182. package/lib/cjs/RgbColor.js +3 -0
  183. package/lib/cjs/RgbColor.js.map +1 -1
  184. package/lib/cjs/RpcInterface.d.ts.map +1 -1
  185. package/lib/cjs/RpcInterface.js +7 -1
  186. package/lib/cjs/RpcInterface.js.map +1 -1
  187. package/lib/cjs/RpcManager.js.map +1 -1
  188. package/lib/cjs/SessionProps.js.map +1 -1
  189. package/lib/cjs/SkyBox.js +17 -4
  190. package/lib/cjs/SkyBox.js.map +1 -1
  191. package/lib/cjs/SolarCalculate.js.map +1 -1
  192. package/lib/cjs/SolarShadows.js +5 -1
  193. package/lib/cjs/SolarShadows.js.map +1 -1
  194. package/lib/cjs/SpatialClassification.js +19 -1
  195. package/lib/cjs/SpatialClassification.js.map +1 -1
  196. package/lib/cjs/SubCategoryAppearance.js +35 -1
  197. package/lib/cjs/SubCategoryAppearance.js.map +1 -1
  198. package/lib/cjs/SubCategoryOverride.js +16 -2
  199. package/lib/cjs/SubCategoryOverride.js.map +1 -1
  200. package/lib/cjs/TerrainSettings.d.ts +0 -7
  201. package/lib/cjs/TerrainSettings.d.ts.map +1 -1
  202. package/lib/cjs/TerrainSettings.js +19 -0
  203. package/lib/cjs/TerrainSettings.js.map +1 -1
  204. package/lib/cjs/TextureMapping.d.ts +17 -14
  205. package/lib/cjs/TextureMapping.d.ts.map +1 -1
  206. package/lib/cjs/TextureMapping.js +47 -19
  207. package/lib/cjs/TextureMapping.js.map +1 -1
  208. package/lib/cjs/TextureProps.js.map +1 -1
  209. package/lib/cjs/ThematicDisplay.js +53 -2
  210. package/lib/cjs/ThematicDisplay.js.map +1 -1
  211. package/lib/cjs/Thumbnail.d.ts +1 -1
  212. package/lib/cjs/Thumbnail.js.map +1 -1
  213. package/lib/cjs/TileProps.js.map +1 -1
  214. package/lib/cjs/Tween.js +28 -19
  215. package/lib/cjs/Tween.js.map +1 -1
  216. package/lib/cjs/TxnAction.js.map +1 -1
  217. package/lib/cjs/ViewDetails.js +10 -6
  218. package/lib/cjs/ViewDetails.js.map +1 -1
  219. package/lib/cjs/ViewFlags.d.ts +1 -3
  220. package/lib/cjs/ViewFlags.d.ts.map +1 -1
  221. package/lib/cjs/ViewFlags.js +86 -5
  222. package/lib/cjs/ViewFlags.js.map +1 -1
  223. package/lib/cjs/ViewProps.d.ts +0 -4
  224. package/lib/cjs/ViewProps.d.ts.map +1 -1
  225. package/lib/cjs/ViewProps.js.map +1 -1
  226. package/lib/cjs/WhiteOnWhiteReversalSettings.js +7 -2
  227. package/lib/cjs/WhiteOnWhiteReversalSettings.js.map +1 -1
  228. package/lib/cjs/annotation/TextAnnotation.js +10 -0
  229. package/lib/cjs/annotation/TextAnnotation.js.map +1 -1
  230. package/lib/cjs/annotation/TextBlock.js +27 -6
  231. package/lib/cjs/annotation/TextBlock.js.map +1 -1
  232. package/lib/cjs/annotation/TextBlockGeometryProps.js.map +1 -1
  233. package/lib/cjs/annotation/TextBlockLayoutResult.js.map +1 -1
  234. package/lib/cjs/annotation/TextStyle.js +65 -19
  235. package/lib/cjs/annotation/TextStyle.js.map +1 -1
  236. package/lib/cjs/core-common.d.ts +1 -2
  237. package/lib/cjs/core-common.d.ts.map +1 -1
  238. package/lib/cjs/core-common.js +1 -2
  239. package/lib/cjs/core-common.js.map +1 -1
  240. package/lib/cjs/domains/FunctionalElementProps.js.map +1 -1
  241. package/lib/cjs/domains/GenericElementProps.js.map +1 -1
  242. package/lib/cjs/geometry/AdditionalTransform.js +12 -0
  243. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  244. package/lib/cjs/geometry/AreaPattern.js +17 -0
  245. package/lib/cjs/geometry/AreaPattern.js.map +1 -1
  246. package/lib/cjs/geometry/BoundingSphere.js +4 -0
  247. package/lib/cjs/geometry/BoundingSphere.js.map +1 -1
  248. package/lib/cjs/geometry/Cartographic.js +23 -20
  249. package/lib/cjs/geometry/Cartographic.js.map +1 -1
  250. package/lib/cjs/geometry/CoordinateReferenceSystem.js +62 -0
  251. package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
  252. package/lib/cjs/geometry/ElementGeometry.js +26 -8
  253. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  254. package/lib/cjs/geometry/ElementGeometryFB.js +54 -108
  255. package/lib/cjs/geometry/ElementGeometryFB.js.map +1 -1
  256. package/lib/cjs/geometry/FrustumPlanes.js +1 -0
  257. package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
  258. package/lib/cjs/geometry/GeodeticDatum.js +100 -0
  259. package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
  260. package/lib/cjs/geometry/GeodeticEllipsoid.js +16 -0
  261. package/lib/cjs/geometry/GeodeticEllipsoid.js.map +1 -1
  262. package/lib/cjs/geometry/GeometryStream.js +19 -6
  263. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  264. package/lib/cjs/geometry/ImageGraphic.js +10 -0
  265. package/lib/cjs/geometry/ImageGraphic.js.map +1 -1
  266. package/lib/cjs/geometry/LineStyle.js +14 -0
  267. package/lib/cjs/geometry/LineStyle.js.map +1 -1
  268. package/lib/cjs/geometry/Placement.js +6 -0
  269. package/lib/cjs/geometry/Placement.js.map +1 -1
  270. package/lib/cjs/geometry/Projection.js +75 -0
  271. package/lib/cjs/geometry/Projection.js.map +1 -1
  272. package/lib/cjs/geometry/TextString.js +18 -0
  273. package/lib/cjs/geometry/TextString.js.map +1 -1
  274. package/lib/cjs/{BackendTypes.d.ts → internal/BackendTypes.d.ts} +1 -0
  275. package/lib/cjs/internal/BackendTypes.d.ts.map +1 -0
  276. package/lib/cjs/internal/BackendTypes.js.map +1 -0
  277. package/lib/cjs/internal/PackedFeatureTable.d.ts +111 -0
  278. package/lib/cjs/internal/PackedFeatureTable.d.ts.map +1 -0
  279. package/lib/cjs/internal/PackedFeatureTable.js +359 -0
  280. package/lib/cjs/internal/PackedFeatureTable.js.map +1 -0
  281. package/lib/cjs/internal/RenderMaterialParams.d.ts +47 -0
  282. package/lib/cjs/internal/RenderMaterialParams.d.ts.map +1 -0
  283. package/lib/cjs/internal/RenderMaterialParams.js +68 -0
  284. package/lib/cjs/internal/RenderMaterialParams.js.map +1 -0
  285. package/lib/cjs/internal/RenderMesh.d.ts +52 -0
  286. package/lib/cjs/internal/RenderMesh.d.ts.map +1 -0
  287. package/lib/cjs/{Render.js → internal/RenderMesh.js} +12 -31
  288. package/lib/cjs/internal/RenderMesh.js.map +1 -0
  289. package/lib/cjs/internal/RenderTextureParams.d.ts +25 -0
  290. package/lib/cjs/internal/RenderTextureParams.d.ts.map +1 -0
  291. package/lib/cjs/internal/RenderTextureParams.js +37 -0
  292. package/lib/cjs/internal/RenderTextureParams.js.map +1 -0
  293. package/lib/cjs/internal/Snapping.js.map +1 -1
  294. package/lib/cjs/internal/cross-package.d.ts +5 -0
  295. package/lib/cjs/internal/cross-package.d.ts.map +1 -1
  296. package/lib/cjs/internal/cross-package.js +16 -0
  297. package/lib/cjs/internal/cross-package.js.map +1 -1
  298. package/lib/cjs/ipc/IpcSession.js +1 -0
  299. package/lib/cjs/ipc/IpcSession.js.map +1 -1
  300. package/lib/cjs/ipc/IpcSocket.js.map +1 -1
  301. package/lib/cjs/ipc/IpcWebSocket.js +7 -6
  302. package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
  303. package/lib/cjs/ipc/IpcWebSocketTransport.js +8 -7
  304. package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -1
  305. package/lib/cjs/rpc/DevToolsRpcInterface.js +6 -6
  306. package/lib/cjs/rpc/DevToolsRpcInterface.js.map +1 -1
  307. package/lib/cjs/rpc/IModelReadRpcInterface.js +8 -11
  308. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  309. package/lib/cjs/rpc/IModelTileRpcInterface.js +4 -4
  310. package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
  311. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js +4 -4
  312. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  313. package/lib/cjs/rpc/TestRpcManager.js +1 -4
  314. package/lib/cjs/rpc/TestRpcManager.js.map +1 -1
  315. package/lib/cjs/rpc/core/RpcConfiguration.js +51 -64
  316. package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
  317. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  318. package/lib/cjs/rpc/core/RpcControl.js +29 -38
  319. package/lib/cjs/rpc/core/RpcControl.js.map +1 -1
  320. package/lib/cjs/rpc/core/RpcInvocation.js +19 -13
  321. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  322. package/lib/cjs/rpc/core/RpcMarshaling.d.ts +1 -4
  323. package/lib/cjs/rpc/core/RpcMarshaling.d.ts.map +1 -1
  324. package/lib/cjs/rpc/core/RpcMarshaling.js +5 -4
  325. package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
  326. package/lib/cjs/rpc/core/RpcOperation.js +29 -31
  327. package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
  328. package/lib/cjs/rpc/core/RpcPendingQueue.js +17 -16
  329. package/lib/cjs/rpc/core/RpcPendingQueue.js.map +1 -1
  330. package/lib/cjs/rpc/core/RpcProtocol.js +32 -30
  331. package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
  332. package/lib/cjs/rpc/core/RpcPush.js +15 -8
  333. package/lib/cjs/rpc/core/RpcPush.js.map +1 -1
  334. package/lib/cjs/rpc/core/RpcRegistry.js +10 -9
  335. package/lib/cjs/rpc/core/RpcRegistry.js.map +1 -1
  336. package/lib/cjs/rpc/core/RpcRequest.d.ts +1 -1
  337. package/lib/cjs/rpc/core/RpcRequest.d.ts.map +1 -1
  338. package/lib/cjs/rpc/core/RpcRequest.js +51 -29
  339. package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
  340. package/lib/cjs/rpc/core/RpcRequestContext.js.map +1 -1
  341. package/lib/cjs/rpc/core/RpcRoutingToken.js +4 -2
  342. package/lib/cjs/rpc/core/RpcRoutingToken.js.map +1 -1
  343. package/lib/cjs/rpc/core/RpcSessionInvocation.js +5 -10
  344. package/lib/cjs/rpc/core/RpcSessionInvocation.js.map +1 -1
  345. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js +11 -17
  346. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  347. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +16 -19
  348. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  349. package/lib/cjs/rpc/web/OpenAPI.js +2 -0
  350. package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
  351. package/lib/cjs/rpc/web/RpcMultipart.d.ts +1 -1
  352. package/lib/cjs/rpc/web/RpcMultipart.d.ts.map +1 -1
  353. package/lib/cjs/rpc/web/RpcMultipart.js +13 -12
  354. package/lib/cjs/rpc/web/RpcMultipart.js.map +1 -1
  355. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  356. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +1 -1
  357. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  358. package/lib/cjs/rpc/web/WebAppRpcProtocol.js +6 -6
  359. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  360. package/lib/cjs/rpc/web/WebAppRpcRequest.js +26 -26
  361. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  362. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js +14 -0
  363. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  364. package/lib/cjs/tile/B3dmTileIO.js +7 -0
  365. package/lib/cjs/tile/B3dmTileIO.js.map +1 -1
  366. package/lib/cjs/tile/CompositeTileIO.js +3 -0
  367. package/lib/cjs/tile/CompositeTileIO.js.map +1 -1
  368. package/lib/cjs/tile/ElementGraphics.js.map +1 -1
  369. package/lib/cjs/tile/GltfTileIO.js +4 -3
  370. package/lib/cjs/tile/GltfTileIO.js.map +1 -1
  371. package/lib/cjs/tile/I3dmTileIO.js +8 -0
  372. package/lib/cjs/tile/I3dmTileIO.js.map +1 -1
  373. package/lib/cjs/tile/IModelTileIO.d.ts +2 -2
  374. package/lib/cjs/tile/IModelTileIO.js +26 -3
  375. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  376. package/lib/cjs/tile/PntsTileIO.js +5 -0
  377. package/lib/cjs/tile/PntsTileIO.js.map +1 -1
  378. package/lib/cjs/tile/TileIO.js +2 -0
  379. package/lib/cjs/tile/TileIO.js.map +1 -1
  380. package/lib/cjs/tile/TileMetadata.js +9 -1
  381. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  382. package/lib/cjs/tile/Tileset3dSchema.js.map +1 -1
  383. package/lib/esm/AmbientOcclusion.js +17 -9
  384. package/lib/esm/AmbientOcclusion.js.map +1 -1
  385. package/lib/esm/AnalysisStyle.d.ts +0 -3
  386. package/lib/esm/AnalysisStyle.d.ts.map +1 -1
  387. package/lib/esm/AnalysisStyle.js +20 -4
  388. package/lib/esm/AnalysisStyle.js.map +1 -1
  389. package/lib/esm/Atmosphere.js +39 -21
  390. package/lib/esm/Atmosphere.js.map +1 -1
  391. package/lib/esm/AuthorizationClient.js.map +1 -1
  392. package/lib/esm/BackgroundMapProvider.js +4 -0
  393. package/lib/esm/BackgroundMapProvider.js.map +1 -1
  394. package/lib/esm/BackgroundMapSettings.js +19 -0
  395. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  396. package/lib/esm/Base64EncodedString.js.map +1 -1
  397. package/lib/esm/BlobReader.js +8 -6
  398. package/lib/esm/BlobReader.js.map +1 -1
  399. package/lib/esm/BriefcaseTypes.d.ts +2 -2
  400. package/lib/esm/BriefcaseTypes.d.ts.map +1 -1
  401. package/lib/esm/BriefcaseTypes.js.map +1 -1
  402. package/lib/esm/Camera.js +3 -0
  403. package/lib/esm/Camera.js.map +1 -1
  404. package/lib/esm/ChangedElements.js.map +1 -1
  405. package/lib/esm/ChangedEntities.js.map +1 -1
  406. package/lib/esm/ChangesetProps.d.ts +1 -1
  407. package/lib/esm/ChangesetProps.js.map +1 -1
  408. package/lib/esm/ClipStyle.js +31 -5
  409. package/lib/esm/ClipStyle.js.map +1 -1
  410. package/lib/esm/Code.d.ts +0 -5
  411. package/lib/esm/Code.d.ts.map +1 -1
  412. package/lib/esm/Code.js +16 -11
  413. package/lib/esm/Code.js.map +1 -1
  414. package/lib/esm/ColorByName.js.map +1 -1
  415. package/lib/esm/ColorDef.js +11 -10
  416. package/lib/esm/ColorDef.js.map +1 -1
  417. package/lib/esm/CommonLoggerCategory.js.map +1 -1
  418. package/lib/esm/ConcurrentQuery.d.ts +37 -1
  419. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  420. package/lib/esm/ConcurrentQuery.js +16 -3
  421. package/lib/esm/ConcurrentQuery.js.map +1 -1
  422. package/lib/esm/ContextRealityModel.js +53 -27
  423. package/lib/esm/ContextRealityModel.js.map +1 -1
  424. package/lib/esm/ContourDisplay.js +40 -5
  425. package/lib/esm/ContourDisplay.js.map +1 -1
  426. package/lib/esm/DisplayStyleSettings.js +95 -63
  427. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  428. package/lib/esm/ECSchemaProps.js.map +1 -1
  429. package/lib/esm/ECSqlReader.d.ts +2 -0
  430. package/lib/esm/ECSqlReader.d.ts.map +1 -1
  431. package/lib/esm/ECSqlReader.js +56 -50
  432. package/lib/esm/ECSqlReader.js.map +1 -1
  433. package/lib/esm/ECSqlTypes.js.map +1 -1
  434. package/lib/esm/ElementMesh.js.map +1 -1
  435. package/lib/esm/ElementProps.d.ts.map +1 -1
  436. package/lib/esm/ElementProps.js +8 -4
  437. package/lib/esm/ElementProps.js.map +1 -1
  438. package/lib/esm/EmphasizeElementsProps.js.map +1 -1
  439. package/lib/esm/EntityProps.js +31 -0
  440. package/lib/esm/EntityProps.js.map +1 -1
  441. package/lib/esm/EntityReference.js.map +1 -1
  442. package/lib/esm/Environment.js +25 -2
  443. package/lib/esm/Environment.js.map +1 -1
  444. package/lib/esm/FeatureIndex.js +15 -6
  445. package/lib/esm/FeatureIndex.js.map +1 -1
  446. package/lib/esm/FeatureSymbology.d.ts +25 -73
  447. package/lib/esm/FeatureSymbology.d.ts.map +1 -1
  448. package/lib/esm/FeatureSymbology.js +88 -103
  449. package/lib/esm/FeatureSymbology.js.map +1 -1
  450. package/lib/esm/FeatureTable.d.ts +6 -108
  451. package/lib/esm/FeatureTable.d.ts.map +1 -1
  452. package/lib/esm/FeatureTable.js +11 -324
  453. package/lib/esm/FeatureTable.js.map +1 -1
  454. package/lib/esm/Fonts.d.ts +69 -11
  455. package/lib/esm/Fonts.d.ts.map +1 -1
  456. package/lib/esm/Fonts.js +21 -6
  457. package/lib/esm/Fonts.js.map +1 -1
  458. package/lib/esm/Frustum.js +2 -2
  459. package/lib/esm/Frustum.js.map +1 -1
  460. package/lib/esm/GenericInstanceFilter.js.map +1 -1
  461. package/lib/esm/GeoCoordinateServices.d.ts +1 -0
  462. package/lib/esm/GeoCoordinateServices.d.ts.map +1 -1
  463. package/lib/esm/GeoCoordinateServices.js +2 -1
  464. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  465. package/lib/esm/GeometryContainment.js.map +1 -1
  466. package/lib/esm/GeometryParams.js +58 -0
  467. package/lib/esm/GeometryParams.js.map +1 -1
  468. package/lib/esm/GeometrySummary.js.map +1 -1
  469. package/lib/esm/Gradient.d.ts +3 -4
  470. package/lib/esm/Gradient.d.ts.map +1 -1
  471. package/lib/esm/Gradient.js +21 -19
  472. package/lib/esm/Gradient.js.map +1 -1
  473. package/lib/esm/GraphicParams.js +14 -12
  474. package/lib/esm/GraphicParams.js.map +1 -1
  475. package/lib/esm/GroundPlane.js +8 -2
  476. package/lib/esm/GroundPlane.js.map +1 -1
  477. package/lib/esm/HSLColor.js +6 -0
  478. package/lib/esm/HSLColor.js.map +1 -1
  479. package/lib/esm/HSVColor.js +6 -0
  480. package/lib/esm/HSVColor.js.map +1 -1
  481. package/lib/esm/HiddenLine.d.ts +17 -18
  482. package/lib/esm/HiddenLine.d.ts.map +1 -1
  483. package/lib/esm/HiddenLine.js +24 -5
  484. package/lib/esm/HiddenLine.js.map +1 -1
  485. package/lib/esm/Hilite.js +10 -0
  486. package/lib/esm/Hilite.js.map +1 -1
  487. package/lib/esm/IModel.d.ts +3 -12
  488. package/lib/esm/IModel.d.ts.map +1 -1
  489. package/lib/esm/IModel.js +47 -23
  490. package/lib/esm/IModel.js.map +1 -1
  491. package/lib/esm/IModelError.d.ts +0 -2
  492. package/lib/esm/IModelError.d.ts.map +1 -1
  493. package/lib/esm/IModelError.js +2 -1
  494. package/lib/esm/IModelError.js.map +1 -1
  495. package/lib/esm/IModelVersion.js +4 -0
  496. package/lib/esm/IModelVersion.js.map +1 -1
  497. package/lib/esm/ITwinError.d.ts +1 -1
  498. package/lib/esm/ITwinError.d.ts.map +1 -1
  499. package/lib/esm/ITwinError.js +1 -1
  500. package/lib/esm/ITwinError.js.map +1 -1
  501. package/lib/esm/Image.d.ts +22 -8
  502. package/lib/esm/Image.d.ts.map +1 -1
  503. package/lib/esm/Image.js +19 -4
  504. package/lib/esm/Image.js.map +1 -1
  505. package/lib/esm/IpcAppProps.d.ts +2 -0
  506. package/lib/esm/IpcAppProps.d.ts.map +1 -1
  507. package/lib/esm/IpcAppProps.js.map +1 -1
  508. package/lib/esm/LightSettings.js +39 -1
  509. package/lib/esm/LightSettings.js.map +1 -1
  510. package/lib/esm/LinePixels.js.map +1 -1
  511. package/lib/esm/Localization.d.ts +0 -10
  512. package/lib/esm/Localization.d.ts.map +1 -1
  513. package/lib/esm/Localization.js +0 -1
  514. package/lib/esm/Localization.js.map +1 -1
  515. package/lib/esm/MapImagerySettings.js +3 -2
  516. package/lib/esm/MapImagerySettings.js.map +1 -1
  517. package/lib/esm/MapLayerSettings.d.ts +20 -0
  518. package/lib/esm/MapLayerSettings.d.ts.map +1 -1
  519. package/lib/esm/MapLayerSettings.js +50 -1
  520. package/lib/esm/MapLayerSettings.js.map +1 -1
  521. package/lib/esm/MassProperties.d.ts +2 -0
  522. package/lib/esm/MassProperties.d.ts.map +1 -1
  523. package/lib/esm/MassProperties.js.map +1 -1
  524. package/lib/esm/MaterialProps.js.map +1 -1
  525. package/lib/esm/ModelClipGroup.js +6 -0
  526. package/lib/esm/ModelClipGroup.js.map +1 -1
  527. package/lib/esm/ModelGeometryChanges.js.map +1 -1
  528. package/lib/esm/ModelProps.js.map +1 -1
  529. package/lib/esm/NativeAppProps.js.map +1 -1
  530. package/lib/esm/OctEncodedNormal.js +4 -0
  531. package/lib/esm/OctEncodedNormal.js.map +1 -1
  532. package/lib/esm/PlanProjectionSettings.d.ts +1 -2
  533. package/lib/esm/PlanProjectionSettings.d.ts.map +1 -1
  534. package/lib/esm/PlanProjectionSettings.js +8 -1
  535. package/lib/esm/PlanProjectionSettings.js.map +1 -1
  536. package/lib/esm/PlanarClipMask.d.ts +0 -12
  537. package/lib/esm/PlanarClipMask.d.ts.map +1 -1
  538. package/lib/esm/PlanarClipMask.js +24 -2
  539. package/lib/esm/PlanarClipMask.js.map +1 -1
  540. package/lib/esm/QPoint.d.ts +5 -5
  541. package/lib/esm/QPoint.d.ts.map +1 -1
  542. package/lib/esm/QPoint.js +37 -29
  543. package/lib/esm/QPoint.js.map +1 -1
  544. package/lib/esm/RealityDataAccessProps.js.map +1 -1
  545. package/lib/esm/RealityModelDisplaySettings.js +81 -4
  546. package/lib/esm/RealityModelDisplaySettings.js.map +1 -1
  547. package/lib/esm/RenderMaterial.d.ts +0 -43
  548. package/lib/esm/RenderMaterial.d.ts.map +1 -1
  549. package/lib/esm/RenderMaterial.js +6 -51
  550. package/lib/esm/RenderMaterial.js.map +1 -1
  551. package/lib/esm/RenderPolyline.d.ts +36 -0
  552. package/lib/esm/RenderPolyline.d.ts.map +1 -0
  553. package/lib/esm/RenderPolyline.js +23 -0
  554. package/lib/esm/RenderPolyline.js.map +1 -0
  555. package/lib/esm/RenderSchedule.d.ts +1 -2
  556. package/lib/esm/RenderSchedule.d.ts.map +1 -1
  557. package/lib/esm/RenderSchedule.js +138 -11
  558. package/lib/esm/RenderSchedule.js.map +1 -1
  559. package/lib/esm/RenderTexture.d.ts +5 -23
  560. package/lib/esm/RenderTexture.d.ts.map +1 -1
  561. package/lib/esm/RenderTexture.js +13 -16
  562. package/lib/esm/RenderTexture.js.map +1 -1
  563. package/lib/esm/RgbColor.js +3 -0
  564. package/lib/esm/RgbColor.js.map +1 -1
  565. package/lib/esm/RpcInterface.d.ts.map +1 -1
  566. package/lib/esm/RpcInterface.js +8 -2
  567. package/lib/esm/RpcInterface.js.map +1 -1
  568. package/lib/esm/RpcManager.js.map +1 -1
  569. package/lib/esm/SessionProps.js.map +1 -1
  570. package/lib/esm/SkyBox.js +17 -4
  571. package/lib/esm/SkyBox.js.map +1 -1
  572. package/lib/esm/SolarCalculate.js.map +1 -1
  573. package/lib/esm/SolarShadows.js +5 -1
  574. package/lib/esm/SolarShadows.js.map +1 -1
  575. package/lib/esm/SpatialClassification.js +19 -1
  576. package/lib/esm/SpatialClassification.js.map +1 -1
  577. package/lib/esm/SubCategoryAppearance.js +35 -1
  578. package/lib/esm/SubCategoryAppearance.js.map +1 -1
  579. package/lib/esm/SubCategoryOverride.js +16 -2
  580. package/lib/esm/SubCategoryOverride.js.map +1 -1
  581. package/lib/esm/TerrainSettings.d.ts +0 -7
  582. package/lib/esm/TerrainSettings.d.ts.map +1 -1
  583. package/lib/esm/TerrainSettings.js +19 -0
  584. package/lib/esm/TerrainSettings.js.map +1 -1
  585. package/lib/esm/TextureMapping.d.ts +17 -14
  586. package/lib/esm/TextureMapping.d.ts.map +1 -1
  587. package/lib/esm/TextureMapping.js +47 -19
  588. package/lib/esm/TextureMapping.js.map +1 -1
  589. package/lib/esm/TextureProps.js.map +1 -1
  590. package/lib/esm/ThematicDisplay.js +53 -2
  591. package/lib/esm/ThematicDisplay.js.map +1 -1
  592. package/lib/esm/Thumbnail.d.ts +1 -1
  593. package/lib/esm/Thumbnail.js.map +1 -1
  594. package/lib/esm/TileProps.js.map +1 -1
  595. package/lib/esm/Tween.js +28 -19
  596. package/lib/esm/Tween.js.map +1 -1
  597. package/lib/esm/TxnAction.js.map +1 -1
  598. package/lib/esm/ViewDetails.js +10 -6
  599. package/lib/esm/ViewDetails.js.map +1 -1
  600. package/lib/esm/ViewFlags.d.ts +1 -3
  601. package/lib/esm/ViewFlags.d.ts.map +1 -1
  602. package/lib/esm/ViewFlags.js +86 -5
  603. package/lib/esm/ViewFlags.js.map +1 -1
  604. package/lib/esm/ViewProps.d.ts +0 -4
  605. package/lib/esm/ViewProps.d.ts.map +1 -1
  606. package/lib/esm/ViewProps.js.map +1 -1
  607. package/lib/esm/WhiteOnWhiteReversalSettings.js +7 -2
  608. package/lib/esm/WhiteOnWhiteReversalSettings.js.map +1 -1
  609. package/lib/esm/annotation/TextAnnotation.js +10 -0
  610. package/lib/esm/annotation/TextAnnotation.js.map +1 -1
  611. package/lib/esm/annotation/TextBlock.js +27 -6
  612. package/lib/esm/annotation/TextBlock.js.map +1 -1
  613. package/lib/esm/annotation/TextBlockGeometryProps.js.map +1 -1
  614. package/lib/esm/annotation/TextBlockLayoutResult.js.map +1 -1
  615. package/lib/esm/annotation/TextStyle.js +65 -19
  616. package/lib/esm/annotation/TextStyle.js.map +1 -1
  617. package/lib/esm/core-common.d.ts +1 -2
  618. package/lib/esm/core-common.d.ts.map +1 -1
  619. package/lib/esm/core-common.js +1 -2
  620. package/lib/esm/core-common.js.map +1 -1
  621. package/lib/esm/domains/FunctionalElementProps.js.map +1 -1
  622. package/lib/esm/domains/GenericElementProps.js.map +1 -1
  623. package/lib/esm/geometry/AdditionalTransform.js +12 -0
  624. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  625. package/lib/esm/geometry/AreaPattern.js +17 -0
  626. package/lib/esm/geometry/AreaPattern.js.map +1 -1
  627. package/lib/esm/geometry/BoundingSphere.js +4 -0
  628. package/lib/esm/geometry/BoundingSphere.js.map +1 -1
  629. package/lib/esm/geometry/Cartographic.js +23 -20
  630. package/lib/esm/geometry/Cartographic.js.map +1 -1
  631. package/lib/esm/geometry/CoordinateReferenceSystem.js +62 -0
  632. package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
  633. package/lib/esm/geometry/ElementGeometry.js +26 -8
  634. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  635. package/lib/esm/geometry/ElementGeometryFB.js +54 -108
  636. package/lib/esm/geometry/ElementGeometryFB.js.map +1 -1
  637. package/lib/esm/geometry/FrustumPlanes.js +1 -0
  638. package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
  639. package/lib/esm/geometry/GeodeticDatum.js +100 -0
  640. package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
  641. package/lib/esm/geometry/GeodeticEllipsoid.js +16 -0
  642. package/lib/esm/geometry/GeodeticEllipsoid.js.map +1 -1
  643. package/lib/esm/geometry/GeometryStream.js +19 -6
  644. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  645. package/lib/esm/geometry/ImageGraphic.js +10 -0
  646. package/lib/esm/geometry/ImageGraphic.js.map +1 -1
  647. package/lib/esm/geometry/LineStyle.js +14 -0
  648. package/lib/esm/geometry/LineStyle.js.map +1 -1
  649. package/lib/esm/geometry/Placement.js +6 -0
  650. package/lib/esm/geometry/Placement.js.map +1 -1
  651. package/lib/esm/geometry/Projection.js +75 -0
  652. package/lib/esm/geometry/Projection.js.map +1 -1
  653. package/lib/esm/geometry/TextString.js +18 -0
  654. package/lib/esm/geometry/TextString.js.map +1 -1
  655. package/lib/esm/{BackendTypes.d.ts → internal/BackendTypes.d.ts} +1 -0
  656. package/lib/esm/internal/BackendTypes.d.ts.map +1 -0
  657. package/lib/esm/internal/BackendTypes.js.map +1 -0
  658. package/lib/esm/internal/PackedFeatureTable.d.ts +111 -0
  659. package/lib/esm/internal/PackedFeatureTable.d.ts.map +1 -0
  660. package/lib/esm/internal/PackedFeatureTable.js +352 -0
  661. package/lib/esm/internal/PackedFeatureTable.js.map +1 -0
  662. package/lib/esm/internal/RenderMaterialParams.d.ts +47 -0
  663. package/lib/esm/internal/RenderMaterialParams.d.ts.map +1 -0
  664. package/lib/esm/internal/RenderMaterialParams.js +64 -0
  665. package/lib/esm/internal/RenderMaterialParams.js.map +1 -0
  666. package/lib/esm/internal/RenderMesh.d.ts +52 -0
  667. package/lib/esm/internal/RenderMesh.d.ts.map +1 -0
  668. package/lib/esm/{Render.js → internal/RenderMesh.js} +11 -29
  669. package/lib/esm/internal/RenderMesh.js.map +1 -0
  670. package/lib/esm/internal/RenderTextureParams.d.ts +25 -0
  671. package/lib/esm/internal/RenderTextureParams.d.ts.map +1 -0
  672. package/lib/esm/internal/RenderTextureParams.js +33 -0
  673. package/lib/esm/internal/RenderTextureParams.js.map +1 -0
  674. package/lib/esm/internal/Snapping.js.map +1 -1
  675. package/lib/esm/internal/cross-package.d.ts +5 -0
  676. package/lib/esm/internal/cross-package.d.ts.map +1 -1
  677. package/lib/esm/internal/cross-package.js +4 -1
  678. package/lib/esm/internal/cross-package.js.map +1 -1
  679. package/lib/esm/ipc/IpcSession.js +1 -0
  680. package/lib/esm/ipc/IpcSession.js.map +1 -1
  681. package/lib/esm/ipc/IpcSocket.js.map +1 -1
  682. package/lib/esm/ipc/IpcWebSocket.js +7 -6
  683. package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
  684. package/lib/esm/ipc/IpcWebSocketTransport.js +8 -7
  685. package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -1
  686. package/lib/esm/rpc/DevToolsRpcInterface.js +6 -6
  687. package/lib/esm/rpc/DevToolsRpcInterface.js.map +1 -1
  688. package/lib/esm/rpc/IModelReadRpcInterface.js +8 -11
  689. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  690. package/lib/esm/rpc/IModelTileRpcInterface.js +4 -4
  691. package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
  692. package/lib/esm/rpc/SnapshotIModelRpcInterface.js +4 -4
  693. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  694. package/lib/esm/rpc/TestRpcManager.js +1 -4
  695. package/lib/esm/rpc/TestRpcManager.js.map +1 -1
  696. package/lib/esm/rpc/core/RpcConfiguration.js +51 -64
  697. package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
  698. package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
  699. package/lib/esm/rpc/core/RpcControl.js +29 -38
  700. package/lib/esm/rpc/core/RpcControl.js.map +1 -1
  701. package/lib/esm/rpc/core/RpcInvocation.js +19 -13
  702. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  703. package/lib/esm/rpc/core/RpcMarshaling.d.ts +1 -4
  704. package/lib/esm/rpc/core/RpcMarshaling.d.ts.map +1 -1
  705. package/lib/esm/rpc/core/RpcMarshaling.js +2 -1
  706. package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
  707. package/lib/esm/rpc/core/RpcOperation.js +29 -31
  708. package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
  709. package/lib/esm/rpc/core/RpcPendingQueue.js +17 -16
  710. package/lib/esm/rpc/core/RpcPendingQueue.js.map +1 -1
  711. package/lib/esm/rpc/core/RpcProtocol.js +32 -30
  712. package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
  713. package/lib/esm/rpc/core/RpcPush.js +15 -8
  714. package/lib/esm/rpc/core/RpcPush.js.map +1 -1
  715. package/lib/esm/rpc/core/RpcRegistry.js +10 -9
  716. package/lib/esm/rpc/core/RpcRegistry.js.map +1 -1
  717. package/lib/esm/rpc/core/RpcRequest.d.ts +1 -1
  718. package/lib/esm/rpc/core/RpcRequest.d.ts.map +1 -1
  719. package/lib/esm/rpc/core/RpcRequest.js +51 -29
  720. package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
  721. package/lib/esm/rpc/core/RpcRequestContext.js.map +1 -1
  722. package/lib/esm/rpc/core/RpcRoutingToken.js +4 -2
  723. package/lib/esm/rpc/core/RpcRoutingToken.js.map +1 -1
  724. package/lib/esm/rpc/core/RpcSessionInvocation.js +5 -10
  725. package/lib/esm/rpc/core/RpcSessionInvocation.js.map +1 -1
  726. package/lib/esm/rpc/web/BentleyCloudRpcManager.js +11 -17
  727. package/lib/esm/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  728. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +16 -19
  729. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  730. package/lib/esm/rpc/web/OpenAPI.js +2 -0
  731. package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
  732. package/lib/esm/rpc/web/RpcMultipart.d.ts +1 -1
  733. package/lib/esm/rpc/web/RpcMultipart.d.ts.map +1 -1
  734. package/lib/esm/rpc/web/RpcMultipart.js +14 -13
  735. package/lib/esm/rpc/web/RpcMultipart.js.map +1 -1
  736. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  737. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +1 -1
  738. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  739. package/lib/esm/rpc/web/WebAppRpcProtocol.js +6 -6
  740. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  741. package/lib/esm/rpc/web/WebAppRpcRequest.js +26 -26
  742. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  743. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js +14 -0
  744. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  745. package/lib/esm/tile/B3dmTileIO.js +7 -0
  746. package/lib/esm/tile/B3dmTileIO.js.map +1 -1
  747. package/lib/esm/tile/CompositeTileIO.js +3 -0
  748. package/lib/esm/tile/CompositeTileIO.js.map +1 -1
  749. package/lib/esm/tile/ElementGraphics.js.map +1 -1
  750. package/lib/esm/tile/GltfTileIO.js +4 -3
  751. package/lib/esm/tile/GltfTileIO.js.map +1 -1
  752. package/lib/esm/tile/I3dmTileIO.js +8 -0
  753. package/lib/esm/tile/I3dmTileIO.js.map +1 -1
  754. package/lib/esm/tile/IModelTileIO.d.ts +2 -2
  755. package/lib/esm/tile/IModelTileIO.js +26 -3
  756. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  757. package/lib/esm/tile/PntsTileIO.js +5 -0
  758. package/lib/esm/tile/PntsTileIO.js.map +1 -1
  759. package/lib/esm/tile/TileIO.js +2 -0
  760. package/lib/esm/tile/TileIO.js.map +1 -1
  761. package/lib/esm/tile/TileMetadata.js +9 -1
  762. package/lib/esm/tile/TileMetadata.js.map +1 -1
  763. package/lib/esm/tile/Tileset3dSchema.js.map +1 -1
  764. package/package.json +10 -10
  765. package/lib/cjs/BackendTypes.d.ts.map +0 -1
  766. package/lib/cjs/BackendTypes.js.map +0 -1
  767. package/lib/cjs/Render.d.ts +0 -85
  768. package/lib/cjs/Render.d.ts.map +0 -1
  769. package/lib/cjs/Render.js.map +0 -1
  770. package/lib/esm/BackendTypes.d.ts.map +0 -1
  771. package/lib/esm/BackendTypes.js.map +0 -1
  772. package/lib/esm/Render.d.ts +0 -85
  773. package/lib/esm/Render.d.ts.map +0 -1
  774. package/lib/esm/Render.js.map +0 -1
  775. /package/lib/cjs/{BackendTypes.js → internal/BackendTypes.js} +0 -0
  776. /package/lib/esm/{BackendTypes.js → internal/BackendTypes.js} +0 -0
@@ -6,7 +6,6 @@
6
6
  * @module iModels
7
7
  */
8
8
  import { BentleyError, IModelHubStatus, IModelStatus, } from "@itwin/core-bentley";
9
- export { BentleyStatus, BentleyError, IModelStatus, BriefcaseStatus, DbResult, ChangeSetStatus, } from "@itwin/core-bentley";
10
9
  /** The error type thrown by this module.
11
10
  * Creating subclasses of IModelError should be avoided. Instead use [[ITwinError]].
12
11
  * @see [[ITwinError]]
@@ -38,6 +37,8 @@ export var LockState;
38
37
  * @public @deprecated in 4.10 Use [InUseLocksError]($common) instead.
39
38
  */
40
39
  export class ConflictingLocksError extends IModelError {
40
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
41
+ conflictingLocks;
41
42
  // eslint-disable-next-line @typescript-eslint/no-deprecated
42
43
  constructor(message, getMetaData, conflictingLocks) {
43
44
  super(IModelHubStatus.LockOwnedByAnotherBriefcase, message, getMetaData);
@@ -1 +1 @@
1
- {"version":3,"file":"IModelError.js","sourceRoot":"","sources":["../../src/IModelError.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EACL,YAAY,EAA6D,eAAe,EAAE,YAAY,GACvG,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,GACtF,MAAM,qBAAqB,CAAC;AAU7B;;;;;GAKG;AACH,MAAM,OAAO,WAAY,SAAQ,YAAY;IAC3C,YAAmB,WAAuC,EAAE,OAAe,EAAE,WAA6B;QACxG,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IAC3C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,gCAAgC;IAChC,yCAAQ,CAAA;IACR,mJAAmJ;IACnJ,6CAAU,CAAA;IACV;;OAEG;IACH,mDAAa,CAAA;AACf,CAAC,EATW,SAAS,KAAT,SAAS,QASpB;AAkBD;;;;EAIE;AACF,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IAGpD,4DAA4D;IAC5D,YAAY,OAAe,EAAE,WAA6B,EAAE,gBAAoC;QAC9F,KAAK,CAAC,eAAe,CAAC,2BAA2B,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QACzE,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;CAEF;AAED,cAAc;AACd,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C,YAAmB,WAAmB,EAAE,OAAe;QACrD,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,iBAAiB,WAAW,GAAG,CAAC;IAC9C,CAAC;CACF;AAED,cAAc;AACd,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD,YAAmB,OAAe;QAChC,KAAK,CAAC,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF;AAED,cAAc;AACd,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C,YAAmB,WAAmB,EAAE,IAAY,EAAE,OAAe,EAAE,WAA6B;QAClG,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;QACE,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IAC9C,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 iModels\r\n */\r\n\r\nimport {\r\n BentleyError, BentleyStatus, BriefcaseStatus, ChangeSetStatus, DbResult, IModelHubStatus, IModelStatus, LoggingMetaData,\r\n} from \"@itwin/core-bentley\";\r\n\r\nexport {\r\n BentleyStatus, BentleyError, IModelStatus, BriefcaseStatus, DbResult, ChangeSetStatus,\r\n} from \"@itwin/core-bentley\";\r\n\r\nexport type { GetMetaDataFunction, LogFunction, LoggingMetaData } from \"@itwin/core-bentley\";\r\n\r\n/** Numeric values for common errors produced by iTwin.js APIs, typically provided by [[IModelError]].\r\n * The values within each of these `enum`s are guaranteed not to conflict with one another.\r\n * @public\r\n */\r\nexport type IModelErrorNumber = IModelStatus | DbResult | BentleyStatus | BriefcaseStatus | ChangeSetStatus;\r\n\r\n/** The error type thrown by this module.\r\n * Creating subclasses of IModelError should be avoided. Instead use [[ITwinError]].\r\n * @see [[ITwinError]]\r\n * @see [[IModelErrorNumber]] for commonly-used error codes.\r\n * @public\r\n */\r\nexport class IModelError extends BentleyError {\r\n public constructor(errorNumber: IModelErrorNumber | number, message: string, getMetaData?: LoggingMetaData) {\r\n super(errorNumber, message, getMetaData);\r\n }\r\n}\r\n\r\n/** The state of a lock. See [Acquiring locks on elements.]($docs/learning/backend/ConcurrencyControl.md#acquiring-locks-on-elements).\r\n * @public\r\n */\r\nexport enum LockState {\r\n /** The element is not locked */\r\n None = 0,\r\n /** Holding a shared lock on an element blocks other users from acquiring the Exclusive lock it. More than one user may acquire the shared lock. */\r\n Shared = 1,\r\n /** A Lock that permits modifications to an element and blocks other users from making modifications to it.\r\n * Holding an exclusive lock on an \"owner\" (a model or a parent element), implicitly exclusively locks all its members.\r\n */\r\n Exclusive = 2,\r\n}\r\n\r\n/** Detailed information about a particular object Lock that is causing the Lock update conflict.\r\n * An example of a lock update conflict would be attempting to use [LockControl.acquireLocks]($backend) on an object that is already locked by another Briefcase.\r\n * @public @deprecated in 4.10 Use [InUseLock]($common) instead.\r\n*/\r\nexport interface ConflictingLock {\r\n /** Id of the object that is causing conflict. */\r\n objectId: string;\r\n /**\r\n * The level of conflicting lock. Possible values are {@link LockState.Shared}, {@link LockState.Exclusive}.\r\n * See {@link LockState}.\r\n */\r\n state: LockState;\r\n /** An array of Briefcase ids that hold this lock. */\r\n briefcaseIds: number[];\r\n}\r\n\r\n/**\r\n * An error raised when there is a lock conflict detected.\r\n * Typically this error would be thrown by [LockControl.acquireLocks]($backend) when you are requesting a lock on an element that is already held by another briefcase.\r\n * @public @deprecated in 4.10 Use [InUseLocksError]($common) instead.\r\n*/\r\nexport class ConflictingLocksError extends IModelError {\r\n // eslint-disable-next-line @typescript-eslint/no-deprecated\r\n public conflictingLocks?: ConflictingLock[];\r\n // eslint-disable-next-line @typescript-eslint/no-deprecated\r\n constructor(message: string, getMetaData?: LoggingMetaData, conflictingLocks?: ConflictingLock[]) {\r\n super(IModelHubStatus.LockOwnedByAnotherBriefcase, message, getMetaData);\r\n this.conflictingLocks = conflictingLocks;\r\n }\r\n\r\n}\r\n\r\n/** @public */\r\nexport class ServerError extends IModelError {\r\n public constructor(errorNumber: number, message: string) {\r\n super(errorNumber, message);\r\n this.name = `Server error (${errorNumber})`;\r\n }\r\n}\r\n\r\n/** @public */\r\nexport class ServerTimeoutError extends ServerError {\r\n public constructor(message: string) {\r\n super(IModelStatus.ServerTimeout, message);\r\n this.name = \"Server timeout error\";\r\n }\r\n}\r\n\r\n/** @public */\r\nexport class BackendError extends IModelError {\r\n public constructor(errorNumber: number, name: string, message: string, getMetaData?: LoggingMetaData) {\r\n super(errorNumber, message, getMetaData);\r\n this.name = name;\r\n }\r\n}\r\n\r\n/** Intended for API \"no content\" semantics where the error case should not trigger application failure monitoring systems.\r\n * @public\r\n */\r\nexport class NoContentError extends IModelError {\r\n public constructor() {\r\n super(IModelStatus.NoContent, \"No Content\");\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"IModelError.js","sourceRoot":"","sources":["../../src/IModelError.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EACL,YAAY,EAA6D,eAAe,EAAE,YAAY,GACvG,MAAM,qBAAqB,CAAC;AAQ7B;;;;;GAKG;AACH,MAAM,OAAO,WAAY,SAAQ,YAAY;IAC3C,YAAmB,WAAuC,EAAE,OAAe,EAAE,WAA6B;QACxG,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IAC3C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,gCAAgC;IAChC,yCAAQ,CAAA;IACR,mJAAmJ;IACnJ,6CAAU,CAAA;IACV;;OAEG;IACH,mDAAa,CAAA;AACf,CAAC,EATW,SAAS,KAAT,SAAS,QASpB;AAkBD;;;;EAIE;AACF,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD,4DAA4D;IACrD,gBAAgB,CAAqB;IAC5C,4DAA4D;IAC5D,YAAY,OAAe,EAAE,WAA6B,EAAE,gBAAoC;QAC9F,KAAK,CAAC,eAAe,CAAC,2BAA2B,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QACzE,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;CAEF;AAED,cAAc;AACd,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C,YAAmB,WAAmB,EAAE,OAAe;QACrD,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,iBAAiB,WAAW,GAAG,CAAC;IAC9C,CAAC;CACF;AAED,cAAc;AACd,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD,YAAmB,OAAe;QAChC,KAAK,CAAC,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF;AAED,cAAc;AACd,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C,YAAmB,WAAmB,EAAE,IAAY,EAAE,OAAe,EAAE,WAA6B;QAClG,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;QACE,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IAC9C,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module iModels\n */\n\nimport {\n BentleyError, BentleyStatus, BriefcaseStatus, ChangeSetStatus, DbResult, IModelHubStatus, IModelStatus, LoggingMetaData,\n} from \"@itwin/core-bentley\";\n\n/** Numeric values for common errors produced by iTwin.js APIs, typically provided by [[IModelError]].\n * The values within each of these `enum`s are guaranteed not to conflict with one another.\n * @public\n */\nexport type IModelErrorNumber = IModelStatus | DbResult | BentleyStatus | BriefcaseStatus | ChangeSetStatus;\n\n/** The error type thrown by this module.\n * Creating subclasses of IModelError should be avoided. Instead use [[ITwinError]].\n * @see [[ITwinError]]\n * @see [[IModelErrorNumber]] for commonly-used error codes.\n * @public\n */\nexport class IModelError extends BentleyError {\n public constructor(errorNumber: IModelErrorNumber | number, message: string, getMetaData?: LoggingMetaData) {\n super(errorNumber, message, getMetaData);\n }\n}\n\n/** The state of a lock. See [Acquiring locks on elements.]($docs/learning/backend/ConcurrencyControl.md#acquiring-locks-on-elements).\n * @public\n */\nexport enum LockState {\n /** The element is not locked */\n None = 0,\n /** Holding a shared lock on an element blocks other users from acquiring the Exclusive lock it. More than one user may acquire the shared lock. */\n Shared = 1,\n /** A Lock that permits modifications to an element and blocks other users from making modifications to it.\n * Holding an exclusive lock on an \"owner\" (a model or a parent element), implicitly exclusively locks all its members.\n */\n Exclusive = 2,\n}\n\n/** Detailed information about a particular object Lock that is causing the Lock update conflict.\n * An example of a lock update conflict would be attempting to use [LockControl.acquireLocks]($backend) on an object that is already locked by another Briefcase.\n * @public @deprecated in 4.10 Use [InUseLock]($common) instead.\n*/\nexport interface ConflictingLock {\n /** Id of the object that is causing conflict. */\n objectId: string;\n /**\n * The level of conflicting lock. Possible values are {@link LockState.Shared}, {@link LockState.Exclusive}.\n * See {@link LockState}.\n */\n state: LockState;\n /** An array of Briefcase ids that hold this lock. */\n briefcaseIds: number[];\n}\n\n/**\n * An error raised when there is a lock conflict detected.\n * Typically this error would be thrown by [LockControl.acquireLocks]($backend) when you are requesting a lock on an element that is already held by another briefcase.\n * @public @deprecated in 4.10 Use [InUseLocksError]($common) instead.\n*/\nexport class ConflictingLocksError extends IModelError {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public conflictingLocks?: ConflictingLock[];\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n constructor(message: string, getMetaData?: LoggingMetaData, conflictingLocks?: ConflictingLock[]) {\n super(IModelHubStatus.LockOwnedByAnotherBriefcase, message, getMetaData);\n this.conflictingLocks = conflictingLocks;\n }\n\n}\n\n/** @public */\nexport class ServerError extends IModelError {\n public constructor(errorNumber: number, message: string) {\n super(errorNumber, message);\n this.name = `Server error (${errorNumber})`;\n }\n}\n\n/** @public */\nexport class ServerTimeoutError extends ServerError {\n public constructor(message: string) {\n super(IModelStatus.ServerTimeout, message);\n this.name = \"Server timeout error\";\n }\n}\n\n/** @public */\nexport class BackendError extends IModelError {\n public constructor(errorNumber: number, name: string, message: string, getMetaData?: LoggingMetaData) {\n super(errorNumber, message, getMetaData);\n this.name = name;\n }\n}\n\n/** Intended for API \"no content\" semantics where the error case should not trigger application failure monitoring systems.\n * @public\n */\nexport class NoContentError extends IModelError {\n public constructor() {\n super(IModelStatus.NoContent, \"No Content\");\n }\n}\n"]}
@@ -9,6 +9,10 @@
9
9
  * @public
10
10
  */
11
11
  export class IModelVersion {
12
+ _first;
13
+ _latest;
14
+ _afterChangeSetId;
15
+ _versionName;
12
16
  constructor() { }
13
17
  /** Describes the first version of the iModel */
14
18
  static first() {
@@ -1 +1 @@
1
- {"version":3,"file":"IModelVersion.js","sourceRoot":"","sources":["../../src/IModelVersion.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAaH;;GAEG;AACH,MAAM,OAAO,aAAa;IAMxB,gBAAwB,CAAC;IAEzB,gDAAgD;IACzC,MAAM,CAAC,KAAK;QACjB,MAAM,OAAO,GAAG,IAAI,aAAa,EAAE,CAAC;Q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AAC,KAAK,CAAC;QAC5B,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAClD,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;QAC9B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC;QACxC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,uDAAuD;IACvD,IAAW,OAAO,KAAc,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAEvD,wDAAwD;IACxD,IAAW,QAAQ,KAAc,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzD;;;;;OAKG;IACI,gBAAgB,KAA8B,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAErF,sFAAsF;IAC/E,OAAO,KAAyB,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;CACnE","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 iModels\r\n */\r\n\r\nimport { ChangesetId } from \"./ChangesetProps\";\r\n\r\n/** Properties for IModelVersion\r\n * @public\r\n */\r\nexport type IModelVersionProps =\r\n { first: true, latest?: never, afterChangeSetId?: never, versionName?: never } |\r\n { latest: true, first?: never, afterChangeSetId?: never, versionName?: never } |\r\n { afterChangeSetId: string, first?: never, latest?: never, versionName?: never } |\r\n { versionName: string, first?: never, latest?: never, afterChangeSetId?: never };\r\n\r\n/** Option to specify the version of the iModel to be acquired and used\r\n * @public\r\n */\r\nexport class IModelVersion {\r\n private _first?: boolean;\r\n private _latest?: boolean;\r\n private _afterChangeSetId?: string;\r\n private _versionName?: string;\r\n\r\n private constructor() { }\r\n\r\n /** Describes the first version of the iModel */\r\n public static first(): IModelVersion {\r\n const version = new IModelVersion();\r\n version._first = true;\r\n return version;\r\n }\r\n\r\n /** Describes the latest version of the iModel */\r\n public static latest(): IModelVersion {\r\n const version = new IModelVersion();\r\n version._latest = true;\r\n return version;\r\n }\r\n\r\n /** Describes a version of the iModel by the last change set that needs\r\n * to be applied or merged to the iModel.\r\n * Note that all ChangeSets up to and and including the specified ChangeSet\r\n * needs to be applied.\r\n * If the changesetId is an empty string, it is assumed to be the first version\r\n * before any change sets have been applied.\r\n */\r\n public static asOfChangeSet(changesetId: string): IModelVersion {\r\n const version = new IModelVersion();\r\n\r\n if (changesetId === \"\") {\r\n version._first = true;\r\n return version;\r\n }\r\n\r\n version._afterChangeSetId = changesetId;\r\n return version;\r\n }\r\n\r\n /** Describes a version of the iModel with the specified version name */\r\n public static named(versionName: string): IModelVersion {\r\n const version = new IModelVersion();\r\n version._versionName = versionName;\r\n return version;\r\n }\r\n\r\n public toJSON(): IModelVersionProps {\r\n return this._versionName ? { versionName: this._versionName } :\r\n this._afterChangeSetId ? { afterChangeSetId: this._afterChangeSetId } :\r\n this._first ? { first: this._first } :\r\n { latest: true };\r\n }\r\n\r\n /** Creates a version from an IModelVersionProps */\r\n public static fromJSON(json: IModelVersionProps): IModelVersion {\r\n const version = new IModelVersion();\r\n version._first = json.first;\r\n version._afterChangeSetId = json.afterChangeSetId;\r\n version._latest = json.latest;\r\n version._versionName = json.versionName;\r\n return version;\r\n }\r\n\r\n /** Returns true if this describes the first version */\r\n public get isFirst(): boolean { return !!this._first; }\r\n\r\n /** Returns true if this describes the latest version */\r\n public get isLatest(): boolean { return !!this._latest; }\r\n\r\n /** Returns the last change set id to be applied to the iModel\r\n * to get to this specified version. @see asOfChangeSet().\r\n * Note that this method does not attempt to resolve the change set\r\n * if this describes the first version, last version, named version, etc.\r\n * @see evaluateChangeSet() for those use cases.\r\n */\r\n public getAsOfChangeSet(): ChangesetId | undefined { return this._afterChangeSetId; }\r\n\r\n /** Returns the name of the version if this describes a named version. @see named() */\r\n public getName(): string | undefined { return this._versionName; }\r\n}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,EAAE,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;gBACrE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;oBACpC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,mDAAmD;IAC5C,MAAM,CAAC,QAAQ,CAAC,IAAwB;QAC7C,MAAM,OAAO,GAAG,IAAI,aAAa,EAAE,CAAC;QACpC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5B,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAClD,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;QAC9B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW,CAAC;QACxC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,uDAAuD;IACvD,IAAW,OAAO,KAAc,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAEvD,wDAAwD;IACxD,IAAW,QAAQ,KAAc,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzD;;;;;OAKG;IACI,gBAAgB,KAA8B,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAErF,sFAAsF;IAC/E,OAAO,KAAyB,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;CACnE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module iModels\n */\n\nimport { ChangesetId } from \"./ChangesetProps\";\n\n/** Properties for IModelVersion\n * @public\n */\nexport type IModelVersionProps =\n { first: true, latest?: never, afterChangeSetId?: never, versionName?: never } |\n { latest: true, first?: never, afterChangeSetId?: never, versionName?: never } |\n { afterChangeSetId: string, first?: never, latest?: never, versionName?: never } |\n { versionName: string, first?: never, latest?: never, afterChangeSetId?: never };\n\n/** Option to specify the version of the iModel to be acquired and used\n * @public\n */\nexport class IModelVersion {\n private _first?: boolean;\n private _latest?: boolean;\n private _afterChangeSetId?: string;\n private _versionName?: string;\n\n private constructor() { }\n\n /** Describes the first version of the iModel */\n public static first(): IModelVersion {\n const version = new IModelVersion();\n version._first = true;\n return version;\n }\n\n /** Describes the latest version of the iModel */\n public static latest(): IModelVersion {\n const version = new IModelVersion();\n version._latest = true;\n return version;\n }\n\n /** Describes a version of the iModel by the last change set that needs\n * to be applied or merged to the iModel.\n * Note that all ChangeSets up to and and including the specified ChangeSet\n * needs to be applied.\n * If the changesetId is an empty string, it is assumed to be the first version\n * before any change sets have been applied.\n */\n public static asOfChangeSet(changesetId: string): IModelVersion {\n const version = new IModelVersion();\n\n if (changesetId === \"\") {\n version._first = true;\n return version;\n }\n\n version._afterChangeSetId = changesetId;\n return version;\n }\n\n /** Describes a version of the iModel with the specified version name */\n public static named(versionName: string): IModelVersion {\n const version = new IModelVersion();\n version._versionName = versionName;\n return version;\n }\n\n public toJSON(): IModelVersionProps {\n return this._versionName ? { versionName: this._versionName } :\n this._afterChangeSetId ? { afterChangeSetId: this._afterChangeSetId } :\n this._first ? { first: this._first } :\n { latest: true };\n }\n\n /** Creates a version from an IModelVersionProps */\n public static fromJSON(json: IModelVersionProps): IModelVersion {\n const version = new IModelVersion();\n version._first = json.first;\n version._afterChangeSetId = json.afterChangeSetId;\n version._latest = json.latest;\n version._versionName = json.versionName;\n return version;\n }\n\n /** Returns true if this describes the first version */\n public get isFirst(): boolean { return !!this._first; }\n\n /** Returns true if this describes the latest version */\n public get isLatest(): boolean { return !!this._latest; }\n\n /** Returns the last change set id to be applied to the iModel\n * to get to this specified version. @see asOfChangeSet().\n * Note that this method does not attempt to resolve the change set\n * if this describes the first version, last version, named version, etc.\n * @see evaluateChangeSet() for those use cases.\n */\n public getAsOfChangeSet(): ChangesetId | undefined { return this._afterChangeSetId; }\n\n /** Returns the name of the version if this describes a named version. @see named() */\n public getName(): string | undefined { return this._versionName; }\n}\n"]}
@@ -59,7 +59,7 @@ export declare namespace InUseLocksError {
59
59
  * it first checks [[ITwinError.isITwinError]] and then checks that the namespace property is "itwinjs-core" and the errorKey property is "in-use-locks".
60
60
  */
61
61
  function isInUseLocksError(error: unknown): error is InUseLocksError;
62
- /** throws an error which passes the [[isInUseLocksError]] type guard function */
62
+ /** throws an error which passes the [[InUseLocksError.isInUseLocksError]] type guard function */
63
63
  function throwInUseLocksError(inUseLocks: InUseLock[], message?: string, metadata?: LoggingMetaData): never;
64
64
  }
65
65
  /** @beta */
@@ -1 +1 @@
1
- {"version":3,"file":"ITwinError.d.ts","sourceRoot":"","sources":["../../src/ITwinError.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAgB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB,qDAAqD;IACrD,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,SAAS,EAAE,MAAM,CAAC;IAClB,sGAAsG;IACtG,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED;;;;EAIE;AACF,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,SAAS,EAAE,cAAc,CAAC;IAC1B,QAAQ,EAAE,cAAc,CAAC;IACzB,UAAU,E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B,SAAQ,UAAU;IACjD,SAAS,EAAE,cAAc,CAAC;IAC1B,QAAQ,EAAE,cAAc,CAAC;IACzB,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB;AAED,YAAY;AACZ,yBAAiB,eAAe,CAAC;IAE/B;;;OAGG;IACH,SAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;IAED,iGAAiG;IACjG,SAAgB,oBAAoB,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,KAAK,CAajH;CAEF;AACD,YAAY;AACZ,yBAAiB,UAAU,CAAC;IAC1B,mGAAmG;IACnG,SAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;IAED,iEAAiE;IACjE,SAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAE/D;CAEF"}
@@ -17,7 +17,7 @@ export var InUseLocksError;
17
17
  return ITwinError.isITwinError(error) && error.namespace === "itwinjs-core" && error.errorKey === "in-use-locks";
18
18
  }
19
19
  InUseLocksError.isInUseLocksError = isInUseLocksError;
20
- /** throws an error which passes the [[isInUseLocksError]] type guard function */
20
+ /** throws an error which passes the [[InUseLocksError.isInUseLocksError]] type guard function */
21
21
  function throwInUseLocksError(inUseLocks, message, metadata) {
22
22
  const errorObject = new Error();
23
23
  errorObject.name = "InUseLocksError"; // optional but makes it so that when the error is thrown and not caught we see InUseLocksError: 'message' instead of Error: 'message'
@@ -1 +1 @@
1
- {"version":3,"file":"ITwinError.js","sourceRoot":"","sources":["../../src/ITwinError.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAmB,MAAM,qBAAqB,CAAC;AAuDpE,YAAY;AACZ,MAAM,KAAW,eAAe,CA0B/B;AA1BD,WAAiB,eAAe;IAE9B;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BAAW,cAE1B,CAAA;AAEH,CAAC,EAXgB,UAAU,KAAV,UAAU,QAW1B;AAAA,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\nimport { BentleyError, LoggingMetaData } from \"@itwin/core-bentley\";\r\nimport { LockState } from \"./IModelError\";\r\n\r\n/**\r\n * Detailed information about a particular object Lock that is causing the Lock update conflict.\r\n * An example of a lock update conflict would be attempting to use [LockControl.acquireLocks]($backend) on an object that is already locked by another Briefcase.\r\n * @beta\r\n */\r\nexport interface InUseLock {\r\n /** Id of the object that is causing conflict. */\r\n objectId: string;\r\n /**\r\n * The level of conflicting lock. Possible values are {@link LockState.Shared}, {@link LockState.Exclusive}.\r\n * See {@link LockState}.\r\n */\r\n state: LockState;\r\n /** An array of Briefcase ids that hold this lock. */\r\n briefcaseIds: number[];\r\n}\r\n\r\n/**\r\n * An interface used to describe an error for a developer/application. The message is not intended to be displayed to an end user.\r\n * This error interface should be extended when needing to throw errors with extra properties defined on them. See [[InUseLocksError]] for an example.\r\n * When extending ITwinError, one should typically add a type guard function and a function to throw the error either to a namespace for their error or as standalone functions.\r\n * See [[InUseLocksError.throwInUseLocksError]] and [[InUseLocksError.isInUseLocksError]] for examples of how to throw and check that an error is of type InUseLocksError.\r\n * * Example of catching a ITwinError:\r\n * ``` ts\r\n * [[include:ITwinError.catchAndHandleITwinError]]\r\n * ```\r\n * @beta\r\n */\r\nexport interface ITwinError {\r\n /** namespace for the error. This is a unique qualifier for the errorKey. */\r\n namespace: string;\r\n /** unique key for error, within namespace. All errorKeys within the same namespace must be unique. */\r\n errorKey: string;\r\n /** explanation of what went wrong. Intended to be read by a developer. */\r\n message: string;\r\n /** stack trace of the error. */\r\n stack?: string;\r\n /** metadata about the exception. */\r\n metadata?: LoggingMetaData;\r\n}\r\n\r\n/**\r\n * An error raised when there is a lock conflict detected.\r\n * Typically this error would be thrown by [LockControl.acquireLocks]($backend) when you are requesting a lock on an element that is already held by another briefcase.\r\n * @beta\r\n*/\r\nexport interface InUseLocksError extends ITwinError {\r\n namespace: \"itwinjs-core\";\r\n errorKey: \"in-use-locks\";\r\n inUseLocks: InUseLock[];\r\n}\r\n\r\n/** @beta */\r\nexport namespace InUseLocksError {\r\n\r\n /**\r\n * type guard function that returns whether or not the passed in parameter is an [[InUseLocksError]].\r\n * it first checks [[ITwinError.isITwinError]] and then checks that the namespace property is \"itwinjs-core\" and the errorKey property is \"in-use-locks\".\r\n */\r\n export function isInUseLocksError(error: unknown): error is InUseLocksError {\r\n return ITwinError.isITwinError(error) && error.namespace === \"itwinjs-core\" && error.errorKey === \"in-use-locks\";\r\n }\r\n\r\n /** throws an error which passes the [[isInUseLocksError]] type guard function */\r\n export function throwInUseLocksError(inUseLocks: InUseLock[], message?: string, metadata?: LoggingMetaData): never {\r\n const errorObject = new Error();\r\n errorObject.name = \"InUseLocksError\"; // optional but makes it so that when the error is thrown and not caught we see InUseLocksError: 'message' instead of Error: 'message'\r\n Error.captureStackTrace(errorObject, throwInUseLocksError); // optional: whether we want to hide throwInUseLocksError or not from the stack. not super important\r\n const lockError: InUseLocksError = {\r\n namespace: \"itwinjs-core\",\r\n errorKey: \"in-use-locks\",\r\n message: message ?? \"One or more objects are already locked by another briefcase.\",\r\n metadata,\r\n inUseLocks,\r\n };\r\n Object.assign(errorObject, lockError);\r\n throw errorObject;\r\n }\r\n\r\n}\r\n/** @beta */\r\nexport namespace ITwinError {\r\n /** type guard function that returns whether or not the passed in parameter is an [[ITwinError]] */\r\n export function isITwinError(error: unknown): error is ITwinError {\r\n return error !== undefined && error !== null && typeof error === \"object\" && \"namespace\" in error && \"errorKey\" in error && \"message\" in error;\r\n }\r\n\r\n /** get the meta data associated with this ITwinError, if any. */\r\n export function getMetaData(err: ITwinError): object | undefined {\r\n return Bentle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OAAO,KAAK,KAAK,QAAQ,IAAI,WAAW,IAAI,KAAK,IAAI,UAAU,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,CAAC;IACjJ,CAAC;IAFe,uBAAY,eAE3B,CAAA;IAED,iEAAiE;IACjE,SAAgB,WAAW,CAAC,GAAe;QACzC,OAAO,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAFe,sBAAW,cAE1B,CAAA;AAEH,CAAC,EAXgB,UAAU,KAAV,UAAU,QAW1B;AAAA,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module iModels\n */\n\nimport { BentleyError, LoggingMetaData } from \"@itwin/core-bentley\";\nimport { LockState } from \"./IModelError\";\n\n/**\n * Detailed information about a particular object Lock that is causing the Lock update conflict.\n * An example of a lock update conflict would be attempting to use [LockControl.acquireLocks]($backend) on an object that is already locked by another Briefcase.\n * @beta\n */\nexport interface InUseLock {\n /** Id of the object that is causing conflict. */\n objectId: string;\n /**\n * The level of conflicting lock. Possible values are {@link LockState.Shared}, {@link LockState.Exclusive}.\n * See {@link LockState}.\n */\n state: LockState;\n /** An array of Briefcase ids that hold this lock. */\n briefcaseIds: number[];\n}\n\n/**\n * An interface used to describe an error for a developer/application. The message is not intended to be displayed to an end user.\n * This error interface should be extended when needing to throw errors with extra properties defined on them. See [[InUseLocksError]] for an example.\n * When extending ITwinError, one should typically add a type guard function and a function to throw the error either to a namespace for their error or as standalone functions.\n * See [[InUseLocksError.throwInUseLocksError]] and [[InUseLocksError.isInUseLocksError]] for examples of how to throw and check that an error is of type InUseLocksError.\n * * Example of catching a ITwinError:\n * ``` ts\n * [[include:ITwinError.catchAndHandleITwinError]]\n * ```\n * @beta\n */\nexport interface ITwinError {\n /** namespace for the error. This is a unique qualifier for the errorKey. */\n namespace: string;\n /** unique key for error, within namespace. All errorKeys within the same namespace must be unique. */\n errorKey: string;\n /** explanation of what went wrong. Intended to be read by a developer. */\n message: string;\n /** stack trace of the error. */\n stack?: string;\n /** metadata about the exception. */\n metadata?: LoggingMetaData;\n}\n\n/**\n * An error raised when there is a lock conflict detected.\n * Typically this error would be thrown by [LockControl.acquireLocks]($backend) when you are requesting a lock on an element that is already held by another briefcase.\n * @beta\n*/\nexport interface InUseLocksError extends ITwinError {\n namespace: \"itwinjs-core\";\n errorKey: \"in-use-locks\";\n inUseLocks: InUseLock[];\n}\n\n/** @beta */\nexport namespace InUseLocksError {\n\n /**\n * type guard function that returns whether or not the passed in parameter is an [[InUseLocksError]].\n * it first checks [[ITwinError.isITwinError]] and then checks that the namespace property is \"itwinjs-core\" and the errorKey property is \"in-use-locks\".\n */\n export function isInUseLocksError(error: unknown): error is InUseLocksError {\n return ITwinError.isITwinError(error) && error.namespace === \"itwinjs-core\" && error.errorKey === \"in-use-locks\";\n }\n\n /** throws an error which passes the [[InUseLocksError.isInUseLocksError]] type guard function */\n export function throwInUseLocksError(inUseLocks: InUseLock[], message?: string, metadata?: LoggingMetaData): never {\n const errorObject = new Error();\n errorObject.name = \"InUseLocksError\"; // optional but makes it so that when the error is thrown and not caught we see InUseLocksError: 'message' instead of Error: 'message'\n Error.captureStackTrace(errorObject, throwInUseLocksError); // optional: whether we want to hide throwInUseLocksError or not from the stack. not super important\n const lockError: InUseLocksError = {\n namespace: \"itwinjs-core\",\n errorKey: \"in-use-locks\",\n message: message ?? \"One or more objects are already locked by another briefcase.\",\n metadata,\n inUseLocks,\n };\n Object.assign(errorObject, lockError);\n throw errorObject;\n }\n\n}\n/** @beta */\nexport namespace ITwinError {\n /** type guard function that returns whether or not the passed in parameter is an [[ITwinError]] */\n export function isITwinError(error: unknown): error is ITwinError {\n return error !== undefined && error !== null && typeof error === \"object\" && \"namespace\" in error && \"errorKey\" in error && \"message\" in error;\n }\n\n /** get the meta data associated with this ITwinError, if any. */\n export function getMetaData(err: ITwinError): object | undefined {\n return BentleyError.getMetaData(err.metadata);\n }\n\n};\n"]}
@@ -40,12 +40,9 @@ export declare class ImageBuffer {
40
40
  * @throws Error if the length of the Uint8Array is not appropriate for the specified width and format.
41
41
  */
42
42
  static create(data: Uint8Array, format: ImageBufferFormat, width: number): ImageBuffer;
43
- /** @internal */
44
- protected static isValidData(data: Uint8Array, format: ImageBufferFormat, width: number): boolean;
45
- /** @internal */
46
- protected static computeHeight(data: Uint8Array, format: ImageBufferFormat, width: number): number;
47
- /** @internal */
48
- protected constructor(data: Uint8Array, format: ImageBufferFormat, width: number);
43
+ private static isValidData;
44
+ private static computeHeight;
45
+ private constructor();
49
46
  }
50
47
  /** Returns whether the input is a power of two.
51
48
  * @note Floating point inputs are truncated.
@@ -71,8 +68,10 @@ export declare enum ImageSourceFormat {
71
68
  */
72
69
  Svg = 3
73
70
  }
74
- /** @internal */
75
- export declare function isValidImageSourceFormat(format: ImageSourceFormat): boolean;
71
+ /** Returns true if the numeric `format` value is a valid member of the [[ImageSourceFormat]] enumeration.
72
+ * @public
73
+ */
74
+ export declare function isValidImageSourceFormat(format: number): format is ImageSourceFormat;
76
75
  /** Image data encoded and compressed in either Jpeg or Png format.
77
76
  * @public
78
77
  */
@@ -84,4 +83,19 @@ export declare class ImageSource {
84
83
  /** Construct a new ImageSource, which takes ownership of the Uint8Array. */
85
84
  constructor(data: Uint8Array | string, format: ImageSourceFormat);
86
85
  }
86
+ /** An [[ImageSource]] encoded in binary form as a Jpeg or Png, as opposed to one encoded
87
+ * in string format as an Svg.
88
+ * Only binary ImageSources can be used for [[Texture]]s stored in [[IModelDb]]s.
89
+ * @public
90
+ */
91
+ export interface BinaryImageSource {
92
+ /** The format in which the [[data]] is encoded. */
93
+ readonly format: ImageSourceFormat.Jpeg | ImageSourceFormat.Png;
94
+ /** The image data encoded according to [[format]]. */
95
+ readonly data: Uint8Array;
96
+ }
97
+ /** Returns true if `source` is a [[BinaryImageSource]].
98
+ * @public
99
+ */
100
+ export declare function isBinaryImageSource(source: ImageSource): source is BinaryImageSource;
87
101
  //# sourceMappingURL=Image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/Image.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;;GAKG;AACH,oBAAY,iBAAiB;IAC3B,uCAAuC;IACvC,IAAI,IAAI;IACR,sCAAsC;IACtC,GAAG,IAAI;IACP,wBAAwB;IACxB,KAAK,IAAI;CACV;AAED;;GAEG;AACH,qBAAa,WAAW;IACtB,sGAAsG;IACtG,SAAgB,IAAI,EAAE,UAAU,CAAC;IACjC,wCAAwC;IACxC,SAAgB,MAAM,EAAE,iBAAiB,CAAC;IAC1C,+BAA+B;IAC/B,SAAgB,KAAK,EAAE,MAAM,CAAC;IAE9B,2DAA2D;IAC3D,IAAW,gBAAgB,IAAI,MAAM,CAAyD;IAE9F,0FAA0F;WAC5E,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM;IAQpE,8CAA8C;IAC9C,IAAW,MAAM,IAAI,MAAM,CAA0E;IAErG;;;;;;;OAOG;WACW,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW;IAO7F,gBAAgB;IAChB,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAKjG,gBAAgB;IAChB,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlG,gBAAgB;IAChB,SAAS,aAAa,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM;CAKjF;AAED;;;GAGG;AACH,wBAAgB,YAA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AM,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW;IAO7F,OAAO,CAAC,MAAM,CAAC,WAAW;IAK1B,OAAO,CAAC,MAAM,CAAC,aAAa;IAI5B,OAAO;CAKR;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMzD;AAED;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,kDAAkD;IAClD,IAAI,IAAI;IACR,iDAAiD;IACjD,GAAG,IAAI;IACP;;OAEG;IACH,GAAG,IAAI;CACR;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,iBAAiB,CASpF;AAED;;GAEG;AACH,qBAAa,WAAW;IACtB,2CAA2C;IAC3C,SAAgB,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IAC1C,4BAA4B;IAC5B,SAAgB,MAAM,EAAE,iBAAiB,CAAC;IAE1C,4EAA4E;gBACzD,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,MAAM,EAAE,iBAAiB;CAIxE;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC,IAAI,GAAG,iBAAiB,CAAC,GAAG,CAAC;IAChE,sDAAsD;IACtD,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,IAAI,iBAAiB,CAEpF"}
package/lib/esm/Image.js CHANGED
@@ -24,6 +24,12 @@ export var ImageBufferFormat;
24
24
  * @public
25
25
  */
26
26
  export class ImageBuffer {
27
+ /** Image data in which each pixel occupies 1 or more bytes depending of the [[ImageBufferFormat]]. */
28
+ data;
29
+ /** Format of the bytes in the image. */
30
+ format;
31
+ /** Width of image in pixels */
32
+ width;
27
33
  /** Return the number of bytes allocated for each pixel. */
28
34
  get numBytesPerPixel() { return ImageBuffer.getNumBytesPerPixel(this.format); }
29
35
  /** Determine the number of bytes allocated to a single pixel for the specified format. */
@@ -49,16 +55,13 @@ export class ImageBuffer {
49
55
  throw new Error("The number of bytes supplied for ImageBuffer do not match its width and format.");
50
56
  return new ImageBuffer(data, format, width);
51
57
  }
52
- /** @internal */
53
58
  static isValidData(data, format, width) {
54
59
  const height = this.computeHeight(data, format, width);
55
60
  return width > 0 && height > 0 && Math.floor(width) === width && Math.floor(height) === height;
56
61
  }
57
- /** @internal */
58
62
  static computeHeight(data, format, width) {
59
63
  return data.length / (width * this.getNumBytesPerPixel(format));
60
64
  }
61
- /** @internal */
62
65
  constructor(data, format, width) {
63
66
  this.data = data;
64
67
  this.format = format;
@@ -97,7 +100,9 @@ export var ImageSourceFormat;
97
100
  */
98
101
  ImageSourceFormat[ImageSourceFormat["Svg"] = 3] = "Svg";
99
102
  })(ImageSourceFormat || (ImageSourceFormat = {}));
100
- /** @internal */
103
+ /** Returns true if the numeric `format` value is a valid member of the [[ImageSourceFormat]] enumeration.
104
+ * @public
105
+ */
101
106
  export function isValidImageSourceFormat(format) {
102
107
  switch (format) {
103
108
  case ImageSourceFormat.Jpeg:
@@ -112,10 +117,20 @@ export function isValidImageSourceFormat(format) {
112
117
  * @public
113
118
  */
114
119
  export class ImageSource {
120
+ /** The content of the image, compressed */
121
+ data;
122
+ /** The compression type. */
123
+ format;
115
124
  /** Construct a new ImageSource, which takes ownership of the Uint8Array. */
116
125
  constructor(data, format) {
117
126
  this.data = data;
118
127
  this.format = format;
119
128
  }
120
129
  }
130
+ /** Returns true if `source` is a [[BinaryImageSource]].
131
+ * @public
132
+ */
133
+ export function isBinaryImageSource(source) {
134
+ return source.format !== ImageSourceFormat.Svg && source.data instanceof Uint8Array;
135
+ }
121
136
  //# sourceMappingURL=Image.js.map
@@ -1 +1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uDAAO,CAAA;IACP;;OAEG;IACH,uDAAO,CAAA;AACT,CAAC,EATW,iBAAiB,KAAjB,iBAAiB,QAS5B;AAED,gBAAgB;AAChB,MAAM,UAAU,wBAAwB,CAAC,MAAyB;IAChE,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,iBAAiB,CAAC,IAAI,CAAC;QAC5B,KAAK,iBAAiB,CAAC,GAAG,CAAC;QAC3B,KAAK,iBAAiB,CAAC,GAAG;YACxB,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,OAAO,WAAW;IAMtB,4EAA4E;IAC5E,YAAmB,IAAyB,EAAE,MAAyB;QACrE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,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/** Format of an [[ImageBuffer]].\r\n * The format determines how many bytes are allocated for each pixel in the buffer and the semantics of each byte.\r\n * @see [[ImageBuffer.getNumBytesPerPixel]]\r\n * @public\r\n * @extensions\r\n */\r\nexport enum ImageBufferFormat {\r\n /** RGBA format - 4 bytes per pixel. */\r\n Rgba = 0,\r\n /** RGB format - 3 bytes per pixel. */\r\n Rgb = 2,\r\n /** 1 byte per pixel. */\r\n Alpha = 5,\r\n}\r\n\r\n/** Uncompressed rectangular bitmap image data.\r\n * @public\r\n */\r\nexport class ImageBuffer {\r\n /** Image data in which each pixel occupies 1 or more bytes depending of the [[ImageBufferFormat]]. */\r\n public readonly data: Uint8Array;\r\n /** Format of the bytes in the image. */\r\n public readonly format: ImageBufferFormat;\r\n /** Width of image in pixels */\r\n public readonly width: number;\r\n\r\n /** Return the number of bytes allocated for each pixel. */\r\n public get numBytesPerPixel(): number { return ImageBuffer.getNumBytesPerPixel(this.format); }\r\n\r\n /** Determine the number of bytes allocated to a single pixel for the specified format. */\r\n public static getNumBytesPerPixel(format: ImageBufferFormat): number {\r\n switch (format) {\r\n case ImageBufferFormat.Alpha: return 1;\r\n case ImageBufferFormat.Rgb: return 3;\r\n default: return 4;\r\n }\r\n }\r\n\r\n /** Get the height of this image in pixels. */\r\n public get height(): number { return ImageBuffer.computeHeight(this.data, this.format, this.width); }\r\n\r\n /** Create a new ImageBuffer.\r\n * @note The ImageBuffer takes ownership of the input Uint8Array.\r\n * @param data The uncompressed image bytes. Must be a multiple of the width times the number of bytes per pixel specified by the format.\r\n * @param format The format of the image.\r\n * @param width The width of the image in pixels.\r\n * @returns A new ImageBuffer.\r\n * @throws Error if the length of the Uint8Array is not appropriate for the specified width and format.\r\n */\r\n public static create(data: Uint8Array, format: ImageBufferFormat, width: number): ImageBuffer {\r\n if (!this.isValidData(data, format, width))\r\n throw new Error(\"The number of bytes supplied for ImageBuffer do not match its width and format.\");\r\n\r\n return new ImageBuffer(data, format, width);\r\n }\r\n\r\n /** @internal */\r\n protected static isValidData(data: Uint8Array, format: ImageBufferFormat, width: number): boolean {\r\n const height = this.computeHeight(data, format, width);\r\n return width > 0 && height > 0 && Math.floor(width) === width && Math.floor(height) === height;\r\n }\r\n\r\n /** @internal */\r\n protected static computeHeight(data: Uint8Array, format: ImageBufferFormat, width: number): number {\r\n return data.length / (width * this.getNumBytesPerPixel(format));\r\n }\r\n\r\n /** @internal */\r\n protected constructor(data: Uint8Array, format: ImageBufferFormat, width: number) {\r\n this.data = data;\r\n this.format = format;\r\n this.width = width;\r\n }\r\n}\r\n\r\n/** Returns whether the input is a power of two.\r\n * @note Floating point inputs are truncated.\r\n * @public\r\n */\r\nexport function isPowerOfTwo(num: number): boolean {\r\n return 0 === (num & (num - 1));\r\n}\r\n\r\n/** Returns the first power-of-two value greater than or equal to the input.\r\n * @note Floating point inputs are truncated.\r\n * @public\r\n */\r\nexport function nextHighestPowerOfTwo(num: number): number {\r\n --num;\r\n for (let i = 1; i < 32; i <<= 1)\r\n num = num | num >> i;\r\n\r\n return num + 1;\r\n}\r\n\r\n/** The format of an ImageSource.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum ImageSourceFormat {\r\n /** Image data is stored with JPEG compression. */\r\n Jpeg = 0,\r\n /** Image data is stored with PNG compression. */\r\n Png = 2,\r\n /** Image is stored as an Svg stream.\r\n * @note SVG is only valid for ImageSources in JavaScript. It *may not* be used for persistent textures.\r\n */\r\n Svg = 3,\r\n}\r\n\r\n/** @internal */\r\nexport function isValidImageSourceFormat(format: ImageSourceFormat): boolean {\r\n switch (format) {\r\n case ImageSourceFormat.Jpeg:\r\n case ImageSourceFormat.Png:\r\n case ImageSourceFormat.Svg:\r\n return true;\r\n default:\r\n return false;\r\n }\r\n}\r\n\r\n/** Image data encoded and compressed in either Jpeg or Png format.\r\n * @public\r\n */\r\nexport class ImageSource {\r\n /** The content of the image, compressed */\r\n public readonly data: Uint8Array | string;\r\n /** The compression type. */\r\n public readonly format: ImageSourceFormat;\r\n\r\n /** Construct a new ImageSource, which takes ownership of the Uint8Array. */\r\n public constructor(data: Uint8Array | string, format: ImageSourceFormat) {\r\n this.data = data;\r\n this.format = format;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Image.js","sourceRoot":"","sources":["../../src/Image.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,uCAAuC;IACvC,yDAAQ,CAAA;IACR,sCAAsC;IACtC,uDAAO,CAAA;IACP,wBAAwB;IACxB,2DAAS,CAAA;AACX,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B;AAED;;GAEG;AACH,MAAM,OAAO,WAAW;IACtB,sGAAsG;IACtF,IAAI,CAAa;IACjC,wCAAwC;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,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,OAAO,WAAW;IACtB,2CAA2C;IAC3B,IAAI,CAAsB;IAC1C,4BAA4B;IACZ,MAAM,CAAoB;IAE1C,4EAA4E;IAC5E,YAAmB,IAAyB,EAAE,MAAyB;QACrE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAcD;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAmB;IACrD,OAAO,MAAM,CAAC,MAAM,KAAK,iBAAiB,CAAC,GAAG,IAAI,MAAM,CAAC,IAAI,YAAY,UAAU,CAAC;AACtF,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\n/** Format of an [[ImageBuffer]].\n * The format determines how many bytes are allocated for each pixel in the buffer and the semantics of each byte.\n * @see [[ImageBuffer.getNumBytesPerPixel]]\n * @public\n * @extensions\n */\nexport enum ImageBufferFormat {\n /** RGBA format - 4 bytes per pixel. */\n Rgba = 0,\n /** RGB format - 3 bytes per pixel. */\n Rgb = 2,\n /** 1 byte per pixel. */\n Alpha = 5,\n}\n\n/** Uncompressed rectangular bitmap image data.\n * @public\n */\nexport class ImageBuffer {\n /** Image data in which each pixel occupies 1 or more bytes depending of the [[ImageBufferFormat]]. */\n public readonly data: Uint8Array;\n /** Format of the bytes in the image. */\n public readonly format: ImageBufferFormat;\n /** Width of image in pixels */\n public readonly width: number;\n\n /** Return the number of bytes allocated for each pixel. */\n public get numBytesPerPixel(): number { return ImageBuffer.getNumBytesPerPixel(this.format); }\n\n /** Determine the number of bytes allocated to a single pixel for the specified format. */\n public static getNumBytesPerPixel(format: ImageBufferFormat): number {\n switch (format) {\n case ImageBufferFormat.Alpha: return 1;\n case ImageBufferFormat.Rgb: return 3;\n default: return 4;\n }\n }\n\n /** Get the height of this image in pixels. */\n public get height(): number { return ImageBuffer.computeHeight(this.data, this.format, this.width); }\n\n /** Create a new ImageBuffer.\n * @note The ImageBuffer takes ownership of the input Uint8Array.\n * @param data The uncompressed image bytes. Must be a multiple of the width times the number of bytes per pixel specified by the format.\n * @param format The format of the image.\n * @param width The width of the image in pixels.\n * @returns A new ImageBuffer.\n * @throws Error if the length of the Uint8Array is not appropriate for the specified width and format.\n */\n public static create(data: Uint8Array, format: ImageBufferFormat, width: number): ImageBuffer {\n if (!this.isValidData(data, format, width))\n throw new Error(\"The number of bytes supplied for ImageBuffer do not match its width and format.\");\n\n return new ImageBuffer(data, format, width);\n }\n\n private static isValidData(data: Uint8Array, format: ImageBufferFormat, width: number): boolean {\n const height = this.computeHeight(data, format, width);\n return width > 0 && height > 0 && Math.floor(width) === width && Math.floor(height) === height;\n }\n\n private static computeHeight(data: Uint8Array, format: ImageBufferFormat, width: number): number {\n return data.length / (width * this.getNumBytesPerPixel(format));\n }\n\n private constructor(data: Uint8Array, format: ImageBufferFormat, width: number) {\n this.data = data;\n this.format = format;\n this.width = width;\n }\n}\n\n/** Returns whether the input is a power of two.\n * @note Floating point inputs are truncated.\n * @public\n */\nexport function isPowerOfTwo(num: number): boolean {\n return 0 === (num & (num - 1));\n}\n\n/** Returns the first power-of-two value greater than or equal to the input.\n * @note Floating point inputs are truncated.\n * @public\n */\nexport function nextHighestPowerOfTwo(num: number): number {\n --num;\n for (let i = 1; i < 32; i <<= 1)\n num = num | num >> i;\n\n return num + 1;\n}\n\n/** The format of an ImageSource.\n * @public\n * @extensions\n */\nexport enum ImageSourceFormat {\n /** Image data is stored with JPEG compression. */\n Jpeg = 0,\n /** Image data is stored with PNG compression. */\n Png = 2,\n /** Image is stored as an Svg stream.\n * @note SVG is only valid for ImageSources in JavaScript. It *may not* be used for persistent textures.\n */\n Svg = 3,\n}\n\n/** Returns true if the numeric `format` value is a valid member of the [[ImageSourceFormat]] enumeration.\n * @public\n */\nexport function isValidImageSourceFormat(format: number): format is ImageSourceFormat {\n switch (format) {\n case ImageSourceFormat.Jpeg:\n case ImageSourceFormat.Png:\n case ImageSourceFormat.Svg:\n return true;\n default:\n return false;\n }\n}\n\n/** Image data encoded and compressed in either Jpeg or Png format.\n * @public\n */\nexport class ImageSource {\n /** The content of the image, compressed */\n public readonly data: Uint8Array | string;\n /** The compression type. */\n public readonly format: ImageSourceFormat;\n\n /** Construct a new ImageSource, which takes ownership of the Uint8Array. */\n public constructor(data: Uint8Array | string, format: ImageSourceFormat) {\n this.data = data;\n this.format = format;\n }\n}\n\n/** An [[ImageSource]] encoded in binary form as a Jpeg or Png, as opposed to one encoded\n * in string format as an Svg.\n * Only binary ImageSources can be used for [[Texture]]s stored in [[IModelDb]]s.\n * @public\n */\nexport interface BinaryImageSource {\n /** The format in which the [[data]] is encoded. */\n readonly format: ImageSourceFormat.Jpeg | ImageSourceFormat.Png;\n /** The image data encoded according to [[format]]. */\n readonly data: Uint8Array;\n}\n\n/** Returns true if `source` is a [[BinaryImageSource]].\n * @public\n */\nexport function isBinaryImageSource(source: ImageSource): source is BinaryImageSource {\n return source.format !== ImageSourceFormat.Svg && source.data instanceof Uint8Array;\n}\n"]}
@@ -136,6 +136,8 @@ export interface IpcAppFunctions {
136
136
  closeIModel: (key: string) => Promise<void>;
137
137
  /** see BriefcaseConnection.saveChanges */
138
138
  saveChanges: (key: string, description?: string) => Promise<void>;
139
+ /** see BriefcaseConnection.abandonChanges */
140
+ abandonChanges: (key: string) => Promise<void>;
139
141
  /** see BriefcaseTxns.hasPendingTxns */
140
142
  hasPendingTxns: (key: string) => Promise<boolean>;
141
143
  /** see BriefcaseTxns.isUndoPossible */
@@ -1 +1 @@
1
- {"version":3,"file":"IpcAppProps.d.ts","sourceRoot":"","sources":["../../src/IpcAppProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAA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CAAC;IACrD,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD,4FAA4F;IAC5F,gBAAgB,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,KAAK,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"IpcAppProps.js","sourceRoot":"","sources":["../../src/IpcAppProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAuBH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,GAAG,cAAc,CAAC,SAAS,gBAAgB,QAAQ,EAAE,CAAC;AAwBpH,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,sBAAsB;IACjC,SAAS,EAAE,4BAA4B;IACvC,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,4BAA4B;CAClC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module NativeApp\r\n */\r\n\r\nimport { GuidString, Id64String, IModelStatus, LogLevel, OpenMode } from \"@itwin/core-bentley\";\r\nimport { Range3dProps, XYZProps } from \"@itwin/core-geometry\";\r\nimport { OpenBriefcaseProps, OpenCheckpointArgs } from \"./BriefcaseTypes\";\r\nimport { ChangedEntities } from \"./ChangedEntities\";\r\nimport { ChangesetIndex, ChangesetIndexAndId } from \"./ChangesetProps\";\r\nimport { GeographicCRSProps } from \"./geometry/CoordinateReferenceSystem\";\r\nimport { EcefLocationProps, IModelConnectionProps, IModelRpcProps, RootSubjectProps, SnapshotOpenOptions, StandaloneOpenOptions } from \"./IModel\";\r\nimport { ModelGeometryChangesProps } from \"./ModelGeometryChanges\";\r\n\r\n/** Options for pulling changes into iModel.\r\n * @internal\r\n */\r\nexport interface PullChangesOptions {\r\n /** Enables progress reporting. */\r\n reportProgress?: boolean;\r\n /** Interval for reporting progress (in milliseconds). */\r\n progressInterval?: number;\r\n /** Enables checks for abort. */\r\n enableCancellation?: boolean;\r\n}\r\n\r\n/** Get IPC channel name used for reporting progress of pulling changes into iModel.\r\n * @internal\r\n */\r\nexport const getPullChangesIpcChannel = (iModelId: string) => `${ipcAppChannels.functions}/pullChanges/${iModelId}`;\r\n\r\n/** Identifies a list of tile content Ids belonging to a single tile tree.\r\n * @internal\r\n */\r\nexport interface TileTreeContentIds {\r\n treeId: string;\r\n contentIds: string[];\r\n}\r\n\r\n/** Specifies a [GeometricModel]($backend)'s Id and a Guid identifying the current state of the geometry contained within the model.\r\n * @see [TxnManager.onModelGeometryChanged]($backend) and [BriefcaseTxns.onModelGeometryChanged]($frontend).\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ModelIdAndGeometryGuid {\r\n /** The model's Id. */\r\n id: Id64String;\r\n /** A unique identifier for the current state of the model's geometry. If the guid differs between two revisions of the same iModel, it indicates that the geometry differs.\r\n * This is primarily an implementation detail used to determine whether [Tile]($frontend)s produced for one revision are compatible with another revision.\r\n */\r\n guid: GuidString;\r\n}\r\n\r\n/** @internal */\r\nexport const ipcAppChannels = {\r\n functions: \"itwinjs-core/ipc-app\",\r\n appNotify: \"itwinjs-core/ipcApp-notify\",\r\n txns: \"itwinjs-core/txns\",\r\n editingScope: \"itwinjs-core/editing-scope\",\r\n} as const;\r\n\r\n/**\r\n * Interface implemented by the frontend [NotificationHandler]($common) to be notified of events from IpcApp backend.\r\n * @internal\r\n */\r\nexport interface IpcAppNotifications {\r\n notifyApp: () => void;\r\n}\r\n\r\n/** @internal */\r\nexport interface NotifyEntitiesChangedMetadata {\r\n /** Class full name (\"Schema:Class\") */\r\n name: string;\r\n /** The indices in [[NotifyEntitiesChangedArgs.meta]] of each of this class's **direct** base classes. */\r\n bases: number[];\r\n}\r\n\r\n/** Arguments supplied to [[TxnNotifications.notifyElementsChanged]] and [[TxnNotifications.notifyModelsChanged]].\r\n * @internal\r\n */\r\nexport interface NotifyEntitiesChangedArgs extends ChangedEntities {\r\n /** An array of the same length as [[ChangedEntities.inserted]] (or empty if that array is undefined), containing the index in the [[meta]] array at which the\r\n * metadata for each entity's class is located.\r\n */\r\n insertedMeta: number[];\r\n /** See insertedMeta. */\r\n updatedMeta: number[];\r\n /** See insertedMeta. */\r\n deletedMeta: number[];\r\n\r\n /** Metadata describing each unique class of entity in this set of changes, followed by each unique direct or indirect base class of those classes. */\r\n meta: NotifyEntitiesChangedMetadata[];\r\n}\r\n\r\n/** Interface implemented by the frontend [NotificationHandler]($common) to be notified of changes to an iModel.\r\n * @see [TxnManager]($backend) for the source of these events.\r\n * @see [BriefcaseTxns]($frontend) for the frontend implementation.\r\n * @internal\r\n */\r\nexport interface TxnNotifications {\r\n notifyElementsChanged: (changes: NotifyEntitiesChangedArgs) => void;\r\n notifyModelsChanged: (changes: NotifyEntitiesChangedArgs) => void;\r\n notifyGeometryGuidsChanged: (changes: ModelIdAndGeometryGuid[]) => void;\r\n notifyCommit: () => void;\r\n notifyCommitted: (hasPendingTxns: boolean, time: number) => void;\r\n notifyReplayExternalTxns: () => void;\r\n notifyReplayedExternalTxns: () => void;\r\n notifyChangesApplied: () => void;\r\n notifyBeforeUndoRedo: (isUndo: boolean) => void;\r\n notifyAfterUndoRedo: (isUndo: boolean) => void;\r\n notifyPulledChanges: (parentChangeSetId: ChangesetIndexAndId) => void;\r\n notifyPushedChanges: (parentChangeSetId: ChangesetIndexAndId) => void;\r\n\r\n notifyIModelNameChanged: (name: string) => void;\r\n notifyRootSubjectChanged: (subject: RootSubjectProps) => void;\r\n notifyProjectExtentsChanged: (extents: Range3dProps) => void;\r\n notifyGlobalOriginChanged: (origin: XYZProps) => void;\r\n notifyEcefLocationChanged: (ecef: EcefLocationProps | undefined) => void;\r\n notifyGeographicCoordinateSystemChanged: (gcs: GeographicCRSProps | undefined) => void;\r\n}\r\n\r\n/**\r\n * Interface registered by the frontend [NotificationHandler]($common) to be notified of changes to an iModel during an [GraphicalEditingScope]($frontend).\r\n * @internal\r\n */\r\nexport interface EditingScopeNotifications {\r\n notifyGeometryChanged: (modelProps: ModelGeometryChangesProps[]) => void;\r\n}\r\n\r\n/**\r\n * The methods that may be invoked via Ipc from the frontend of an IpcApp and are implemented on its backend.\r\n * @internal\r\n */\r\nexport interface IpcAppFunctions {\r\n /** Send frontend log to backend.\r\n * @param _level Specify log level.\r\n * @param _category Specify log category.\r\n * @param _message Specify log message.\r\n * @param _metaData metaData if any.\r\n */\r\n log: (_timestamp: number, _level: LogLevel, _category: string, _message: string, _metaData?: any) => Promise<void>;\r\n\r\n /** see BriefcaseConnection.openFile */\r\n openBriefcase: (args: OpenBriefcaseProps) => Promise<IModelConnectionProps>;\r\n /** see BriefcaseConnection.openStandalone */\r\n openCheckpoint: (args: OpenCheckpointArgs) => Promise<IModelConnectionProps>;\r\n /** see BriefcaseConnection.openStandalone */\r\n openStandalone: (filePath: string, openMode: OpenMode, opts?: StandaloneOpenOptions) => Promise<IModelConnectionProps>;\r\n /** see SnapshotConnection.openFile */\r\n openSnapshot: (filePath: string, opts?: SnapshotOpenOptions) => Promise<IModelConnectionProps>;\r\n /** see BriefcaseConnection.close */\r\n closeIModel: (key: string) => Promise<void>;\r\n /** see BriefcaseConnection.saveChanges */\r\n saveChanges: (key: string, description?: string) => Promise<void>;\r\n /** see BriefcaseTxns.hasPendingTxns */\r\n hasPendingTxns: (key: string) => Promise<boolean>;\r\n /** see BriefcaseTxns.isUndoPossible */\r\n isUndoPossible: (key: string) => Promise<boolean>;\r\n /** see BriefcaseTxns.isRedoPossible */\r\n isRedoPossible: (key: string) => Promise<boolean>;\r\n /** see BriefcaseTxns.getUndoString */\r\n getUndoString: (key: string) => Promise<string>;\r\n /** see BriefcaseTxns.getRedoString */\r\n getRedoString: (key: string) => Promise<string>;\r\n\r\n /** see BriefcaseConnection.pullChanges */\r\n pullChanges: (key: string, toIndex?: ChangesetIndex, options?: PullChangesOptions) => Promise<ChangesetIndexAndId>;\r\n /** Cancels pull of changes. */\r\n cancelPullChangesRequest: (key: string) => Promise<void>;\r\n /** see BriefcaseConnection.pushChanges */\r\n pushChanges: (key: string, description: string) => Promise<ChangesetIndexAndId>;\r\n /** Cancels currently pending or active generation of tile content. */\r\n cancelTileContentRequests: (tokenProps: IModelRpcProps, _contentIds: TileTreeContentIds[]) => Promise<void>;\r\n\r\n /** Cancel element graphics requests.\r\n * @see [[IModelTileRpcInterface.requestElementGraphics]].\r\n */\r\n cancelElementGraphicsRequests: (key: string, _requestIds: string[]) => Promise<void>;\r\n\r\n toggleGraphicalEditingScope: (key: string, _startSession: boolean) => Promise<boolean>;\r\n isGraphicalEditingSupported: (key: string) => Promise<boolean>;\r\n\r\n reverseTxns: (key: string, numOperations: number) => Promise<IModelStatus>;\r\n reverseAllTxn: (key: string) => Promise<IModelStatus>;\r\n reinstateTxn: (key: string) => Promise<IModelStatus>;\r\n restartTxnSession: (key: string) => Promise<void>;\r\n\r\n /** Query the number of concurrent threads supported by the host's IO or CPU thread pool. */\r\n queryConcurrency: (pool: \"io\" | \"cpu\") => Promise<number>;\r\n}\r\n\r\n"]}
1
+ {"version":3,"file":"IpcAppProps.js","sourceRoot":"","sources":["../../src/IpcAppProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAuBH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,GAAG,cAAc,CAAC,SAAS,gBAAgB,QAAQ,EAAE,CAAC;AAwBpH,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,sBAAsB;IACjC,SAAS,EAAE,4BAA4B;IACvC,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,4BAA4B;CAClC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module NativeApp\n */\n\nimport { GuidString, Id64String, IModelStatus, LogLevel, OpenMode } from \"@itwin/core-bentley\";\nimport { Range3dProps, XYZProps } from \"@itwin/core-geometry\";\nimport { OpenBriefcaseProps, OpenCheckpointArgs } from \"./BriefcaseTypes\";\nimport { ChangedEntities } from \"./ChangedEntities\";\nimport { ChangesetIndex, ChangesetIndexAndId } from \"./ChangesetProps\";\nimport { GeographicCRSProps } from \"./geometry/CoordinateReferenceSystem\";\nimport { EcefLocationProps, IModelConnectionProps, IModelRpcProps, RootSubjectProps, SnapshotOpenOptions, StandaloneOpenOptions } from \"./IModel\";\nimport { ModelGeometryChangesProps } from \"./ModelGeometryChanges\";\n\n/** Options for pulling changes into iModel.\n * @internal\n */\nexport interface PullChangesOptions {\n /** Enables progress reporting. */\n reportProgress?: boolean;\n /** Interval for reporting progress (in milliseconds). */\n progressInterval?: number;\n /** Enables checks for abort. */\n enableCancellation?: boolean;\n}\n\n/** Get IPC channel name used for reporting progress of pulling changes into iModel.\n * @internal\n */\nexport const getPullChangesIpcChannel = (iModelId: string) => `${ipcAppChannels.functions}/pullChanges/${iModelId}`;\n\n/** Identifies a list of tile content Ids belonging to a single tile tree.\n * @internal\n */\nexport interface TileTreeContentIds {\n treeId: string;\n contentIds: string[];\n}\n\n/** Specifies a [GeometricModel]($backend)'s Id and a Guid identifying the current state of the geometry contained within the model.\n * @see [TxnManager.onModelGeometryChanged]($backend) and [BriefcaseTxns.onModelGeometryChanged]($frontend).\n * @public\n * @extensions\n */\nexport interface ModelIdAndGeometryGuid {\n /** The model's Id. */\n id: Id64String;\n /** A unique identifier for the current state of the model's geometry. If the guid differs between two revisions of the same iModel, it indicates that the geometry differs.\n * This is primarily an implementation detail used to determine whether [Tile]($frontend)s produced for one revision are compatible with another revision.\n */\n guid: GuidString;\n}\n\n/** @internal */\nexport const ipcAppChannels = {\n functions: \"itwinjs-core/ipc-app\",\n appNotify: \"itwinjs-core/ipcApp-notify\",\n txns: \"itwinjs-core/txns\",\n editingScope: \"itwinjs-core/editing-scope\",\n} as const;\n\n/**\n * Interface implemented by the frontend [NotificationHandler]($common) to be notified of events from IpcApp backend.\n * @internal\n */\nexport interface IpcAppNotifications {\n notifyApp: () => void;\n}\n\n/** @internal */\nexport interface NotifyEntitiesChangedMetadata {\n /** Class full name (\"Schema:Class\") */\n name: string;\n /** The indices in [[NotifyEntitiesChangedArgs.meta]] of each of this class's **direct** base classes. */\n bases: number[];\n}\n\n/** Arguments supplied to [[TxnNotifications.notifyElementsChanged]] and [[TxnNotifications.notifyModelsChanged]].\n * @internal\n */\nexport interface NotifyEntitiesChangedArgs extends ChangedEntities {\n /** An array of the same length as [[ChangedEntities.inserted]] (or empty if that array is undefined), containing the index in the [[meta]] array at which the\n * metadata for each entity's class is located.\n */\n insertedMeta: number[];\n /** See insertedMeta. */\n updatedMeta: number[];\n /** See insertedMeta. */\n deletedMeta: number[];\n\n /** Metadata describing each unique class of entity in this set of changes, followed by each unique direct or indirect base class of those classes. */\n meta: NotifyEntitiesChangedMetadata[];\n}\n\n/** Interface implemented by the frontend [NotificationHandler]($common) to be notified of changes to an iModel.\n * @see [TxnManager]($backend) for the source of these events.\n * @see [BriefcaseTxns]($frontend) for the frontend implementation.\n * @internal\n */\nexport interface TxnNotifications {\n notifyElementsChanged: (changes: NotifyEntitiesChangedArgs) => void;\n notifyModelsChanged: (changes: NotifyEntitiesChangedArgs) => void;\n notifyGeometryGuidsChanged: (changes: ModelIdAndGeometryGuid[]) => void;\n notifyCommit: () => void;\n notifyCommitted: (hasPendingTxns: boolean, time: number) => void;\n notifyReplayExternalTxns: () => void;\n notifyReplayedExternalTxns: () => void;\n notifyChangesApplied: () => void;\n notifyBeforeUndoRedo: (isUndo: boolean) => void;\n notifyAfterUndoRedo: (isUndo: boolean) => void;\n notifyPulledChanges: (parentChangeSetId: ChangesetIndexAndId) => void;\n notifyPushedChanges: (parentChangeSetId: ChangesetIndexAndId) => void;\n\n notifyIModelNameChanged: (name: string) => void;\n notifyRootSubjectChanged: (subject: RootSubjectProps) => void;\n notifyProjectExtentsChanged: (extents: Range3dProps) => void;\n notifyGlobalOriginChanged: (origin: XYZProps) => void;\n notifyEcefLocationChanged: (ecef: EcefLocationProps | undefined) => void;\n notifyGeographicCoordinateSystemChanged: (gcs: GeographicCRSProps | undefined) => void;\n}\n\n/**\n * Interface registered by the frontend [NotificationHandler]($common) to be notified of changes to an iModel during an [GraphicalEditingScope]($frontend).\n * @internal\n */\nexport interface EditingScopeNotifications {\n notifyGeometryChanged: (modelProps: ModelGeometryChangesProps[]) => void;\n}\n\n/**\n * The methods that may be invoked via Ipc from the frontend of an IpcApp and are implemented on its backend.\n * @internal\n */\nexport interface IpcAppFunctions {\n /** Send frontend log to backend.\n * @param _level Specify log level.\n * @param _category Specify log category.\n * @param _message Specify log message.\n * @param _metaData metaData if any.\n */\n log: (_timestamp: number, _level: LogLevel, _category: string, _message: string, _metaData?: any) => Promise<void>;\n\n /** see BriefcaseConnection.openFile */\n openBriefcase: (args: OpenBriefcaseProps) => Promise<IModelConnectionProps>;\n /** see BriefcaseConnection.openStandalone */\n openCheckpoint: (args: OpenCheckpointArgs) => Promise<IModelConnectionProps>;\n /** see BriefcaseConnection.openStandalone */\n openStandalone: (filePath: string, openMode: OpenMode, opts?: StandaloneOpenOptions) => Promise<IModelConnectionProps>;\n /** see SnapshotConnection.openFile */\n openSnapshot: (filePath: string, opts?: SnapshotOpenOptions) => Promise<IModelConnectionProps>;\n /** see BriefcaseConnection.close */\n closeIModel: (key: string) => Promise<void>;\n /** see BriefcaseConnection.saveChanges */\n saveChanges: (key: string, description?: string) => Promise<void>;\n /** see BriefcaseConnection.abandonChanges */\n abandonChanges: (key: string) => Promise<void>;\n /** see BriefcaseTxns.hasPendingTxns */\n hasPendingTxns: (key: string) => Promise<boolean>;\n /** see BriefcaseTxns.isUndoPossible */\n isUndoPossible: (key: string) => Promise<boolean>;\n /** see BriefcaseTxns.isRedoPossible */\n isRedoPossible: (key: string) => Promise<boolean>;\n /** see BriefcaseTxns.getUndoString */\n getUndoString: (key: string) => Promise<string>;\n /** see BriefcaseTxns.getRedoString */\n getRedoString: (key: string) => Promise<string>;\n\n /** see BriefcaseConnection.pullChanges */\n pullChanges: (key: string, toIndex?: ChangesetIndex, options?: PullChangesOptions) => Promise<ChangesetIndexAndId>;\n /** Cancels pull of changes. */\n cancelPullChangesRequest: (key: string) => Promise<void>;\n /** see BriefcaseConnection.pushChanges */\n pushChanges: (key: string, description: string) => Promise<ChangesetIndexAndId>;\n /** Cancels currently pending or active generation of tile content. */\n cancelTileContentRequests: (tokenProps: IModelRpcProps, _contentIds: TileTreeContentIds[]) => Promise<void>;\n\n /** Cancel element graphics requests.\n * @see [[IModelTileRpcInterface.requestElementGraphics]].\n */\n cancelElementGraphicsRequests: (key: string, _requestIds: string[]) => Promise<void>;\n\n toggleGraphicalEditingScope: (key: string, _startSession: boolean) => Promise<boolean>;\n isGraphicalEditingSupported: (key: string) => Promise<boolean>;\n\n reverseTxns: (key: string, numOperations: number) => Promise<IModelStatus>;\n reverseAllTxn: (key: string) => Promise<IModelStatus>;\n reinstateTxn: (key: string) => Promise<IModelStatus>;\n restartTxnSession: (key: string) => Promise<void>;\n\n /** Query the number of concurrent threads supported by the host's IO or CPU thread pool. */\n queryConcurrency: (pool: \"io\" | \"cpu\") => Promise<number>;\n}\n\n"]}
@@ -18,6 +18,19 @@ const defaultSolarDirection = Vector3d.create(0.272166, 0.680414, 0.680414);
18
18
  * @public
19
19
  */
20
20
  export class SolarLight {
21
+ /** Direction of the light in world coordinates. Defaults to a vector looking down on the scene at a 45 degree angle mostly along the Y axis. */
22
+ direction;
23
+ /** Intensity of the light, typically in [0..1] but can range up to 5. Default: 1.0 */
24
+ intensity;
25
+ /** If true, the light will be applied even when shadows are turned off for the view.
26
+ * If false, a roughly overhead light of the same intensity oriented in view space will be used instead.
27
+ * Default: false.
28
+ */
29
+ alwaysEnabled;
30
+ /** If defined, the time in UNIX milliseconds from which [[direction]] was calculated.
31
+ * @see [[DisplayStyleSettings.setSunTime]] to compute the solar direction from a point in time.
32
+ */
33
+ timePoint;
21
34
  constructor(json) {
22
35
  json = json || {};
23
36
  this.intensity = extractIntensity(json.intensity, 1);
@@ -81,6 +94,8 @@ export class SolarLight {
81
94
  * @public
82
95
  */
83
96
  export class AmbientLight {
97
+ color;
98
+ intensity;
84
99
  constructor(json) {
85
100
  json = json || {};
86
101
  this.intensity = extractIntensity(json.intensity, 0.2);
@@ -120,6 +135,9 @@ const defaultLowerHemisphereColor = new RgbColor(120, 143, 125);
120
135
  * @public
121
136
  */
122
137
  export class HemisphereLights {
138
+ upperColor;
139
+ lowerColor;
140
+ intensity;
123
141
  constructor(json) {
124
142
  json = json || {};
125
143
  this.intensity = extractIntensity(json.intensity, 0);
@@ -172,11 +190,23 @@ function clampIntensity(intensity = 0) {
172
190
  * @public
173
191
  */
174
192
  export class FresnelSettings {
193
+ /** The strength of the effect in terms of how much brighter the surface becomes. The intensity at a given point on the surface is determined by
194
+ * the angle between the viewer's line of sight and the vector from the viewer to that point. Maximum intensity is produced when those vectors are
195
+ * perpendicular, and zero intensity is produced when those vectors are parallel (unless [[invert]] is `true`).
196
+ *
197
+ * A value of zero turns off the effect. Values less than zero are clamped to zero. Typical values range between 0 and 1.
198
+ */
199
+ intensity;
200
+ /** If true, inverts the effect's [[intensity]] such that maximum intensity is produced when the viewer's line of sight is parallel to the vector between
201
+ * the viewer and the point on the surface, and zero intensity is produced when the viewer's line of sight is perpendicular to that vector.
202
+ */
203
+ invert;
175
204
  constructor(intensity, invert) {
176
205
  assert(intensity >= 0);
177
206
  this.intensity = intensity;
178
207
  this.invert = invert;
179
208
  }
209
+ static _defaults = new FresnelSettings(0, false);
180
210
  /** Create from JSON representation, using default values for any unspecified or `undefined` properties. */
181
211
  static fromJSON(props) {
182
212
  const intensity = clampIntensity(JsonUtils.asDouble(props?.intensity));
@@ -218,12 +248,20 @@ export class FresnelSettings {
218
248
  return this === rhs || (this.intensity === rhs.intensity && this.invert === rhs.invert);
219
249
  }
220
250
  }
221
- FresnelSettings._defaults = new FresnelSettings(0, false);
222
251
  /** Describes the lighting for a 3d scene, associated with a [[DisplayStyle3dSettings]] in turn associated with a [DisplayStyle3d]($backend) or [DisplayStyle3dState]($frontend).
223
252
  * @see [[LightSettingsProps]]
224
253
  * @public
225
254
  */
226
255
  export class LightSettings {
256
+ solar;
257
+ ambient;
258
+ hemisphere;
259
+ /** See [[LightSettingsProps.portrait]]. */
260
+ portraitIntensity;
261
+ specularIntensity;
262
+ /** See [[LightSettingsProps.numCels]]. */
263
+ numCels;
264
+ fresnel;
227
265
  constructor(solar, ambient, hemisphere, portraitIntensity, specularIntensity, numCels, fresnel) {
228
266
  this.solar = solar;
229
267
  this.ambient = ambient;