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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (632) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/lib/cjs/AnalysisStyle.d.ts +3 -0
  3. package/lib/cjs/AnalysisStyle.d.ts.map +1 -1
  4. package/lib/cjs/AnalysisStyle.js.map +1 -1
  5. package/lib/cjs/BackgroundMapProvider.d.ts +6 -0
  6. package/lib/cjs/BackgroundMapProvider.d.ts.map +1 -1
  7. package/lib/cjs/BackgroundMapProvider.js +10 -0
  8. package/lib/cjs/BackgroundMapProvider.js.map +1 -1
  9. package/lib/cjs/BackgroundMapSettings.d.ts +4 -0
  10. package/lib/cjs/BackgroundMapSettings.d.ts.map +1 -1
  11. package/lib/cjs/BackgroundMapSettings.js +1 -0
  12. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  13. package/lib/cjs/Base64EncodedString.d.ts +1 -0
  14. package/lib/cjs/Base64EncodedString.d.ts.map +1 -1
  15. package/lib/cjs/Base64EncodedString.js.map +1 -1
  16. package/lib/cjs/BriefcaseTypes.d.ts +5 -0
  17. package/lib/cjs/BriefcaseTypes.d.ts.map +1 -1
  18. package/lib/cjs/BriefcaseTypes.js +2 -0
  19. package/lib/cjs/BriefcaseTypes.js.map +1 -1
  20. package/lib/cjs/Camera.d.ts +1 -0
  21. package/lib/cjs/Camera.d.ts.map +1 -1
  22. package/lib/cjs/Camera.js.map +1 -1
  23. package/lib/cjs/ChangedElements.d.ts +2 -0
  24. package/lib/cjs/ChangedElements.d.ts.map +1 -1
  25. package/lib/cjs/ChangedElements.js +1 -0
  26. package/lib/cjs/ChangedElements.js.map +1 -1
  27. package/lib/cjs/ChangedEntities.d.ts +3 -0
  28. package/lib/cjs/ChangedEntities.d.ts.map +1 -1
  29. package/lib/cjs/ChangedEntities.js.map +1 -1
  30. package/lib/cjs/ChangesetProps.d.ts +9 -1
  31. package/lib/cjs/ChangesetProps.d.ts.map +1 -1
  32. package/lib/cjs/ChangesetProps.js +3 -1
  33. package/lib/cjs/ChangesetProps.js.map +1 -1
  34. package/lib/cjs/ClipStyle.d.ts +2 -0
  35. package/lib/cjs/ClipStyle.d.ts.map +1 -1
  36. package/lib/cjs/ClipStyle.js.map +1 -1
  37. package/lib/cjs/CloudStorage.d.ts.map +1 -1
  38. package/lib/cjs/CloudStorage.js +14 -20
  39. package/lib/cjs/CloudStorage.js.map +1 -1
  40. package/lib/cjs/Code.d.ts +3 -0
  41. package/lib/cjs/Code.d.ts.map +1 -1
  42. package/lib/cjs/Code.js +1 -0
  43. package/lib/cjs/Code.js.map +1 -1
  44. package/lib/cjs/ColorByName.d.ts +153 -152
  45. package/lib/cjs/ColorByName.d.ts.map +1 -1
  46. package/lib/cjs/ColorByName.js +153 -153
  47. package/lib/cjs/ColorByName.js.map +1 -1
  48. package/lib/cjs/ColorDef.d.ts +55 -46
  49. package/lib/cjs/ColorDef.d.ts.map +1 -1
  50. package/lib/cjs/ColorDef.js +49 -31
  51. package/lib/cjs/ColorDef.js.map +1 -1
  52. package/lib/cjs/CommonLoggerCategory.d.ts +1 -0
  53. package/lib/cjs/CommonLoggerCategory.d.ts.map +1 -1
  54. package/lib/cjs/CommonLoggerCategory.js +1 -0
  55. package/lib/cjs/CommonLoggerCategory.js.map +1 -1
  56. package/lib/cjs/ConcurrentQuery.d.ts +6 -1
  57. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  58. package/lib/cjs/ConcurrentQuery.js +1 -0
  59. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  60. package/lib/cjs/ContextRealityModel.d.ts +2 -0
  61. package/lib/cjs/ContextRealityModel.d.ts.map +1 -1
  62. package/lib/cjs/ContextRealityModel.js.map +1 -1
  63. package/lib/cjs/DisplayStyleSettings.d.ts +10 -0
  64. package/lib/cjs/DisplayStyleSettings.d.ts.map +1 -1
  65. package/lib/cjs/DisplayStyleSettings.js +1 -0
  66. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  67. package/lib/cjs/ECSqlTypes.d.ts +6 -0
  68. package/lib/cjs/ECSqlTypes.d.ts.map +1 -1
  69. package/lib/cjs/ECSqlTypes.js +4 -0
  70. package/lib/cjs/ECSqlTypes.js.map +1 -1
  71. package/lib/cjs/ElementProps.d.ts +37 -1
  72. package/lib/cjs/ElementProps.d.ts.map +1 -1
  73. package/lib/cjs/ElementProps.js +2 -0
  74. package/lib/cjs/ElementProps.js.map +1 -1
  75. package/lib/cjs/EmphasizeElementsProps.d.ts +3 -0
  76. package/lib/cjs/EmphasizeElementsProps.d.ts.map +1 -1
  77. package/lib/cjs/EmphasizeElementsProps.js +1 -0
  78. package/lib/cjs/EmphasizeElementsProps.js.map +1 -1
  79. package/lib/cjs/EntityProps.d.ts +4 -0
  80. package/lib/cjs/EntityProps.d.ts.map +1 -1
  81. package/lib/cjs/EntityProps.js.map +1 -1
  82. package/lib/cjs/Environment.d.ts +1 -0
  83. package/lib/cjs/Environment.d.ts.map +1 -1
  84. package/lib/cjs/Environment.js.map +1 -1
  85. package/lib/cjs/FeatureSymbology.d.ts +3 -0
  86. package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
  87. package/lib/cjs/FeatureSymbology.js.map +1 -1
  88. package/lib/cjs/FeatureTable.d.ts +1 -0
  89. package/lib/cjs/FeatureTable.d.ts.map +1 -1
  90. package/lib/cjs/FeatureTable.js +1 -0
  91. package/lib/cjs/FeatureTable.js.map +1 -1
  92. package/lib/cjs/Fonts.d.ts +3 -0
  93. package/lib/cjs/Fonts.d.ts.map +1 -1
  94. package/lib/cjs/Fonts.js +1 -0
  95. package/lib/cjs/Fonts.js.map +1 -1
  96. package/lib/cjs/Frustum.d.ts +1 -0
  97. package/lib/cjs/Frustum.d.ts.map +1 -1
  98. package/lib/cjs/Frustum.js +1 -0
  99. package/lib/cjs/Frustum.js.map +1 -1
  100. package/lib/cjs/GeoCoordinateServices.d.ts +1 -0
  101. package/lib/cjs/GeoCoordinateServices.d.ts.map +1 -1
  102. package/lib/cjs/GeoCoordinateServices.js +1 -0
  103. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  104. package/lib/cjs/GeometryContainment.d.ts +2 -0
  105. package/lib/cjs/GeometryContainment.d.ts.map +1 -1
  106. package/lib/cjs/GeometryContainment.js.map +1 -1
  107. package/lib/cjs/GeometryParams.d.ts +3 -0
  108. package/lib/cjs/GeometryParams.d.ts.map +1 -1
  109. package/lib/cjs/GeometryParams.js +3 -0
  110. package/lib/cjs/GeometryParams.js.map +1 -1
  111. package/lib/cjs/GeometrySummary.d.ts +3 -0
  112. package/lib/cjs/GeometrySummary.d.ts.map +1 -1
  113. package/lib/cjs/GeometrySummary.js +1 -0
  114. package/lib/cjs/GeometrySummary.js.map +1 -1
  115. package/lib/cjs/GraphicParams.d.ts +1 -0
  116. package/lib/cjs/GraphicParams.d.ts.map +1 -1
  117. package/lib/cjs/GraphicParams.js +1 -0
  118. package/lib/cjs/GraphicParams.js.map +1 -1
  119. package/lib/cjs/GroundPlane.d.ts +1 -0
  120. package/lib/cjs/GroundPlane.d.ts.map +1 -1
  121. package/lib/cjs/GroundPlane.js.map +1 -1
  122. package/lib/cjs/HSVColor.d.ts +4 -1
  123. package/lib/cjs/HSVColor.d.ts.map +1 -1
  124. package/lib/cjs/HSVColor.js +4 -1
  125. package/lib/cjs/HSVColor.js.map +1 -1
  126. package/lib/cjs/IModel.d.ts +6 -1
  127. package/lib/cjs/IModel.d.ts.map +1 -1
  128. package/lib/cjs/IModel.js.map +1 -1
  129. package/lib/cjs/Image.d.ts +2 -0
  130. package/lib/cjs/Image.d.ts.map +1 -1
  131. package/lib/cjs/Image.js +2 -0
  132. package/lib/cjs/Image.js.map +1 -1
  133. package/lib/cjs/IpcAppProps.d.ts +1 -0
  134. package/lib/cjs/IpcAppProps.d.ts.map +1 -1
  135. package/lib/cjs/IpcAppProps.js.map +1 -1
  136. package/lib/cjs/LightSettings.d.ts +5 -0
  137. package/lib/cjs/LightSettings.d.ts.map +1 -1
  138. package/lib/cjs/LightSettings.js.map +1 -1
  139. package/lib/cjs/LinePixels.d.ts +1 -0
  140. package/lib/cjs/LinePixels.d.ts.map +1 -1
  141. package/lib/cjs/LinePixels.js +1 -0
  142. package/lib/cjs/LinePixels.js.map +1 -1
  143. package/lib/cjs/Localization.d.ts +1 -0
  144. package/lib/cjs/Localization.d.ts.map +1 -1
  145. package/lib/cjs/Localization.js.map +1 -1
  146. package/lib/cjs/MassProperties.d.ts +27 -1
  147. package/lib/cjs/MassProperties.d.ts.map +1 -1
  148. package/lib/cjs/MassProperties.js +1 -0
  149. package/lib/cjs/MassProperties.js.map +1 -1
  150. package/lib/cjs/MaterialProps.d.ts +6 -0
  151. package/lib/cjs/MaterialProps.d.ts.map +1 -1
  152. package/lib/cjs/MaterialProps.js +1 -0
  153. package/lib/cjs/MaterialProps.js.map +1 -1
  154. package/lib/cjs/ModelClipGroup.d.ts +1 -0
  155. package/lib/cjs/ModelClipGroup.d.ts.map +1 -1
  156. package/lib/cjs/ModelClipGroup.js.map +1 -1
  157. package/lib/cjs/ModelGeometryChanges.d.ts +9 -1
  158. package/lib/cjs/ModelGeometryChanges.d.ts.map +1 -1
  159. package/lib/cjs/ModelGeometryChanges.js.map +1 -1
  160. package/lib/cjs/ModelProps.d.ts +6 -0
  161. package/lib/cjs/ModelProps.d.ts.map +1 -1
  162. package/lib/cjs/ModelProps.js.map +1 -1
  163. package/lib/cjs/PlanProjectionSettings.d.ts +1 -0
  164. package/lib/cjs/PlanProjectionSettings.d.ts.map +1 -1
  165. package/lib/cjs/PlanProjectionSettings.js.map +1 -1
  166. package/lib/cjs/PlanarClipMask.d.ts +3 -0
  167. package/lib/cjs/PlanarClipMask.d.ts.map +1 -1
  168. package/lib/cjs/PlanarClipMask.js +2 -0
  169. package/lib/cjs/PlanarClipMask.js.map +1 -1
  170. package/lib/cjs/RgbColor.d.ts +1 -0
  171. package/lib/cjs/RgbColor.d.ts.map +1 -1
  172. package/lib/cjs/RgbColor.js.map +1 -1
  173. package/lib/cjs/SessionProps.d.ts +1 -0
  174. package/lib/cjs/SessionProps.d.ts.map +1 -1
  175. package/lib/cjs/SessionProps.js.map +1 -1
  176. package/lib/cjs/SkyBox.d.ts +4 -0
  177. package/lib/cjs/SkyBox.d.ts.map +1 -1
  178. package/lib/cjs/SkyBox.js +1 -0
  179. package/lib/cjs/SkyBox.js.map +1 -1
  180. package/lib/cjs/SolarShadows.d.ts +1 -0
  181. package/lib/cjs/SolarShadows.d.ts.map +1 -1
  182. package/lib/cjs/SolarShadows.js.map +1 -1
  183. package/lib/cjs/SpatialClassification.d.ts +5 -0
  184. package/lib/cjs/SpatialClassification.d.ts.map +1 -1
  185. package/lib/cjs/SpatialClassification.js +2 -0
  186. package/lib/cjs/SpatialClassification.js.map +1 -1
  187. package/lib/cjs/TerrainSettings.d.ts +3 -0
  188. package/lib/cjs/TerrainSettings.d.ts.map +1 -1
  189. package/lib/cjs/TerrainSettings.js +1 -0
  190. package/lib/cjs/TerrainSettings.js.map +1 -1
  191. package/lib/cjs/TextureProps.d.ts +3 -0
  192. package/lib/cjs/TextureProps.d.ts.map +1 -1
  193. package/lib/cjs/TextureProps.js.map +1 -1
  194. package/lib/cjs/ThematicDisplay.d.ts +9 -1
  195. package/lib/cjs/ThematicDisplay.d.ts.map +1 -1
  196. package/lib/cjs/ThematicDisplay.js +5 -1
  197. package/lib/cjs/ThematicDisplay.js.map +1 -1
  198. package/lib/cjs/Thumbnail.d.ts +2 -0
  199. package/lib/cjs/Thumbnail.d.ts.map +1 -1
  200. package/lib/cjs/Thumbnail.js.map +1 -1
  201. package/lib/cjs/TileProps.d.ts +1 -0
  202. package/lib/cjs/TileProps.d.ts.map +1 -1
  203. package/lib/cjs/TileProps.js.map +1 -1
  204. package/lib/cjs/Tween.d.ts +16 -4
  205. package/lib/cjs/Tween.d.ts.map +1 -1
  206. package/lib/cjs/Tween.js.map +1 -1
  207. package/lib/cjs/TxnAction.d.ts +1 -0
  208. package/lib/cjs/TxnAction.d.ts.map +1 -1
  209. package/lib/cjs/TxnAction.js +1 -0
  210. package/lib/cjs/TxnAction.js.map +1 -1
  211. package/lib/cjs/ViewDetails.d.ts +3 -0
  212. package/lib/cjs/ViewDetails.d.ts.map +1 -1
  213. package/lib/cjs/ViewDetails.js +1 -0
  214. package/lib/cjs/ViewDetails.js.map +1 -1
  215. package/lib/cjs/ViewFlags.d.ts +4 -0
  216. package/lib/cjs/ViewFlags.d.ts.map +1 -1
  217. package/lib/cjs/ViewFlags.js +1 -0
  218. package/lib/cjs/ViewFlags.js.map +1 -1
  219. package/lib/cjs/ViewProps.d.ts +69 -3
  220. package/lib/cjs/ViewProps.d.ts.map +1 -1
  221. package/lib/cjs/ViewProps.js.map +1 -1
  222. package/lib/cjs/WhiteOnWhiteReversalSettings.d.ts +1 -0
  223. package/lib/cjs/WhiteOnWhiteReversalSettings.d.ts.map +1 -1
  224. package/lib/cjs/WhiteOnWhiteReversalSettings.js.map +1 -1
  225. package/lib/cjs/domains/FunctionalElementProps.d.ts +4 -1
  226. package/lib/cjs/domains/FunctionalElementProps.d.ts.map +1 -1
  227. package/lib/cjs/domains/FunctionalElementProps.js.map +1 -1
  228. package/lib/cjs/domains/GenericElementProps.d.ts +8 -2
  229. package/lib/cjs/domains/GenericElementProps.d.ts.map +1 -1
  230. package/lib/cjs/domains/GenericElementProps.js.map +1 -1
  231. package/lib/cjs/geometry/AdditionalTransform.d.ts +2 -0
  232. package/lib/cjs/geometry/AdditionalTransform.d.ts.map +1 -1
  233. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  234. package/lib/cjs/geometry/Cartographic.d.ts +1 -0
  235. package/lib/cjs/geometry/Cartographic.d.ts.map +1 -1
  236. package/lib/cjs/geometry/Cartographic.js.map +1 -1
  237. package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts +5 -0
  238. package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
  239. package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
  240. package/lib/cjs/geometry/ElementGeometry.d.ts +2 -0
  241. package/lib/cjs/geometry/ElementGeometry.d.ts.map +1 -1
  242. package/lib/cjs/geometry/ElementGeometry.js +1 -0
  243. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  244. package/lib/cjs/geometry/GeodeticDatum.d.ts +80 -1
  245. package/lib/cjs/geometry/GeodeticDatum.d.ts.map +1 -1
  246. package/lib/cjs/geometry/GeodeticDatum.js +79 -1
  247. package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
  248. package/lib/cjs/geometry/GeodeticEllipsoid.d.ts +1 -0
  249. package/lib/cjs/geometry/GeodeticEllipsoid.d.ts.map +1 -1
  250. package/lib/cjs/geometry/GeodeticEllipsoid.js.map +1 -1
  251. package/lib/cjs/geometry/GeometryStream.d.ts +15 -0
  252. package/lib/cjs/geometry/GeometryStream.d.ts.map +1 -1
  253. package/lib/cjs/geometry/GeometryStream.js +11 -7
  254. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  255. package/lib/cjs/geometry/ImageGraphic.d.ts +2 -0
  256. package/lib/cjs/geometry/ImageGraphic.d.ts.map +1 -1
  257. package/lib/cjs/geometry/ImageGraphic.js.map +1 -1
  258. package/lib/cjs/geometry/Placement.d.ts +6 -0
  259. package/lib/cjs/geometry/Placement.d.ts.map +1 -1
  260. package/lib/cjs/geometry/Placement.js.map +1 -1
  261. package/lib/cjs/geometry/Projection.d.ts +6 -0
  262. package/lib/cjs/geometry/Projection.d.ts.map +1 -1
  263. package/lib/cjs/geometry/Projection.js.map +1 -1
  264. package/lib/cjs/geometry/TextString.d.ts +1 -0
  265. package/lib/cjs/geometry/TextString.d.ts.map +1 -1
  266. package/lib/cjs/geometry/TextString.js.map +1 -1
  267. package/lib/cjs/ipc/IpcSocket.d.ts +1 -0
  268. package/lib/cjs/ipc/IpcSocket.d.ts.map +1 -1
  269. package/lib/cjs/ipc/IpcSocket.js.map +1 -1
  270. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts +5 -2
  271. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  272. package/lib/cjs/rpc/IModelReadRpcInterface.js +4 -1
  273. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  274. package/lib/cjs/rpc/IModelTileRpcInterface.d.ts +4 -2
  275. package/lib/cjs/rpc/IModelTileRpcInterface.d.ts.map +1 -1
  276. package/lib/cjs/rpc/IModelTileRpcInterface.js +4 -2
  277. package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
  278. package/lib/cjs/rpc/core/RpcInvocation.d.ts +3 -0
  279. package/lib/cjs/rpc/core/RpcInvocation.d.ts.map +1 -1
  280. package/lib/cjs/rpc/core/RpcInvocation.js +33 -7
  281. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  282. package/lib/cjs/rpc/core/RpcMarshaling.d.ts.map +1 -1
  283. package/lib/cjs/rpc/core/RpcMarshaling.js +2 -1
  284. package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
  285. package/lib/cjs/rpc/core/RpcOperation.d.ts +2 -0
  286. package/lib/cjs/rpc/core/RpcOperation.d.ts.map +1 -1
  287. package/lib/cjs/rpc/core/RpcOperation.js +2 -0
  288. package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
  289. package/lib/cjs/rpc/core/RpcProtocol.d.ts +22 -1
  290. package/lib/cjs/rpc/core/RpcProtocol.d.ts.map +1 -1
  291. package/lib/cjs/rpc/core/RpcProtocol.js +13 -2
  292. package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
  293. package/lib/cjs/rpc/core/RpcRequest.d.ts +3 -0
  294. package/lib/cjs/rpc/core/RpcRequest.d.ts.map +1 -1
  295. package/lib/cjs/rpc/core/RpcRequest.js +35 -1
  296. package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
  297. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.d.ts.map +1 -1
  298. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +1 -2
  299. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  300. package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
  301. package/lib/cjs/rpc/web/WebAppRpcLogging.js +14 -10
  302. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  303. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +1 -0
  304. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  305. package/lib/cjs/rpc/web/WebAppRpcProtocol.js +2 -1
  306. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  307. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts +5 -6
  308. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  309. package/lib/cjs/rpc/web/WebAppRpcRequest.js +47 -25
  310. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  311. package/lib/cjs/tile/ElementGraphics.d.ts +8 -0
  312. package/lib/cjs/tile/ElementGraphics.d.ts.map +1 -1
  313. package/lib/cjs/tile/ElementGraphics.js.map +1 -1
  314. package/lib/cjs/tile/IModelTileIO.d.ts +2 -2
  315. package/lib/cjs/tile/IModelTileIO.js +2 -2
  316. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  317. package/lib/esm/AnalysisStyle.d.ts +3 -0
  318. package/lib/esm/AnalysisStyle.d.ts.map +1 -1
  319. package/lib/esm/AnalysisStyle.js.map +1 -1
  320. package/lib/esm/BackgroundMapProvider.d.ts +6 -0
  321. package/lib/esm/BackgroundMapProvider.d.ts.map +1 -1
  322. package/lib/esm/BackgroundMapProvider.js +10 -0
  323. package/lib/esm/BackgroundMapProvider.js.map +1 -1
  324. package/lib/esm/BackgroundMapSettings.d.ts +4 -0
  325. package/lib/esm/BackgroundMapSettings.d.ts.map +1 -1
  326. package/lib/esm/BackgroundMapSettings.js +1 -0
  327. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  328. package/lib/esm/Base64EncodedString.d.ts +1 -0
  329. package/lib/esm/Base64EncodedString.d.ts.map +1 -1
  330. package/lib/esm/Base64EncodedString.js.map +1 -1
  331. package/lib/esm/BriefcaseTypes.d.ts +5 -0
  332. package/lib/esm/BriefcaseTypes.d.ts.map +1 -1
  333. package/lib/esm/BriefcaseTypes.js +2 -0
  334. package/lib/esm/BriefcaseTypes.js.map +1 -1
  335. package/lib/esm/Camera.d.ts +1 -0
  336. package/lib/esm/Camera.d.ts.map +1 -1
  337. package/lib/esm/Camera.js.map +1 -1
  338. package/lib/esm/ChangedElements.d.ts +2 -0
  339. package/lib/esm/ChangedElements.d.ts.map +1 -1
  340. package/lib/esm/ChangedElements.js +1 -0
  341. package/lib/esm/ChangedElements.js.map +1 -1
  342. package/lib/esm/ChangedEntities.d.ts +3 -0
  343. package/lib/esm/ChangedEntities.d.ts.map +1 -1
  344. package/lib/esm/ChangedEntities.js.map +1 -1
  345. package/lib/esm/ChangesetProps.d.ts +9 -1
  346. package/lib/esm/ChangesetProps.d.ts.map +1 -1
  347. package/lib/esm/ChangesetProps.js +3 -1
  348. package/lib/esm/ChangesetProps.js.map +1 -1
  349. package/lib/esm/ClipStyle.d.ts +2 -0
  350. package/lib/esm/ClipStyle.d.ts.map +1 -1
  351. package/lib/esm/ClipStyle.js.map +1 -1
  352. package/lib/esm/CloudStorage.d.ts.map +1 -1
  353. package/lib/esm/CloudStorage.js +14 -20
  354. package/lib/esm/CloudStorage.js.map +1 -1
  355. package/lib/esm/Code.d.ts +3 -0
  356. package/lib/esm/Code.d.ts.map +1 -1
  357. package/lib/esm/Code.js +1 -0
  358. package/lib/esm/Code.js.map +1 -1
  359. package/lib/esm/ColorByName.d.ts +153 -152
  360. package/lib/esm/ColorByName.d.ts.map +1 -1
  361. package/lib/esm/ColorByName.js +153 -153
  362. package/lib/esm/ColorByName.js.map +1 -1
  363. package/lib/esm/ColorDef.d.ts +55 -46
  364. package/lib/esm/ColorDef.d.ts.map +1 -1
  365. package/lib/esm/ColorDef.js +49 -31
  366. package/lib/esm/ColorDef.js.map +1 -1
  367. package/lib/esm/CommonLoggerCategory.d.ts +1 -0
  368. package/lib/esm/CommonLoggerCategory.d.ts.map +1 -1
  369. package/lib/esm/CommonLoggerCategory.js +1 -0
  370. package/lib/esm/CommonLoggerCategory.js.map +1 -1
  371. package/lib/esm/ConcurrentQuery.d.ts +6 -1
  372. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  373. package/lib/esm/ConcurrentQuery.js +1 -0
  374. package/lib/esm/ConcurrentQuery.js.map +1 -1
  375. package/lib/esm/ContextRealityModel.d.ts +2 -0
  376. package/lib/esm/ContextRealityModel.d.ts.map +1 -1
  377. package/lib/esm/ContextRealityModel.js.map +1 -1
  378. package/lib/esm/DisplayStyleSettings.d.ts +10 -0
  379. package/lib/esm/DisplayStyleSettings.d.ts.map +1 -1
  380. package/lib/esm/DisplayStyleSettings.js +1 -0
  381. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  382. package/lib/esm/ECSqlTypes.d.ts +6 -0
  383. package/lib/esm/ECSqlTypes.d.ts.map +1 -1
  384. package/lib/esm/ECSqlTypes.js +4 -0
  385. package/lib/esm/ECSqlTypes.js.map +1 -1
  386. package/lib/esm/ElementProps.d.ts +37 -1
  387. package/lib/esm/ElementProps.d.ts.map +1 -1
  388. package/lib/esm/ElementProps.js +2 -0
  389. package/lib/esm/ElementProps.js.map +1 -1
  390. package/lib/esm/EmphasizeElementsProps.d.ts +3 -0
  391. package/lib/esm/EmphasizeElementsProps.d.ts.map +1 -1
  392. package/lib/esm/EmphasizeElementsProps.js +1 -0
  393. package/lib/esm/EmphasizeElementsProps.js.map +1 -1
  394. package/lib/esm/EntityProps.d.ts +4 -0
  395. package/lib/esm/EntityProps.d.ts.map +1 -1
  396. package/lib/esm/EntityProps.js.map +1 -1
  397. package/lib/esm/Environment.d.ts +1 -0
  398. package/lib/esm/Environment.d.ts.map +1 -1
  399. package/lib/esm/Environment.js.map +1 -1
  400. package/lib/esm/FeatureSymbology.d.ts +3 -0
  401. package/lib/esm/FeatureSymbology.d.ts.map +1 -1
  402. package/lib/esm/FeatureSymbology.js.map +1 -1
  403. package/lib/esm/FeatureTable.d.ts +1 -0
  404. package/lib/esm/FeatureTable.d.ts.map +1 -1
  405. package/lib/esm/FeatureTable.js +1 -0
  406. package/lib/esm/FeatureTable.js.map +1 -1
  407. package/lib/esm/Fonts.d.ts +3 -0
  408. package/lib/esm/Fonts.d.ts.map +1 -1
  409. package/lib/esm/Fonts.js +1 -0
  410. package/lib/esm/Fonts.js.map +1 -1
  411. package/lib/esm/Frustum.d.ts +1 -0
  412. package/lib/esm/Frustum.d.ts.map +1 -1
  413. package/lib/esm/Frustum.js +1 -0
  414. package/lib/esm/Frustum.js.map +1 -1
  415. package/lib/esm/GeoCoordinateServices.d.ts +1 -0
  416. package/lib/esm/GeoCoordinateServices.d.ts.map +1 -1
  417. package/lib/esm/GeoCoordinateServices.js +1 -0
  418. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  419. package/lib/esm/GeometryContainment.d.ts +2 -0
  420. package/lib/esm/GeometryContainment.d.ts.map +1 -1
  421. package/lib/esm/GeometryContainment.js.map +1 -1
  422. package/lib/esm/GeometryParams.d.ts +3 -0
  423. package/lib/esm/GeometryParams.d.ts.map +1 -1
  424. package/lib/esm/GeometryParams.js +3 -0
  425. package/lib/esm/GeometryParams.js.map +1 -1
  426. package/lib/esm/GeometrySummary.d.ts +3 -0
  427. package/lib/esm/GeometrySummary.d.ts.map +1 -1
  428. package/lib/esm/GeometrySummary.js +1 -0
  429. package/lib/esm/GeometrySummary.js.map +1 -1
  430. package/lib/esm/GraphicParams.d.ts +1 -0
  431. package/lib/esm/GraphicParams.d.ts.map +1 -1
  432. package/lib/esm/GraphicParams.js +1 -0
  433. package/lib/esm/GraphicParams.js.map +1 -1
  434. package/lib/esm/GroundPlane.d.ts +1 -0
  435. package/lib/esm/GroundPlane.d.ts.map +1 -1
  436. package/lib/esm/GroundPlane.js.map +1 -1
  437. package/lib/esm/HSVColor.d.ts +4 -1
  438. package/lib/esm/HSVColor.d.ts.map +1 -1
  439. package/lib/esm/HSVColor.js +4 -1
  440. package/lib/esm/HSVColor.js.map +1 -1
  441. package/lib/esm/IModel.d.ts +6 -1
  442. package/lib/esm/IModel.d.ts.map +1 -1
  443. package/lib/esm/IModel.js.map +1 -1
  444. package/lib/esm/Image.d.ts +2 -0
  445. package/lib/esm/Image.d.ts.map +1 -1
  446. package/lib/esm/Image.js +2 -0
  447. package/lib/esm/Image.js.map +1 -1
  448. package/lib/esm/IpcAppProps.d.ts +1 -0
  449. package/lib/esm/IpcAppProps.d.ts.map +1 -1
  450. package/lib/esm/IpcAppProps.js.map +1 -1
  451. package/lib/esm/LightSettings.d.ts +5 -0
  452. package/lib/esm/LightSettings.d.ts.map +1 -1
  453. package/lib/esm/LightSettings.js.map +1 -1
  454. package/lib/esm/LinePixels.d.ts +1 -0
  455. package/lib/esm/LinePixels.d.ts.map +1 -1
  456. package/lib/esm/LinePixels.js +1 -0
  457. package/lib/esm/LinePixels.js.map +1 -1
  458. package/lib/esm/Localization.d.ts +1 -0
  459. package/lib/esm/Localization.d.ts.map +1 -1
  460. package/lib/esm/Localization.js.map +1 -1
  461. package/lib/esm/MassProperties.d.ts +27 -1
  462. package/lib/esm/MassProperties.d.ts.map +1 -1
  463. package/lib/esm/MassProperties.js +1 -0
  464. package/lib/esm/MassProperties.js.map +1 -1
  465. package/lib/esm/MaterialProps.d.ts +6 -0
  466. package/lib/esm/MaterialProps.d.ts.map +1 -1
  467. package/lib/esm/MaterialProps.js +1 -0
  468. package/lib/esm/MaterialProps.js.map +1 -1
  469. package/lib/esm/ModelClipGroup.d.ts +1 -0
  470. package/lib/esm/ModelClipGroup.d.ts.map +1 -1
  471. package/lib/esm/ModelClipGroup.js.map +1 -1
  472. package/lib/esm/ModelGeometryChanges.d.ts +9 -1
  473. package/lib/esm/ModelGeometryChanges.d.ts.map +1 -1
  474. package/lib/esm/ModelGeometryChanges.js.map +1 -1
  475. package/lib/esm/ModelProps.d.ts +6 -0
  476. package/lib/esm/ModelProps.d.ts.map +1 -1
  477. package/lib/esm/ModelProps.js.map +1 -1
  478. package/lib/esm/PlanProjectionSettings.d.ts +1 -0
  479. package/lib/esm/PlanProjectionSettings.d.ts.map +1 -1
  480. package/lib/esm/PlanProjectionSettings.js.map +1 -1
  481. package/lib/esm/PlanarClipMask.d.ts +3 -0
  482. package/lib/esm/PlanarClipMask.d.ts.map +1 -1
  483. package/lib/esm/PlanarClipMask.js +2 -0
  484. package/lib/esm/PlanarClipMask.js.map +1 -1
  485. package/lib/esm/RgbColor.d.ts +1 -0
  486. package/lib/esm/RgbColor.d.ts.map +1 -1
  487. package/lib/esm/RgbColor.js.map +1 -1
  488. package/lib/esm/SessionProps.d.ts +1 -0
  489. package/lib/esm/SessionProps.d.ts.map +1 -1
  490. package/lib/esm/SessionProps.js.map +1 -1
  491. package/lib/esm/SkyBox.d.ts +4 -0
  492. package/lib/esm/SkyBox.d.ts.map +1 -1
  493. package/lib/esm/SkyBox.js +1 -0
  494. package/lib/esm/SkyBox.js.map +1 -1
  495. package/lib/esm/SolarShadows.d.ts +1 -0
  496. package/lib/esm/SolarShadows.d.ts.map +1 -1
  497. package/lib/esm/SolarShadows.js.map +1 -1
  498. package/lib/esm/SpatialClassification.d.ts +5 -0
  499. package/lib/esm/SpatialClassification.d.ts.map +1 -1
  500. package/lib/esm/SpatialClassification.js +2 -0
  501. package/lib/esm/SpatialClassification.js.map +1 -1
  502. package/lib/esm/TerrainSettings.d.ts +3 -0
  503. package/lib/esm/TerrainSettings.d.ts.map +1 -1
  504. package/lib/esm/TerrainSettings.js +1 -0
  505. package/lib/esm/TerrainSettings.js.map +1 -1
  506. package/lib/esm/TextureProps.d.ts +3 -0
  507. package/lib/esm/TextureProps.d.ts.map +1 -1
  508. package/lib/esm/TextureProps.js.map +1 -1
  509. package/lib/esm/ThematicDisplay.d.ts +9 -1
  510. package/lib/esm/ThematicDisplay.d.ts.map +1 -1
  511. package/lib/esm/ThematicDisplay.js +5 -1
  512. package/lib/esm/ThematicDisplay.js.map +1 -1
  513. package/lib/esm/Thumbnail.d.ts +2 -0
  514. package/lib/esm/Thumbnail.d.ts.map +1 -1
  515. package/lib/esm/Thumbnail.js.map +1 -1
  516. package/lib/esm/TileProps.d.ts +1 -0
  517. package/lib/esm/TileProps.d.ts.map +1 -1
  518. package/lib/esm/TileProps.js.map +1 -1
  519. package/lib/esm/Tween.d.ts +16 -4
  520. package/lib/esm/Tween.d.ts.map +1 -1
  521. package/lib/esm/Tween.js.map +1 -1
  522. package/lib/esm/TxnAction.d.ts +1 -0
  523. package/lib/esm/TxnAction.d.ts.map +1 -1
  524. package/lib/esm/TxnAction.js +1 -0
  525. package/lib/esm/TxnAction.js.map +1 -1
  526. package/lib/esm/ViewDetails.d.ts +3 -0
  527. package/lib/esm/ViewDetails.d.ts.map +1 -1
  528. package/lib/esm/ViewDetails.js +1 -0
  529. package/lib/esm/ViewDetails.js.map +1 -1
  530. package/lib/esm/ViewFlags.d.ts +4 -0
  531. package/lib/esm/ViewFlags.d.ts.map +1 -1
  532. package/lib/esm/ViewFlags.js +1 -0
  533. package/lib/esm/ViewFlags.js.map +1 -1
  534. package/lib/esm/ViewProps.d.ts +69 -3
  535. package/lib/esm/ViewProps.d.ts.map +1 -1
  536. package/lib/esm/ViewProps.js.map +1 -1
  537. package/lib/esm/WhiteOnWhiteReversalSettings.d.ts +1 -0
  538. package/lib/esm/WhiteOnWhiteReversalSettings.d.ts.map +1 -1
  539. package/lib/esm/WhiteOnWhiteReversalSettings.js.map +1 -1
  540. package/lib/esm/domains/FunctionalElementProps.d.ts +4 -1
  541. package/lib/esm/domains/FunctionalElementProps.d.ts.map +1 -1
  542. package/lib/esm/domains/FunctionalElementProps.js.map +1 -1
  543. package/lib/esm/domains/GenericElementProps.d.ts +8 -2
  544. package/lib/esm/domains/GenericElementProps.d.ts.map +1 -1
  545. package/lib/esm/domains/GenericElementProps.js.map +1 -1
  546. package/lib/esm/geometry/AdditionalTransform.d.ts +2 -0
  547. package/lib/esm/geometry/AdditionalTransform.d.ts.map +1 -1
  548. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  549. package/lib/esm/geometry/Cartographic.d.ts +1 -0
  550. package/lib/esm/geometry/Cartographic.d.ts.map +1 -1
  551. package/lib/esm/geometry/Cartographic.js.map +1 -1
  552. package/lib/esm/geometry/CoordinateReferenceSystem.d.ts +5 -0
  553. package/lib/esm/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
  554. package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
  555. package/lib/esm/geometry/ElementGeometry.d.ts +2 -0
  556. package/lib/esm/geometry/ElementGeometry.d.ts.map +1 -1
  557. package/lib/esm/geometry/ElementGeometry.js +1 -0
  558. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  559. package/lib/esm/geometry/GeodeticDatum.d.ts +80 -1
  560. package/lib/esm/geometry/GeodeticDatum.d.ts.map +1 -1
  561. package/lib/esm/geometry/GeodeticDatum.js +77 -0
  562. package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
  563. package/lib/esm/geometry/GeodeticEllipsoid.d.ts +1 -0
  564. package/lib/esm/geometry/GeodeticEllipsoid.d.ts.map +1 -1
  565. package/lib/esm/geometry/GeodeticEllipsoid.js.map +1 -1
  566. package/lib/esm/geometry/GeometryStream.d.ts +15 -0
  567. package/lib/esm/geometry/GeometryStream.d.ts.map +1 -1
  568. package/lib/esm/geometry/GeometryStream.js +11 -7
  569. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  570. package/lib/esm/geometry/ImageGraphic.d.ts +2 -0
  571. package/lib/esm/geometry/ImageGraphic.d.ts.map +1 -1
  572. package/lib/esm/geometry/ImageGraphic.js.map +1 -1
  573. package/lib/esm/geometry/Placement.d.ts +6 -0
  574. package/lib/esm/geometry/Placement.d.ts.map +1 -1
  575. package/lib/esm/geometry/Placement.js.map +1 -1
  576. package/lib/esm/geometry/Projection.d.ts +6 -0
  577. package/lib/esm/geometry/Projection.d.ts.map +1 -1
  578. package/lib/esm/geometry/Projection.js.map +1 -1
  579. package/lib/esm/geometry/TextString.d.ts +1 -0
  580. package/lib/esm/geometry/TextString.d.ts.map +1 -1
  581. package/lib/esm/geometry/TextString.js.map +1 -1
  582. package/lib/esm/ipc/IpcSocket.d.ts +1 -0
  583. package/lib/esm/ipc/IpcSocket.d.ts.map +1 -1
  584. package/lib/esm/ipc/IpcSocket.js.map +1 -1
  585. package/lib/esm/rpc/IModelReadRpcInterface.d.ts +5 -2
  586. package/lib/esm/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  587. package/lib/esm/rpc/IModelReadRpcInterface.js +4 -1
  588. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  589. package/lib/esm/rpc/IModelTileRpcInterface.d.ts +4 -2
  590. package/lib/esm/rpc/IModelTileRpcInterface.d.ts.map +1 -1
  591. package/lib/esm/rpc/IModelTileRpcInterface.js +4 -2
  592. package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
  593. package/lib/esm/rpc/core/RpcInvocation.d.ts +3 -0
  594. package/lib/esm/rpc/core/RpcInvocation.d.ts.map +1 -1
  595. package/lib/esm/rpc/core/RpcInvocation.js +35 -9
  596. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  597. package/lib/esm/rpc/core/RpcMarshaling.d.ts.map +1 -1
  598. package/lib/esm/rpc/core/RpcMarshaling.js +1 -0
  599. package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
  600. package/lib/esm/rpc/core/RpcOperation.d.ts +2 -0
  601. package/lib/esm/rpc/core/RpcOperation.d.ts.map +1 -1
  602. package/lib/esm/rpc/core/RpcOperation.js +2 -0
  603. package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
  604. package/lib/esm/rpc/core/RpcProtocol.d.ts +22 -1
  605. package/lib/esm/rpc/core/RpcProtocol.d.ts.map +1 -1
  606. package/lib/esm/rpc/core/RpcProtocol.js +12 -1
  607. package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
  608. package/lib/esm/rpc/core/RpcRequest.d.ts +3 -0
  609. package/lib/esm/rpc/core/RpcRequest.d.ts.map +1 -1
  610. package/lib/esm/rpc/core/RpcRequest.js +36 -2
  611. package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
  612. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.d.ts.map +1 -1
  613. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +0 -1
  614. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  615. package/lib/esm/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
  616. package/lib/esm/rpc/web/WebAppRpcLogging.js +14 -10
  617. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  618. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +1 -0
  619. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  620. package/lib/esm/rpc/web/WebAppRpcProtocol.js +2 -1
  621. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  622. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts +5 -6
  623. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  624. package/lib/esm/rpc/web/WebAppRpcRequest.js +47 -25
  625. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  626. package/lib/esm/tile/ElementGraphics.d.ts +8 -0
  627. package/lib/esm/tile/ElementGraphics.d.ts.map +1 -1
  628. package/lib/esm/tile/ElementGraphics.js.map +1 -1
  629. package/lib/esm/tile/IModelTileIO.d.ts +2 -2
  630. package/lib/esm/tile/IModelTileIO.js +2 -2
  631. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  632. package/package.json +24 -11
@@ -7,6 +7,7 @@
7
7
  */
8
8
  /** Enumerates the types of map imagery that can be supplied by a [[BackgroundMapProvider]].
9
9
  * @public
10
+ * @extensions
10
11
  */
11
12
  export var BackgroundMapType;
12
13
  (function (BackgroundMapType) {
@@ -51,5 +52,14 @@ export class BackgroundMapProvider {
51
52
  equals(other) {
52
53
  return this.name === other.name && this.type === other.type;
53
54
  }
55
+ /** Produce a copy of this provider with identical properties except for those explicitly specified by `changedProps`.
56
+ * Any properties explicitly set to `undefined` in `changedProps` will be reset to their default values.
57
+ */
58
+ clone(changedProps) {
59
+ return BackgroundMapProvider.fromJSON({
60
+ ...this.toJSON(),
61
+ ...changedProps,
62
+ });
63
+ }
54
64
  }
55
65
  //# sourceMappingURL=BackgroundMapProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BackgroundMapProvider.js","sourceRoot":"","sources":["../../src/BackgroundMapProvider.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH;;GAEG;AACH,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,6DAAU,CAAA;IACV,6DAAU,CAAA;IACV,6DAAU,CAAA;AACZ,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAmBD;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAMhC,YAAoB,IAA+B,EAAE,IAAuB;QAC1E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,sDAAsD;IAC/C,MAAM,CAAC,QAAQ,CAAC,KAAiC;QACtD,MAAM,IAAI,GAA8B,KAAK,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC;QACtG,IAAI,IAAI,CAAC;QACT,QAAQ,KAAK,CAAC,IAAI,EAAE;YAClB,KAAK,iBAAiB,CAAC,MAAM,CAAC;YAC9B,KAAK,iBAAiB,CAAC,MAAM;gBAC3B,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;gBAClB,MAAM;YACR;gBACE,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC;gBAChC,MAAM;SACT;QAED,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,wDAAwD;IACjD,MAAM;QACX,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAC9C,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,sBAAsB,CAAC,KAAmC;;QACtE,mDAAmD;QACnD,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,YAAyC,EAAE,IAAI,EAAE,MAAA,KAAK,CAAC,YAAY,0CAAE,OAAO,EAAE,CAAC,CAAC;IACrH,CAAC;IAED,6DAA6D;IACtD,MAAM,CAAC,KAA4B;QACxC,OAAO,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC;IAC9D,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 DisplayStyles\r\n */\r\n\r\nimport { DeprecatedBackgroundMapProps } from \"./BackgroundMapSettings\";\r\n\r\n/** Enumerates the types of map imagery that can be supplied by a [[BackgroundMapProvider]].\r\n * @public\r\n */\r\nexport enum BackgroundMapType {\r\n Street = 1,\r\n Aerial = 2,\r\n Hybrid = 3,\r\n}\r\n\r\n/** Enumerates a set of supported [[BackgroundMapProvider]]s that can provide map imagery.\r\n * @note To access imagery from such a provider, an API key must be supplied via [IModelAppOptions.mapLayerOptions]($frontend).\r\n * @public\r\n */\r\nexport type BackgroundMapProviderName = \"BingProvider\" | \"MapBoxProvider\";\r\n\r\n/** JSON representation of a [[BackgroundMapProvider]].\r\n * @see [[BaseMapLayerProps.provider]].\r\n * @beta\r\n */\r\nexport interface BackgroundMapProviderProps {\r\n /** The name of the provider. Default: \"BingProvider\" */\r\n name?: BackgroundMapProviderName;\r\n /** The type of imagery to display. Default: Hybrid. */\r\n type?: BackgroundMapType;\r\n}\r\n\r\n/** Describes one of a small set of standard, known suppliers of background map imagery as part of a [[BaseMapLayerSettings]].\r\n * @beta\r\n */\r\nexport class BackgroundMapProvider {\r\n /** The name of the provider. */\r\n public readonly name: BackgroundMapProviderName;\r\n /** The type of map imagery provided. */\r\n public readonly type: BackgroundMapType;\r\n\r\n private constructor(name: BackgroundMapProviderName, type: BackgroundMapType) {\r\n this.name = name;\r\n this.type = type;\r\n }\r\n\r\n /** Create a provider from its JSON representation. */\r\n public static fromJSON(props: BackgroundMapProviderProps): BackgroundMapProvider {\r\n const name: BackgroundMapProviderName = props.name === \"MapBoxProvider\" ? props.name : \"BingProvider\";\r\n let type;\r\n switch (props.type) {\r\n case BackgroundMapType.Street:\r\n case BackgroundMapType.Aerial:\r\n type = props.type;\r\n break;\r\n default:\r\n type = BackgroundMapType.Hybrid;\r\n break;\r\n }\r\n\r\n return new BackgroundMapProvider(name, type);\r\n }\r\n\r\n /** Convert this provider to its JSON representation. */\r\n public toJSON(): BackgroundMapProviderProps {\r\n return { name: this.name, type: this.type };\r\n }\r\n\r\n /** @internal */\r\n public static fromBackgroundMapProps(props: DeprecatedBackgroundMapProps): BackgroundMapProvider {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return this.fromJSON({ name: props.providerName as BackgroundMapProviderName, type: props.providerData?.mapType });\r\n }\r\n\r\n /** Return true if this provider is equivalent to `other`. */\r\n public equals(other: BackgroundMapProvider): boolean {\r\n return this.name === other.name && this.type === other.type;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"BackgroundMapProvider.js","sourceRoot":"","sources":["../../src/BackgroundMapProvider.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH;;;GAGG;AACH,MAA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C,OAAO,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC;IAC9D,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,YAAwC;QACnD,OAAO,qBAAqB,CAAC,QAAQ,CAAC;YACpC,GAAG,IAAI,CAAC,MAAM,EAAE;YAChB,GAAG,YAAY;SAChB,CAAC,CAAC;IACL,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 DisplayStyles\r\n */\r\n\r\nimport { DeprecatedBackgroundMapProps } from \"./BackgroundMapSettings\";\r\n\r\n/** Enumerates the types of map imagery that can be supplied by a [[BackgroundMapProvider]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum BackgroundMapType {\r\n Street = 1,\r\n Aerial = 2,\r\n Hybrid = 3,\r\n}\r\n\r\n/** Enumerates a set of supported [[BackgroundMapProvider]]s that can provide map imagery.\r\n * @note To access imagery from such a provider, an API key must be supplied via [IModelAppOptions.mapLayerOptions]($frontend).\r\n * @public\r\n * @extensions\r\n */\r\nexport type BackgroundMapProviderName = \"BingProvider\" | \"MapBoxProvider\";\r\n\r\n/** JSON representation of a [[BackgroundMapProvider]].\r\n * @see [[BaseMapLayerProps.provider]].\r\n * @beta\r\n */\r\nexport interface BackgroundMapProviderProps {\r\n /** The name of the provider. Default: \"BingProvider\" */\r\n name?: BackgroundMapProviderName;\r\n /** The type of imagery to display. Default: Hybrid. */\r\n type?: BackgroundMapType;\r\n}\r\n\r\n/** Describes one of a small set of standard, known suppliers of background map imagery as part of a [[BaseMapLayerSettings]].\r\n * @beta\r\n */\r\nexport class BackgroundMapProvider {\r\n /** The name of the provider. */\r\n public readonly name: BackgroundMapProviderName;\r\n /** The type of map imagery provided. */\r\n public readonly type: BackgroundMapType;\r\n\r\n private constructor(name: BackgroundMapProviderName, type: BackgroundMapType) {\r\n this.name = name;\r\n this.type = type;\r\n }\r\n\r\n /** Create a provider from its JSON representation. */\r\n public static fromJSON(props: BackgroundMapProviderProps): BackgroundMapProvider {\r\n const name: BackgroundMapProviderName = props.name === \"MapBoxProvider\" ? props.name : \"BingProvider\";\r\n let type;\r\n switch (props.type) {\r\n case BackgroundMapType.Street:\r\n case BackgroundMapType.Aerial:\r\n type = props.type;\r\n break;\r\n default:\r\n type = BackgroundMapType.Hybrid;\r\n break;\r\n }\r\n\r\n return new BackgroundMapProvider(name, type);\r\n }\r\n\r\n /** Convert this provider to its JSON representation. */\r\n public toJSON(): BackgroundMapProviderProps {\r\n return { name: this.name, type: this.type };\r\n }\r\n\r\n /** @internal */\r\n public static fromBackgroundMapProps(props: DeprecatedBackgroundMapProps): BackgroundMapProvider {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return this.fromJSON({ name: props.providerName as BackgroundMapProviderName, type: props.providerData?.mapType });\r\n }\r\n\r\n /** Return true if this provider is equivalent to `other`. */\r\n public equals(other: BackgroundMapProvider): boolean {\r\n return this.name === other.name && this.type === other.type;\r\n }\r\n\r\n /** Produce a copy of this provider with identical properties except for those explicitly specified by `changedProps`.\r\n * Any properties explicitly set to `undefined` in `changedProps` will be reset to their default values.\r\n */\r\n public clone(changedProps: BackgroundMapProviderProps): BackgroundMapProvider {\r\n return BackgroundMapProvider.fromJSON({\r\n ...this.toJSON(),\r\n ...changedProps,\r\n });\r\n }\r\n}\r\n"]}
@@ -8,6 +8,7 @@ import { TerrainProps, TerrainSettings } from "./TerrainSettings";
8
8
  * @see [[BackgroundMapProps]]
9
9
  * @see [[DisplayStyleSettingsProps]]
10
10
  * @public
11
+ * @extensions
11
12
  */
12
13
  export declare enum GlobeMode {
13
14
  /** Display Earth as 3d ellipsoid */
@@ -18,6 +19,7 @@ export declare enum GlobeMode {
18
19
  /** In-memory JSON representation of a [[BackgroundMapSettings]].
19
20
  * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.
20
21
  * @public
22
+ * @extensions
21
23
  */
22
24
  export interface BackgroundMapProps {
23
25
  /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */
@@ -51,6 +53,7 @@ export interface BackgroundMapProps {
51
53
  * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in
52
54
  * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.
53
55
  * @public
56
+ * @extensions
54
57
  */
55
58
  export interface DeprecatedBackgroundMapProps {
56
59
  /** Identifies the source of the map tiles. Currently supported providers are "BingProvider" and "MapBoxProvider".
@@ -68,6 +71,7 @@ export interface DeprecatedBackgroundMapProps {
68
71
  }
69
72
  /** Persistent JSON representation of a [[BackgroundMapSettings]].
70
73
  * @public
74
+ * @extensions
71
75
  */
72
76
  export declare type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;
73
77
  /** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.
@@ -1 +1 @@
1
- {"version":3,"file":"BackgroundMapSettings.d.ts","sourceRoot":"","sources":["../../src/BackgroundMapSettings.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAyB,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAElE;;;;GAIG;AACH,oBAAY,SAAS;IACnB,oCAAoC;IACpC,SAAS,IAAI;IACb,8BAA8B;IAC9B,KAAK,IAAI;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,yFAAyF;IACzF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC9B,+LAA+L;IA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CAQ9B;IAED,sFAAsF;IACtF,IAAW,oBAAoB,IAAI,MAAM,GAAG,SAAS,CAAwE;IAE7H,OAAO;IAYP;;OAEG;WACW,kBAAkB,CAAC,IAAI,CAAC,EAAE,4BAA4B,GAAG,qBAAqB;IAI5F;;OAEG;WACW,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,qBAAqB;IAIxE;;OAEG;IACI,MAAM,IAAI,kBAAkB;IA6BnC;;OAEG;IACI,gBAAgB,IAAI,4BAA4B;IAYvD,mFAAmF;IAC5E,UAAU,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO;IAIrD,+FAA+F;IACxF,oBAAoB,CAAC,IAAI,CAAC,EAAE,4BAA4B,GAAG,OAAO;IAIzE,gEAAgE;IACzD,MAAM,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO;IAOpD;;;OAGG;IACI,KAAK,CAAC,YAAY,CAAC,EAAE,kBAAkB,GAAG,qBAAqB;CAmBvE"}
@@ -12,6 +12,7 @@ import { TerrainSettings } from "./TerrainSettings";
12
12
  * @see [[BackgroundMapProps]]
13
13
  * @see [[DisplayStyleSettingsProps]]
14
14
  * @public
15
+ * @extensions
15
16
  */
16
17
  export var GlobeMode;
17
18
  (function (GlobeMode) {
@@ -1 +1 @@
1
- {"version":3,"file":"BackgroundMapSettings.js","sourceRoot":"","sources":["../../src/BackgroundMapSettings.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAuB,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAoC;IACpC,mDAAa,CAAA;IACb,8BAA8B;IAC9B,2CAAS,CAAA;AACX,CAAC,E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c,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;YAC5I,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;YACjC,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;SAC/C,CAAC;QAEF,OAAO,qBAAqB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACzD,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 DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProvider, BackgroundMapType } from \"./BackgroundMapProvider\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { TerrainProps, TerrainSettings } from \"./TerrainSettings\";\r\n\r\n/** Describes the projection of the background map\r\n * @see [[BackgroundMapProps]]\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n */\r\nexport enum GlobeMode {\r\n /** Display Earth as 3d ellipsoid */\r\n Ellipsoid = 0,\r\n /** Display Earth as plane. */\r\n Plane = 1,\r\n}\r\n\r\n/** In-memory JSON representation of a [[BackgroundMapSettings]].\r\n * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.\r\n * @public\r\n */\r\nexport interface BackgroundMapProps {\r\n /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */\r\n groundBias?: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.\r\n * Default value: false.\r\n */\r\n transparency?: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n useDepthBuffer?: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n applyTerrain?: boolean;\r\n /** Properties associated with terrain display. */\r\n terrainSettings?: TerrainProps;\r\n /** Globe Mode. Default value: GlobeMode.Ellipsoid */\r\n globeMode?: GlobeMode;\r\n /** If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n nonLocatable?: boolean;\r\n /** A planar mask applied to the map geometry\r\n * @beta\r\n */\r\n planarClipMask?: PlanarClipMaskProps;\r\n\r\n /** @see [[DeprecatedBackgroundMapProps.providerName]]. */\r\n providerName?: never;\r\n /** @see [[DeprecatedBackgroundMapProps.providerData]]. */\r\n providerData?: never;\r\n}\r\n\r\n/** Properties of [[PersistentBackgroundMapProps]] that have been deprecated, but are retained for backwards compatibility.\r\n * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in\r\n * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.\r\n * @public\r\n */\r\nexport interface DeprecatedBackgroundMapProps {\r\n /** Identifies the source of the map tiles. Currently supported providers are \"BingProvider\" and \"MapBoxProvider\".\r\n * Default value: \"BingProvider\"\r\n * @deprecated use MapImageryProps.backgroundBase.\r\n */\r\n providerName?: string;\r\n /** Options for customizing the tiles supplied by the provider. If undefined, default values of all members are used.\r\n * @deprecated use MapImageryProps.backgroundBase\r\n */\r\n providerData?: {\r\n /** The type of map graphics to request. Default value: BackgroundMapType.Hybrid. */\r\n mapType?: BackgroundMapType;\r\n };\r\n}\r\n\r\n/** Persistent JSON representation of a [[BackgroundMapSettings]].\r\n * @public\r\n */\r\nexport type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;\r\n\r\nfunction normalizeGlobeMode(mode?: GlobeMode): GlobeMode {\r\n return GlobeMode.Plane === mode ? mode : GlobeMode.Ellipsoid;\r\n}\r\n\r\nfunction normalizeTransparency(trans?: number | false): number | false {\r\n if (\"number\" === typeof trans)\r\n return Math.min(1, Math.max(0, trans));\r\n\r\n return false;\r\n}\r\n\r\n/** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.\r\n * @see [[DisplayStyleSettings.backgroundMap]] to query or change these settings for a display style.\r\n * @see [[MapImagerySettings]] to control the type of imagery applied to the background map.\r\n * @public\r\n */\r\nexport class BackgroundMapSettings {\r\n /** Retained strictly for persistence. */\r\n private readonly _provider: BackgroundMapProvider;\r\n\r\n /** Elevation in meters, relative to WGS84 Ellipsoid.. */\r\n public readonly groundBias: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\r\n public readonly transparency: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n public readonly useDepthBuffer: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n public readonly applyTerrain: boolean;\r\n /** Settings associated with terrain display. */\r\n public readonly terrainSettings: TerrainSettings;\r\n /** Globe display mode. */\r\n public readonly globeMode: GlobeMode;\r\n /** Planar Mask - used to mask the background map to avoid overlapping with other geometry\r\n * @beta\r\n */\r\n public readonly planarClipMask: PlanarClipMaskSettings;\r\n private readonly _locatable: boolean;\r\n /** If false, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n public get locatable(): boolean {\r\n // Handle legacy TerrainProps.nonLocatable:\r\n // - If TerrainProps.nonLocatable=true and terrain is on, terrain is not locatable.\r\n // - Otherwise, use BackgroundMapProps.nonLocatable.\r\n if (this.applyTerrain && this.terrainSettings.nonLocatable)\r\n return false;\r\n\r\n return this._locatable;\r\n }\r\n\r\n /** If transparency is overridden, the transparency to apply; otherwise, undefined. */\r\n public get transparencyOverride(): number | undefined { return false !== this.transparency ? this.transparency : undefined; }\r\n\r\n private constructor(props: BackgroundMapProps | PersistentBackgroundMapProps) {\r\n this.groundBias = props.groundBias ?? 0;\r\n this.transparency = normalizeTransparency(props.transparency);\r\n this.useDepthBuffer = props.useDepthBuffer ?? false;\r\n this.applyTerrain = props.applyTerrain ?? false;\r\n this.terrainSettings = TerrainSettings.fromJSON(props.terrainSettings);\r\n this.globeMode = normalizeGlobeMode(props.globeMode);\r\n this._locatable = true !== props.nonLocatable;\r\n this.planarClipMask = PlanarClipMaskSettings.fromJSON(props.planarClipMask);\r\n this._provider = BackgroundMapProvider.fromBackgroundMapProps(props);\r\n }\r\n\r\n /** Create settings from their persistent representation. In general, this method should only be used when reading the settings directly from\r\n * the iModel - otherwise, prefer [[fromJSON]].\r\n */\r\n public static fromPersistentJSON(json?: PersistentBackgroundMapProps): BackgroundMapSettings {\r\n return new this(json ?? {});\r\n }\r\n\r\n /** Construct from JSON, performing validation and applying default values for undefined fields.\r\n * @see [[fromPersistentJSON]] if you are reading the settings directly from the iModel.\r\n */\r\n public static fromJSON(json?: BackgroundMapProps): BackgroundMapSettings {\r\n return new BackgroundMapSettings(json ?? {});\r\n }\r\n\r\n /** Convert these settings to their in-memory JSON representation.\r\n * @see [[toPersistentJSON]] if you intend to write the JSON directly to an iModel.\r\n */\r\n public toJSON(): BackgroundMapProps {\r\n const props: BackgroundMapProps = {};\r\n if (0 !== this.groundBias)\r\n props.groundBias = this.groundBias;\r\n if (this.applyTerrain)\r\n props.applyTerrain = true;\r\n if (false !== this.transparency)\r\n props.transparency = this.transparency;\r\n if (GlobeMode.Ellipsoid !== this.globeMode)\r\n props.globeMode = this.globeMode;\r\n if (this.useDepthBuffer)\r\n props.useDepthBuffer = true;\r\n if (!this._locatable)\r\n props.nonLocatable = true;\r\n\r\n const terrainSettings = this.terrainSettings.toJSON();\r\n for (const prop of Object.values(terrainSettings)) {\r\n if (undefined !== prop) {\r\n props.terrainSettings = terrainSettings;\r\n break;\r\n }\r\n }\r\n\r\n if (this.planarClipMask.isValid)\r\n props.planarClipMask = this.planarClipMask.toJSON();\r\n\r\n return props;\r\n }\r\n\r\n /** Convert these settings to their persistent representation. In general, this method should only be used when writing the settings directly to\r\n * the iModel - otherwise, prefer [[toJSON]].\r\n */\r\n public toPersistentJSON(): PersistentBackgroundMapProps {\r\n const props = this.toJSON() as PersistentBackgroundMapProps;\r\n\r\n // Preserve deprecated imagery provider properties.\r\n if (\"BingProvider\" !== this._provider.name)\r\n props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation\r\n if (BackgroundMapType.Hybrid !== this._provider.type)\r\n props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation\r\n\r\n return props;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromJSON(json));\r\n }\r\n\r\n /** Returns true if the persistent representation of these settings is equivalent to `json`. */\r\n public equalsPersistentJSON(json?: PersistentBackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromPersistentJSON(json));\r\n }\r\n\r\n /** Returns true if these settings are equivalent to `other`. */\r\n public equals(other: BackgroundMapSettings): boolean {\r\n return this.groundBias === other.groundBias && this.useDepthBuffer === other.useDepthBuffer && this.transparency === other.transparency\r\n && this.globeMode === other.globeMode && this._locatable === other._locatable && this.applyTerrain === other.applyTerrain\r\n && this.terrainSettings.equals(other.terrainSettings) && this.planarClipMask.equals(other.planarClipMask)\r\n && this._provider.name === other._provider.name && this._provider.type === other._provider.type;\r\n }\r\n\r\n /** Create a copy of this BackgroundMapSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A BackgroundMapSettings with all of its properties set to match those of `this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: BackgroundMapProps): BackgroundMapSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n groundBias: changedProps.groundBias ?? this.groundBias,\r\n transparency: changedProps.transparency ?? this.transparency,\r\n useDepthBuffer: changedProps.useDepthBuffer ?? this.useDepthBuffer,\r\n globeMode: changedProps.globeMode ?? this.globeMode,\r\n nonLocatable: changedProps.nonLocatable ?? !this._locatable,\r\n applyTerrain: changedProps.applyTerrain ?? this.applyTerrain,\r\n terrainSettings: changedProps.terrainSettings ? this.terrainSettings.clone(changedProps.terrainSettings).toJSON() : this.terrainSettings.toJSON(),\r\n planarClipMask: changedProps.planarClipMask ? this.planarClipMask.clone(changedProps.planarClipMask).toJSON() : this.planarClipMask.toJSON(),\r\n providerName: this._provider.name,\r\n providerData: { mapType: this._provider.type },\r\n };\r\n\r\n return BackgroundMapSettings.fromPersistentJSON(props);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"BackgroundMapSettings.js","sourceRoot":"","sources":["../../src/BackgroundMapSettings.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAuB,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAgB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAElE;;;;;GAKG;AACH,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAoC;IACpC,mDAAa,CAAA;IACb,8BAA8B;IAC9B,2CAAS,CAAA;AACX,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAgED,SAAS,kBAAkB,CAAC,IAAgB;IAC1C,OAAO,SAAS,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC;AAC/D,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAsB;IACnD,IAAI,QAAQ,KAAK,OAAO,KAAK;QAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,E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BAAqB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACzD,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 DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProvider, BackgroundMapType } from \"./BackgroundMapProvider\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { TerrainProps, TerrainSettings } from \"./TerrainSettings\";\r\n\r\n/** Describes the projection of the background map\r\n * @see [[BackgroundMapProps]]\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport enum GlobeMode {\r\n /** Display Earth as 3d ellipsoid */\r\n Ellipsoid = 0,\r\n /** Display Earth as plane. */\r\n Plane = 1,\r\n}\r\n\r\n/** In-memory JSON representation of a [[BackgroundMapSettings]].\r\n * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface BackgroundMapProps {\r\n /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */\r\n groundBias?: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.\r\n * Default value: false.\r\n */\r\n transparency?: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n useDepthBuffer?: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n applyTerrain?: boolean;\r\n /** Properties associated with terrain display. */\r\n terrainSettings?: TerrainProps;\r\n /** Globe Mode. Default value: GlobeMode.Ellipsoid */\r\n globeMode?: GlobeMode;\r\n /** If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n nonLocatable?: boolean;\r\n /** A planar mask applied to the map geometry\r\n * @beta\r\n */\r\n planarClipMask?: PlanarClipMaskProps;\r\n\r\n /** @see [[DeprecatedBackgroundMapProps.providerName]]. */\r\n providerName?: never;\r\n /** @see [[DeprecatedBackgroundMapProps.providerData]]. */\r\n providerData?: never;\r\n}\r\n\r\n/** Properties of [[PersistentBackgroundMapProps]] that have been deprecated, but are retained for backwards compatibility.\r\n * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in\r\n * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DeprecatedBackgroundMapProps {\r\n /** Identifies the source of the map tiles. Currently supported providers are \"BingProvider\" and \"MapBoxProvider\".\r\n * Default value: \"BingProvider\"\r\n * @deprecated use MapImageryProps.backgroundBase.\r\n */\r\n providerName?: string;\r\n /** Options for customizing the tiles supplied by the provider. If undefined, default values of all members are used.\r\n * @deprecated use MapImageryProps.backgroundBase\r\n */\r\n providerData?: {\r\n /** The type of map graphics to request. Default value: BackgroundMapType.Hybrid. */\r\n mapType?: BackgroundMapType;\r\n };\r\n}\r\n\r\n/** Persistent JSON representation of a [[BackgroundMapSettings]].\r\n * @public\r\n * @extensions\r\n */\r\nexport type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;\r\n\r\nfunction normalizeGlobeMode(mode?: GlobeMode): GlobeMode {\r\n return GlobeMode.Plane === mode ? mode : GlobeMode.Ellipsoid;\r\n}\r\n\r\nfunction normalizeTransparency(trans?: number | false): number | false {\r\n if (\"number\" === typeof trans)\r\n return Math.min(1, Math.max(0, trans));\r\n\r\n return false;\r\n}\r\n\r\n/** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.\r\n * @see [[DisplayStyleSettings.backgroundMap]] to query or change these settings for a display style.\r\n * @see [[MapImagerySettings]] to control the type of imagery applied to the background map.\r\n * @public\r\n */\r\nexport class BackgroundMapSettings {\r\n /** Retained strictly for persistence. */\r\n private readonly _provider: BackgroundMapProvider;\r\n\r\n /** Elevation in meters, relative to WGS84 Ellipsoid.. */\r\n public readonly groundBias: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\r\n public readonly transparency: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n public readonly useDepthBuffer: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n public readonly applyTerrain: boolean;\r\n /** Settings associated with terrain display. */\r\n public readonly terrainSettings: TerrainSettings;\r\n /** Globe display mode. */\r\n public readonly globeMode: GlobeMode;\r\n /** Planar Mask - used to mask the background map to avoid overlapping with other geometry\r\n * @beta\r\n */\r\n public readonly planarClipMask: PlanarClipMaskSettings;\r\n private readonly _locatable: boolean;\r\n /** If false, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n public get locatable(): boolean {\r\n // Handle legacy TerrainProps.nonLocatable:\r\n // - If TerrainProps.nonLocatable=true and terrain is on, terrain is not locatable.\r\n // - Otherwise, use BackgroundMapProps.nonLocatable.\r\n if (this.applyTerrain && this.terrainSettings.nonLocatable)\r\n return false;\r\n\r\n return this._locatable;\r\n }\r\n\r\n /** If transparency is overridden, the transparency to apply; otherwise, undefined. */\r\n public get transparencyOverride(): number | undefined { return false !== this.transparency ? this.transparency : undefined; }\r\n\r\n private constructor(props: BackgroundMapProps | PersistentBackgroundMapProps) {\r\n this.groundBias = props.groundBias ?? 0;\r\n this.transparency = normalizeTransparency(props.transparency);\r\n this.useDepthBuffer = props.useDepthBuffer ?? false;\r\n this.applyTerrain = props.applyTerrain ?? false;\r\n this.terrainSettings = TerrainSettings.fromJSON(props.terrainSettings);\r\n this.globeMode = normalizeGlobeMode(props.globeMode);\r\n this._locatable = true !== props.nonLocatable;\r\n this.planarClipMask = PlanarClipMaskSettings.fromJSON(props.planarClipMask);\r\n this._provider = BackgroundMapProvider.fromBackgroundMapProps(props);\r\n }\r\n\r\n /** Create settings from their persistent representation. In general, this method should only be used when reading the settings directly from\r\n * the iModel - otherwise, prefer [[fromJSON]].\r\n */\r\n public static fromPersistentJSON(json?: PersistentBackgroundMapProps): BackgroundMapSettings {\r\n return new this(json ?? {});\r\n }\r\n\r\n /** Construct from JSON, performing validation and applying default values for undefined fields.\r\n * @see [[fromPersistentJSON]] if you are reading the settings directly from the iModel.\r\n */\r\n public static fromJSON(json?: BackgroundMapProps): BackgroundMapSettings {\r\n return new BackgroundMapSettings(json ?? {});\r\n }\r\n\r\n /** Convert these settings to their in-memory JSON representation.\r\n * @see [[toPersistentJSON]] if you intend to write the JSON directly to an iModel.\r\n */\r\n public toJSON(): BackgroundMapProps {\r\n const props: BackgroundMapProps = {};\r\n if (0 !== this.groundBias)\r\n props.groundBias = this.groundBias;\r\n if (this.applyTerrain)\r\n props.applyTerrain = true;\r\n if (false !== this.transparency)\r\n props.transparency = this.transparency;\r\n if (GlobeMode.Ellipsoid !== this.globeMode)\r\n props.globeMode = this.globeMode;\r\n if (this.useDepthBuffer)\r\n props.useDepthBuffer = true;\r\n if (!this._locatable)\r\n props.nonLocatable = true;\r\n\r\n const terrainSettings = this.terrainSettings.toJSON();\r\n for (const prop of Object.values(terrainSettings)) {\r\n if (undefined !== prop) {\r\n props.terrainSettings = terrainSettings;\r\n break;\r\n }\r\n }\r\n\r\n if (this.planarClipMask.isValid)\r\n props.planarClipMask = this.planarClipMask.toJSON();\r\n\r\n return props;\r\n }\r\n\r\n /** Convert these settings to their persistent representation. In general, this method should only be used when writing the settings directly to\r\n * the iModel - otherwise, prefer [[toJSON]].\r\n */\r\n public toPersistentJSON(): PersistentBackgroundMapProps {\r\n const props = this.toJSON() as PersistentBackgroundMapProps;\r\n\r\n // Preserve deprecated imagery provider properties.\r\n if (\"BingProvider\" !== this._provider.name)\r\n props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation\r\n if (BackgroundMapType.Hybrid !== this._provider.type)\r\n props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation\r\n\r\n return props;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromJSON(json));\r\n }\r\n\r\n /** Returns true if the persistent representation of these settings is equivalent to `json`. */\r\n public equalsPersistentJSON(json?: PersistentBackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromPersistentJSON(json));\r\n }\r\n\r\n /** Returns true if these settings are equivalent to `other`. */\r\n public equals(other: BackgroundMapSettings): boolean {\r\n return this.groundBias === other.groundBias && this.useDepthBuffer === other.useDepthBuffer && this.transparency === other.transparency\r\n && this.globeMode === other.globeMode && this._locatable === other._locatable && this.applyTerrain === other.applyTerrain\r\n && this.terrainSettings.equals(other.terrainSettings) && this.planarClipMask.equals(other.planarClipMask)\r\n && this._provider.name === other._provider.name && this._provider.type === other._provider.type;\r\n }\r\n\r\n /** Create a copy of this BackgroundMapSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A BackgroundMapSettings with all of its properties set to match those of `this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: BackgroundMapProps): BackgroundMapSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n groundBias: changedProps.groundBias ?? this.groundBias,\r\n transparency: changedProps.transparency ?? this.transparency,\r\n useDepthBuffer: changedProps.useDepthBuffer ?? this.useDepthBuffer,\r\n globeMode: changedProps.globeMode ?? this.globeMode,\r\n nonLocatable: changedProps.nonLocatable ?? !this._locatable,\r\n applyTerrain: changedProps.applyTerrain ?? this.applyTerrain,\r\n terrainSettings: changedProps.terrainSettings ? this.terrainSettings.clone(changedProps.terrainSettings).toJSON() : this.terrainSettings.toJSON(),\r\n planarClipMask: changedProps.planarClipMask ? this.planarClipMask.clone(changedProps.planarClipMask).toJSON() : this.planarClipMask.toJSON(),\r\n providerName: this._provider.name,\r\n providerData: { mapType: this._provider.type },\r\n };\r\n\r\n return BackgroundMapSettings.fromPersistentJSON(props);\r\n }\r\n}\r\n"]}
@@ -4,6 +4,7 @@
4
4
  /** Represents an array of bytes encoded in base-64 with a prefix indicating the encoding, as required when converting EC properties of `binary` type to and from JSON.
5
5
  * @see [[TextureProps.data]] and [[BRepEntity.DataProps.data]] for examples of properties of this type.
6
6
  * @public
7
+ * @extensions
7
8
  */
8
9
  export declare type Base64EncodedString = string;
9
10
  /** Represents an array of bytes encoded in base-64 with a prefix indicating the encoding, as persisted in an [ECDb]($backend) for properties of `binary` type.
@@ -1 +1 @@
1
- {"version":3,"file":"Base64EncodedString.d.ts","sourceRoot":"","sources":["../../src/Base64EncodedString.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;GAGG;AACH,oBAAY,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,4EAA4E;IACrE,MAAM,MAAM,qBAAqB,CAAC;IAEzC,2DAA2D;IAC3D,SAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,mBAAmB,CAErE;IAED,2DAA2D;IAC3D,SAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,UAAU,CAEpE;IAED,+HAA+H;IAC/H,SAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE9C;IAED,6FAA6F;IAC7F,SAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB,CAEhE;IAED,4EAA4E;IAC5E,SAAgB,WAAW,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAE/D;IAED,uGAAuG;IAChG,MAAM,OAAO,UAAW,MAAM,SAAS,GAAG,KAAG,GAKnD,CAAC;IAEF,4GAA4G;IACrG,MAAM,QAAQ,UAAW,MAAM,SAAS,GAAG,KAAG,GAKpD,CAAC;CACH"}
1
+ {"version":3,"file":"Base64EncodedString.d.ts","sourceRoot":"","sources":["../../src/Base64EncodedString.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;;GAIG;AACH,oBAAY,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,4EAA4E;IACrE,MAAM,MAAM,qBAAqB,CAAC;IAEzC,2DAA2D;IAC3D,SAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,mBAAmB,CAErE;IAED,2DAA2D;IAC3D,SAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,UAAU,CAEpE;IAED,+HAA+H;IAC/H,SAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE9C;IAED,6FAA6F;IAC7F,SAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB,CAEhE;IAED,4EAA4E;IAC5E,SAAgB,WAAW,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAE/D;IAED,uGAAuG;IAChG,MAAM,OAAO,UAAW,MAAM,SAAS,GAAG,KAAG,GAKnD,CAAC;IAEF,4GAA4G;IACrG,MAAM,QAAQ,UAAW,MAAM,SAAS,GAAG,KAAG,GAKpD,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"Base64EncodedString.js","sourceRoot":"","sources":["../../src/Base64EncodedString.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAQnC;;GAEG;AACH,MAAM,KAAW,mBAAmB,CA4CnC;AA5CD,WAAiB,mBAAmB;IAClC,4EAA4E;IAC/D,0BAAM,GAAG,kBAAkB,CAAC;IAEzC,2DAA2D;IAC3D,SAAgB,cAAc,CAAC,KAA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GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;QAEhC,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC,EA5CgB,mBAAmB,KAAnB,mBAAmB,QA4CnC","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 Entities\r\n */\r\n\r\nimport { Base64 } from \"js-base64\";\r\n\r\n/** Represents an array of bytes encoded in base-64 with a prefix indicating the encoding, as required when converting EC properties of `binary` type to and from JSON.\r\n * @see [[TextureProps.data]] and [[BRepEntity.DataProps.data]] for examples of properties of this type.\r\n * @public\r\n */\r\nexport type Base64EncodedString = string;\r\n\r\n/** Represents an array of bytes encoded in base-64 with a prefix indicating the encoding, as persisted in an [ECDb]($backend) for properties of `binary` type.\r\n * @public\r\n */\r\nexport namespace Base64EncodedString { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** The prefix prepended to the string identifying it as base-64-encoded. */\r\n export const prefix = \"encoding=base64;\";\r\n\r\n /** Encode an array of bytes into a Base64EncodedString. */\r\n export function fromUint8Array(bytes: Uint8Array): Base64EncodedString {\r\n return `${prefix}${Base64.fromUint8Array(bytes)}`;\r\n }\r\n\r\n /** Decode a Base64EncodedString into an array of bytes. */\r\n export function toUint8Array(base64: Base64EncodedString): Uint8Array {\r\n return Base64.toUint8Array(stripPrefix(base64));\r\n }\r\n\r\n /** Returns true if the input starts with [[Base64EncodedString.prefix]] indicating it is a well-formed Base64EncodedString. */\r\n export function hasPrefix(str: string): boolean {\r\n return str.startsWith(prefix);\r\n }\r\n\r\n /** Ensure that the base-64-encoded string starts with the [[Base64EncodedString.prefix]]. */\r\n export function ensurePrefix(base64: string): Base64EncodedString {\r\n return hasPrefix(base64) ? base64 : `${prefix}${base64}`;\r\n }\r\n\r\n /** Remove the [[Base64EncodedString.prefix]] from the string if present. */\r\n export function stripPrefix(base64: Base64EncodedString): string {\r\n return hasPrefix(base64) ? base64.substr(prefix.length) : base64;\r\n }\r\n\r\n /** A function suitable for use with `JSON.parse` to revive a Base64EncodedString into a Uint8Array. */\r\n export const reviver = (_name: string, value: any): any => {\r\n if (typeof value === \"string\" && hasPrefix(value))\r\n value = toUint8Array(value);\r\n\r\n return value;\r\n };\r\n\r\n /** A function suitable for use with `JSON.stringify` to serialize a Uint8Array as a Base64EncodedString. */\r\n export const replacer = (_name: string, value: any): any => {\r\n if (value && value.constructor === Uint8Array)\r\n value = fromUint8Array(value);\r\n\r\n return value;\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"Base64EncodedString.js","sourceRoot":"","sources":["../../src/Base64EncodedString.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AASnC;;GAEG;AACH,MAAM,KAAW,mBAAmB,CA4CnC;AA5CD,WAAiB,mBAAmB;IAClC,4EAA4E;IAC/D,0BAAM,GAAG,kBAAkB,CAAC;IAEzC,2DAA2D;IAC3D,SAAgB,cAAc,CAAC,KAAiB;QAC9C,OAAO,GAAG,oBAAA,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,CAAC;IAFe,kCAAc,iBAE7B,CAAA;IAED,2DAA2D;IAC3D,SAAgB,YAAY,CAAC,MAA2B;QACtD,OAAO,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IAClD,CAAC;IAFe,gCAAY,eAE3B,CAAA;IAED,+HAA+H;IAC/H,SAAgB,SAAS,CAAC,GAAW;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,oBAAA,MAAM,CAAC,CAAC;IAChC,CAAC;IAFe,6BAAS,YAExB,CAAA;IAED,6FAA6F;IAC7F,SAAgB,YAAY,CAAC,MAAc;QACzC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,oBAAA,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3D,CAAC;IAFe,gCAAY,eAE3B,CAAA;IAED,4EAA4E;IAC5E,SAAgB,WAAW,CAAC,MAA2B;QACrD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAA,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IACnE,CAAC;IAFe,+BAAW,cAE1B,CAAA;IAED,uGAAuG;IAC1F,2BAAO,GAAG,CAAC,KAAa,EAAE,KAAU,EAAO,EAAE;QACxD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC;YAC/C,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;QAE9B,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,4GAA4G;IAC/F,4BAAQ,GAAG,CAAC,KAAa,EAAE,KAAU,EAAO,EAAE;QACzD,IAAI,KAAK,IAAI,KAAK,CAAC,WAAW,KAAK,UAAU;YAC3C,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;QAEhC,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC,EA5CgB,mBAAmB,KAAnB,mBAAmB,QA4CnC","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 Entities\r\n */\r\n\r\nimport { Base64 } from \"js-base64\";\r\n\r\n/** Represents an array of bytes encoded in base-64 with a prefix indicating the encoding, as required when converting EC properties of `binary` type to and from JSON.\r\n * @see [[TextureProps.data]] and [[BRepEntity.DataProps.data]] for examples of properties of this type.\r\n * @public\r\n * @extensions\r\n */\r\nexport type Base64EncodedString = string;\r\n\r\n/** Represents an array of bytes encoded in base-64 with a prefix indicating the encoding, as persisted in an [ECDb]($backend) for properties of `binary` type.\r\n * @public\r\n */\r\nexport namespace Base64EncodedString { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** The prefix prepended to the string identifying it as base-64-encoded. */\r\n export const prefix = \"encoding=base64;\";\r\n\r\n /** Encode an array of bytes into a Base64EncodedString. */\r\n export function fromUint8Array(bytes: Uint8Array): Base64EncodedString {\r\n return `${prefix}${Base64.fromUint8Array(bytes)}`;\r\n }\r\n\r\n /** Decode a Base64EncodedString into an array of bytes. */\r\n export function toUint8Array(base64: Base64EncodedString): Uint8Array {\r\n return Base64.toUint8Array(stripPrefix(base64));\r\n }\r\n\r\n /** Returns true if the input starts with [[Base64EncodedString.prefix]] indicating it is a well-formed Base64EncodedString. */\r\n export function hasPrefix(str: string): boolean {\r\n return str.startsWith(prefix);\r\n }\r\n\r\n /** Ensure that the base-64-encoded string starts with the [[Base64EncodedString.prefix]]. */\r\n export function ensurePrefix(base64: string): Base64EncodedString {\r\n return hasPrefix(base64) ? base64 : `${prefix}${base64}`;\r\n }\r\n\r\n /** Remove the [[Base64EncodedString.prefix]] from the string if present. */\r\n export function stripPrefix(base64: Base64EncodedString): string {\r\n return hasPrefix(base64) ? base64.substr(prefix.length) : base64;\r\n }\r\n\r\n /** A function suitable for use with `JSON.parse` to revive a Base64EncodedString into a Uint8Array. */\r\n export const reviver = (_name: string, value: any): any => {\r\n if (typeof value === \"string\" && hasPrefix(value))\r\n value = toUint8Array(value);\r\n\r\n return value;\r\n };\r\n\r\n /** A function suitable for use with `JSON.stringify` to serialize a Uint8Array as a Base64EncodedString. */\r\n export const replacer = (_name: string, value: any): any => {\r\n if (value && value.constructor === Uint8Array)\r\n value = fromUint8Array(value);\r\n\r\n return value;\r\n };\r\n}\r\n"]}
@@ -7,10 +7,12 @@ import { IModelEncryptionProps, OpenDbKey } from "./IModel";
7
7
  import { IModelVersionProps } from "./IModelVersion";
8
8
  /** The Id assigned to a briefcase by iModelHub, or [[BriefcaseIdValue.Unassigned]] .
9
9
  * @public
10
+ * @extensions
10
11
  */
11
12
  export declare type BriefcaseId = number;
12
13
  /** Values of [[BriefcaseId]] that have special meaning.
13
14
  * @public
15
+ * @extensions
14
16
  */
15
17
  export declare enum BriefcaseIdValue {
16
18
  /** Indicates an invalid/illegal BriefcaseId */
@@ -36,6 +38,7 @@ export declare enum BriefcaseIdValue {
36
38
  }
37
39
  /** Whether a briefcase is editable or may only accept incoming changesets from iModelHub
38
40
  * @public
41
+ * @extensions
39
42
  */
40
43
  export declare enum SyncMode {
41
44
  /** Use a fixed version (i.e. a checkpoint). See [CheckpointManager]($backend) for preferred approach to using checkpoint files. */
@@ -75,6 +78,7 @@ export interface OpenBriefcaseProps extends IModelEncryptionProps, OpenDbKey {
75
78
  }
76
79
  /** Properties of a local briefcase file, returned by [BriefcaseManager.getCachedBriefcases]($backend) and [BriefcaseManager.downloadBriefcase]($backend)
77
80
  * @public
81
+ * @extensions
78
82
  */
79
83
  export interface LocalBriefcaseProps {
80
84
  /** Full path of local file. */
@@ -94,6 +98,7 @@ export interface LocalBriefcaseProps {
94
98
  }
95
99
  /** Properties for downloading a briefcase to a local file, from iModelHub.
96
100
  * @public
101
+ * @extensions
97
102
  */
98
103
  export interface RequestNewBriefcaseProps {
99
104
  /** iTwin that the iModel belongs to. */
@@ -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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,oBAAY,WAAW,GAAG,MAA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IAE5B,sMAAsM;IACtM,OAAO,IAAI;IAEX,qFAAqF;IACrF,SAAS,IAAI;CACd;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,0GAA0G;IAC1G,IAAI,IAAI;IAER,qDAAqD;IACrD,OAAO,IAAI;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;IAEhC,6FAA6F;IAC7F,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;;;GAIG;AACH,oBAAY,WAAW;IACrB,sIAAsI;IACtI,QAAQ,IAAA;IAER;;;OAGG;IACH,eAAe,IAAA;IAEf,4IAA4I;IAC5I,kBAAkB,IAAA;IAElB,oIAAoI;IACpI,MAAM,IAAA;IAEN,4FAA4F;IAC5F,MAAM,IAAA;CACP"}
@@ -7,6 +7,7 @@
7
7
  */
8
8
  /** Values of [[BriefcaseId]] that have special meaning.
9
9
  * @public
10
+ * @extensions
10
11
  */
11
12
  export var BriefcaseIdValue;
12
13
  (function (BriefcaseIdValue) {
@@ -33,6 +34,7 @@ export var BriefcaseIdValue;
33
34
  })(BriefcaseIdValue || (BriefcaseIdValue = {}));
34
35
  /** Whether a briefcase is editable or may only accept incoming changesets from iModelHub
35
36
  * @public
37
+ * @extensions
36
38
  */
37
39
  export var SyncMode;
38
40
  (function (SyncMode) {
@@ -1 +1 @@
1
- {"version":3,"file":"BriefcaseTypes.js","sourceRoot":"","sources":["../../src/BriefcaseTypes.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAYH;;GAEG;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;;GAEG;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;AA2GD;;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;AAaD;;;;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":["/*---------------------------------------------------------------------------------------------\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, 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 */\r\nexport type BriefcaseId = number;\r\n\r\n/** Values of [[BriefcaseId]] that have special meaning.\r\n * @public\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 */\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 {\r\n /** the full path to the briefcase file */\r\n readonly fileName: LocalFileName;\r\n /** If true, open the briefcase readonly */\r\n readonly readonly?: 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 */\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 */\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 * 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\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 * @beta\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;AA6GD;;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;AAaD;;;;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":["/*---------------------------------------------------------------------------------------------\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, 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 {\r\n /** the full path to the briefcase file */\r\n readonly fileName: LocalFileName;\r\n /** If true, open the briefcase readonly */\r\n readonly readonly?: 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 * 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\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 * @beta\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"]}
@@ -4,6 +4,7 @@
4
4
  import { Angle, AngleProps, Point3d, XYAndZ, XYZProps } from "@itwin/core-geometry";
5
5
  /** JSON representation of a [[Camera]].
6
6
  * @public
7
+ * @extensions
7
8
  */
8
9
  export interface CameraProps {
9
10
  lens: AngleProps;
@@ -1 +1 @@
1
- {"version":3,"file":"Camera.d.ts","sourceRoot":"","sources":["../../src/Camera.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EA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C,EAAE,CAAC,CAAC,CAAC,CAAC;IACxD,IAAW,OAAO,KAAK,OAAO,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/D,MAAM,CAAC,KAAa;QACzB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,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;CAgBF","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 */\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) { return val.radians > (Math.PI / 8.0) && val.radians < Math.PI; }\r\n public static validateLensAngle(val: Angle) { if (!this.isValidLensAngle(val)) val.setRadians(Math.PI / 2.0); }\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","s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,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;CAgBF","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) { return val.radians > (Math.PI / 8.0) && val.radians < Math.PI; }\r\n public static validateLensAngle(val: Angle) { if (!this.isValidLensAngle(val)) val.setRadians(Math.PI / 2.0); }\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"]}
@@ -6,6 +6,7 @@ import { DbOpcode, Id64String } from "@itwin/core-bentley";
6
6
  import { AxisAlignedBox3dProps } from "./geometry/Placement";
7
7
  /** Bitflags describing which aspects of an [Element]($backend) changed as part of a [[ChangedElements]].
8
8
  * @public
9
+ * @extensions
9
10
  */
10
11
  export declare enum TypeOfChange {
11
12
  /** A property in the element changed */
@@ -24,6 +25,7 @@ export declare enum TypeOfChange {
24
25
  * Each index for those arrays refer to the same element, e.g. to get the class Id of
25
26
  * the element given by element Id changedElements.elements[index], you can use changedElements.classIds[index].
26
27
  * @public
28
+ * @extensions
27
29
  */
28
30
  export interface ChangedElements {
29
31
  /** Ids of elements that changed */
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedElements.d.ts","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAA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ChangedElements]].
3
3
  * @public
4
+ * @extensions
4
5
  */
5
6
  export var TypeOfChange;
6
7
  (function (TypeOfChange) {
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAWA,uBAAuB;AAEvB;;GAEG;AACH,MAAM,CAAN,IAAY,YAWX;AAXD,WAAY,YAAY;IACtB,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;AAClB,CAAC,EAXW,YAAY,KAAZ,YAAY,QAWvB","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 */\r\nexport enum TypeOfChange {\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}\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 */\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,YAWX;AAXD,WAAY,YAAY;IACtB,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;AAClB,CAAC,EAXW,YAAY,KAAZ,YAAY,QAWvB","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 /** 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}\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"]}
@@ -4,6 +4,7 @@
4
4
  import { CompressedId64Set, Id64String } from "@itwin/core-bentley";
5
5
  /** Describes an [Entity]($backend) and its [ECClass]($docs/bis/intro/glossary/#ecclass) by Id.
6
6
  * @public
7
+ * @extensions
7
8
  */
8
9
  export interface EntityIdAndClassId {
9
10
  /** The entity's Id. */
@@ -15,6 +16,7 @@ export interface EntityIdAndClassId {
15
16
  * @see [TxnManager.onElementsChanged]($backend) and [TxnManager.onModelsChanged]($backend).
16
17
  * @see [BriefcaseTxns.onElementsChanged]($frontend) and [BriefcaseTxns.onModelsChanged]($frontend).
17
18
  * @public
19
+ * @extensions
18
20
  */
19
21
  export interface ChangedEntities {
20
22
  /** The ids of entities that were inserted during the Txn. */
@@ -38,6 +40,7 @@ export interface ChangedEntities {
38
40
  * }
39
41
  * ```
40
42
  * @public
43
+ * @extensions
41
44
  */
42
45
  export declare type EntityIdAndClassIdIterable = Iterable<Readonly<EntityIdAndClassId>>;
43
46
  //# sourceMappingURL=ChangedEntities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChangedEntities.d.ts","sourceRoot":"","sources":["../../src/ChangedEntities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,EAAE,EAAE,UAAU,CAAC;IACf,sCAAsC;IACtC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,+JAA+J;IAC/J,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED;;;;;;;;;;;;;;GAcG;AACH,oBAAY,0BAA0B,GAAG,QAAQ,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ChangedEntities.d.ts","sourceRoot":"","sources":["../../src/ChangedEntities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,EAAE,EAAE,UAAU,CAAC;IACf,sCAAsC;IACtC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,+JAA+J;IAC/J,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,0BAA0B,GAAG,QAAQ,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC"}
@@ -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/intro/glossary/#ecclass) by Id.\r\n * @public\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 */\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 */\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":["/*---------------------------------------------------------------------------------------------\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/intro/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"]}
@@ -9,15 +9,18 @@ export declare type LocalDirName = string;
9
9
  /** A string that identifies a changeset.
10
10
  * @note this string is *not* a Guid. It is generated internally based on the content of the changeset.
11
11
  * @public
12
+ * @extensions
12
13
  */
13
14
  export declare type ChangesetId = string;
14
15
  /** The index of a changeset, assigned by iModelHub.
15
16
  * @note 0 means "before the first changeset." Values less than 0 are invalid.
16
17
  * @public
18
+ * @extensions
17
19
  */
18
20
  export declare type ChangesetIndex = number;
19
21
  /** Both the index and Id of a changeset
20
22
  * @public
23
+ * @extensions
21
24
  */
22
25
  export interface ChangesetIndexAndId {
23
26
  readonly index: ChangesetIndex;
@@ -25,6 +28,7 @@ export interface ChangesetIndexAndId {
25
28
  }
26
29
  /** The Id and optionally the index of a changeset
27
30
  * @public
31
+ * @extensions
28
32
  */
29
33
  export interface ChangesetIdWithIndex {
30
34
  readonly index?: ChangesetIndex;
@@ -32,6 +36,7 @@ export interface ChangesetIdWithIndex {
32
36
  }
33
37
  /** either changeset index, id, or both
34
38
  * @public
39
+ * @extensions
35
40
  */
36
41
  export declare type ChangesetIndexOrId = ChangesetIndexAndId | {
37
42
  readonly index: ChangesetIndex;
@@ -41,7 +46,9 @@ export declare type ChangesetIndexOrId = ChangesetIndexAndId | {
41
46
  readonly index?: never;
42
47
  };
43
48
  /** Value to indicate whether a changeset contains schema changes or not
44
- * @public */
49
+ * @public
50
+ * @extensions
51
+ */
45
52
  export declare enum ChangesetType {
46
53
  /** changeset does *not* contain schema changes. */
47
54
  Regular = 0,
@@ -81,6 +88,7 @@ export interface ChangesetFileProps extends ChangesetProps {
81
88
  /**
82
89
  * A range of changesets
83
90
  * @public
91
+ * @extensions
84
92
  */
85
93
  export interface ChangesetRange {
86
94
  /** index of the first changeset */
@@ -1 +1 @@
1
- {"version":3,"file":"ChangesetProps.d.ts","sourceRoot":"","sources":["../../src/ChangesetProps.ts"],"names":[],"mappings":"AAIA;;;GAGG;AAEH,cAAc;AACd,oBAAY,aAAa,GAAG,MAAM,CAAC;AACnC,cAAc;AACd,oBAAY,YAAY,GAAG,MAAM,CAAC;AAElC;;;GAGG;AACH,oBAAY,WAAW,GAAG,MAAM,CAAC;AAEjC;;;GAGG;AACH,oBAAY,cAAc,GAAG,MAAM,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAAG,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAA;CAAE;AAEjG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IAAG,QAAQ,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAA;CAAE;AAEnG;;EAEE;AACF,oBAAY,kBAAkB,GAAG,mBAAmB,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEtK;aACa;AACb,oBAAY,aAAa;IACvB,mDAAmD;IACnD,OAAO,IAAI;IACX,+CAA+C;IAC/C,MAAM,IAAI;CACX;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,4GAA4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GE;AACF,oBAAY,kBAAkB,GAAG,mBAAmB,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEtK;;;GAGG;AACH,oBAAY,aAAa;IACvB,mDAAmD;IACnD,OAAO,IAAI;IACX,+CAA+C;IAC/C,MAAM,IAAI;CACX;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,4GAA4G;IAC5G,KAAK,EAAE,cAAc,CAAC;IACtB,sBAAsB;IACtB,EAAE,EAAE,WAAW,CAAC;IAChB,gEAAgE;IAChE,QAAQ,EAAE,WAAW,CAAC;IACtB,4BAA4B;IAC5B,WAAW,EAAE,aAAa,CAAC;IAC3B,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,kEAAkE;IAClE,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,mCAAmC;IACnC,KAAK,EAAE,cAAc,CAAC;IACtB,sFAAsF;IACtF,GAAG,CAAC,EAAE,cAAc,CAAC;CACtB"}
@@ -7,7 +7,9 @@
7
7
  * @module iModels
8
8
  */
9
9
  /** Value to indicate whether a changeset contains schema changes or not
10
- * @public */
10
+ * @public
11
+ * @extensions
12
+ */
11
13
  export var ChangesetType;
12
14
  (function (ChangesetType) {
13
15
  /** changeset does *not* contain schema changes. */