@itwin/core-common 5.0.0-dev.11 → 5.0.0-dev.111

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 (836) hide show
  1. package/CHANGELOG.md +81 -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/CatalogIModel.d.ts +152 -0
  24. package/lib/cjs/CatalogIModel.d.ts.map +1 -0
  25. package/lib/cjs/CatalogIModel.js +30 -0
  26. package/lib/cjs/CatalogIModel.js.map +1 -0
  27. package/lib/cjs/CesiumIonAssets.d.ts +23 -0
  28. package/lib/cjs/CesiumIonAssets.d.ts.map +1 -0
  29. package/lib/cjs/CesiumIonAssets.js +32 -0
  30. package/lib/cjs/CesiumIonAssets.js.map +1 -0
  31. package/lib/cjs/ChangedElements.js.map +1 -1
  32. package/lib/cjs/ChangedEntities.js.map +1 -1
  33. package/lib/cjs/ChangesetProps.d.ts +1 -1
  34. package/lib/cjs/ChangesetProps.js.map +1 -1
  35. package/lib/cjs/ClipStyle.js +31 -5
  36. package/lib/cjs/ClipStyle.js.map +1 -1
  37. package/lib/cjs/Code.d.ts +0 -5
  38. package/lib/cjs/Code.d.ts.map +1 -1
  39. package/lib/cjs/Code.js +16 -11
  40. package/lib/cjs/Code.js.map +1 -1
  41. package/lib/cjs/ColorByName.js.map +1 -1
  42. package/lib/cjs/ColorDef.js +11 -10
  43. package/lib/cjs/ColorDef.js.map +1 -1
  44. package/lib/cjs/CommonLoggerCategory.js.map +1 -1
  45. package/lib/cjs/ConcurrentQuery.d.ts +35 -0
  46. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  47. package/lib/cjs/ConcurrentQuery.js +19 -3
  48. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  49. package/lib/cjs/ContextRealityModel.js +53 -27
  50. package/lib/cjs/ContextRealityModel.js.map +1 -1
  51. package/lib/cjs/ContourDisplay.d.ts +9 -0
  52. package/lib/cjs/ContourDisplay.d.ts.map +1 -1
  53. package/lib/cjs/ContourDisplay.js +59 -20
  54. package/lib/cjs/ContourDisplay.js.map +1 -1
  55. package/lib/cjs/DisplayStyleSettings.js +95 -63
  56. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  57. package/lib/cjs/ECSchemaProps.js.map +1 -1
  58. package/lib/cjs/ECSqlReader.d.ts +2 -0
  59. package/lib/cjs/ECSqlReader.d.ts.map +1 -1
  60. package/lib/cjs/ECSqlReader.js +54 -50
  61. package/lib/cjs/ECSqlReader.js.map +1 -1
  62. package/lib/cjs/ECSqlTypes.js.map +1 -1
  63. package/lib/cjs/ElementMesh.js.map +1 -1
  64. package/lib/cjs/ElementProps.d.ts +14 -1
  65. package/lib/cjs/ElementProps.d.ts.map +1 -1
  66. package/lib/cjs/ElementProps.js +7 -3
  67. package/lib/cjs/ElementProps.js.map +1 -1
  68. package/lib/cjs/EmphasizeElementsProps.js.map +1 -1
  69. package/lib/cjs/EntityProps.d.ts +25 -2
  70. package/lib/cjs/EntityProps.d.ts.map +1 -1
  71. package/lib/cjs/EntityProps.js +39 -0
  72. package/lib/cjs/EntityProps.js.map +1 -1
  73. package/lib/cjs/EntityReference.js.map +1 -1
  74. package/lib/cjs/Environment.js +25 -2
  75. package/lib/cjs/Environment.js.map +1 -1
  76. package/lib/cjs/FeatureIndex.js +15 -6
  77. package/lib/cjs/FeatureIndex.js.map +1 -1
  78. package/lib/cjs/FeatureSymbology.d.ts +25 -73
  79. package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
  80. package/lib/cjs/FeatureSymbology.js +88 -103
  81. package/lib/cjs/FeatureSymbology.js.map +1 -1
  82. package/lib/cjs/FeatureTable.d.ts +6 -108
  83. package/lib/cjs/FeatureTable.d.ts.map +1 -1
  84. package/lib/cjs/FeatureTable.js +13 -329
  85. package/lib/cjs/FeatureTable.js.map +1 -1
  86. package/lib/cjs/Fonts.d.ts +68 -10
  87. package/lib/cjs/Fonts.d.ts.map +1 -1
  88. package/lib/cjs/Fonts.js +19 -4
  89. package/lib/cjs/Fonts.js.map +1 -1
  90. package/lib/cjs/Frustum.js +2 -2
  91. package/lib/cjs/Frustum.js.map +1 -1
  92. package/lib/cjs/GenericInstanceFilter.js.map +1 -1
  93. package/lib/cjs/GeoCoordinateServices.d.ts +1 -0
  94. package/lib/cjs/GeoCoordinateServices.d.ts.map +1 -1
  95. package/lib/cjs/GeoCoordinateServices.js +2 -1
  96. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  97. package/lib/cjs/GeometryContainment.js.map +1 -1
  98. package/lib/cjs/GeometryParams.js +58 -0
  99. package/lib/cjs/GeometryParams.js.map +1 -1
  100. package/lib/cjs/GeometrySummary.js.map +1 -1
  101. package/lib/cjs/Gradient.d.ts +3 -4
  102. package/lib/cjs/Gradient.d.ts.map +1 -1
  103. package/lib/cjs/Gradient.js +21 -19
  104. package/lib/cjs/Gradient.js.map +1 -1
  105. package/lib/cjs/GraphicParams.js +14 -12
  106. package/lib/cjs/GraphicParams.js.map +1 -1
  107. package/lib/cjs/GroundPlane.js +8 -2
  108. package/lib/cjs/GroundPlane.js.map +1 -1
  109. package/lib/cjs/HSLColor.js +6 -0
  110. package/lib/cjs/HSLColor.js.map +1 -1
  111. package/lib/cjs/HSVColor.js +6 -0
  112. package/lib/cjs/HSVColor.js.map +1 -1
  113. package/lib/cjs/HiddenLine.d.ts +17 -18
  114. package/lib/cjs/HiddenLine.d.ts.map +1 -1
  115. package/lib/cjs/HiddenLine.js +24 -5
  116. package/lib/cjs/HiddenLine.js.map +1 -1
  117. package/lib/cjs/Hilite.js +10 -0
  118. package/lib/cjs/Hilite.js.map +1 -1
  119. package/lib/cjs/IModel.d.ts +3 -12
  120. package/lib/cjs/IModel.d.ts.map +1 -1
  121. package/lib/cjs/IModel.js +47 -23
  122. package/lib/cjs/IModel.js.map +1 -1
  123. package/lib/cjs/IModelError.d.ts +17 -9
  124. package/lib/cjs/IModelError.d.ts.map +1 -1
  125. package/lib/cjs/IModelError.js +7 -11
  126. package/lib/cjs/IModelError.js.map +1 -1
  127. package/lib/cjs/IModelVersion.js +4 -0
  128. package/lib/cjs/IModelVersion.js.map +1 -1
  129. package/lib/cjs/ITwinCoreErrors.d.ts +107 -0
  130. package/lib/cjs/ITwinCoreErrors.d.ts.map +1 -0
  131. package/lib/cjs/ITwinCoreErrors.js +90 -0
  132. package/lib/cjs/ITwinCoreErrors.js.map +1 -0
  133. package/lib/cjs/Image.d.ts +22 -8
  134. package/lib/cjs/Image.d.ts.map +1 -1
  135. package/lib/cjs/Image.js +20 -4
  136. package/lib/cjs/Image.js.map +1 -1
  137. package/lib/cjs/IpcAppProps.d.ts +2 -0
  138. package/lib/cjs/IpcAppProps.d.ts.map +1 -1
  139. package/lib/cjs/IpcAppProps.js.map +1 -1
  140. package/lib/cjs/LightSettings.js +39 -1
  141. package/lib/cjs/LightSettings.js.map +1 -1
  142. package/lib/cjs/LinePixels.js.map +1 -1
  143. package/lib/cjs/Localization.d.ts +0 -10
  144. package/lib/cjs/Localization.d.ts.map +1 -1
  145. package/lib/cjs/Localization.js +0 -1
  146. package/lib/cjs/Localization.js.map +1 -1
  147. package/lib/cjs/MapImagerySettings.js +3 -2
  148. package/lib/cjs/MapImagerySettings.js.map +1 -1
  149. package/lib/cjs/MapLayerSettings.d.ts +40 -1
  150. package/lib/cjs/MapLayerSettings.d.ts.map +1 -1
  151. package/lib/cjs/MapLayerSettings.js +73 -4
  152. package/lib/cjs/MapLayerSettings.js.map +1 -1
  153. package/lib/cjs/MassProperties.d.ts +2 -0
  154. package/lib/cjs/MassProperties.d.ts.map +1 -1
  155. package/lib/cjs/MassProperties.js.map +1 -1
  156. package/lib/cjs/MaterialProps.js.map +1 -1
  157. package/lib/cjs/ModelClipGroup.js +6 -0
  158. package/lib/cjs/ModelClipGroup.js.map +1 -1
  159. package/lib/cjs/ModelGeometryChanges.js.map +1 -1
  160. package/lib/cjs/ModelProps.js.map +1 -1
  161. package/lib/cjs/NativeAppProps.js.map +1 -1
  162. package/lib/cjs/OctEncodedNormal.js +4 -0
  163. package/lib/cjs/OctEncodedNormal.js.map +1 -1
  164. package/lib/cjs/PlanProjectionSettings.d.ts +1 -2
  165. package/lib/cjs/PlanProjectionSettings.d.ts.map +1 -1
  166. package/lib/cjs/PlanProjectionSettings.js +8 -1
  167. package/lib/cjs/PlanProjectionSettings.js.map +1 -1
  168. package/lib/cjs/PlanarClipMask.d.ts +0 -12
  169. package/lib/cjs/PlanarClipMask.d.ts.map +1 -1
  170. package/lib/cjs/PlanarClipMask.js +24 -2
  171. package/lib/cjs/PlanarClipMask.js.map +1 -1
  172. package/lib/cjs/QPoint.d.ts +5 -5
  173. package/lib/cjs/QPoint.d.ts.map +1 -1
  174. package/lib/cjs/QPoint.js +37 -29
  175. package/lib/cjs/QPoint.js.map +1 -1
  176. package/lib/cjs/RealityDataAccessProps.js.map +1 -1
  177. package/lib/cjs/RealityModelDisplaySettings.js +81 -4
  178. package/lib/cjs/RealityModelDisplaySettings.js.map +1 -1
  179. package/lib/cjs/RenderMaterial.d.ts +0 -43
  180. package/lib/cjs/RenderMaterial.d.ts.map +1 -1
  181. package/lib/cjs/RenderMaterial.js +6 -51
  182. package/lib/cjs/RenderMaterial.js.map +1 -1
  183. package/lib/cjs/RenderPolyline.d.ts +36 -0
  184. package/lib/cjs/RenderPolyline.d.ts.map +1 -0
  185. package/lib/cjs/RenderPolyline.js +26 -0
  186. package/lib/cjs/RenderPolyline.js.map +1 -0
  187. package/lib/cjs/RenderSchedule.d.ts +6 -2
  188. package/lib/cjs/RenderSchedule.d.ts.map +1 -1
  189. package/lib/cjs/RenderSchedule.js +152 -11
  190. package/lib/cjs/RenderSchedule.js.map +1 -1
  191. package/lib/cjs/RenderTexture.d.ts +5 -23
  192. package/lib/cjs/RenderTexture.d.ts.map +1 -1
  193. package/lib/cjs/RenderTexture.js +13 -16
  194. package/lib/cjs/RenderTexture.js.map +1 -1
  195. package/lib/cjs/RgbColor.js +3 -0
  196. package/lib/cjs/RgbColor.js.map +1 -1
  197. package/lib/cjs/RpcInterface.d.ts.map +1 -1
  198. package/lib/cjs/RpcInterface.js +7 -1
  199. package/lib/cjs/RpcInterface.js.map +1 -1
  200. package/lib/cjs/RpcManager.js.map +1 -1
  201. package/lib/cjs/SessionProps.js.map +1 -1
  202. package/lib/cjs/SkyBox.js +17 -4
  203. package/lib/cjs/SkyBox.js.map +1 -1
  204. package/lib/cjs/SolarCalculate.js.map +1 -1
  205. package/lib/cjs/SolarShadows.js +5 -1
  206. package/lib/cjs/SolarShadows.js.map +1 -1
  207. package/lib/cjs/SpatialClassification.js +19 -1
  208. package/lib/cjs/SpatialClassification.js.map +1 -1
  209. package/lib/cjs/SubCategoryAppearance.js +35 -1
  210. package/lib/cjs/SubCategoryAppearance.js.map +1 -1
  211. package/lib/cjs/SubCategoryOverride.js +16 -2
  212. package/lib/cjs/SubCategoryOverride.js.map +1 -1
  213. package/lib/cjs/TerrainSettings.d.ts +0 -19
  214. package/lib/cjs/TerrainSettings.d.ts.map +1 -1
  215. package/lib/cjs/TerrainSettings.js +22 -15
  216. package/lib/cjs/TerrainSettings.js.map +1 -1
  217. package/lib/cjs/TextureMapping.d.ts +17 -14
  218. package/lib/cjs/TextureMapping.d.ts.map +1 -1
  219. package/lib/cjs/TextureMapping.js +47 -19
  220. package/lib/cjs/TextureMapping.js.map +1 -1
  221. package/lib/cjs/TextureProps.js.map +1 -1
  222. package/lib/cjs/ThematicDisplay.js +53 -2
  223. package/lib/cjs/ThematicDisplay.js.map +1 -1
  224. package/lib/cjs/Thumbnail.d.ts +1 -1
  225. package/lib/cjs/Thumbnail.js.map +1 -1
  226. package/lib/cjs/TileProps.js.map +1 -1
  227. package/lib/cjs/Tween.js +28 -19
  228. package/lib/cjs/Tween.js.map +1 -1
  229. package/lib/cjs/TxnAction.js.map +1 -1
  230. package/lib/cjs/ViewDetails.js +10 -6
  231. package/lib/cjs/ViewDetails.js.map +1 -1
  232. package/lib/cjs/ViewFlags.d.ts +1 -3
  233. package/lib/cjs/ViewFlags.d.ts.map +1 -1
  234. package/lib/cjs/ViewFlags.js +86 -5
  235. package/lib/cjs/ViewFlags.js.map +1 -1
  236. package/lib/cjs/ViewProps.d.ts +2 -6
  237. package/lib/cjs/ViewProps.d.ts.map +1 -1
  238. package/lib/cjs/ViewProps.js.map +1 -1
  239. package/lib/cjs/WhiteOnWhiteReversalSettings.js +7 -2
  240. package/lib/cjs/WhiteOnWhiteReversalSettings.js.map +1 -1
  241. package/lib/cjs/annotation/TextAnnotation.d.ts +3 -2
  242. package/lib/cjs/annotation/TextAnnotation.d.ts.map +1 -1
  243. package/lib/cjs/annotation/TextAnnotation.js +13 -2
  244. package/lib/cjs/annotation/TextAnnotation.js.map +1 -1
  245. package/lib/cjs/annotation/TextBlock.d.ts +17 -0
  246. package/lib/cjs/annotation/TextBlock.d.ts.map +1 -1
  247. package/lib/cjs/annotation/TextBlock.js +41 -6
  248. package/lib/cjs/annotation/TextBlock.js.map +1 -1
  249. package/lib/cjs/annotation/TextBlockGeometryProps.js.map +1 -1
  250. package/lib/cjs/annotation/TextBlockLayoutResult.js.map +1 -1
  251. package/lib/cjs/annotation/TextStyle.js +65 -19
  252. package/lib/cjs/annotation/TextStyle.js.map +1 -1
  253. package/lib/cjs/core-common.d.ts +5 -4
  254. package/lib/cjs/core-common.d.ts.map +1 -1
  255. package/lib/cjs/core-common.js +5 -4
  256. package/lib/cjs/core-common.js.map +1 -1
  257. package/lib/cjs/domains/FunctionalElementProps.js.map +1 -1
  258. package/lib/cjs/domains/GenericElementProps.js.map +1 -1
  259. package/lib/cjs/geometry/AdditionalTransform.js +12 -0
  260. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  261. package/lib/cjs/geometry/AreaPattern.js +17 -0
  262. package/lib/cjs/geometry/AreaPattern.js.map +1 -1
  263. package/lib/cjs/geometry/BoundingSphere.js +4 -0
  264. package/lib/cjs/geometry/BoundingSphere.js.map +1 -1
  265. package/lib/cjs/geometry/Cartographic.js +23 -20
  266. package/lib/cjs/geometry/Cartographic.js.map +1 -1
  267. package/lib/cjs/geometry/CoordinateReferenceSystem.js +62 -0
  268. package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
  269. package/lib/cjs/geometry/ElementGeometry.js +26 -8
  270. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  271. package/lib/cjs/geometry/ElementGeometryFB.js +54 -108
  272. package/lib/cjs/geometry/ElementGeometryFB.js.map +1 -1
  273. package/lib/cjs/geometry/FrustumPlanes.js +1 -0
  274. package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
  275. package/lib/cjs/geometry/GeodeticDatum.js +100 -0
  276. package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
  277. package/lib/cjs/geometry/GeodeticEllipsoid.js +16 -0
  278. package/lib/cjs/geometry/GeodeticEllipsoid.js.map +1 -1
  279. package/lib/cjs/geometry/GeometryStream.js +19 -6
  280. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  281. package/lib/cjs/geometry/ImageGraphic.js +10 -0
  282. package/lib/cjs/geometry/ImageGraphic.js.map +1 -1
  283. package/lib/cjs/geometry/LineStyle.js +14 -0
  284. package/lib/cjs/geometry/LineStyle.js.map +1 -1
  285. package/lib/cjs/geometry/Placement.js +6 -0
  286. package/lib/cjs/geometry/Placement.js.map +1 -1
  287. package/lib/cjs/geometry/Projection.js +75 -0
  288. package/lib/cjs/geometry/Projection.js.map +1 -1
  289. package/lib/cjs/geometry/TextString.js +18 -0
  290. package/lib/cjs/geometry/TextString.js.map +1 -1
  291. package/lib/cjs/{BackendTypes.d.ts → internal/BackendTypes.d.ts} +1 -0
  292. package/lib/cjs/internal/BackendTypes.d.ts.map +1 -0
  293. package/lib/cjs/internal/BackendTypes.js.map +1 -0
  294. package/lib/cjs/internal/PackedFeatureTable.d.ts +111 -0
  295. package/lib/cjs/internal/PackedFeatureTable.d.ts.map +1 -0
  296. package/lib/cjs/internal/PackedFeatureTable.js +359 -0
  297. package/lib/cjs/internal/PackedFeatureTable.js.map +1 -0
  298. package/lib/cjs/internal/RenderMaterialParams.d.ts +47 -0
  299. package/lib/cjs/internal/RenderMaterialParams.d.ts.map +1 -0
  300. package/lib/cjs/internal/RenderMaterialParams.js +68 -0
  301. package/lib/cjs/internal/RenderMaterialParams.js.map +1 -0
  302. package/lib/cjs/internal/RenderMesh.d.ts +52 -0
  303. package/lib/cjs/internal/RenderMesh.d.ts.map +1 -0
  304. package/lib/cjs/{Render.js → internal/RenderMesh.js} +12 -31
  305. package/lib/cjs/internal/RenderMesh.js.map +1 -0
  306. package/lib/cjs/internal/RenderTextureParams.d.ts +25 -0
  307. package/lib/cjs/internal/RenderTextureParams.d.ts.map +1 -0
  308. package/lib/cjs/internal/RenderTextureParams.js +37 -0
  309. package/lib/cjs/internal/RenderTextureParams.js.map +1 -0
  310. package/lib/cjs/internal/Snapping.js.map +1 -1
  311. package/lib/cjs/internal/cross-package.d.ts +5 -0
  312. package/lib/cjs/internal/cross-package.d.ts.map +1 -1
  313. package/lib/cjs/internal/cross-package.js +16 -0
  314. package/lib/cjs/internal/cross-package.js.map +1 -1
  315. package/lib/cjs/ipc/IpcSession.js +1 -0
  316. package/lib/cjs/ipc/IpcSession.js.map +1 -1
  317. package/lib/cjs/ipc/IpcSocket.d.ts +2 -20
  318. package/lib/cjs/ipc/IpcSocket.d.ts.map +1 -1
  319. package/lib/cjs/ipc/IpcSocket.js.map +1 -1
  320. package/lib/cjs/ipc/IpcWebSocket.js +7 -6
  321. package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
  322. package/lib/cjs/ipc/IpcWebSocketTransport.js +8 -7
  323. package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -1
  324. package/lib/cjs/rpc/DevToolsRpcInterface.js +6 -6
  325. package/lib/cjs/rpc/DevToolsRpcInterface.js.map +1 -1
  326. package/lib/cjs/rpc/IModelReadRpcInterface.js +8 -11
  327. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  328. package/lib/cjs/rpc/IModelTileRpcInterface.js +4 -4
  329. package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
  330. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js +4 -4
  331. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  332. package/lib/cjs/rpc/TestRpcManager.js +1 -4
  333. package/lib/cjs/rpc/TestRpcManager.js.map +1 -1
  334. package/lib/cjs/rpc/core/RpcConfiguration.js +51 -64
  335. package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
  336. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  337. package/lib/cjs/rpc/core/RpcControl.js +29 -38
  338. package/lib/cjs/rpc/core/RpcControl.js.map +1 -1
  339. package/lib/cjs/rpc/core/RpcInvocation.js +19 -13
  340. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  341. package/lib/cjs/rpc/core/RpcMarshaling.d.ts +1 -4
  342. package/lib/cjs/rpc/core/RpcMarshaling.d.ts.map +1 -1
  343. package/lib/cjs/rpc/core/RpcMarshaling.js +5 -4
  344. package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
  345. package/lib/cjs/rpc/core/RpcOperation.js +29 -31
  346. package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
  347. package/lib/cjs/rpc/core/RpcPendingQueue.js +17 -16
  348. package/lib/cjs/rpc/core/RpcPendingQueue.js.map +1 -1
  349. package/lib/cjs/rpc/core/RpcProtocol.js +32 -30
  350. package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
  351. package/lib/cjs/rpc/core/RpcPush.js +15 -8
  352. package/lib/cjs/rpc/core/RpcPush.js.map +1 -1
  353. package/lib/cjs/rpc/core/RpcRegistry.d.ts.map +1 -1
  354. package/lib/cjs/rpc/core/RpcRegistry.js +10 -9
  355. package/lib/cjs/rpc/core/RpcRegistry.js.map +1 -1
  356. package/lib/cjs/rpc/core/RpcRequest.d.ts +2 -2
  357. package/lib/cjs/rpc/core/RpcRequest.d.ts.map +1 -1
  358. package/lib/cjs/rpc/core/RpcRequest.js +51 -29
  359. package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
  360. package/lib/cjs/rpc/core/RpcRequestContext.js.map +1 -1
  361. package/lib/cjs/rpc/core/RpcRoutingToken.js +4 -2
  362. package/lib/cjs/rpc/core/RpcRoutingToken.js.map +1 -1
  363. package/lib/cjs/rpc/core/RpcSessionInvocation.js +5 -10
  364. package/lib/cjs/rpc/core/RpcSessionInvocation.js.map +1 -1
  365. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js +11 -17
  366. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  367. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +16 -19
  368. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  369. package/lib/cjs/rpc/web/OpenAPI.js +2 -0
  370. package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
  371. package/lib/cjs/rpc/web/RpcMultipart.d.ts +1 -1
  372. package/lib/cjs/rpc/web/RpcMultipart.d.ts.map +1 -1
  373. package/lib/cjs/rpc/web/RpcMultipart.js +13 -12
  374. package/lib/cjs/rpc/web/RpcMultipart.js.map +1 -1
  375. package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts +3 -0
  376. package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
  377. package/lib/cjs/rpc/web/WebAppRpcLogging.js +1 -6
  378. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  379. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +1 -1
  380. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  381. package/lib/cjs/rpc/web/WebAppRpcProtocol.js +6 -6
  382. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  383. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  384. package/lib/cjs/rpc/web/WebAppRpcRequest.js +27 -27
  385. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  386. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.d.ts +0 -2
  387. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.d.ts.map +1 -1
  388. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js +14 -8
  389. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  390. package/lib/cjs/tile/B3dmTileIO.js +7 -0
  391. package/lib/cjs/tile/B3dmTileIO.js.map +1 -1
  392. package/lib/cjs/tile/CompositeTileIO.js +3 -0
  393. package/lib/cjs/tile/CompositeTileIO.js.map +1 -1
  394. package/lib/cjs/tile/ElementGraphics.js.map +1 -1
  395. package/lib/cjs/tile/GltfTileIO.js +4 -3
  396. package/lib/cjs/tile/GltfTileIO.js.map +1 -1
  397. package/lib/cjs/tile/I3dmTileIO.js +8 -0
  398. package/lib/cjs/tile/I3dmTileIO.js.map +1 -1
  399. package/lib/cjs/tile/IModelTileIO.d.ts +2 -2
  400. package/lib/cjs/tile/IModelTileIO.js +26 -3
  401. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  402. package/lib/cjs/tile/PntsTileIO.js +5 -0
  403. package/lib/cjs/tile/PntsTileIO.js.map +1 -1
  404. package/lib/cjs/tile/TileIO.js +2 -0
  405. package/lib/cjs/tile/TileIO.js.map +1 -1
  406. package/lib/cjs/tile/TileMetadata.js +9 -1
  407. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  408. package/lib/cjs/tile/Tileset3dSchema.js.map +1 -1
  409. package/lib/esm/AmbientOcclusion.js +17 -9
  410. package/lib/esm/AmbientOcclusion.js.map +1 -1
  411. package/lib/esm/AnalysisStyle.d.ts +0 -3
  412. package/lib/esm/AnalysisStyle.d.ts.map +1 -1
  413. package/lib/esm/AnalysisStyle.js +20 -4
  414. package/lib/esm/AnalysisStyle.js.map +1 -1
  415. package/lib/esm/Atmosphere.js +39 -21
  416. package/lib/esm/Atmosphere.js.map +1 -1
  417. package/lib/esm/AuthorizationClient.js.map +1 -1
  418. package/lib/esm/BackgroundMapProvider.js +4 -0
  419. package/lib/esm/BackgroundMapProvider.js.map +1 -1
  420. package/lib/esm/BackgroundMapSettings.js +19 -0
  421. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  422. package/lib/esm/Base64EncodedString.js.map +1 -1
  423. package/lib/esm/BlobReader.js +8 -6
  424. package/lib/esm/BlobReader.js.map +1 -1
  425. package/lib/esm/BriefcaseTypes.d.ts +2 -2
  426. package/lib/esm/BriefcaseTypes.d.ts.map +1 -1
  427. package/lib/esm/BriefcaseTypes.js.map +1 -1
  428. package/lib/esm/Camera.js +3 -0
  429. package/lib/esm/Camera.js.map +1 -1
  430. package/lib/esm/CatalogIModel.d.ts +152 -0
  431. package/lib/esm/CatalogIModel.d.ts.map +1 -0
  432. package/lib/esm/CatalogIModel.js +27 -0
  433. package/lib/esm/CatalogIModel.js.map +1 -0
  434. package/lib/esm/CesiumIonAssets.d.ts +23 -0
  435. package/lib/esm/CesiumIonAssets.d.ts.map +1 -0
  436. package/lib/esm/CesiumIonAssets.js +29 -0
  437. package/lib/esm/CesiumIonAssets.js.map +1 -0
  438. package/lib/esm/ChangedElements.js.map +1 -1
  439. package/lib/esm/ChangedEntities.js.map +1 -1
  440. package/lib/esm/ChangesetProps.d.ts +1 -1
  441. package/lib/esm/ChangesetProps.js.map +1 -1
  442. package/lib/esm/ClipStyle.js +31 -5
  443. package/lib/esm/ClipStyle.js.map +1 -1
  444. package/lib/esm/Code.d.ts +0 -5
  445. package/lib/esm/Code.d.ts.map +1 -1
  446. package/lib/esm/Code.js +16 -11
  447. package/lib/esm/Code.js.map +1 -1
  448. package/lib/esm/ColorByName.js.map +1 -1
  449. package/lib/esm/ColorDef.js +11 -10
  450. package/lib/esm/ColorDef.js.map +1 -1
  451. package/lib/esm/CommonLoggerCategory.js.map +1 -1
  452. package/lib/esm/ConcurrentQuery.d.ts +35 -0
  453. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  454. package/lib/esm/ConcurrentQuery.js +19 -3
  455. package/lib/esm/ConcurrentQuery.js.map +1 -1
  456. package/lib/esm/ContextRealityModel.js +53 -27
  457. package/lib/esm/ContextRealityModel.js.map +1 -1
  458. package/lib/esm/ContourDisplay.d.ts +9 -0
  459. package/lib/esm/ContourDisplay.d.ts.map +1 -1
  460. package/lib/esm/ContourDisplay.js +60 -21
  461. package/lib/esm/ContourDisplay.js.map +1 -1
  462. package/lib/esm/DisplayStyleSettings.js +95 -63
  463. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  464. package/lib/esm/ECSchemaProps.js.map +1 -1
  465. package/lib/esm/ECSqlReader.d.ts +2 -0
  466. package/lib/esm/ECSqlReader.d.ts.map +1 -1
  467. package/lib/esm/ECSqlReader.js +54 -50
  468. package/lib/esm/ECSqlReader.js.map +1 -1
  469. package/lib/esm/ECSqlTypes.js.map +1 -1
  470. package/lib/esm/ElementMesh.js.map +1 -1
  471. package/lib/esm/ElementProps.d.ts +14 -1
  472. package/lib/esm/ElementProps.d.ts.map +1 -1
  473. package/lib/esm/ElementProps.js +8 -4
  474. package/lib/esm/ElementProps.js.map +1 -1
  475. package/lib/esm/EmphasizeElementsProps.js.map +1 -1
  476. package/lib/esm/EntityProps.d.ts +25 -2
  477. package/lib/esm/EntityProps.d.ts.map +1 -1
  478. package/lib/esm/EntityProps.js +39 -0
  479. package/lib/esm/EntityProps.js.map +1 -1
  480. package/lib/esm/EntityReference.js.map +1 -1
  481. package/lib/esm/Environment.js +25 -2
  482. package/lib/esm/Environment.js.map +1 -1
  483. package/lib/esm/FeatureIndex.js +15 -6
  484. package/lib/esm/FeatureIndex.js.map +1 -1
  485. package/lib/esm/FeatureSymbology.d.ts +25 -73
  486. package/lib/esm/FeatureSymbology.d.ts.map +1 -1
  487. package/lib/esm/FeatureSymbology.js +88 -103
  488. package/lib/esm/FeatureSymbology.js.map +1 -1
  489. package/lib/esm/FeatureTable.d.ts +6 -108
  490. package/lib/esm/FeatureTable.d.ts.map +1 -1
  491. package/lib/esm/FeatureTable.js +11 -324
  492. package/lib/esm/FeatureTable.js.map +1 -1
  493. package/lib/esm/Fonts.d.ts +68 -10
  494. package/lib/esm/Fonts.d.ts.map +1 -1
  495. package/lib/esm/Fonts.js +19 -4
  496. package/lib/esm/Fonts.js.map +1 -1
  497. package/lib/esm/Frustum.js +2 -2
  498. package/lib/esm/Frustum.js.map +1 -1
  499. package/lib/esm/GenericInstanceFilter.js.map +1 -1
  500. package/lib/esm/GeoCoordinateServices.d.ts +1 -0
  501. package/lib/esm/GeoCoordinateServices.d.ts.map +1 -1
  502. package/lib/esm/GeoCoordinateServices.js +2 -1
  503. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  504. package/lib/esm/GeometryContainment.js.map +1 -1
  505. package/lib/esm/GeometryParams.js +58 -0
  506. package/lib/esm/GeometryParams.js.map +1 -1
  507. package/lib/esm/GeometrySummary.js.map +1 -1
  508. package/lib/esm/Gradient.d.ts +3 -4
  509. package/lib/esm/Gradient.d.ts.map +1 -1
  510. package/lib/esm/Gradient.js +21 -19
  511. package/lib/esm/Gradient.js.map +1 -1
  512. package/lib/esm/GraphicParams.js +14 -12
  513. package/lib/esm/GraphicParams.js.map +1 -1
  514. package/lib/esm/GroundPlane.js +8 -2
  515. package/lib/esm/GroundPlane.js.map +1 -1
  516. package/lib/esm/HSLColor.js +6 -0
  517. package/lib/esm/HSLColor.js.map +1 -1
  518. package/lib/esm/HSVColor.js +6 -0
  519. package/lib/esm/HSVColor.js.map +1 -1
  520. package/lib/esm/HiddenLine.d.ts +17 -18
  521. package/lib/esm/HiddenLine.d.ts.map +1 -1
  522. package/lib/esm/HiddenLine.js +24 -5
  523. package/lib/esm/HiddenLine.js.map +1 -1
  524. package/lib/esm/Hilite.js +10 -0
  525. package/lib/esm/Hilite.js.map +1 -1
  526. package/lib/esm/IModel.d.ts +3 -12
  527. package/lib/esm/IModel.d.ts.map +1 -1
  528. package/lib/esm/IModel.js +47 -23
  529. package/lib/esm/IModel.js.map +1 -1
  530. package/lib/esm/IModelError.d.ts +17 -9
  531. package/lib/esm/IModelError.d.ts.map +1 -1
  532. package/lib/esm/IModelError.js +6 -4
  533. package/lib/esm/IModelError.js.map +1 -1
  534. package/lib/esm/IModelVersion.js +4 -0
  535. package/lib/esm/IModelVersion.js.map +1 -1
  536. package/lib/esm/ITwinCoreErrors.d.ts +107 -0
  537. package/lib/esm/ITwinCoreErrors.d.ts.map +1 -0
  538. package/lib/esm/ITwinCoreErrors.js +87 -0
  539. package/lib/esm/ITwinCoreErrors.js.map +1 -0
  540. package/lib/esm/Image.d.ts +22 -8
  541. package/lib/esm/Image.d.ts.map +1 -1
  542. package/lib/esm/Image.js +19 -4
  543. package/lib/esm/Image.js.map +1 -1
  544. package/lib/esm/IpcAppProps.d.ts +2 -0
  545. package/lib/esm/IpcAppProps.d.ts.map +1 -1
  546. package/lib/esm/IpcAppProps.js.map +1 -1
  547. package/lib/esm/LightSettings.js +39 -1
  548. package/lib/esm/LightSettings.js.map +1 -1
  549. package/lib/esm/LinePixels.js.map +1 -1
  550. package/lib/esm/Localization.d.ts +0 -10
  551. package/lib/esm/Localization.d.ts.map +1 -1
  552. package/lib/esm/Localization.js +0 -1
  553. package/lib/esm/Localization.js.map +1 -1
  554. package/lib/esm/MapImagerySettings.js +3 -2
  555. package/lib/esm/MapImagerySettings.js.map +1 -1
  556. package/lib/esm/MapLayerSettings.d.ts +40 -1
  557. package/lib/esm/MapLayerSettings.d.ts.map +1 -1
  558. package/lib/esm/MapLayerSettings.js +72 -3
  559. package/lib/esm/MapLayerSettings.js.map +1 -1
  560. package/lib/esm/MassProperties.d.ts +2 -0
  561. package/lib/esm/MassProperties.d.ts.map +1 -1
  562. package/lib/esm/MassProperties.js.map +1 -1
  563. package/lib/esm/MaterialProps.js.map +1 -1
  564. package/lib/esm/ModelClipGroup.js +6 -0
  565. package/lib/esm/ModelClipGroup.js.map +1 -1
  566. package/lib/esm/ModelGeometryChanges.js.map +1 -1
  567. package/lib/esm/ModelProps.js.map +1 -1
  568. package/lib/esm/NativeAppProps.js.map +1 -1
  569. package/lib/esm/OctEncodedNormal.js +4 -0
  570. package/lib/esm/OctEncodedNormal.js.map +1 -1
  571. package/lib/esm/PlanProjectionSettings.d.ts +1 -2
  572. package/lib/esm/PlanProjectionSettings.d.ts.map +1 -1
  573. package/lib/esm/PlanProjectionSettings.js +8 -1
  574. package/lib/esm/PlanProjectionSettings.js.map +1 -1
  575. package/lib/esm/PlanarClipMask.d.ts +0 -12
  576. package/lib/esm/PlanarClipMask.d.ts.map +1 -1
  577. package/lib/esm/PlanarClipMask.js +24 -2
  578. package/lib/esm/PlanarClipMask.js.map +1 -1
  579. package/lib/esm/QPoint.d.ts +5 -5
  580. package/lib/esm/QPoint.d.ts.map +1 -1
  581. package/lib/esm/QPoint.js +37 -29
  582. package/lib/esm/QPoint.js.map +1 -1
  583. package/lib/esm/RealityDataAccessProps.js.map +1 -1
  584. package/lib/esm/RealityModelDisplaySettings.js +81 -4
  585. package/lib/esm/RealityModelDisplaySettings.js.map +1 -1
  586. package/lib/esm/RenderMaterial.d.ts +0 -43
  587. package/lib/esm/RenderMaterial.d.ts.map +1 -1
  588. package/lib/esm/RenderMaterial.js +6 -51
  589. package/lib/esm/RenderMaterial.js.map +1 -1
  590. package/lib/esm/RenderPolyline.d.ts +36 -0
  591. package/lib/esm/RenderPolyline.d.ts.map +1 -0
  592. package/lib/esm/RenderPolyline.js +23 -0
  593. package/lib/esm/RenderPolyline.js.map +1 -0
  594. package/lib/esm/RenderSchedule.d.ts +6 -2
  595. package/lib/esm/RenderSchedule.d.ts.map +1 -1
  596. package/lib/esm/RenderSchedule.js +152 -11
  597. package/lib/esm/RenderSchedule.js.map +1 -1
  598. package/lib/esm/RenderTexture.d.ts +5 -23
  599. package/lib/esm/RenderTexture.d.ts.map +1 -1
  600. package/lib/esm/RenderTexture.js +13 -16
  601. package/lib/esm/RenderTexture.js.map +1 -1
  602. package/lib/esm/RgbColor.js +3 -0
  603. package/lib/esm/RgbColor.js.map +1 -1
  604. package/lib/esm/RpcInterface.d.ts.map +1 -1
  605. package/lib/esm/RpcInterface.js +8 -2
  606. package/lib/esm/RpcInterface.js.map +1 -1
  607. package/lib/esm/RpcManager.js.map +1 -1
  608. package/lib/esm/SessionProps.js.map +1 -1
  609. package/lib/esm/SkyBox.js +17 -4
  610. package/lib/esm/SkyBox.js.map +1 -1
  611. package/lib/esm/SolarCalculate.js.map +1 -1
  612. package/lib/esm/SolarShadows.js +5 -1
  613. package/lib/esm/SolarShadows.js.map +1 -1
  614. package/lib/esm/SpatialClassification.js +19 -1
  615. package/lib/esm/SpatialClassification.js.map +1 -1
  616. package/lib/esm/SubCategoryAppearance.js +35 -1
  617. package/lib/esm/SubCategoryAppearance.js.map +1 -1
  618. package/lib/esm/SubCategoryOverride.js +16 -2
  619. package/lib/esm/SubCategoryOverride.js.map +1 -1
  620. package/lib/esm/TerrainSettings.d.ts +0 -19
  621. package/lib/esm/TerrainSettings.d.ts.map +1 -1
  622. package/lib/esm/TerrainSettings.js +20 -13
  623. package/lib/esm/TerrainSettings.js.map +1 -1
  624. package/lib/esm/TextureMapping.d.ts +17 -14
  625. package/lib/esm/TextureMapping.d.ts.map +1 -1
  626. package/lib/esm/TextureMapping.js +47 -19
  627. package/lib/esm/TextureMapping.js.map +1 -1
  628. package/lib/esm/TextureProps.js.map +1 -1
  629. package/lib/esm/ThematicDisplay.js +53 -2
  630. package/lib/esm/ThematicDisplay.js.map +1 -1
  631. package/lib/esm/Thumbnail.d.ts +1 -1
  632. package/lib/esm/Thumbnail.js.map +1 -1
  633. package/lib/esm/TileProps.js.map +1 -1
  634. package/lib/esm/Tween.js +28 -19
  635. package/lib/esm/Tween.js.map +1 -1
  636. package/lib/esm/TxnAction.js.map +1 -1
  637. package/lib/esm/ViewDetails.js +10 -6
  638. package/lib/esm/ViewDetails.js.map +1 -1
  639. package/lib/esm/ViewFlags.d.ts +1 -3
  640. package/lib/esm/ViewFlags.d.ts.map +1 -1
  641. package/lib/esm/ViewFlags.js +86 -5
  642. package/lib/esm/ViewFlags.js.map +1 -1
  643. package/lib/esm/ViewProps.d.ts +2 -6
  644. package/lib/esm/ViewProps.d.ts.map +1 -1
  645. package/lib/esm/ViewProps.js.map +1 -1
  646. package/lib/esm/WhiteOnWhiteReversalSettings.js +7 -2
  647. package/lib/esm/WhiteOnWhiteReversalSettings.js.map +1 -1
  648. package/lib/esm/annotation/TextAnnotation.d.ts +3 -2
  649. package/lib/esm/annotation/TextAnnotation.d.ts.map +1 -1
  650. package/lib/esm/annotation/TextAnnotation.js +13 -2
  651. package/lib/esm/annotation/TextAnnotation.js.map +1 -1
  652. package/lib/esm/annotation/TextBlock.d.ts +17 -0
  653. package/lib/esm/annotation/TextBlock.d.ts.map +1 -1
  654. package/lib/esm/annotation/TextBlock.js +41 -6
  655. package/lib/esm/annotation/TextBlock.js.map +1 -1
  656. package/lib/esm/annotation/TextBlockGeometryProps.js.map +1 -1
  657. package/lib/esm/annotation/TextBlockLayoutResult.js.map +1 -1
  658. package/lib/esm/annotation/TextStyle.js +65 -19
  659. package/lib/esm/annotation/TextStyle.js.map +1 -1
  660. package/lib/esm/core-common.d.ts +5 -4
  661. package/lib/esm/core-common.d.ts.map +1 -1
  662. package/lib/esm/core-common.js +5 -4
  663. package/lib/esm/core-common.js.map +1 -1
  664. package/lib/esm/domains/FunctionalElementProps.js.map +1 -1
  665. package/lib/esm/domains/GenericElementProps.js.map +1 -1
  666. package/lib/esm/geometry/AdditionalTransform.js +12 -0
  667. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  668. package/lib/esm/geometry/AreaPattern.js +17 -0
  669. package/lib/esm/geometry/AreaPattern.js.map +1 -1
  670. package/lib/esm/geometry/BoundingSphere.js +4 -0
  671. package/lib/esm/geometry/BoundingSphere.js.map +1 -1
  672. package/lib/esm/geometry/Cartographic.js +23 -20
  673. package/lib/esm/geometry/Cartographic.js.map +1 -1
  674. package/lib/esm/geometry/CoordinateReferenceSystem.js +62 -0
  675. package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
  676. package/lib/esm/geometry/ElementGeometry.js +26 -8
  677. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  678. package/lib/esm/geometry/ElementGeometryFB.js +54 -108
  679. package/lib/esm/geometry/ElementGeometryFB.js.map +1 -1
  680. package/lib/esm/geometry/FrustumPlanes.js +1 -0
  681. package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
  682. package/lib/esm/geometry/GeodeticDatum.js +100 -0
  683. package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
  684. package/lib/esm/geometry/GeodeticEllipsoid.js +16 -0
  685. package/lib/esm/geometry/GeodeticEllipsoid.js.map +1 -1
  686. package/lib/esm/geometry/GeometryStream.js +19 -6
  687. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  688. package/lib/esm/geometry/ImageGraphic.js +10 -0
  689. package/lib/esm/geometry/ImageGraphic.js.map +1 -1
  690. package/lib/esm/geometry/LineStyle.js +14 -0
  691. package/lib/esm/geometry/LineStyle.js.map +1 -1
  692. package/lib/esm/geometry/Placement.js +6 -0
  693. package/lib/esm/geometry/Placement.js.map +1 -1
  694. package/lib/esm/geometry/Projection.js +75 -0
  695. package/lib/esm/geometry/Projection.js.map +1 -1
  696. package/lib/esm/geometry/TextString.js +18 -0
  697. package/lib/esm/geometry/TextString.js.map +1 -1
  698. package/lib/esm/{BackendTypes.d.ts → internal/BackendTypes.d.ts} +1 -0
  699. package/lib/esm/internal/BackendTypes.d.ts.map +1 -0
  700. package/lib/esm/internal/BackendTypes.js.map +1 -0
  701. package/lib/esm/internal/PackedFeatureTable.d.ts +111 -0
  702. package/lib/esm/internal/PackedFeatureTable.d.ts.map +1 -0
  703. package/lib/esm/internal/PackedFeatureTable.js +352 -0
  704. package/lib/esm/internal/PackedFeatureTable.js.map +1 -0
  705. package/lib/esm/internal/RenderMaterialParams.d.ts +47 -0
  706. package/lib/esm/internal/RenderMaterialParams.d.ts.map +1 -0
  707. package/lib/esm/internal/RenderMaterialParams.js +64 -0
  708. package/lib/esm/internal/RenderMaterialParams.js.map +1 -0
  709. package/lib/esm/internal/RenderMesh.d.ts +52 -0
  710. package/lib/esm/internal/RenderMesh.d.ts.map +1 -0
  711. package/lib/esm/{Render.js → internal/RenderMesh.js} +11 -29
  712. package/lib/esm/internal/RenderMesh.js.map +1 -0
  713. package/lib/esm/internal/RenderTextureParams.d.ts +25 -0
  714. package/lib/esm/internal/RenderTextureParams.d.ts.map +1 -0
  715. package/lib/esm/internal/RenderTextureParams.js +33 -0
  716. package/lib/esm/internal/RenderTextureParams.js.map +1 -0
  717. package/lib/esm/internal/Snapping.js.map +1 -1
  718. package/lib/esm/internal/cross-package.d.ts +5 -0
  719. package/lib/esm/internal/cross-package.d.ts.map +1 -1
  720. package/lib/esm/internal/cross-package.js +4 -1
  721. package/lib/esm/internal/cross-package.js.map +1 -1
  722. package/lib/esm/ipc/IpcSession.js +1 -0
  723. package/lib/esm/ipc/IpcSession.js.map +1 -1
  724. package/lib/esm/ipc/IpcSocket.d.ts +2 -20
  725. package/lib/esm/ipc/IpcSocket.d.ts.map +1 -1
  726. package/lib/esm/ipc/IpcSocket.js.map +1 -1
  727. package/lib/esm/ipc/IpcWebSocket.js +7 -6
  728. package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
  729. package/lib/esm/ipc/IpcWebSocketTransport.js +8 -7
  730. package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -1
  731. package/lib/esm/rpc/DevToolsRpcInterface.js +6 -6
  732. package/lib/esm/rpc/DevToolsRpcInterface.js.map +1 -1
  733. package/lib/esm/rpc/IModelReadRpcInterface.js +8 -11
  734. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  735. package/lib/esm/rpc/IModelTileRpcInterface.js +4 -4
  736. package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
  737. package/lib/esm/rpc/SnapshotIModelRpcInterface.js +4 -4
  738. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  739. package/lib/esm/rpc/TestRpcManager.js +1 -4
  740. package/lib/esm/rpc/TestRpcManager.js.map +1 -1
  741. package/lib/esm/rpc/core/RpcConfiguration.js +51 -64
  742. package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
  743. package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
  744. package/lib/esm/rpc/core/RpcControl.js +29 -38
  745. package/lib/esm/rpc/core/RpcControl.js.map +1 -1
  746. package/lib/esm/rpc/core/RpcInvocation.js +19 -13
  747. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  748. package/lib/esm/rpc/core/RpcMarshaling.d.ts +1 -4
  749. package/lib/esm/rpc/core/RpcMarshaling.d.ts.map +1 -1
  750. package/lib/esm/rpc/core/RpcMarshaling.js +2 -1
  751. package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
  752. package/lib/esm/rpc/core/RpcOperation.js +29 -31
  753. package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
  754. package/lib/esm/rpc/core/RpcPendingQueue.js +17 -16
  755. package/lib/esm/rpc/core/RpcPendingQueue.js.map +1 -1
  756. package/lib/esm/rpc/core/RpcProtocol.js +32 -30
  757. package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
  758. package/lib/esm/rpc/core/RpcPush.js +15 -8
  759. package/lib/esm/rpc/core/RpcPush.js.map +1 -1
  760. package/lib/esm/rpc/core/RpcRegistry.d.ts.map +1 -1
  761. package/lib/esm/rpc/core/RpcRegistry.js +10 -9
  762. package/lib/esm/rpc/core/RpcRegistry.js.map +1 -1
  763. package/lib/esm/rpc/core/RpcRequest.d.ts +2 -2
  764. package/lib/esm/rpc/core/RpcRequest.d.ts.map +1 -1
  765. package/lib/esm/rpc/core/RpcRequest.js +51 -29
  766. package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
  767. package/lib/esm/rpc/core/RpcRequestContext.js.map +1 -1
  768. package/lib/esm/rpc/core/RpcRoutingToken.js +4 -2
  769. package/lib/esm/rpc/core/RpcRoutingToken.js.map +1 -1
  770. package/lib/esm/rpc/core/RpcSessionInvocation.js +5 -10
  771. package/lib/esm/rpc/core/RpcSessionInvocation.js.map +1 -1
  772. package/lib/esm/rpc/web/BentleyCloudRpcManager.js +11 -17
  773. package/lib/esm/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  774. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +16 -19
  775. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  776. package/lib/esm/rpc/web/OpenAPI.js +2 -0
  777. package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
  778. package/lib/esm/rpc/web/RpcMultipart.d.ts +1 -1
  779. package/lib/esm/rpc/web/RpcMultipart.d.ts.map +1 -1
  780. package/lib/esm/rpc/web/RpcMultipart.js +14 -13
  781. package/lib/esm/rpc/web/RpcMultipart.js.map +1 -1
  782. package/lib/esm/rpc/web/WebAppRpcLogging.d.ts +3 -0
  783. package/lib/esm/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
  784. package/lib/esm/rpc/web/WebAppRpcLogging.js +1 -6
  785. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  786. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +1 -1
  787. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  788. package/lib/esm/rpc/web/WebAppRpcProtocol.js +6 -6
  789. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  790. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  791. package/lib/esm/rpc/web/WebAppRpcRequest.js +27 -27
  792. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  793. package/lib/esm/rpc/web/multipart/RpcMultipartParser.d.ts +0 -2
  794. package/lib/esm/rpc/web/multipart/RpcMultipartParser.d.ts.map +1 -1
  795. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js +14 -8
  796. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  797. package/lib/esm/tile/B3dmTileIO.js +7 -0
  798. package/lib/esm/tile/B3dmTileIO.js.map +1 -1
  799. package/lib/esm/tile/CompositeTileIO.js +3 -0
  800. package/lib/esm/tile/CompositeTileIO.js.map +1 -1
  801. package/lib/esm/tile/ElementGraphics.js.map +1 -1
  802. package/lib/esm/tile/GltfTileIO.js +4 -3
  803. package/lib/esm/tile/GltfTileIO.js.map +1 -1
  804. package/lib/esm/tile/I3dmTileIO.js +8 -0
  805. package/lib/esm/tile/I3dmTileIO.js.map +1 -1
  806. package/lib/esm/tile/IModelTileIO.d.ts +2 -2
  807. package/lib/esm/tile/IModelTileIO.js +26 -3
  808. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  809. package/lib/esm/tile/PntsTileIO.js +5 -0
  810. package/lib/esm/tile/PntsTileIO.js.map +1 -1
  811. package/lib/esm/tile/TileIO.js +2 -0
  812. package/lib/esm/tile/TileIO.js.map +1 -1
  813. package/lib/esm/tile/TileMetadata.js +9 -1
  814. package/lib/esm/tile/TileMetadata.js.map +1 -1
  815. package/lib/esm/tile/Tileset3dSchema.js.map +1 -1
  816. package/package.json +14 -14
  817. package/lib/cjs/BackendTypes.d.ts.map +0 -1
  818. package/lib/cjs/BackendTypes.js.map +0 -1
  819. package/lib/cjs/ITwinError.d.ts +0 -72
  820. package/lib/cjs/ITwinError.d.ts.map +0 -1
  821. package/lib/cjs/ITwinError.js +0 -55
  822. package/lib/cjs/ITwinError.js.map +0 -1
  823. package/lib/cjs/Render.d.ts +0 -85
  824. package/lib/cjs/Render.d.ts.map +0 -1
  825. package/lib/cjs/Render.js.map +0 -1
  826. package/lib/esm/BackendTypes.d.ts.map +0 -1
  827. package/lib/esm/BackendTypes.js.map +0 -1
  828. package/lib/esm/ITwinError.d.ts +0 -72
  829. package/lib/esm/ITwinError.d.ts.map +0 -1
  830. package/lib/esm/ITwinError.js +0 -52
  831. package/lib/esm/ITwinError.js.map +0 -1
  832. package/lib/esm/Render.d.ts +0 -85
  833. package/lib/esm/Render.d.ts.map +0 -1
  834. package/lib/esm/Render.js.map +0 -1
  835. /package/lib/cjs/{BackendTypes.js → internal/BackendTypes.js} +0 -0
  836. /package/lib/esm/{BackendTypes.js → internal/BackendTypes.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BriefcaseTypes.d.ts","sourceRoot":"","sources":["../../src/BriefcaseTypes.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC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AAA;IAEf,4IAA4I;IAC5I,yEAAkB,CAAA;IAElB,oIAAoI;IACpI,iDAAM,CAAA;IAEN,4FAA4F;IAC5F,iDAAM,CAAA;AACR,CAAC,EAlBW,WAAW,KAAX,WAAW,QAkBtB","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 { GuidString } from \"@itwin/core-bentley\";\r\nimport { ChangesetIdWithIndex, ChangesetIndexOrId, LocalFileName } from \"./ChangesetProps\";\r\nimport { IModelEncryptionProps, OpenDbKey } from \"./IModel\";\r\nimport { IModelVersionProps } from \"./IModelVersion\";\r\n\r\n/** The Id assigned to a briefcase by iModelHub, or [[BriefcaseIdValue.Unassigned]] .\r\n * @public\r\n * @extensions\r\n */\r\nexport type BriefcaseId = number;\r\n\r\n/** Values of [[BriefcaseId]] that have special meaning.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum BriefcaseIdValue {\r\n /** Indicates an invalid/illegal BriefcaseId */\r\n Illegal = 0xffffffff,\r\n\r\n /** BriefcaseIds must be less than this value */\r\n Max = 1 << 24,\r\n\r\n /** All valid iModelHub issued BriefcaseIds will be equal or higher than this */\r\n FirstValid = 2,\r\n\r\n /** All valid iModelHub issued BriefcaseIds will be equal or lower than this */\r\n LastValid = BriefcaseIdValue.Max - 11,\r\n\r\n /**\r\n * The briefcase has not been assigned a unique Id by iModelHub. Only briefcases that have been assigned a unique BriefcaseId may create changesets,\r\n * because BriefcaseId is used to create unique ElementIds for new elements.\r\n *\r\n * The `Unassigned` briefcaseId is used for several purposes:\r\n * - **Snapshots**. Snapshot files are immutable copies of an iModel for archival or data exchange purposes. They can neither generate nor accept new changesets.\r\n * - **Checkpoints**. Checkpoints are Snapshots that represent a specific version on an iModel's timeline.\r\n * - **PullOnly**. A local briefcase file that may be used to \"slide\" along a timeline by applying incoming changesets.\r\n * They are always opened readonly except to apply changesets.\r\n * - **Standalone**. Standalone iModels are local files that are not connected to iModelHub, and therefore cannot accept or create changesets.\r\n */\r\n Unassigned = 0,\r\n}\r\n\r\n/** Whether a briefcase is editable or may only accept incoming changesets from iModelHub\r\n * @public\r\n * @extensions\r\n */\r\nexport enum SyncMode {\r\n /** Use a fixed version (i.e. a checkpoint). See [CheckpointManager]($backend) for preferred approach to using checkpoint files. */\r\n FixedVersion = 1,\r\n /** A briefcase that can be edited. A unique briefcaseId must be assigned by iModelHub. */\r\n PullAndPush = 2,\r\n /** use [BriefcaseIdValue.Unassigned](%backend). This makes a briefcase that can accept changesets from iModelHub but can never create changesets. */\r\n PullOnly = 3,\r\n}\r\n\r\n/**\r\n * Options to open a previously downloaded briefcase\r\n * @public\r\n */\r\nexport interface OpenBriefcaseOptions {\r\n /** open briefcase Readonly */\r\n readonly openAsReadOnly?: boolean;\r\n}\r\n\r\n/**\r\n * Properties that specify a briefcase within the local briefcase cache.\r\n * @see BriefcaseManager.getFileName\r\n * @public\r\n */\r\nexport interface BriefcaseProps {\r\n /** Id of the iModel */\r\n readonly iModelId: GuidString;\r\n\r\n /** BriefcaseId of the briefcase */\r\n readonly briefcaseId: BriefcaseId;\r\n}\r\n\r\n/** Properties for opening a local briefcase file via [BriefcaseDb.open]($backend)\r\n * @public\r\n */\r\nexport interface OpenBriefcaseProps extends IModelEncryptionProps, OpenDbKey { // eslint-disable-line @typescript-eslint/no-deprecated\r\n /** the full path to the briefcase file */\r\n readonly fileName: LocalFileName;\r\n /**\r\n * If true, open the briefcase readonly.\r\n * @note Readonly connections always hold a read transaction against the briefcase. That can cause the WAL file size to grow\r\n * unbounded if changes happen while they're open (see [Checkpoint starvation](https://www.sqlite.org/wal.html#avoiding_excessively_large_wal_files))\r\n * It is a good idea to close the readonly connection *before* closing the writeable connection so the WAL file will be deleted.\r\n */\r\n readonly readonly?: boolean;\r\n /** If true, open the briefcase readonly and monitor it for changes originating from another connection.\r\n * When such changes are detected, the default txn will be restarted.\r\n * The restart occurs only after the next iteration of the backend event loop, and will generate events that reflect the changes from the other connection.\r\n * This can be useful in contexts where the read-only connection is displaying a view of the contents of the briefcase while another, non-interactive program\r\n * is adding txns to the briefcase. It may not be reliable if the writable connection is undoing or redoing txns.\r\n * @note This cannot be used with cloud-based briefcases.\r\n */\r\n readonly watchForChanges?: boolean;\r\n}\r\n\r\n/** Properties of a local briefcase file, returned by [BriefcaseManager.getCachedBriefcases]($backend) and [BriefcaseManager.downloadBriefcase]($backend)\r\n * @public\r\n * @extensions\r\n */\r\nexport interface LocalBriefcaseProps {\r\n /** Full path of local file. */\r\n readonly fileName: LocalFileName;\r\n\r\n /** The iTwin containing the iModel. */\r\n readonly iTwinId: GuidString;\r\n\r\n /** The iModelId. */\r\n readonly iModelId: GuidString;\r\n\r\n /** The briefcaseId. */\r\n readonly briefcaseId: BriefcaseId;\r\n\r\n /** The current changesetId.\r\n * @note ChangeSet Ids are string hash values based on the ChangeSet's content and parent.\r\n */\r\n readonly changeset: ChangesetIdWithIndex;\r\n\r\n /** Size of the briefcase file in bytes */\r\n readonly fileSize: number;\r\n}\r\n\r\n/** Properties for downloading a briefcase to a local file, from iModelHub.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface RequestNewBriefcaseProps {\r\n /** iTwin that the iModel belongs to. */\r\n readonly iTwinId: GuidString;\r\n\r\n /** The iModelId for the new briefcase. */\r\n readonly iModelId: GuidString;\r\n\r\n /** Full path of local file to store the briefcase. If undefined, a file will be created in the briefcase cache, and this member will be filled with the full path to the file.\r\n * Callers can use this to open the briefcase after the download completes.\r\n * @note this member is both an input and an output.\r\n */\r\n readonly fileName?: LocalFileName;\r\n\r\n /**\r\n * The BriefcaseId for the new briefcase. If undefined, a new BriefcaseId will be acquired from iModelHub before the download, and is returned in this member.\r\n * @note To download a briefcase that can accept but not create new changesets (sometimes referred to as \"pull only\" briefcases), set this value to [[BriefcaseIdValue.Unassigned]].\r\n * After downloading, you can merely delete unassigned briefcase files when they are no longer needed. Assigned BriefcaseIds should be released (via [BriefcaseManager.releaseBriefcase]($backend) )\r\n * when you are done with them.\r\n * @note this member is both an input and an output.\r\n *\r\n */\r\n briefcaseId?: BriefcaseId;\r\n\r\n /** Id of the change set of the new briefcase. If undefined, use latest. */\r\n asOf?: IModelVersionProps;\r\n}\r\n\r\n/**\r\n * Arguments to open a Checkpoint directly from its cloud container\r\n * @beta\r\n */\r\nexport interface OpenCheckpointArgs {\r\n readonly iTwinId: GuidString;\r\n\r\n /** Id of the iModel */\r\n readonly iModelId: GuidString;\r\n\r\n /** changeset for the checkpoint. If undefined, attempt to open the checkpoint for the latest changeset. */\r\n readonly changeset?: ChangesetIndexOrId;\r\n}\r\n\r\n/**\r\n * Manages the download of a briefcase\r\n * @public\r\n */\r\nexport interface BriefcaseDownloader {\r\n /** Id of the briefcase being downloaded */\r\n readonly briefcaseId: BriefcaseId;\r\n\r\n /** the name of the local file for the briefcase */\r\n readonly fileName: LocalFileName;\r\n\r\n /** Promise that resolves when the download completes. await this to complete the download */\r\n readonly downloadPromise: Promise<void>;\r\n\r\n /** Request cancellation of the download */\r\n readonly requestCancel: () => Promise<boolean>;\r\n}\r\n\r\n/** Option to control the validation and upgrade of domain schemas in the Db\r\n * @beta\r\n */\r\nexport enum DomainOptions {\r\n /** Domain schemas will be validated for any required upgrades. Any errors will be reported back, and cause the application to fail opening the Db */\r\n CheckRequiredUpgrades = 0,\r\n\r\n /** Domain schemas will be validated for any required or optional upgrades. Any errors will be reported back, and cause the application to fail opening the Db */\r\n CheckRecommendedUpgrades = 1,\r\n\r\n /** Domain schemas will be upgraded if necessary. However, only compatible schema upgrades will be allowed - these are typically additions of classes, properties, and changes to custom attributes */\r\n Upgrade = 2,\r\n\r\n /** Domain schemas will neither be validated nor be upgraded. Used only internally */\r\n SkipCheck = 3,\r\n}\r\n\r\n/** Options that control whether a profile upgrade should be performed when opening a Db\r\n * @beta\r\n */\r\nexport enum ProfileOptions {\r\n /** No profile upgrade will be performed. If a profile upgrade was required, opening the file will fail */\r\n None = 0,\r\n\r\n /** Profile upgrade will be performed if necessary */\r\n Upgrade = 1,\r\n}\r\n\r\n/** Arguments to validate and update the profile and domain schemas when opening a Db\r\n * @beta\r\n */\r\nexport interface UpgradeOptions {\r\n /** Option to control the validation and upgrade of domain schemas in the Db */\r\n readonly domain?: DomainOptions;\r\n\r\n /** Options that control whether a profile upgrade should be performed when opening a file */\r\n readonly profile?: ProfileOptions;\r\n\r\n /** Options that will allow data transform during Profile/Domain schema upgrade */\r\n readonly schemaLockHeld?: boolean;\r\n}\r\n\r\n/**\r\n * The state of the schemas in the Db compared with what the current version of the software expects\r\n * Note: The state may vary depending on whether the Db is to be opened ReadOnly or ReadWrite.\r\n * @public\r\n */\r\nexport enum SchemaState {\r\n /** The schemas in the Db are up-to-date, and do not need to be upgraded before opening it with the current version of the software */\r\n UpToDate,\r\n\r\n /** It's required that the schemas in the Db be upgraded before it can be opened with the current version of the software.\r\n * This may happen in read-write scenarios where the application requires a newer version of the schemas to be in place before\r\n * it can write data based on that new schema.\r\n */\r\n UpgradeRequired,\r\n\r\n /** It's recommended, but not necessary that the schemas in the Db be upgraded before opening it with the current version of the software */\r\n UpgradeRecommended,\r\n\r\n /** The schemas in the Db are too old to be opened by the current version of the software. Upgrade using the API is not possible. */\r\n TooOld,\r\n\r\n /** The schemas in the Db are too new to be opened by the current version of the software */\r\n TooNew,\r\n}\r\n"]}
1
+ {"version":3,"file":"BriefcaseTypes.js","sourceRoot":"","sources":["../../src/BriefcaseTypes.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAaH;;;GAGG;AACH,MAAM,CAAN,IAAY,gBAyBX;AAzBD,WAAY,gBAAgB;IAC1B,+CAA+C;IAC/C,sEAAoB,CAAA;IAEpB,gDAAgD;IAChD,4DAAa,CAAA;IAEb,gFAAgF;IAChF,mEAAc,CAAA;IAEd,+EAA+E;IAC/E,wEAAqC,CAAA;IAErC;;;;;;;;;;OAUG;IACH,mEAAc,CAAA;AAChB,CAAC,EAzBW,gBAAgB,KAAhB,gBAAgB,QAyB3B;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,mIAAmI;IACnI,uDAAgB,CAAA;IAChB,0FAA0F;IAC1F,qDAAe,CAAA;IACf,qJAAqJ;IACrJ,+CAAY,CAAA;AACd,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;AAwID;;GAEG;AACH,MAAM,CAAN,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,qJAAqJ;IACrJ,mFAAyB,CAAA;IAEzB,iKAAiK;IACjK,yFAA4B,CAAA;IAE5B,sMAAsM;IACtM,uDAAW,CAAA;IAEX,qFAAqF;IACrF,2DAAa,CAAA;AACf,CAAC,EAZW,aAAa,KAAb,aAAa,QAYxB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,0GAA0G;IAC1G,mDAAQ,CAAA;IAER,qDAAqD;IACrD,yDAAW,CAAA;AACb,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAgBD;;;;GAIG;AACH,MAAM,CAAN,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACrB,sIAAsI;IACtI,qDAAQ,CAAA;IAER;;;OAGG;IACH,mEAAe,CAAA;IAEf,4IAA4I;IAC5I,yEAAkB,CAAA;IAElB,oIAAoI;IACpI,iDAAM,CAAA;IAEN,4FAA4F;IAC5F,iDAAM,CAAA;AACR,CAAC,EAlBW,WAAW,KAAX,WAAW,QAkBtB","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 { GuidString } from \"@itwin/core-bentley\";\nimport { ChangesetIdWithIndex, ChangesetIndexOrId, LocalFileName } from \"./ChangesetProps\";\nimport { OpenDbKey } from \"./IModel\";\nimport { IModelVersionProps } from \"./IModelVersion\";\n\n/** The Id assigned to a briefcase by iModelHub, or [[BriefcaseIdValue.Unassigned]] .\n * @public\n * @extensions\n */\nexport type BriefcaseId = number;\n\n/** Values of [[BriefcaseId]] that have special meaning.\n * @public\n * @extensions\n */\nexport enum BriefcaseIdValue {\n /** Indicates an invalid/illegal BriefcaseId */\n Illegal = 0xffffffff,\n\n /** BriefcaseIds must be less than this value */\n Max = 1 << 24,\n\n /** All valid iModelHub issued BriefcaseIds will be equal or higher than this */\n FirstValid = 2,\n\n /** All valid iModelHub issued BriefcaseIds will be equal or lower than this */\n LastValid = BriefcaseIdValue.Max - 11,\n\n /**\n * The briefcase has not been assigned a unique Id by iModelHub. Only briefcases that have been assigned a unique BriefcaseId may create changesets,\n * because BriefcaseId is used to create unique ElementIds for new elements.\n *\n * The `Unassigned` briefcaseId is used for several purposes:\n * - **Snapshots**. Snapshot files are immutable copies of an iModel for archival or data exchange purposes. They can neither generate nor accept new changesets.\n * - **Checkpoints**. Checkpoints are Snapshots that represent a specific version on an iModel's timeline.\n * - **PullOnly**. A local briefcase file that may be used to \"slide\" along a timeline by applying incoming changesets.\n * They are always opened readonly except to apply changesets.\n * - **Standalone**. Standalone iModels are local files that are not connected to iModelHub, and therefore cannot accept or create changesets.\n */\n Unassigned = 0,\n}\n\n/** Whether a briefcase is editable or may only accept incoming changesets from iModelHub\n * @public\n * @extensions\n */\nexport enum SyncMode {\n /** Use a fixed version (i.e. a checkpoint). See [CheckpointManager]($backend) for preferred approach to using checkpoint files. */\n FixedVersion = 1,\n /** A briefcase that can be edited. A unique briefcaseId must be assigned by iModelHub. */\n PullAndPush = 2,\n /** use [BriefcaseIdValue.Unassigned](%backend). This makes a briefcase that can accept changesets from iModelHub but can never create changesets. */\n PullOnly = 3,\n}\n\n/**\n * Options to open a previously downloaded briefcase\n * @public\n */\nexport interface OpenBriefcaseOptions {\n /** open briefcase Readonly */\n readonly openAsReadOnly?: boolean;\n}\n\n/**\n * Properties that specify a briefcase within the local briefcase cache.\n * @see BriefcaseManager.getFileName\n * @public\n */\nexport interface BriefcaseProps {\n /** Id of the iModel */\n readonly iModelId: GuidString;\n\n /** BriefcaseId of the briefcase */\n readonly briefcaseId: BriefcaseId;\n}\n\n/** Properties for opening a local briefcase file via [BriefcaseDb.open]($backend)\n * @public\n */\nexport interface OpenBriefcaseProps extends OpenDbKey {\n /** the full path to the briefcase file */\n readonly fileName: LocalFileName;\n /**\n * If true, open the briefcase readonly.\n * @note Readonly connections always hold a read transaction against the briefcase. That can cause the WAL file size to grow\n * unbounded if changes happen while they're open (see [Checkpoint starvation](https://www.sqlite.org/wal.html#avoiding_excessively_large_wal_files))\n * It is a good idea to close the readonly connection *before* closing the writeable connection so the WAL file will be deleted.\n */\n readonly readonly?: boolean;\n /** If true, open the briefcase readonly and monitor it for changes originating from another connection.\n * When such changes are detected, the default txn will be restarted.\n * The restart occurs only after the next iteration of the backend event loop, and will generate events that reflect the changes from the other connection.\n * This can be useful in contexts where the read-only connection is displaying a view of the contents of the briefcase while another, non-interactive program\n * is adding txns to the briefcase. It may not be reliable if the writable connection is undoing or redoing txns.\n * @note This cannot be used with cloud-based briefcases.\n */\n readonly watchForChanges?: boolean;\n}\n\n/** Properties of a local briefcase file, returned by [BriefcaseManager.getCachedBriefcases]($backend) and [BriefcaseManager.downloadBriefcase]($backend)\n * @public\n * @extensions\n */\nexport interface LocalBriefcaseProps {\n /** Full path of local file. */\n readonly fileName: LocalFileName;\n\n /** The iTwin containing the iModel. */\n readonly iTwinId: GuidString;\n\n /** The iModelId. */\n readonly iModelId: GuidString;\n\n /** The briefcaseId. */\n readonly briefcaseId: BriefcaseId;\n\n /** The current changesetId.\n * @note ChangeSet Ids are string hash values based on the ChangeSet's content and parent.\n */\n readonly changeset: ChangesetIdWithIndex;\n\n /** Size of the briefcase file in bytes */\n readonly fileSize: number;\n}\n\n/** Properties for downloading a briefcase to a local file, from iModelHub.\n * @public\n * @extensions\n */\nexport interface RequestNewBriefcaseProps {\n /** iTwin that the iModel belongs to. */\n readonly iTwinId: GuidString;\n\n /** The iModelId for the new briefcase. */\n readonly iModelId: GuidString;\n\n /** Full path of local file to store the briefcase. If undefined, a file will be created in the briefcase cache, and this member will be filled with the full path to the file.\n * Callers can use this to open the briefcase after the download completes.\n * @note this member is both an input and an output.\n */\n readonly fileName?: LocalFileName;\n\n /**\n * The BriefcaseId for the new briefcase. If undefined, a new BriefcaseId will be acquired from iModelHub before the download, and is returned in this member.\n * @note To download a briefcase that can accept but not create new changesets (sometimes referred to as \"pull only\" briefcases), set this value to [[BriefcaseIdValue.Unassigned]].\n * After downloading, you can merely delete unassigned briefcase files when they are no longer needed. Assigned BriefcaseIds should be released (via [BriefcaseManager.releaseBriefcase]($backend) )\n * when you are done with them.\n * @note this member is both an input and an output.\n *\n */\n briefcaseId?: BriefcaseId;\n\n /** Id of the change set of the new briefcase. If undefined, use latest. */\n asOf?: IModelVersionProps;\n}\n\n/**\n * Arguments to open a Checkpoint directly from its cloud container\n * @beta\n */\nexport interface OpenCheckpointArgs {\n readonly iTwinId: GuidString;\n\n /** Id of the iModel */\n readonly iModelId: GuidString;\n\n /** changeset for the checkpoint. If undefined, attempt to open the checkpoint for the latest changeset. */\n readonly changeset?: ChangesetIndexOrId;\n}\n\n/**\n * Manages the download of a briefcase\n * @public\n */\nexport interface BriefcaseDownloader {\n /** Id of the briefcase being downloaded */\n readonly briefcaseId: BriefcaseId;\n\n /** the name of the local file for the briefcase */\n readonly fileName: LocalFileName;\n\n /** Promise that resolves when the download completes. await this to complete the download */\n readonly downloadPromise: Promise<void>;\n\n /** Request cancellation of the download */\n readonly requestCancel: () => Promise<boolean>;\n}\n\n/** Option to control the validation and upgrade of domain schemas in the Db\n * @beta\n */\nexport enum DomainOptions {\n /** Domain schemas will be validated for any required upgrades. Any errors will be reported back, and cause the application to fail opening the Db */\n CheckRequiredUpgrades = 0,\n\n /** Domain schemas will be validated for any required or optional upgrades. Any errors will be reported back, and cause the application to fail opening the Db */\n CheckRecommendedUpgrades = 1,\n\n /** Domain schemas will be upgraded if necessary. However, only compatible schema upgrades will be allowed - these are typically additions of classes, properties, and changes to custom attributes */\n Upgrade = 2,\n\n /** Domain schemas will neither be validated nor be upgraded. Used only internally */\n SkipCheck = 3,\n}\n\n/** Options that control whether a profile upgrade should be performed when opening a Db\n * @beta\n */\nexport enum ProfileOptions {\n /** No profile upgrade will be performed. If a profile upgrade was required, opening the file will fail */\n None = 0,\n\n /** Profile upgrade will be performed if necessary */\n Upgrade = 1,\n}\n\n/** Arguments to validate and update the profile and domain schemas when opening a Db\n * @beta\n */\nexport interface UpgradeOptions {\n /** Option to control the validation and upgrade of domain schemas in the Db */\n readonly domain?: DomainOptions;\n\n /** Options that control whether a profile upgrade should be performed when opening a file */\n readonly profile?: ProfileOptions;\n\n /** Options that will allow data transform during Profile/Domain schema upgrade */\n readonly schemaLockHeld?: boolean;\n}\n\n/**\n * The state of the schemas in the Db compared with what the current version of the software expects\n * Note: The state may vary depending on whether the Db is to be opened ReadOnly or ReadWrite.\n * @public\n */\nexport enum SchemaState {\n /** The schemas in the Db are up-to-date, and do not need to be upgraded before opening it with the current version of the software */\n UpToDate,\n\n /** It's required that the schemas in the Db be upgraded before it can be opened with the current version of the software.\n * This may happen in read-write scenarios where the application requires a newer version of the schemas to be in place before\n * it can write data based on that new schema.\n */\n UpgradeRequired,\n\n /** It's recommended, but not necessary that the schemas in the Db be upgraded before opening it with the current version of the software */\n UpgradeRecommended,\n\n /** The schemas in the Db are too old to be opened by the current version of the software. Upgrade using the API is not possible. */\n TooOld,\n\n /** The schemas in the Db are too new to be opened by the current version of the software */\n TooNew,\n}\n"]}
package/lib/esm/Camera.js CHANGED
@@ -12,6 +12,9 @@ import { Angle, Point3d } from "@itwin/core-geometry";
12
12
  * @public
13
13
  */
14
14
  export class Camera {
15
+ lens;
16
+ focusDist;
17
+ eye;
15
18
  static isValidLensAngle(val) {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,CAAC;YACrD,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACvC,OAAO;QACT,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC;IAC3B,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 Views\r\n */\r\n\r\nimport { JsonUtils } from \"@itwin/core-bentley\";\r\nimport { Angle, AngleProps, Point3d, XYAndZ, XYZProps } from \"@itwin/core-geometry\";\r\n\r\n/** JSON representation of a [[Camera]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface CameraProps {\r\n lens: AngleProps;\r\n focusDist: number; // NOTE: this is abbreviated, do not change!\r\n eye: XYZProps;\r\n}\r\n\r\n/** The current position (eyepoint), lens angle, and focus distance of a camera.\r\n * @see [Views]($docs/learning/frontend/Views.md)\r\n * @public\r\n */\r\nexport class Camera implements CameraProps {\r\n public readonly lens: Angle;\r\n public focusDist: number;\r\n public readonly eye: Point3d;\r\n\r\n public static isValidLensAngle(val: Angle) {\r\n return val.radians > (Math.PI / 8.0) && val.radians < Math.PI;\r\n }\r\n\r\n public static validateLensAngle(val: Angle) {\r\n if (!this.isValidLensAngle(val))\r\n val.setRadians(Math.PI / 2.0);\r\n }\r\n\r\n public invalidateFocus() { this.focusDist = 0.0; }\r\n public get isFocusValid() { return this.focusDist > 0.0 && this.focusDist < 1.0e14; }\r\n public getFocusDistance() { return this.focusDist; }\r\n public setFocusDistance(dist: number) { this.focusDist = dist; }\r\n public get isLensValid() { return Camera.isValidLensAngle(this.lens); }\r\n public validateLens() { Camera.validateLensAngle(this.lens); }\r\n public getLensAngle() { return this.lens; }\r\n public setLensAngle(angle: Angle) { this.lens.setFrom(angle); }\r\n public getEyePoint() { return this.eye; }\r\n public setEyePoint(pt: XYAndZ) { this.eye.setFrom(pt); }\r\n public get isValid() { return this.isLensValid && this.isFocusValid; }\r\n public equals(other: Camera) {\r\n return Math.abs(this.lens.radians - other.lens.radians) < .01 &&\r\n Math.abs(this.focusDist - other.focusDist) < .1 &&\r\n this.eye.isAlmostEqual(other.eye);\r\n }\r\n public clone() { return new Camera(this); }\r\n public setFrom(rhs: Camera) {\r\n this.lens.setFrom(rhs.lens);\r\n this.focusDist = rhs.focusDist;\r\n this.eye.setFrom(rhs.eye);\r\n }\r\n\r\n /** Construct a Camera\r\n * @param props The properties of the new camera. If undefined, create a camera with eye at {0,0,0}, 90 degree lens, 1 meter focus distance.\r\n */\r\n public constructor(props?: CameraProps) {\r\n if (props !== undefined) {\r\n this.lens = Angle.fromJSON(props.lens);\r\n this.focusDist = JsonUtils.asDouble(props.focusDist);\r\n this.eye = Point3d.fromJSON(props.eye);\r\n return;\r\n }\r\n this.lens = Angle.createRadians(Math.PI / 2.0);\r\n this.focusDist = 1;\r\n this.eye = new Point3d();\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Camera.js","sourceRoot":"","sources":["../../src/Camera.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAc,OAAO,EAAoB,MAAM,sBAAsB,CAAC;AAYpF;;;GAGG;AACH,MAAM,OAAO,MAAM;IACD,IAAI,CAAQ;IACrB,SAAS,CAAS;IACT,GAAG,CAAU;IAEtB,MAAM,CAAC,gBAAgB,CAAC,GAAU;QACvC,OAAO,GAAG,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,C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,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG;YAC3D,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YAC/C,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IACM,KAAK,KAAK,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpC,OAAO,CAAC,GAAW;QACxB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,YAAmB,KAAmB;QACpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YACrD,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACvC,OAAO;QACT,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC;IAC3B,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 Views\n */\n\nimport { JsonUtils } from \"@itwin/core-bentley\";\nimport { Angle, AngleProps, Point3d, XYAndZ, XYZProps } from \"@itwin/core-geometry\";\n\n/** JSON representation of a [[Camera]].\n * @public\n * @extensions\n */\nexport interface CameraProps {\n lens: AngleProps;\n focusDist: number; // NOTE: this is abbreviated, do not change!\n eye: XYZProps;\n}\n\n/** The current position (eyepoint), lens angle, and focus distance of a camera.\n * @see [Views]($docs/learning/frontend/Views.md)\n * @public\n */\nexport class Camera implements CameraProps {\n public readonly lens: Angle;\n public focusDist: number;\n public readonly eye: Point3d;\n\n public static isValidLensAngle(val: Angle) {\n return val.radians > (Math.PI / 8.0) && val.radians < Math.PI;\n }\n\n public static validateLensAngle(val: Angle) {\n if (!this.isValidLensAngle(val))\n val.setRadians(Math.PI / 2.0);\n }\n\n public invalidateFocus() { this.focusDist = 0.0; }\n public get isFocusValid() { return this.focusDist > 0.0 && this.focusDist < 1.0e14; }\n public getFocusDistance() { return this.focusDist; }\n public setFocusDistance(dist: number) { this.focusDist = dist; }\n public get isLensValid() { return Camera.isValidLensAngle(this.lens); }\n public validateLens() { Camera.validateLensAngle(this.lens); }\n public getLensAngle() { return this.lens; }\n public setLensAngle(angle: Angle) { this.lens.setFrom(angle); }\n public getEyePoint() { return this.eye; }\n public setEyePoint(pt: XYAndZ) { this.eye.setFrom(pt); }\n public get isValid() { return this.isLensValid && this.isFocusValid; }\n public equals(other: Camera) {\n return Math.abs(this.lens.radians - other.lens.radians) < .01 &&\n Math.abs(this.focusDist - other.focusDist) < .1 &&\n this.eye.isAlmostEqual(other.eye);\n }\n public clone() { return new Camera(this); }\n public setFrom(rhs: Camera) {\n this.lens.setFrom(rhs.lens);\n this.focusDist = rhs.focusDist;\n this.eye.setFrom(rhs.eye);\n }\n\n /** Construct a Camera\n * @param props The properties of the new camera. If undefined, create a camera with eye at {0,0,0}, 90 degree lens, 1 meter focus distance.\n */\n public constructor(props?: CameraProps) {\n if (props !== undefined) {\n this.lens = Angle.fromJSON(props.lens);\n this.focusDist = JsonUtils.asDouble(props.focusDist);\n this.eye = Point3d.fromJSON(props.eye);\n return;\n }\n this.lens = Angle.createRadians(Math.PI / 2.0);\n this.focusDist = 1;\n this.eye = new Point3d();\n }\n}\n"]}
@@ -0,0 +1,152 @@
1
+ /** @packageDocumentation
2
+ * @module NativeApp
3
+ */
4
+ import { Id64String, ITwinError } from "@itwin/core-bentley";
5
+ import { LocalFileName } from "./ChangesetProps";
6
+ import { IModelConnectionProps, SnapshotOpenOptions } from "./IModel";
7
+ /**
8
+ * Errors produced by the [[CatalogIModel]] API.
9
+ * @beta
10
+ */
11
+ export declare namespace CatalogError {
12
+ const scope = "itwin-Catalog";
13
+ type Key = "invalid-seed-catalog" | "manifest-missing";
14
+ /** Determine whether an error object is a CatalogError */
15
+ function isError(error: unknown, key?: Key): error is ITwinError;
16
+ /** Instantiate and throw a CatalogError */
17
+ function throwError<T extends ITwinError>(key: Key, e: Omit<T, "name" | "iTwinErrorId">): never;
18
+ }
19
+ /** A "catalog iModel" is an [[IModel]] containing elements (e.g., component definitions) that are intended to be copied into another iModel by applications.
20
+ * They can be stored in [BlobContainer]($backend)s managed by a "reference data service" that uses [semantic versioning](https://semver.org/), much like [WorkspaceDb]($backend)s.
21
+ * @see [CatalogDb]($backend) to interact with catalog iModels on the backend
22
+ * @see [CatalogConnection]($frontend) to interact with catalog iModels on the frontend.
23
+ * @beta
24
+ */
25
+ export declare namespace CatalogIModel {
26
+ /** Metadata describing a catalog iModel.
27
+ * @note Only the [[catalogName]] field is required, and users may add additional fields for their own purposes.
28
+ * @note The manifest is stored inside of the CatalogIModel, so it is versioned along with the rest of the catalog's contents.
29
+ * @beta
30
+ */
31
+ interface Manifest {
32
+ /** The iTwinId for the Catalog */
33
+ readonly iTwinId?: Id64String;
34
+ /**
35
+ * The name of the Catalog to be shown in user interfaces. Organizations should attempt to make this name informative enough
36
+ * so that uses may refer to it in conversations. It should also be unique enough that there's no confusion when it appears in
37
+ * lists of catalogs.
38
+ * @note it is possible and valid to change the catalogName between versions of a CatalogIModel (e.g. incorporating a date).
39
+ */
40
+ readonly catalogName: string;
41
+ /** A description of the contents of this catalog to help users understand its purpose and appropriate usage. */
42
+ readonly description?: string;
43
+ /** The name of the person to contact with questions about this catalog */
44
+ readonly contactName?: string;
45
+ /** The name of the person who last modified this catalog. */
46
+ lastEditedBy?: string;
47
+ }
48
+ /** Arguments for creating a new [BlobContainer]($backend) that holds (versions of) a CatalogIModel. */
49
+ interface CreateNewContainerArgs {
50
+ /** supplies the iTwinId for the new container */
51
+ readonly iTwinId: Id64String;
52
+ /** metadata stored with the new container */
53
+ readonly metadata: {
54
+ /** a "name" for the Catalog container. Should be long enough to be unique, but this is not enforced. */
55
+ label: string;
56
+ /** Optional human-readable explanation of the information held in the container. This will be displayed in the administrator RBAC panel, and on usage reports. */
57
+ description?: string;
58
+ /** optional properties for the container */
59
+ json?: {
60
+ [key: string]: any;
61
+ };
62
+ };
63
+ /** The manifest to be stored in the catalog */
64
+ readonly manifest: Manifest;
65
+ /** The name for the CatalogIModel database within the container. May not contain a version. Default is "catalog-db" */
66
+ readonly dbName?: string;
67
+ /** version for the catalog created [[localCatalogFile]]. Defaults to "0.0.0" */
68
+ readonly version?: string;
69
+ /** A filename on the local computer of the "seed" CatalogIModel to be uploaded into the new container */
70
+ readonly localCatalogFile: LocalFileName;
71
+ }
72
+ /** Properties of a newly created container created from [[CatalogIModel.CreateNewContainerArgs]]. Most importantly, this holds the ContainerId of the new container. */
73
+ interface NewContainerProps {
74
+ /** The ContainerId of the new container (usually a [Guid]($bentley)). Applications should store this value to access the container via the CatalogIModel apis. */
75
+ readonly containerId: string;
76
+ /** the uri of the BlobContainer service where the new container resides. */
77
+ readonly baseUri: string;
78
+ /** name of the blob storage provider. */
79
+ readonly provider: "azure" | "google";
80
+ }
81
+ /** Properties to identify a specific CatalogIModel within a container. */
82
+ interface NameAndVersion {
83
+ /** The name of the catalog database. Defaults to "catalog-db" for CatalogIModels stored in cloud containers. */
84
+ readonly dbName?: string;
85
+ /** The range of acceptable versions of the database of the specified [[dbName]].
86
+ * If not present, defaults to the newest available version.
87
+ */
88
+ readonly version?: VersionRange;
89
+ }
90
+ /** Arguments to open an existing version of a CatalogIModel. */
91
+ interface OpenArgs extends NameAndVersion, SnapshotOpenOptions {
92
+ /** The ContainerId of the cloud container. If not present, dbName is the name of a file on the local computer. */
93
+ containerId?: string;
94
+ /** If true, attempt to synchronize the container with any changes in the cloud. Since this automatically happens the first time a
95
+ * container is accessed within a session, this is usually not necessary except for tests.
96
+ */
97
+ syncWithCloud?: boolean;
98
+ /** Start a prefetch operation on the CatalogIModel as it is opened. */
99
+ prefetch?: boolean;
100
+ }
101
+ /** Arguments to create a new version of a CatalogIModel from (a copy of) an existing version in a cloud container. */
102
+ interface CreateNewVersionArgs {
103
+ /** The id of cloud container. */
104
+ readonly containerId: string;
105
+ /** the source version of the CatalogIModel, from which the new version will copied. */
106
+ readonly fromDb: NameAndVersion;
107
+ /** The type of version increment to apply to the source version. */
108
+ readonly versionType: "major" | "minor" | "patch" | "premajor" | "preminor" | "prepatch" | "prerelease";
109
+ /** For prerelease versions, a string that becomes part of the version name. */
110
+ readonly identifier?: string;
111
+ }
112
+ /** A [semver string](https://github.com/npm/node-semver?tab=readme-ov-file#ranges) describing a range of acceptable [[CatalogIModel]]s,
113
+ * e.g., ">=1.2.7 <1.3.0".
114
+ */
115
+ type VersionRange = string;
116
+ /** The name of the ipc channel for [[IpcMethods]]
117
+ * @internal
118
+ */
119
+ type IpcChannel = "catalogIModel/ipc";
120
+ /** @internal */
121
+ interface IpcMethods {
122
+ /** create a new container from the BlobContainerService for holding a CatalogIModel. Also uploads the seed file */
123
+ createNewContainer(args: CreateNewContainerArgs): Promise<NewContainerProps>;
124
+ /** Acquire the write lock for a CatalogIModel container. */
125
+ acquireWriteLock(args: {
126
+ containerId: string;
127
+ username: string;
128
+ }): Promise<void>;
129
+ /** Release the write lock for a CatalogIModel container. */
130
+ releaseWriteLock(args: {
131
+ containerId: string;
132
+ abandon?: true;
133
+ }): Promise<void>;
134
+ /** create a new version of a CatalogIModel from an existing version. */
135
+ createNewVersion(args: CreateNewVersionArgs): Promise<{
136
+ oldDb: NameAndVersion;
137
+ newDb: NameAndVersion;
138
+ }>;
139
+ /** Attempt to open a CatalogIModel readonly*/
140
+ openReadonly(args: OpenArgs): Promise<IModelConnectionProps>;
141
+ /** Attempt to open a CatalogIModel for editing */
142
+ openEditable(args: OpenArgs): Promise<IModelConnectionProps>;
143
+ /** Get the manifest and version number for an open CatalogConnection. */
144
+ getInfo(key: string): Promise<{
145
+ manifest?: CatalogIModel.Manifest;
146
+ version: string;
147
+ }>;
148
+ /** Update the manifest stored in an open EditableCatalog */
149
+ updateCatalogManifest(key: string, manifest: CatalogIModel.Manifest): Promise<void>;
150
+ }
151
+ }
152
+ //# sourceMappingURL=CatalogIModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogIModel.d.ts","sourceRoot":"","sources":["../../src/CatalogIModel.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEtE;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IACrB,MAAM,KAAK,kBAAkB,CAAC;IAErC,KAAY,GAAG,GACb,sBAAsB,GACtB,kBAAkB,CAAC;IAErB,0DAA0D;IAC1D,SAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,IAAI,UAAU,CAEtE;IAED,2CAA2C;IAC3C,SAAgB,UAAU,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAA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E;YAAE,WAAW,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,IAAI,CAAA;SAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/E,wEAAwE;QACxE,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC;YAAE,KAAK,EAAE,cAAc,CAAC;YAAC,KAAK,EAAE,cAAc,CAAA;SAAE,CAAC,CAAC;QACxG,8CAA8C;QAC9C,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAC7D,kDAAkD;QAClD,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAC7D,yEAAyE;QACzE,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;YAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACtF,4DAA4D;QAC5D,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KACrF;CACF"}
@@ -0,0 +1,27 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module NativeApp
7
+ */
8
+ import { ITwinError } from "@itwin/core-bentley";
9
+ /**
10
+ * Errors produced by the [[CatalogIModel]] API.
11
+ * @beta
12
+ */
13
+ export var CatalogError;
14
+ (function (CatalogError) {
15
+ CatalogError.scope = "itwin-Catalog";
16
+ /** Determine whether an error object is a CatalogError */
17
+ function isError(error, key) {
18
+ return ITwinError.isError(error, CatalogError.scope, key);
19
+ }
20
+ CatalogError.isError = isError;
21
+ /** Instantiate and throw a CatalogError */
22
+ function throwError(key, e) {
23
+ ITwinError.throwError({ ...e, iTwinErrorId: { scope: CatalogError.scope, key } });
24
+ }
25
+ CatalogError.throwError = throwError;
26
+ })(CatalogError || (CatalogError = {}));
27
+ //# sourceMappingURL=CatalogIModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogIModel.js","sourceRoot":"","sources":["../../src/CatalogIModel.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAc,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI7D;;;GAGG;AACH,MAAM,KAAW,YAAY,CAgB5B;AAhBD,WAAiB,YAAY;IACd,kBAAK,GAAG,eAAe,CAAC;IAMrC,0DAA0D;IAC1D,SAAgB,OAAO,CAAC,KAAc,EAAE,GAAS;QAC/C,OAAO,UAAU,CAAC,OAAO,CAAa,KAAK,EAAE,aAAA,KAAK,EAAE,GAAG,CAAC,CAAC;IAC3D,CAAC;IAFe,oBAAO,UAEtB,CAAA;IAED,2CAA2C;IAC3C,SAAgB,UAAU,CAAuB,GAAQ,EAAE,CAAmC;QAC5F,UAAU,CAAC,UAAU,CAAa,EAAE,GAAG,CAAC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAL,aAAA,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAFe,uBAAU,aAEzB,CAAA;AACH,CAAC,EAhBgB,YAAY,KAAZ,YAAY,QAgB5B","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 { Id64String, ITwinError } from \"@itwin/core-bentley\";\nimport { LocalFileName } from \"./ChangesetProps\";\nimport { IModelConnectionProps, SnapshotOpenOptions } from \"./IModel\";\n\n/**\n * Errors produced by the [[CatalogIModel]] API.\n * @beta\n */\nexport namespace CatalogError {\n export const scope = \"itwin-Catalog\";\n\n export type Key =\n \"invalid-seed-catalog\" |\n \"manifest-missing\";\n\n /** Determine whether an error object is a CatalogError */\n export function isError(error: unknown, key?: Key): error is ITwinError {\n return ITwinError.isError<ITwinError>(error, scope, key);\n }\n\n /** Instantiate and throw a CatalogError */\n export function throwError<T extends ITwinError>(key: Key, e: Omit<T, \"name\" | \"iTwinErrorId\">): never {\n ITwinError.throwError<ITwinError>({ ...e, iTwinErrorId: { scope, key } });\n }\n}\n\n/** A \"catalog iModel\" is an [[IModel]] containing elements (e.g., component definitions) that are intended to be copied into another iModel by applications.\n * They can be stored in [BlobContainer]($backend)s managed by a \"reference data service\" that uses [semantic versioning](https://semver.org/), much like [WorkspaceDb]($backend)s.\n * @see [CatalogDb]($backend) to interact with catalog iModels on the backend\n * @see [CatalogConnection]($frontend) to interact with catalog iModels on the frontend.\n * @beta\n */\nexport namespace CatalogIModel {\n\n /** Metadata describing a catalog iModel.\n * @note Only the [[catalogName]] field is required, and users may add additional fields for their own purposes.\n * @note The manifest is stored inside of the CatalogIModel, so it is versioned along with the rest of the catalog's contents.\n * @beta\n */\n export interface Manifest {\n /** The iTwinId for the Catalog */\n readonly iTwinId?: Id64String;\n\n /**\n * The name of the Catalog to be shown in user interfaces. Organizations should attempt to make this name informative enough\n * so that uses may refer to it in conversations. It should also be unique enough that there's no confusion when it appears in\n * lists of catalogs.\n * @note it is possible and valid to change the catalogName between versions of a CatalogIModel (e.g. incorporating a date).\n */\n readonly catalogName: string;\n /** A description of the contents of this catalog to help users understand its purpose and appropriate usage. */\n readonly description?: string;\n /** The name of the person to contact with questions about this catalog */\n readonly contactName?: string;\n /** The name of the person who last modified this catalog. */\n lastEditedBy?: string;\n }\n\n /** Arguments for creating a new [BlobContainer]($backend) that holds (versions of) a CatalogIModel. */\n export interface CreateNewContainerArgs {\n /** supplies the iTwinId for the new container */\n readonly iTwinId: Id64String;\n /** metadata stored with the new container */\n readonly metadata: {\n /** a \"name\" for the Catalog container. Should be long enough to be unique, but this is not enforced. */\n label: string;\n /** Optional human-readable explanation of the information held in the container. This will be displayed in the administrator RBAC panel, and on usage reports. */\n description?: string;\n /** optional properties for the container */\n json?: { [key: string]: any };\n }\n\n /** The manifest to be stored in the catalog */\n readonly manifest: Manifest;\n /** The name for the CatalogIModel database within the container. May not contain a version. Default is \"catalog-db\" */\n readonly dbName?: string,\n /** version for the catalog created [[localCatalogFile]]. Defaults to \"0.0.0\" */\n readonly version?: string;\n /** A filename on the local computer of the \"seed\" CatalogIModel to be uploaded into the new container */\n readonly localCatalogFile: LocalFileName;\n }\n\n /** Properties of a newly created container created from [[CatalogIModel.CreateNewContainerArgs]]. Most importantly, this holds the ContainerId of the new container. */\n export interface NewContainerProps {\n /** The ContainerId of the new container (usually a [Guid]($bentley)). Applications should store this value to access the container via the CatalogIModel apis. */\n readonly containerId: string;\n /** the uri of the BlobContainer service where the new container resides. */\n readonly baseUri: string;\n /** name of the blob storage provider. */\n readonly provider: \"azure\" | \"google\";\n }\n\n /** Properties to identify a specific CatalogIModel within a container. */\n export interface NameAndVersion {\n /** The name of the catalog database. Defaults to \"catalog-db\" for CatalogIModels stored in cloud containers. */\n readonly dbName?: string;\n /** The range of acceptable versions of the database of the specified [[dbName]].\n * If not present, defaults to the newest available version.\n */\n readonly version?: VersionRange;\n }\n\n /** Arguments to open an existing version of a CatalogIModel. */\n export interface OpenArgs extends NameAndVersion, SnapshotOpenOptions {\n /** The ContainerId of the cloud container. If not present, dbName is the name of a file on the local computer. */\n containerId?: string;\n /** If true, attempt to synchronize the container with any changes in the cloud. Since this automatically happens the first time a\n * container is accessed within a session, this is usually not necessary except for tests.\n */\n syncWithCloud?: boolean;\n /** Start a prefetch operation on the CatalogIModel as it is opened. */\n prefetch?: boolean;\n }\n\n /** Arguments to create a new version of a CatalogIModel from (a copy of) an existing version in a cloud container. */\n export interface CreateNewVersionArgs {\n /** The id of cloud container. */\n readonly containerId: string;\n /** the source version of the CatalogIModel, from which the new version will copied. */\n readonly fromDb: NameAndVersion;\n /** The type of version increment to apply to the source version. */\n readonly versionType: \"major\" | \"minor\" | \"patch\" | \"premajor\" | \"preminor\" | \"prepatch\" | \"prerelease\";\n /** For prerelease versions, a string that becomes part of the version name. */\n readonly identifier?: string;\n }\n\n /** A [semver string](https://github.com/npm/node-semver?tab=readme-ov-file#ranges) describing a range of acceptable [[CatalogIModel]]s,\n * e.g., \">=1.2.7 <1.3.0\".\n */\n export type VersionRange = string;\n\n /** The name of the ipc channel for [[IpcMethods]]\n * @internal\n */\n export type IpcChannel = \"catalogIModel/ipc\";\n\n /** @internal */\n export interface IpcMethods {\n /** create a new container from the BlobContainerService for holding a CatalogIModel. Also uploads the seed file */\n createNewContainer(args: CreateNewContainerArgs): Promise<NewContainerProps>;\n /** Acquire the write lock for a CatalogIModel container. */\n acquireWriteLock(args: { containerId: string, username: string }): Promise<void>;\n /** Release the write lock for a CatalogIModel container. */\n releaseWriteLock(args: { containerId: string, abandon?: true }): Promise<void>;\n /** create a new version of a CatalogIModel from an existing version. */\n createNewVersion(args: CreateNewVersionArgs): Promise<{ oldDb: NameAndVersion, newDb: NameAndVersion }>;\n /** Attempt to open a CatalogIModel readonly*/\n openReadonly(args: OpenArgs): Promise<IModelConnectionProps>;\n /** Attempt to open a CatalogIModel for editing */\n openEditable(args: OpenArgs): Promise<IModelConnectionProps>;\n /** Get the manifest and version number for an open CatalogConnection. */\n getInfo(key: string): Promise<{ manifest?: CatalogIModel.Manifest, version: string }>;\n /** Update the manifest stored in an open EditableCatalog */\n updateCatalogManifest(key: string, manifest: CatalogIModel.Manifest): Promise<void>;\n }\n}\n"]}
@@ -0,0 +1,23 @@
1
+ /** @packageDocumentation
2
+ * @module DisplayStyles
3
+ */
4
+ /** Ids of [Cesium ion assets](https://cesium.com/platform/cesium-ion/content/) providing global terrain data.
5
+ * These values are appropriate to use with [[TerrainSettings.dataSource]] when [[TerrainSettings.providerName]] is set to "CesiumWorldTerrain".
6
+ * You may alternatively use the Id of any ion asset to which you have access.
7
+ * @see [[TerrainSettings.fromCesiumIonAsset]] to create TerrainSettings that obtain terrain from a specified ion asset.
8
+ * @public
9
+ */
10
+ export declare enum CesiumTerrainAssetId {
11
+ /** Default [global 3d terrain](https://cesium.com/platform/cesium-ion/content/cesium-world-terrain/). */
12
+ Default = "1",
13
+ /** Global 3d terrain that includes [bathymetry](https://cesium.com/platform/cesium-ion/content/cesium-world-bathymetry/) (seafloor) terrain. */
14
+ Bathymetry = "2426648"
15
+ }
16
+ /** Ids of [Cesium ion assets](https://cesium.com/platform/cesium-ion/content/) providing data not covered by [[CesiumTerrainAssetId]].
17
+ * @beta
18
+ */
19
+ export declare enum CesiumIonAssetId {
20
+ /** [Cesium OSM Buildings](https://cesium.com/platform/cesium-ion/content/cesium-osm-buildings/). */
21
+ OSMBuildings = "96188"
22
+ }
23
+ //# sourceMappingURL=CesiumIonAssets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CesiumIonAssets.d.ts","sourceRoot":"","sources":["../../src/CesiumIonAssets.ts"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;;;;GAKG;AACH,oBAAY,oBAAoB;IAC9B,yGAAyG;IACzG,OAAO,MAAM;IACb,gJAAgJ;IAChJ,UAAU,YAAY;CACvB;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,oGAAoG;IACpG,YAAY,UAAU;CACvB"}
@@ -0,0 +1,29 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module DisplayStyles
7
+ */
8
+ /** Ids of [Cesium ion assets](https://cesium.com/platform/cesium-ion/content/) providing global terrain data.
9
+ * These values are appropriate to use with [[TerrainSettings.dataSource]] when [[TerrainSettings.providerName]] is set to "CesiumWorldTerrain".
10
+ * You may alternatively use the Id of any ion asset to which you have access.
11
+ * @see [[TerrainSettings.fromCesiumIonAsset]] to create TerrainSettings that obtain terrain from a specified ion asset.
12
+ * @public
13
+ */
14
+ export var CesiumTerrainAssetId;
15
+ (function (CesiumTerrainAssetId) {
16
+ /** Default [global 3d terrain](https://cesium.com/platform/cesium-ion/content/cesium-world-terrain/). */
17
+ CesiumTerrainAssetId["Default"] = "1";
18
+ /** Global 3d terrain that includes [bathymetry](https://cesium.com/platform/cesium-ion/content/cesium-world-bathymetry/) (seafloor) terrain. */
19
+ CesiumTerrainAssetId["Bathymetry"] = "2426648";
20
+ })(CesiumTerrainAssetId || (CesiumTerrainAssetId = {}));
21
+ /** Ids of [Cesium ion assets](https://cesium.com/platform/cesium-ion/content/) providing data not covered by [[CesiumTerrainAssetId]].
22
+ * @beta
23
+ */
24
+ export var CesiumIonAssetId;
25
+ (function (CesiumIonAssetId) {
26
+ /** [Cesium OSM Buildings](https://cesium.com/platform/cesium-ion/content/cesium-osm-buildings/). */
27
+ CesiumIonAssetId["OSMBuildings"] = "96188";
28
+ })(CesiumIonAssetId || (CesiumIonAssetId = {}));
29
+ //# sourceMappingURL=CesiumIonAssets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CesiumIonAssets.js","sourceRoot":"","sources":["../../src/CesiumIonAssets.ts"],"names":[],"mappings":"AACA;;;+FAG+F;AAC/F;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,yGAAyG;IACzG,qCAAa,CAAA;IACb,gJAAgJ;IAChJ,8CAAsB,CAAA;AACxB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,oGAAoG;IACpG,0CAAsB,CAAA;AACxB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B","sourcesContent":["\n/*---------------------------------------------------------------------------------------------\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 DisplayStyles\n */\n\n/** Ids of [Cesium ion assets](https://cesium.com/platform/cesium-ion/content/) providing global terrain data.\n * These values are appropriate to use with [[TerrainSettings.dataSource]] when [[TerrainSettings.providerName]] is set to \"CesiumWorldTerrain\".\n * You may alternatively use the Id of any ion asset to which you have access.\n * @see [[TerrainSettings.fromCesiumIonAsset]] to create TerrainSettings that obtain terrain from a specified ion asset.\n * @public\n */\nexport enum CesiumTerrainAssetId {\n /** Default [global 3d terrain](https://cesium.com/platform/cesium-ion/content/cesium-world-terrain/). */\n Default = \"1\",\n /** Global 3d terrain that includes [bathymetry](https://cesium.com/platform/cesium-ion/content/cesium-world-bathymetry/) (seafloor) terrain. */\n Bathymetry = \"2426648\",\n}\n\n/** Ids of [Cesium ion assets](https://cesium.com/platform/cesium-ion/content/) providing data not covered by [[CesiumTerrainAssetId]].\n * @beta\n */\nexport enum CesiumIonAssetId {\n /** [Cesium OSM Buildings](https://cesium.com/platform/cesium-ion/content/cesium-osm-buildings/). */\n OSMBuildings = \"96188\",\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAWA,uBAAuB;AAEvB;;;GAGG;AACH,MAAM,CAAN,IAAY,YAeX;AAfD,WAAY,YAAY;IACtB,kCAAkC;IAClC,uDAAY,CAAA;IACZ,wCAAwC;IACxC,uDAAc,CAAA;IACd,oEAAoE;IACpE,uDAAe,CAAA;IACf,kEAAkE;IAClE,yDAAiB,CAAA;IACjB,qEAAqE;IACrE,uDAAiB,CAAA;IACjB,+CAA+C;IAC/C,oDAAgB,CAAA;IAChB,qDAAqD;IACrD,oDAAiB,CAAA;AACnB,CAAC,EAfW,YAAY,KAAZ,YAAY,QAevB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @packageDocumentation\r\n * @module Entities\r\n */\r\nimport { DbOpcode, Id64String } from \"@itwin/core-bentley\";\r\nimport { AxisAlignedBox3dProps } from \"./geometry/Placement\";\r\n\r\n// cspell:ignore bboxes\r\n\r\n/** Bitflags describing which aspects of an [Element]($backend) changed as part of a [[ChangedElements]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TypeOfChange {\r\n /** Element contains no changes */\r\n NoChange = 0,\r\n /** A property in the element changed */\r\n Property = 0b1,\r\n /** The geometry stream of a [GeometricElement]($backend) changed */\r\n Geometry = 0b10,\r\n /** The [[Placement]] of a [GeometricElement]($backend) changed */\r\n Placement = 0b100,\r\n /** Indirect change occurred to this element by a related instance */\r\n Indirect = 0b1000,\r\n /** Hidden properties of the element changed */\r\n Hidden = 0b10000,\r\n /** The top-most parent of the element has changed */\r\n Parent = 0b100000,\r\n}\r\n\r\n/** Changed elements found in a changeset or between a range of changesets.\r\n * All arrays in this object will have the same number of items.\r\n * Each index for those arrays refer to the same element, e.g. to get the class Id of\r\n * the element given by element Id changedElements.elements[index], you can use changedElements.classIds[index].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangedElements {\r\n /** Ids of elements that changed */\r\n elements: Id64String[];\r\n /** ECClass Ids of elements that changed */\r\n classIds: Id64String[];\r\n /** Operation that occurred on the element. Whether the element was inserted, updated or deleted.\r\n * See [DbOpcode]($core-bentley)\r\n */\r\n opcodes: DbOpcode[];\r\n /** Type of change bitflags, see [[TypeOfChange]] */\r\n type: TypeOfChange[];\r\n /** Model Ids of the changed elements\r\n * This may be undefined if the agent that did the processing job did not export model Ids\r\n */\r\n modelIds?: Id64String[];\r\n /** Property accessor strings of properties that changed, if any, for each changed element\r\n * This may be undefined if the agent that did the processing job did not export properties\r\n */\r\n properties?: string[][];\r\n /** Before state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n oldChecksums?: number[][];\r\n /** After state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n newChecksums?: number[][];\r\n /**\r\n * Parent ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentIds?: Id64String[];\r\n /**\r\n * Parent ECClass Ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentClassIds?: Id64String[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangedModels {\r\n modelIds: Id64String[];\r\n bboxes: AxisAlignedBox3dProps[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangeData {\r\n changedElements: ChangedElements;\r\n changedModels: ChangedModels;\r\n}\r\n"]}
1
+ {"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAWA,uBAAuB;AAEvB;;;GAGG;AACH,MAAM,CAAN,IAAY,YAeX;AAfD,WAAY,YAAY;IACtB,kCAAkC;IAClC,uDAAY,CAAA;IACZ,wCAAwC;IACxC,uDAAc,CAAA;IACd,oEAAoE;IACpE,uDAAe,CAAA;IACf,kEAAkE;IAClE,yDAAiB,CAAA;IACjB,qEAAqE;IACrE,uDAAiB,CAAA;IACjB,+CAA+C;IAC/C,oDAAgB,CAAA;IAChB,qDAAqD;IACrD,oDAAiB,CAAA;AACnB,CAAC,EAfW,YAAY,KAAZ,YAAY,QAevB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/**\n * @packageDocumentation\n * @module Entities\n */\nimport { DbOpcode, Id64String } from \"@itwin/core-bentley\";\nimport { AxisAlignedBox3dProps } from \"./geometry/Placement\";\n\n// cspell:ignore bboxes\n\n/** Bitflags describing which aspects of an [Element]($backend) changed as part of a [[ChangedElements]].\n * @public\n * @extensions\n */\nexport enum TypeOfChange {\n /** Element contains no changes */\n NoChange = 0,\n /** A property in the element changed */\n Property = 0b1,\n /** The geometry stream of a [GeometricElement]($backend) changed */\n Geometry = 0b10,\n /** The [[Placement]] of a [GeometricElement]($backend) changed */\n Placement = 0b100,\n /** Indirect change occurred to this element by a related instance */\n Indirect = 0b1000,\n /** Hidden properties of the element changed */\n Hidden = 0b10000,\n /** The top-most parent of the element has changed */\n Parent = 0b100000,\n}\n\n/** Changed elements found in a changeset or between a range of changesets.\n * All arrays in this object will have the same number of items.\n * Each index for those arrays refer to the same element, e.g. to get the class Id of\n * the element given by element Id changedElements.elements[index], you can use changedElements.classIds[index].\n * @public\n * @extensions\n */\nexport interface ChangedElements {\n /** Ids of elements that changed */\n elements: Id64String[];\n /** ECClass Ids of elements that changed */\n classIds: Id64String[];\n /** Operation that occurred on the element. Whether the element was inserted, updated or deleted.\n * See [DbOpcode]($core-bentley)\n */\n opcodes: DbOpcode[];\n /** Type of change bitflags, see [[TypeOfChange]] */\n type: TypeOfChange[];\n /** Model Ids of the changed elements\n * This may be undefined if the agent that did the processing job did not export model Ids\n */\n modelIds?: Id64String[];\n /** Property accessor strings of properties that changed, if any, for each changed element\n * This may be undefined if the agent that did the processing job did not export properties\n */\n properties?: string[][];\n /** Before state checksums of the property value\n * Useful to determine if property values have changed\n * between the versions being inspected\n * This may be undefined if the agent that did the processing job did not export checksums\n */\n oldChecksums?: number[][];\n /** After state checksums of the property value\n * Useful to determine if property values have changed\n * between the versions being inspected\n * This may be undefined if the agent that did the processing job did not export checksums\n */\n newChecksums?: number[][];\n /**\n * Parent ids of the changed elements\n * Will be \"0\" if the element has no parent\n * This may be undefined if the agent that did the processing job did not export parent information\n */\n parentIds?: Id64String[];\n /**\n * Parent ECClass Ids of the changed elements\n * Will be \"0\" if the element has no parent\n * This may be undefined if the agent that did the processing job did not export parent information\n */\n parentClassIds?: Id64String[];\n}\n\n/** @internal */\nexport interface ChangedModels {\n modelIds: Id64String[];\n bboxes: AxisAlignedBox3dProps[];\n}\n\n/** @internal */\nexport interface ChangeData {\n changedElements: ChangedElements;\n changedModels: ChangedModels;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedEntities.js","sourceRoot":"","sources":["../../src/ChangedEntities.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module NativeApp\r\n */\r\n\r\nimport { CompressedId64Set, Id64String } from \"@itwin/core-bentley\";\r\n\r\n/** Describes an [Entity]($backend) and its [ECClass]($docs/bis/guide/references/glossary/#ecclass) by Id.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface EntityIdAndClassId {\r\n /** The entity's Id. */\r\n id: Id64String;\r\n /** The Id of the entity's ECClass. */\r\n classId: Id64String;\r\n}\r\n\r\n/** JSON representation of the set of [Element]($backend)s or [Model]($backend)s that were changed by a [Txn]($docs/learning/InteractiveEditing.md).\r\n * @see [TxnManager.onElementsChanged]($backend) and [TxnManager.onModelsChanged]($backend).\r\n * @see [BriefcaseTxns.onElementsChanged]($frontend) and [BriefcaseTxns.onModelsChanged]($frontend).\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangedEntities {\r\n /** The ids of entities that were inserted during the Txn. */\r\n inserted?: CompressedId64Set;\r\n /** The ids of entities that were deleted during the Txn. */\r\n deleted?: CompressedId64Set;\r\n /** The ids of entities that were modified during the Txn, including any [Element]($backend)s for which one of their [ElementAspect]($backend)s was changed. */\r\n updated?: CompressedId64Set;\r\n}\r\n\r\n/** A collection of [[EntityIdAndClassId]]s, as used by [TxnChangedEntities]($backend).\r\n * For efficiency, the iterator supplied by this iterable returns **the same `EntityIdAndClassId` object** on each iteration. Therefore the objects must be copied if you\r\n * intend to store references to them. For example, to populate an array from the iterable:\r\n * ```ts\r\n * function arrayFromIterable(entities: EntityIdAndClassIdIterable): EntityIdAndClassId[] {\r\n * // NO! return Array.from(entities);\r\n * const array = [];\r\n * for (const entity of entities)\r\n * array.push({...entity});\r\n *\r\n * return array;\r\n * }\r\n * ```\r\n * @public\r\n * @extensions\r\n */\r\nexport type EntityIdAndClassIdIterable = Iterable<Readonly<EntityIdAndClassId>>;\r\n"]}
1
+ {"version":3,"file":"ChangedEntities.js","sourceRoot":"","sources":["../../src/ChangedEntities.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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 { CompressedId64Set, Id64String } from \"@itwin/core-bentley\";\n\n/** Describes an [Entity]($backend) and its [ECClass]($docs/bis/guide/references/glossary/#ecclass) by Id.\n * @public\n * @extensions\n */\nexport interface EntityIdAndClassId {\n /** The entity's Id. */\n id: Id64String;\n /** The Id of the entity's ECClass. */\n classId: Id64String;\n}\n\n/** JSON representation of the set of [Element]($backend)s or [Model]($backend)s that were changed by a [Txn]($docs/learning/InteractiveEditing.md).\n * @see [TxnManager.onElementsChanged]($backend) and [TxnManager.onModelsChanged]($backend).\n * @see [BriefcaseTxns.onElementsChanged]($frontend) and [BriefcaseTxns.onModelsChanged]($frontend).\n * @public\n * @extensions\n */\nexport interface ChangedEntities {\n /** The ids of entities that were inserted during the Txn. */\n inserted?: CompressedId64Set;\n /** The ids of entities that were deleted during the Txn. */\n deleted?: CompressedId64Set;\n /** The ids of entities that were modified during the Txn, including any [Element]($backend)s for which one of their [ElementAspect]($backend)s was changed. */\n updated?: CompressedId64Set;\n}\n\n/** A collection of [[EntityIdAndClassId]]s, as used by [TxnChangedEntities]($backend).\n * For efficiency, the iterator supplied by this iterable returns **the same `EntityIdAndClassId` object** on each iteration. Therefore the objects must be copied if you\n * intend to store references to them. For example, to populate an array from the iterable:\n * ```ts\n * function arrayFromIterable(entities: EntityIdAndClassIdIterable): EntityIdAndClassId[] {\n * // NO! return Array.from(entities);\n * const array = [];\n * for (const entity of entities)\n * array.push({...entity});\n *\n * return array;\n * }\n * ```\n * @public\n * @extensions\n */\nexport type EntityIdAndClassIdIterable = Iterable<Readonly<EntityIdAndClassId>>;\n"]}
@@ -81,7 +81,7 @@ export interface ChangesetProps {
81
81
  size: number;
82
82
  }
83
83
  /** Properties of a changeset file
84
- * @internal
84
+ * @public
85
85
  */
86
86
  export interface ChangesetFileProps extends ChangesetProps {
87
87
  /** The full pathname of the local file holding this changeset. */
@@ -1 +1 @@
1
- {"version":3,"file":"ChangesetProps.js","sourceRoot":"","sources":["../../src/ChangesetProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;;GAGG;AAuCH;;;GAGG;AACH,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,mDAAmD;IACnD,uDAAW,CAAA;IACX,+CAA+C;IAC/C,qDAAU,CAAA;IACV,gEAAgE;IAChE,8DAAwB,CAAA;AAC1B,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/**\r\n * @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\n/** @public */\r\nexport type LocalFileName = string;\r\n/** @public */\r\nexport type LocalDirName = string;\r\n\r\n/** A string that identifies a changeset.\r\n * @note this string is *not* a Guid. It is generated internally based on the content of the changeset.\r\n * @public\r\n * @extensions\r\n */\r\nexport type ChangesetId = string;\r\n\r\n/** The index of a changeset, assigned by iModelHub.\r\n * @note 0 means \"before the first changeset.\" Values less than 0 are invalid.\r\n * @public\r\n * @extensions\r\n */\r\nexport type ChangesetIndex = number;\r\n\r\n/** Both the index and Id of a changeset\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangesetIndexAndId { readonly index: ChangesetIndex, readonly id: ChangesetId }\r\n\r\n/** The Id and optionally the index of a changeset\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangesetIdWithIndex { readonly index?: ChangesetIndex, readonly id: ChangesetId }\r\n\r\n/** either changeset index, id, or both\r\n* @public\r\n * @extensions\r\n*/\r\nexport type ChangesetIndexOrId = ChangesetIndexAndId | { readonly index: ChangesetIndex, readonly id?: never } | { readonly id: ChangesetId, readonly index?: never };\r\n\r\n/** Value to indicate whether a changeset contains schema changes or not\r\n * @public\r\n * @extensions\r\n */\r\nexport enum ChangesetType {\r\n /** changeset does *not* contain schema changes. */\r\n Regular = 0,\r\n /** changeset *does* contain schema changes. */\r\n Schema = 1,\r\n /** Schema changeset pushed by iModel with SchemaSync enabled */\r\n SchemaSync = Schema | 64,\r\n}\r\n\r\n/** Properties of a changeset\r\n * @public\r\n */\r\nexport interface ChangesetProps {\r\n /** The index (sequence number) from IModelHub for this changeset. Larger index values were pushed later. */\r\n index: ChangesetIndex;\r\n /** the ChangesetId */\r\n id: ChangesetId;\r\n /** the ChangeSetId of the parent changeset of this changeset */\r\n parentId: ChangesetId;\r\n /** The type of changeset */\r\n changesType: ChangesetType;\r\n /** The user-supplied description of the work this changeset holds */\r\n description: string;\r\n /** The BriefcaseId of the briefcase that created this changeset */\r\n briefcaseId: number;\r\n /** The date this changeset was uploaded to the hub */\r\n pushDate: string;\r\n /** The identity of the user that created this changeset */\r\n userCreated: string;\r\n /** The size, in bytes, of this changeset */\r\n size: number;\r\n}\r\n\r\n/** Properties of a changeset file\r\n * @internal\r\n */\r\nexport interface ChangesetFileProps extends ChangesetProps {\r\n /** The full pathname of the local file holding this changeset. */\r\n pathname: LocalFileName;\r\n}\r\n\r\n/**\r\n * A range of changesets\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangesetRange {\r\n /** index of the first changeset */\r\n first: ChangesetIndex;\r\n /** index of last changeset. If undefined, all changesets after first are returned. */\r\n end?: ChangesetIndex;\r\n}\r\n"]}
1
+ {"version":3,"file":"ChangesetProps.js","sourceRoot":"","sources":["../../src/ChangesetProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;;GAGG;AAuCH;;;GAGG;AACH,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,mDAAmD;IACnD,uDAAW,CAAA;IACX,+CAA+C;IAC/C,qDAAU,CAAA;IACV,gEAAgE;IAChE,8DAAwB,CAAA;AAC1B,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/**\n * @packageDocumentation\n * @module iModels\n */\n\n/** @public */\nexport type LocalFileName = string;\n/** @public */\nexport type LocalDirName = string;\n\n/** A string that identifies a changeset.\n * @note this string is *not* a Guid. It is generated internally based on the content of the changeset.\n * @public\n * @extensions\n */\nexport type ChangesetId = string;\n\n/** The index of a changeset, assigned by iModelHub.\n * @note 0 means \"before the first changeset.\" Values less than 0 are invalid.\n * @public\n * @extensions\n */\nexport type ChangesetIndex = number;\n\n/** Both the index and Id of a changeset\n * @public\n * @extensions\n */\nexport interface ChangesetIndexAndId { readonly index: ChangesetIndex, readonly id: ChangesetId }\n\n/** The Id and optionally the index of a changeset\n * @public\n * @extensions\n */\nexport interface ChangesetIdWithIndex { readonly index?: ChangesetIndex, readonly id: ChangesetId }\n\n/** either changeset index, id, or both\n* @public\n * @extensions\n*/\nexport type ChangesetIndexOrId = ChangesetIndexAndId | { readonly index: ChangesetIndex, readonly id?: never } | { readonly id: ChangesetId, readonly index?: never };\n\n/** Value to indicate whether a changeset contains schema changes or not\n * @public\n * @extensions\n */\nexport enum ChangesetType {\n /** changeset does *not* contain schema changes. */\n Regular = 0,\n /** changeset *does* contain schema changes. */\n Schema = 1,\n /** Schema changeset pushed by iModel with SchemaSync enabled */\n SchemaSync = Schema | 64,\n}\n\n/** Properties of a changeset\n * @public\n */\nexport interface ChangesetProps {\n /** The index (sequence number) from IModelHub for this changeset. Larger index values were pushed later. */\n index: ChangesetIndex;\n /** the ChangesetId */\n id: ChangesetId;\n /** the ChangeSetId of the parent changeset of this changeset */\n parentId: ChangesetId;\n /** The type of changeset */\n changesType: ChangesetType;\n /** The user-supplied description of the work this changeset holds */\n description: string;\n /** The BriefcaseId of the briefcase that created this changeset */\n briefcaseId: number;\n /** The date this changeset was uploaded to the hub */\n pushDate: string;\n /** The identity of the user that created this changeset */\n userCreated: string;\n /** The size, in bytes, of this changeset */\n size: number;\n}\n\n/** Properties of a changeset file\n * @public\n */\nexport interface ChangesetFileProps extends ChangesetProps {\n /** The full pathname of the local file holding this changeset. */\n pathname: LocalFileName;\n}\n\n/**\n * A range of changesets\n * @public\n * @extensions\n */\nexport interface ChangesetRange {\n /** index of the first changeset */\n first: ChangesetIndex;\n /** index of last changeset. If undefined, all changesets after first are returned. */\n end?: ChangesetIndex;\n}\n"]}
@@ -15,6 +15,14 @@ import { ColorDef } from "./ColorDef";
15
15
  * @public
16
16
  */
17
17
  export class CutStyle {
18
+ /** Selectively overrides some of the view's [[ViewFlags]] when drawing the section-cut graphics. */
19
+ viewflags;
20
+ /** If defined, overrides the settings the view uses to draw the edges of the section-cut graphics. */
21
+ hiddenLine;
22
+ /** If defined, overrides aspects of the symbology of the section-cut graphics. */
23
+ appearance;
24
+ /** The default CutStyle, configured to draw the section-cut graphics using the view's settings, with no overrides. */
25
+ static defaults = new CutStyle();
18
26
  constructor(viewflags, hiddenLine, appearance) {
19
27
  this.viewflags = viewflags ?? {};
20
28
  if (hiddenLine && !hiddenLine.matchesDefaults)
@@ -59,14 +67,16 @@ export class CutStyle {
59
67
  return !JsonUtils.isNonEmptyObject(this.viewflags) && (!this.hiddenLine || this.hiddenLine.matchesDefaults) && (!this.appearance || this.appearance.matchesDefaults);
60
68
  }
61
69
  }
62
- /** The default CutStyle, configured to draw the section-cut graphics using the view's settings, with no overrides. */
63
- CutStyle.defaults = new CutStyle();
64
70
  /** As part of a [[ClipStyle]], describes how to colorize geometry intersecting the clip planes.
65
71
  * @note Edges are highlighted only if [[ClipStyle.ClipIntersectionStyle]] is `true`.
66
72
  * @public
67
73
  * @extensions
68
74
  */
69
75
  export class ClipIntersectionStyle {
76
+ /** Color to apply to intersection of geometry and clip planes, default white */
77
+ color;
78
+ /** Number of pixels to be considered intersecting the clip plane, default 1 */
79
+ width;
70
80
  constructor(color = RgbColor.fromColorDef(ColorDef.white), width = 1) {
71
81
  this.color = color;
72
82
  this.width = width;
@@ -77,6 +87,7 @@ export class ClipIntersectionStyle {
77
87
  return this.defaults;
78
88
  return new ClipIntersectionStyle(color, width);
79
89
  }
90
+ static defaults = new ClipIntersectionStyle();
80
91
  static fromJSON(props) {
81
92
  if (props === undefined) {
82
93
  return ClipIntersectionStyle.defaults;
@@ -103,12 +114,29 @@ export class ClipIntersectionStyle {
103
114
  return !this.color && !this.width;
104
115
  }
105
116
  }
106
- ClipIntersectionStyle.defaults = new ClipIntersectionStyle();
107
117
  /** Describes symbology and behavior applied to a [ClipVector]($core-geometry) when applied to a [ViewState]($frontend) or [[ModelClipGroup]].
108
118
  * @see [[DisplayStyleSettings.clipStyle]].
109
119
  * @public
110
120
  */
111
121
  export class ClipStyle {
122
+ /** If `true`, geometry will be produced at the clip planes.
123
+ * - Solids (closed volumes) will produce facets on the clip planes.
124
+ * - Other surfaces will produce line strings representing the edges of the surface at the clip planes.
125
+ * @note Cut geometry will only be produced for element geometry - not for, e.g., terrain or reality models.
126
+ */
127
+ produceCutGeometry;
128
+ /** If 'true', intersection of geometry and clip planes will be colorized */
129
+ colorizeIntersection;
130
+ /** Controls aspects of how the cut geometry is displayed, if [[produceCutGeometry]] is `true`. */
131
+ cutStyle;
132
+ /** If defined, geometry inside the clip planes will be drawn in this color. */
133
+ insideColor;
134
+ /** If defined, geometry outside of the clip planes will be drawn in this color instead of being clipped. */
135
+ outsideColor;
136
+ /** Controls the style of the intersection of geometry and clip planes */
137
+ intersectionStyle;
138
+ /** The default style, which overrides none of the view's settings. */
139
+ static defaults = new ClipStyle(false, false, CutStyle.defaults, undefined, undefined, undefined);
112
140
  constructor(produceCutGeometry, colorizeIntersection, cutStyle, inside, outside, intersectionStyle) {
113
141
  this.produceCutGeometry = produceCutGeometry;
114
142
  this.colorizeIntersection = colorizeIntersection;
@@ -175,6 +203,4 @@ export class ClipStyle {
175
203
  return !this.produceCutGeometry && !this.colorizeIntersection && !this.insideColor && !this.outsideColor && this.cutStyle.matchesDefaults && !this.intersectionStyle;
176
204
  }
177
205
  }
178
- /** The default style, which overrides none of the view's settings. */
179
- ClipStyle.defaults = new ClipStyle(false, false, CutStyle.defaults, undefined, undefined, undefined);
180
206
  //# sourceMappingURL=ClipStyle.js.map