@itwin/core-common 4.6.0-dev.8 → 4.7.0-dev.0

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 (475) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/lib/cjs/AmbientOcclusion.js +1 -1
  3. package/lib/cjs/AmbientOcclusion.js.map +1 -1
  4. package/lib/cjs/AnalysisStyle.js +1 -1
  5. package/lib/cjs/AnalysisStyle.js.map +1 -1
  6. package/lib/cjs/Atmosphere.js +12 -12
  7. package/lib/cjs/Atmosphere.js.map +1 -1
  8. package/lib/cjs/BackgroundMapProvider.js +1 -1
  9. package/lib/cjs/BackgroundMapProvider.js.map +1 -1
  10. package/lib/cjs/BackgroundMapSettings.js +1 -1
  11. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  12. package/lib/cjs/Base64EncodedString.js +1 -1
  13. package/lib/cjs/Base64EncodedString.js.map +1 -1
  14. package/lib/cjs/BlobReader.js.map +1 -1
  15. package/lib/cjs/BriefcaseTypes.js +5 -5
  16. package/lib/cjs/BriefcaseTypes.js.map +1 -1
  17. package/lib/cjs/Camera.js.map +1 -1
  18. package/lib/cjs/ChangedElements.js +1 -1
  19. package/lib/cjs/ChangedElements.js.map +1 -1
  20. package/lib/cjs/ChangesetProps.js +1 -1
  21. package/lib/cjs/ChangesetProps.js.map +1 -1
  22. package/lib/cjs/ClipStyle.js +3 -3
  23. package/lib/cjs/ClipStyle.js.map +1 -1
  24. package/lib/cjs/Code.d.ts +1 -0
  25. package/lib/cjs/Code.d.ts.map +1 -1
  26. package/lib/cjs/Code.js +3 -2
  27. package/lib/cjs/Code.js.map +1 -1
  28. package/lib/cjs/ColorDef.js +1 -1
  29. package/lib/cjs/ColorDef.js.map +1 -1
  30. package/lib/cjs/CommonLoggerCategory.js +1 -1
  31. package/lib/cjs/CommonLoggerCategory.js.map +1 -1
  32. package/lib/cjs/ConcurrentQuery.d.ts +11 -11
  33. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  34. package/lib/cjs/ConcurrentQuery.js +6 -6
  35. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  36. package/lib/cjs/ContextRealityModel.js +5 -5
  37. package/lib/cjs/ContextRealityModel.js.map +1 -1
  38. package/lib/cjs/DisplayStyleSettings.js +1 -1
  39. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  40. package/lib/cjs/ECSqlReader.js +1 -1
  41. package/lib/cjs/ECSqlReader.js.map +1 -1
  42. package/lib/cjs/ECSqlTypes.js +4 -4
  43. package/lib/cjs/ECSqlTypes.js.map +1 -1
  44. package/lib/cjs/ElementMesh.js.map +1 -1
  45. package/lib/cjs/ElementProps.d.ts +23 -0
  46. package/lib/cjs/ElementProps.d.ts.map +1 -1
  47. package/lib/cjs/ElementProps.js +4 -4
  48. package/lib/cjs/ElementProps.js.map +1 -1
  49. package/lib/cjs/EmphasizeElementsProps.js +1 -1
  50. package/lib/cjs/EmphasizeElementsProps.js.map +1 -1
  51. package/lib/cjs/EntityProps.d.ts +5 -2
  52. package/lib/cjs/EntityProps.d.ts.map +1 -1
  53. package/lib/cjs/EntityProps.js +2 -1
  54. package/lib/cjs/EntityProps.js.map +1 -1
  55. package/lib/cjs/EntityReference.js +2 -2
  56. package/lib/cjs/EntityReference.js.map +1 -1
  57. package/lib/cjs/Environment.js +1 -1
  58. package/lib/cjs/Environment.js.map +1 -1
  59. package/lib/cjs/FeatureIndex.js +1 -1
  60. package/lib/cjs/FeatureIndex.js.map +1 -1
  61. package/lib/cjs/FeatureSymbology.d.ts +1 -1
  62. package/lib/cjs/FeatureSymbology.js +3 -3
  63. package/lib/cjs/FeatureSymbology.js.map +1 -1
  64. package/lib/cjs/FeatureTable.js +3 -3
  65. package/lib/cjs/FeatureTable.js.map +1 -1
  66. package/lib/cjs/Fonts.js +1 -1
  67. package/lib/cjs/Fonts.js.map +1 -1
  68. package/lib/cjs/Frustum.d.ts.map +1 -1
  69. package/lib/cjs/Frustum.js +3 -1
  70. package/lib/cjs/Frustum.js.map +1 -1
  71. package/lib/cjs/GenericInstanceFilter.js +2 -2
  72. package/lib/cjs/GenericInstanceFilter.js.map +1 -1
  73. package/lib/cjs/GeoCoordinateServices.js +1 -1
  74. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  75. package/lib/cjs/GeometryParams.js +3 -3
  76. package/lib/cjs/GeometryParams.js.map +1 -1
  77. package/lib/cjs/GeometrySummary.js +1 -1
  78. package/lib/cjs/GeometrySummary.js.map +1 -1
  79. package/lib/cjs/Gradient.js +5 -5
  80. package/lib/cjs/Gradient.js.map +1 -1
  81. package/lib/cjs/GraphicParams.js +1 -1
  82. package/lib/cjs/GraphicParams.js.map +1 -1
  83. package/lib/cjs/GroundPlane.js +1 -1
  84. package/lib/cjs/GroundPlane.js.map +1 -1
  85. package/lib/cjs/HSVColor.js +1 -1
  86. package/lib/cjs/HSVColor.js.map +1 -1
  87. package/lib/cjs/HiddenLine.js +1 -1
  88. package/lib/cjs/HiddenLine.js.map +1 -1
  89. package/lib/cjs/Hilite.js +1 -1
  90. package/lib/cjs/Hilite.js.map +1 -1
  91. package/lib/cjs/IModel.js +1 -1
  92. package/lib/cjs/IModel.js.map +1 -1
  93. package/lib/cjs/IModelVersion.js.map +1 -1
  94. package/lib/cjs/Image.js +2 -2
  95. package/lib/cjs/Image.js.map +1 -1
  96. package/lib/cjs/IpcAppProps.d.ts +24 -2
  97. package/lib/cjs/IpcAppProps.d.ts.map +1 -1
  98. package/lib/cjs/IpcAppProps.js.map +1 -1
  99. package/lib/cjs/LightSettings.js +1 -1
  100. package/lib/cjs/LightSettings.js.map +1 -1
  101. package/lib/cjs/LinePixels.js +1 -1
  102. package/lib/cjs/LinePixels.js.map +1 -1
  103. package/lib/cjs/Localization.js.map +1 -1
  104. package/lib/cjs/MapImagerySettings.js +1 -1
  105. package/lib/cjs/MapImagerySettings.js.map +1 -1
  106. package/lib/cjs/MapLayerSettings.js.map +1 -1
  107. package/lib/cjs/MassProperties.js +1 -1
  108. package/lib/cjs/MassProperties.js.map +1 -1
  109. package/lib/cjs/MaterialProps.js +2 -2
  110. package/lib/cjs/MaterialProps.js.map +1 -1
  111. package/lib/cjs/ModelGeometryChanges.js +2 -2
  112. package/lib/cjs/ModelGeometryChanges.js.map +1 -1
  113. package/lib/cjs/NativeAppProps.js +2 -2
  114. package/lib/cjs/NativeAppProps.js.map +1 -1
  115. package/lib/cjs/OctEncodedNormal.js.map +1 -1
  116. package/lib/cjs/PlanarClipMask.js +3 -3
  117. package/lib/cjs/PlanarClipMask.js.map +1 -1
  118. package/lib/cjs/QPoint.js +3 -3
  119. package/lib/cjs/QPoint.js.map +1 -1
  120. package/lib/cjs/RealityDataAccessProps.d.ts +4 -4
  121. package/lib/cjs/RealityDataAccessProps.d.ts.map +1 -1
  122. package/lib/cjs/RealityDataAccessProps.js +1 -1
  123. package/lib/cjs/RealityDataAccessProps.js.map +1 -1
  124. package/lib/cjs/RealityModelDisplaySettings.js +2 -2
  125. package/lib/cjs/RealityModelDisplaySettings.js.map +1 -1
  126. package/lib/cjs/Render.d.ts +2 -2
  127. package/lib/cjs/Render.d.ts.map +1 -1
  128. package/lib/cjs/Render.js +1 -1
  129. package/lib/cjs/Render.js.map +1 -1
  130. package/lib/cjs/RenderMaterial.js +1 -1
  131. package/lib/cjs/RenderMaterial.js.map +1 -1
  132. package/lib/cjs/RenderSchedule.js +1 -1
  133. package/lib/cjs/RenderSchedule.js.map +1 -1
  134. package/lib/cjs/RenderTexture.js +1 -1
  135. package/lib/cjs/RenderTexture.js.map +1 -1
  136. package/lib/cjs/RgbColor.js.map +1 -1
  137. package/lib/cjs/RpcInterface.js.map +1 -1
  138. package/lib/cjs/SkyBox.js +3 -3
  139. package/lib/cjs/SkyBox.js.map +1 -1
  140. package/lib/cjs/SolarCalculate.js.map +1 -1
  141. package/lib/cjs/SolarShadows.js +1 -1
  142. package/lib/cjs/SolarShadows.js.map +1 -1
  143. package/lib/cjs/SpatialClassification.js +2 -2
  144. package/lib/cjs/SpatialClassification.js.map +1 -1
  145. package/lib/cjs/SubCategoryAppearance.js +1 -1
  146. package/lib/cjs/SubCategoryAppearance.js.map +1 -1
  147. package/lib/cjs/SubCategoryOverride.js +1 -1
  148. package/lib/cjs/SubCategoryOverride.js.map +1 -1
  149. package/lib/cjs/TerrainSettings.js +2 -2
  150. package/lib/cjs/TerrainSettings.js.map +1 -1
  151. package/lib/cjs/TextureMapping.js +1 -1
  152. package/lib/cjs/TextureMapping.js.map +1 -1
  153. package/lib/cjs/TextureProps.js +1 -1
  154. package/lib/cjs/TextureProps.js.map +1 -1
  155. package/lib/cjs/ThematicDisplay.js +5 -5
  156. package/lib/cjs/ThematicDisplay.js.map +1 -1
  157. package/lib/cjs/TileProps.js +1 -1
  158. package/lib/cjs/TileProps.js.map +1 -1
  159. package/lib/cjs/Tween.js.map +1 -1
  160. package/lib/cjs/TxnAction.js +1 -1
  161. package/lib/cjs/TxnAction.js.map +1 -1
  162. package/lib/cjs/ViewDetails.js +2 -2
  163. package/lib/cjs/ViewDetails.js.map +1 -1
  164. package/lib/cjs/ViewFlags.js +2 -2
  165. package/lib/cjs/ViewFlags.js.map +1 -1
  166. package/lib/cjs/ViewProps.js +1 -1
  167. package/lib/cjs/ViewProps.js.map +1 -1
  168. package/lib/cjs/WhiteOnWhiteReversalSettings.js +1 -1
  169. package/lib/cjs/WhiteOnWhiteReversalSettings.js.map +1 -1
  170. package/lib/cjs/annotation/TextAnnotation.d.ts +101 -0
  171. package/lib/cjs/annotation/TextAnnotation.d.ts.map +1 -0
  172. package/lib/cjs/annotation/TextAnnotation.js +97 -0
  173. package/lib/cjs/annotation/TextAnnotation.js.map +1 -0
  174. package/lib/cjs/annotation/TextBlock.d.ts +314 -0
  175. package/lib/cjs/annotation/TextBlock.d.ts.map +1 -0
  176. package/lib/cjs/annotation/TextBlock.js +338 -0
  177. package/lib/cjs/annotation/TextBlock.js.map +1 -0
  178. package/lib/cjs/annotation/TextBlockGeometryProps.d.ts +44 -0
  179. package/lib/cjs/annotation/TextBlockGeometryProps.d.ts.map +1 -0
  180. package/lib/cjs/annotation/TextBlockGeometryProps.js +10 -0
  181. package/lib/cjs/annotation/TextBlockGeometryProps.js.map +1 -0
  182. package/lib/cjs/annotation/TextStyle.d.ts +185 -0
  183. package/lib/cjs/annotation/TextStyle.d.ts.map +1 -0
  184. package/lib/cjs/annotation/TextStyle.js +110 -0
  185. package/lib/cjs/annotation/TextStyle.js.map +1 -0
  186. package/lib/cjs/core-common.d.ts +8 -0
  187. package/lib/cjs/core-common.d.ts.map +1 -1
  188. package/lib/cjs/core-common.js +8 -0
  189. package/lib/cjs/core-common.js.map +1 -1
  190. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  191. package/lib/cjs/geometry/AreaPattern.js +1 -1
  192. package/lib/cjs/geometry/AreaPattern.js.map +1 -1
  193. package/lib/cjs/geometry/Cartographic.js +1 -1
  194. package/lib/cjs/geometry/Cartographic.js.map +1 -1
  195. package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
  196. package/lib/cjs/geometry/ElementGeometry.d.ts +7 -0
  197. package/lib/cjs/geometry/ElementGeometry.d.ts.map +1 -1
  198. package/lib/cjs/geometry/ElementGeometry.js +30 -3
  199. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  200. package/lib/cjs/geometry/ElementGeometryFB.js +1 -1
  201. package/lib/cjs/geometry/ElementGeometryFB.js.map +1 -1
  202. package/lib/cjs/geometry/FrustumPlanes.js +5 -5
  203. package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
  204. package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
  205. package/lib/cjs/geometry/GeodeticEllipsoid.js.map +1 -1
  206. package/lib/cjs/geometry/GeometryStream.d.ts +7 -0
  207. package/lib/cjs/geometry/GeometryStream.d.ts.map +1 -1
  208. package/lib/cjs/geometry/GeometryStream.js +37 -9
  209. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  210. package/lib/cjs/geometry/LineStyle.js +1 -1
  211. package/lib/cjs/geometry/LineStyle.js.map +1 -1
  212. package/lib/cjs/geometry/Projection.js.map +1 -1
  213. package/lib/cjs/geometry/TextString.d.ts.map +1 -1
  214. package/lib/cjs/geometry/TextString.js +16 -13
  215. package/lib/cjs/geometry/TextString.js.map +1 -1
  216. package/lib/cjs/ipc/IpcWebSocket.js +3 -3
  217. package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
  218. package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -1
  219. package/lib/cjs/rpc/DevToolsRpcInterface.js +2 -2
  220. package/lib/cjs/rpc/DevToolsRpcInterface.js.map +1 -1
  221. package/lib/cjs/rpc/IModelReadRpcInterface.js +1 -1
  222. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  223. package/lib/cjs/rpc/IModelTileRpcInterface.js +1 -1
  224. package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
  225. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js +1 -1
  226. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  227. package/lib/cjs/rpc/WipRpcInterface.js +1 -1
  228. package/lib/cjs/rpc/WipRpcInterface.js.map +1 -1
  229. package/lib/cjs/rpc/core/RpcConfiguration.js +6 -6
  230. package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
  231. package/lib/cjs/rpc/core/RpcConstants.js +7 -7
  232. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  233. package/lib/cjs/rpc/core/RpcControl.js +1 -1
  234. package/lib/cjs/rpc/core/RpcControl.js.map +1 -1
  235. package/lib/cjs/rpc/core/RpcInvocation.js +3 -3
  236. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  237. package/lib/cjs/rpc/core/RpcMarshaling.js +2 -2
  238. package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
  239. package/lib/cjs/rpc/core/RpcOperation.js +2 -3
  240. package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
  241. package/lib/cjs/rpc/core/RpcPendingQueue.js.map +1 -1
  242. package/lib/cjs/rpc/core/RpcProtocol.js +3 -3
  243. package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
  244. package/lib/cjs/rpc/core/RpcPush.js +2 -2
  245. package/lib/cjs/rpc/core/RpcPush.js.map +1 -1
  246. package/lib/cjs/rpc/core/RpcRegistry.js.map +1 -1
  247. package/lib/cjs/rpc/core/RpcRequest.js +1 -1
  248. package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
  249. package/lib/cjs/rpc/core/RpcRoutingToken.js +1 -1
  250. package/lib/cjs/rpc/core/RpcRoutingToken.js.map +1 -1
  251. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js +1 -1
  252. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  253. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  254. package/lib/cjs/rpc/web/RpcMultipart.js +1 -1
  255. package/lib/cjs/rpc/web/RpcMultipart.js.map +1 -1
  256. package/lib/cjs/rpc/web/WebAppRpcLogging.js +8 -8
  257. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  258. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  259. package/lib/cjs/rpc/web/WebAppRpcRequest.js +3 -3
  260. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  261. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  262. package/lib/cjs/tile/B3dmTileIO.js.map +1 -1
  263. package/lib/cjs/tile/GltfTileIO.js +2 -2
  264. package/lib/cjs/tile/GltfTileIO.js.map +1 -1
  265. package/lib/cjs/tile/I3dmTileIO.js.map +1 -1
  266. package/lib/cjs/tile/IModelTileIO.js +3 -3
  267. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  268. package/lib/cjs/tile/TileIO.d.ts +6 -6
  269. package/lib/cjs/tile/TileIO.d.ts.map +1 -1
  270. package/lib/cjs/tile/TileIO.js +2 -2
  271. package/lib/cjs/tile/TileIO.js.map +1 -1
  272. package/lib/cjs/tile/TileMetadata.d.ts +3 -3
  273. package/lib/cjs/tile/TileMetadata.d.ts.map +1 -1
  274. package/lib/cjs/tile/TileMetadata.js +3 -3
  275. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  276. package/lib/cjs/tile/Tileset3dSchema.d.ts.map +1 -1
  277. package/lib/cjs/tile/Tileset3dSchema.js.map +1 -1
  278. package/lib/esm/AnalysisStyle.js +1 -2
  279. package/lib/esm/AnalysisStyle.js.map +1 -1
  280. package/lib/esm/Atmosphere.js +11 -11
  281. package/lib/esm/Atmosphere.js.map +1 -1
  282. package/lib/esm/BackgroundMapProvider.js.map +1 -1
  283. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  284. package/lib/esm/BlobReader.js.map +1 -1
  285. package/lib/esm/Camera.js.map +1 -1
  286. package/lib/esm/ClipStyle.js +3 -6
  287. package/lib/esm/ClipStyle.js.map +1 -1
  288. package/lib/esm/Code.d.ts +1 -0
  289. package/lib/esm/Code.d.ts.map +1 -1
  290. package/lib/esm/Code.js +1 -0
  291. package/lib/esm/Code.js.map +1 -1
  292. package/lib/esm/ColorDef.js +1 -2
  293. package/lib/esm/ColorDef.js.map +1 -1
  294. package/lib/esm/ConcurrentQuery.d.ts +11 -11
  295. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  296. package/lib/esm/ConcurrentQuery.js.map +1 -1
  297. package/lib/esm/ContextRealityModel.js.map +1 -1
  298. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  299. package/lib/esm/ECSqlReader.js +1 -2
  300. package/lib/esm/ECSqlReader.js.map +1 -1
  301. package/lib/esm/ECSqlTypes.js.map +1 -1
  302. package/lib/esm/ElementMesh.js.map +1 -1
  303. package/lib/esm/ElementProps.d.ts +23 -0
  304. package/lib/esm/ElementProps.d.ts.map +1 -1
  305. package/lib/esm/ElementProps.js +1 -2
  306. package/lib/esm/ElementProps.js.map +1 -1
  307. package/lib/esm/EntityProps.d.ts +5 -2
  308. package/lib/esm/EntityProps.d.ts.map +1 -1
  309. package/lib/esm/EntityProps.js +1 -0
  310. package/lib/esm/EntityProps.js.map +1 -1
  311. package/lib/esm/Environment.js +1 -2
  312. package/lib/esm/Environment.js.map +1 -1
  313. package/lib/esm/FeatureSymbology.d.ts +1 -1
  314. package/lib/esm/FeatureSymbology.js +2 -4
  315. package/lib/esm/FeatureSymbology.js.map +1 -1
  316. package/lib/esm/FeatureTable.js.map +1 -1
  317. package/lib/esm/Frustum.d.ts.map +1 -1
  318. package/lib/esm/Frustum.js +2 -0
  319. package/lib/esm/Frustum.js.map +1 -1
  320. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  321. package/lib/esm/GeometryParams.js.map +1 -1
  322. package/lib/esm/Gradient.js +4 -4
  323. package/lib/esm/Gradient.js.map +1 -1
  324. package/lib/esm/GroundPlane.js +1 -2
  325. package/lib/esm/GroundPlane.js.map +1 -1
  326. package/lib/esm/HSVColor.js.map +1 -1
  327. package/lib/esm/HiddenLine.js.map +1 -1
  328. package/lib/esm/IModel.js +1 -2
  329. package/lib/esm/IModel.js.map +1 -1
  330. package/lib/esm/IModelVersion.js.map +1 -1
  331. package/lib/esm/Image.js.map +1 -1
  332. package/lib/esm/IpcAppProps.d.ts +24 -2
  333. package/lib/esm/IpcAppProps.d.ts.map +1 -1
  334. package/lib/esm/IpcAppProps.js.map +1 -1
  335. package/lib/esm/LightSettings.js +1 -2
  336. package/lib/esm/LightSettings.js.map +1 -1
  337. package/lib/esm/Localization.js.map +1 -1
  338. package/lib/esm/MapImagerySettings.js.map +1 -1
  339. package/lib/esm/MapLayerSettings.js.map +1 -1
  340. package/lib/esm/ModelGeometryChanges.js.map +1 -1
  341. package/lib/esm/OctEncodedNormal.js.map +1 -1
  342. package/lib/esm/PlanarClipMask.js +1 -2
  343. package/lib/esm/PlanarClipMask.js.map +1 -1
  344. package/lib/esm/QPoint.js.map +1 -1
  345. package/lib/esm/RealityDataAccessProps.d.ts +4 -4
  346. package/lib/esm/RealityDataAccessProps.d.ts.map +1 -1
  347. package/lib/esm/RealityModelDisplaySettings.js +2 -4
  348. package/lib/esm/RealityModelDisplaySettings.js.map +1 -1
  349. package/lib/esm/Render.d.ts +2 -2
  350. package/lib/esm/Render.d.ts.map +1 -1
  351. package/lib/esm/Render.js.map +1 -1
  352. package/lib/esm/RenderSchedule.js.map +1 -1
  353. package/lib/esm/RgbColor.js.map +1 -1
  354. package/lib/esm/RpcInterface.js.map +1 -1
  355. package/lib/esm/SkyBox.js +2 -4
  356. package/lib/esm/SkyBox.js.map +1 -1
  357. package/lib/esm/SolarCalculate.js.map +1 -1
  358. package/lib/esm/SolarShadows.js +1 -2
  359. package/lib/esm/SolarShadows.js.map +1 -1
  360. package/lib/esm/SpatialClassification.js.map +1 -1
  361. package/lib/esm/SubCategoryAppearance.js +1 -2
  362. package/lib/esm/SubCategoryAppearance.js.map +1 -1
  363. package/lib/esm/SubCategoryOverride.js +1 -2
  364. package/lib/esm/SubCategoryOverride.js.map +1 -1
  365. package/lib/esm/TerrainSettings.js.map +1 -1
  366. package/lib/esm/TextureMapping.js.map +1 -1
  367. package/lib/esm/ThematicDisplay.js +1 -2
  368. package/lib/esm/ThematicDisplay.js.map +1 -1
  369. package/lib/esm/Tween.js.map +1 -1
  370. package/lib/esm/ViewDetails.js +1 -2
  371. package/lib/esm/ViewDetails.js.map +1 -1
  372. package/lib/esm/ViewFlags.js +1 -2
  373. package/lib/esm/ViewFlags.js.map +1 -1
  374. package/lib/esm/WhiteOnWhiteReversalSettings.js +1 -2
  375. package/lib/esm/WhiteOnWhiteReversalSettings.js.map +1 -1
  376. package/lib/esm/annotation/TextAnnotation.d.ts +101 -0
  377. package/lib/esm/annotation/TextAnnotation.d.ts.map +1 -0
  378. package/lib/esm/annotation/TextAnnotation.js +93 -0
  379. package/lib/esm/annotation/TextAnnotation.js.map +1 -0
  380. package/lib/esm/annotation/TextBlock.d.ts +314 -0
  381. package/lib/esm/annotation/TextBlock.d.ts.map +1 -0
  382. package/lib/esm/annotation/TextBlock.js +329 -0
  383. package/lib/esm/annotation/TextBlock.js.map +1 -0
  384. package/lib/esm/annotation/TextBlockGeometryProps.d.ts +44 -0
  385. package/lib/esm/annotation/TextBlockGeometryProps.d.ts.map +1 -0
  386. package/lib/esm/annotation/TextBlockGeometryProps.js +9 -0
  387. package/lib/esm/annotation/TextBlockGeometryProps.js.map +1 -0
  388. package/lib/esm/annotation/TextStyle.d.ts +185 -0
  389. package/lib/esm/annotation/TextStyle.d.ts.map +1 -0
  390. package/lib/esm/annotation/TextStyle.js +105 -0
  391. package/lib/esm/annotation/TextStyle.js.map +1 -0
  392. package/lib/esm/core-common.d.ts +8 -0
  393. package/lib/esm/core-common.d.ts.map +1 -1
  394. package/lib/esm/core-common.js +8 -0
  395. package/lib/esm/core-common.js.map +1 -1
  396. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  397. package/lib/esm/geometry/AreaPattern.js.map +1 -1
  398. package/lib/esm/geometry/Cartographic.js +1 -2
  399. package/lib/esm/geometry/Cartographic.js.map +1 -1
  400. package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
  401. package/lib/esm/geometry/ElementGeometry.d.ts +7 -0
  402. package/lib/esm/geometry/ElementGeometry.d.ts.map +1 -1
  403. package/lib/esm/geometry/ElementGeometry.js +28 -1
  404. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  405. package/lib/esm/geometry/ElementGeometryFB.js.map +1 -1
  406. package/lib/esm/geometry/FrustumPlanes.js +4 -4
  407. package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
  408. package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
  409. package/lib/esm/geometry/GeodeticEllipsoid.js.map +1 -1
  410. package/lib/esm/geometry/GeometryStream.d.ts +7 -0
  411. package/lib/esm/geometry/GeometryStream.d.ts.map +1 -1
  412. package/lib/esm/geometry/GeometryStream.js +36 -8
  413. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  414. package/lib/esm/geometry/LineStyle.js.map +1 -1
  415. package/lib/esm/geometry/Projection.js.map +1 -1
  416. package/lib/esm/geometry/TextString.d.ts.map +1 -1
  417. package/lib/esm/geometry/TextString.js +16 -13
  418. package/lib/esm/geometry/TextString.js.map +1 -1
  419. package/lib/esm/ipc/IpcWebSocket.js +1 -2
  420. package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
  421. package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -1
  422. package/lib/esm/rpc/DevToolsRpcInterface.js +1 -2
  423. package/lib/esm/rpc/DevToolsRpcInterface.js.map +1 -1
  424. package/lib/esm/rpc/IModelReadRpcInterface.js +1 -2
  425. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  426. package/lib/esm/rpc/IModelTileRpcInterface.js +1 -2
  427. package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
  428. package/lib/esm/rpc/SnapshotIModelRpcInterface.js +1 -2
  429. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  430. package/lib/esm/rpc/WipRpcInterface.js +1 -2
  431. package/lib/esm/rpc/WipRpcInterface.js.map +1 -1
  432. package/lib/esm/rpc/core/RpcConfiguration.js +5 -6
  433. package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
  434. package/lib/esm/rpc/core/RpcControl.js +1 -2
  435. package/lib/esm/rpc/core/RpcControl.js.map +1 -1
  436. package/lib/esm/rpc/core/RpcInvocation.js +3 -4
  437. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  438. package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
  439. package/lib/esm/rpc/core/RpcOperation.js +1 -2
  440. package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
  441. package/lib/esm/rpc/core/RpcPendingQueue.js.map +1 -1
  442. package/lib/esm/rpc/core/RpcProtocol.js +1 -2
  443. package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
  444. package/lib/esm/rpc/core/RpcPush.js +2 -4
  445. package/lib/esm/rpc/core/RpcPush.js.map +1 -1
  446. package/lib/esm/rpc/core/RpcRegistry.js.map +1 -1
  447. package/lib/esm/rpc/core/RpcRequest.js +1 -2
  448. package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
  449. package/lib/esm/rpc/core/RpcRoutingToken.js +1 -2
  450. package/lib/esm/rpc/core/RpcRoutingToken.js.map +1 -1
  451. package/lib/esm/rpc/web/BentleyCloudRpcManager.js +1 -2
  452. package/lib/esm/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  453. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  454. package/lib/esm/rpc/web/RpcMultipart.js +1 -2
  455. package/lib/esm/rpc/web/RpcMultipart.js.map +1 -1
  456. package/lib/esm/rpc/web/WebAppRpcLogging.js +8 -8
  457. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  458. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  459. package/lib/esm/rpc/web/WebAppRpcRequest.js +3 -4
  460. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  461. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  462. package/lib/esm/tile/B3dmTileIO.js.map +1 -1
  463. package/lib/esm/tile/GltfTileIO.js.map +1 -1
  464. package/lib/esm/tile/I3dmTileIO.js.map +1 -1
  465. package/lib/esm/tile/IModelTileIO.js +1 -2
  466. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  467. package/lib/esm/tile/TileIO.d.ts +6 -6
  468. package/lib/esm/tile/TileIO.d.ts.map +1 -1
  469. package/lib/esm/tile/TileIO.js.map +1 -1
  470. package/lib/esm/tile/TileMetadata.d.ts +3 -3
  471. package/lib/esm/tile/TileMetadata.d.ts.map +1 -1
  472. package/lib/esm/tile/TileMetadata.js.map +1 -1
  473. package/lib/esm/tile/Tileset3dSchema.d.ts.map +1 -1
  474. package/lib/esm/tile/Tileset3dSchema.js.map +1 -1
  475. package/package.json +9 -9
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/annotation/TextBlock.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAsDH;;;;;GAKG;AACH,MAAsB,kBAAkB;IAItC,gBAAgB;IAChB,YAAsB,KAA8B;QAClD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,eAAe,GAAG,EAAE,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAW,SAAS,CAAC,SAAiB;QACpC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,IAAW,cAAc;QACvB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,IAAW,cAAc,CAAC,SAAiC;QACzD,IAAI,CAAC,eAAe,GAAG,EAAE,GAAG,SAAS,EAAE,CAAC;IAC1C,CAAC;IAED,8EAA8E;IACvE,mBAAmB;QACxB,IAAI,CAAC,cAAc,GAAG,EAAG,CAAC;IAC5B,CAAC;IAED,oKAAoK;IAC7J,UAAU,CAAC,SAAiB,EAAE,OAA+B;QAClE,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAE5B,IAAI,CAAC,CAAC,OAAO,EAAE,iBAAiB,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC7B,CAAC;IACH,CAAC;IAED,4GAA4G;IAC5G,IAAW,cAAc;QACvB,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IACrD,CAAC;IAQD,yDAAyD;IAClD,MAAM;QACX,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,cAAc,EAAE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CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACI,eAAe;QACpB,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAChC,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC;YACjC,SAAS,EAAE,IAAI,EAAE,SAAS,IAAI,IAAI,CAAC,SAAS;YAC5C,cAAc,EAAE,IAAI,EAAE,cAAc,IAAI,SAAS;SAClD,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAChC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;OAEG;IACI,SAAS,CAAC,GAAQ;QACvB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;QACxF,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAEe,MAAM,CAAC,KAAyB;QAC9C,IAAI,CAAC,CAAC,KAAK,YAAY,SAAS,CAAC,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,aAAa,KAAK,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;YACnI,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChG,CAAC;CACF;AA/FD,8BA+FC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Annotation\n */\n\nimport { TextStyleSettingsProps } from \"./TextStyle\";\n\n/** Options supplied to [[TextBlockComponent.applyStyle]] to control how the style is applied to the component and its child components.\n * @beta\n * @preview\n * @extensions\n */\nexport interface ApplyTextStyleOptions {\n /** Controls whether any deviations from the style's settings stored in [[TextBlockComponent.styleOverrides]] are retained.\n * By default, all overrides are cleared.\n */\n preserveOverrides?: boolean;\n /** Controls whether the style should be recursively applied to the [[Paragraph]]s belonging to a [[TextBlock]] and the [[Run]]s belonging to a [[Paragraph]].\n * By default, the style change propagates to child components.\n */\n preventPropagation?: boolean;\n}\n\n/** The JSON representation of a [[TextBlockComponent]].\n * @beta\n * @preview\n * @extensions\n */\nexport interface TextBlockComponentProps {\n /** The name of a [[TextStyle]] stored in a [Workspace]($backend) from which the base [[TextStyleSettings]] applied to the component originates. */\n styleName: string;\n /** Deviations from the base [[TextStyleSettings]] defined by the [[TextStyle]] applied to this component.\n * This permits you to, e.g., create a [[TextRun]] using \"Arial\" font and override it to use \"Comic Sans\" instead.\n */\n styleOverrides?: TextStyleSettingsProps;\n}\n\n/** Options supplied to [[TextBlockComponent.stringify]] to control how the content is formatted.\n * @beta\n * @preview\n * @extensions\n */\nexport interface TextBlockStringifyOptions {\n /** A string to insert in between each [[Paragraph]].\n * Default: \" \" - a single space.\n */\n paragraphBreak?: string;\n /** A string to insert for each [[LineBreakRun]].\n * Default: \" \" - a single space.\n */\n lineBreak?: string;\n /** A string to insert between the numerator and denominator of each [[FractionRun]].\n * Default: \"/\"\n */\n fractionSeparator?: string;\n}\n\n/** Abstract representation of any of the building blocks that make up a [[TextBlock]] document - namely [[Run]]s, [[Paragraph]]s, and [[TextBlock]] itself.\n * Each component can specify a [[TextStyle]] that formats its contents and optional [[styleOverrides]] to customize that formatting.\n * @beta\n * @preview\n * @extensions\n */\nexport abstract class TextBlockComponent {\n private _styleName: string;\n private _styleOverrides: TextStyleSettingsProps;\n\n /** @internal */\n protected constructor(props: TextBlockComponentProps) {\n this._styleName = props.styleName;\n this._styleOverrides = { ...props.styleOverrides };\n }\n\n /** The name of the [[TextStyle]] that provides the base formatting for the contents of this component.\n * @note Assigning to this property is equivalent to calling [[applyStyle]] with default [[ApplyTextStyleOptions]], which propagates the style change to all of\n * the components sub-components and clears any [[styleOverrides]].\n */\n public get styleName(): string {\n return this._styleName;\n }\n\n public set styleName(styleName: string) {\n this.applyStyle(styleName);\n }\n\n /** Deviations in individual properties of the [[TextStyle]] specified by [[styleName]].\n * For example, if the style uses the \"Arial\" font, you can override that by settings `styleOverrides.fontName` to \"Comic Sans\".\n * @see [[clearStyleOverrides]] to reset this to an empty object.\n */\n public get styleOverrides(): TextStyleSettingsProps {\n return this._styleOverrides;\n }\n\n public set styleOverrides(overrides: TextStyleSettingsProps) {\n this._styleOverrides = { ...overrides };\n }\n\n /** Reset any [[styleOverrides]] applied to this component's [[TextStyle]]. */\n public clearStyleOverrides(): void {\n this.styleOverrides = { };\n }\n\n /** Apply the [[TextStyle]] specified by `styleName` to this component, optionally preserving [[styleOverrides]] and/or preventing propagation to sub-components. */\n public applyStyle(styleName: string, options?: ApplyTextStyleOptions): void {\n this._styleName = styleName;\n\n if (!(options?.preserveOverrides)) {\n this.clearStyleOverrides();\n }\n }\n\n /** Returns true if [[styleOverrides]] specifies any deviations from this component's base [[TextStyle]]. */\n public get overridesStyle(): boolean {\n return Object.keys(this.styleOverrides).length > 0;\n }\n\n /** Create a deep copy of this component. */\n public abstract clone(): TextBlockComponent;\n\n /** Compute a string representation of the contents of this component and all of its sub-components. */\n public abstract stringify(options?: TextBlockStringifyOptions): string;\n\n /** Convert this component to its JSON representation. */\n public toJSON(): TextBlockComponentProps {\n return {\n styleName: this.styleName,\n styleOverrides: { ...this.styleOverrides },\n };\n }\n\n /** Returns true if `this` is equivalent to `other`. */\n public equals(other: TextBlockComponent): boolean {\n const myKeys = Object.keys(this.styleOverrides);\n const yrKeys = Object.keys(other._styleOverrides);\n if (this.styleName !== other.styleName || myKeys.length !== yrKeys.length) {\n return false;\n }\n\n for (const name of myKeys) {\n const key = name as keyof TextStyleSettingsProps;\n if (this.styleOverrides[key] !== other.styleOverrides[key]) {\n return false;\n }\n }\n\n return true;\n }\n}\n\n/**\n * @beta\n * @preview\n * @extensions\n */\nexport type Run = TextRun | FractionRun | LineBreakRun;\n\n/** The JSON representation of a [[Run]].\n * Use the `type` field to discriminate between the different kinds of runs.\n * @beta\n * @preview\n * @extensions\n */\nexport type RunProps = TextRunProps | FractionRunProps | LineBreakRunProps;\n\n/** A sequence of characters within a [[Paragraph]] that share a single style. Runs are the leaf nodes of a [[TextBlock]] document. When laid out for display, a single run may span\n * multiple lines, but it will never contain different styling.\n * Use the `type` field to discriminate between the different kinds of runs.\n * @beta\n * @preview\n * @extensions\n */\nexport namespace Run { // eslint-disable-line @typescript-eslint/no-redeclare\n /** Create a run from its JSON representation.\n * @see [[TextRun.create]], [[FractionRun.create]], and [[LineBreakRun.create]] to create a run directly.\n */\n export function fromJSON(props: RunProps): Run {\n switch (props.type) {\n case \"text\": return TextRun.create(props);\n case \"fraction\": return FractionRun.create(props);\n case \"linebreak\": return LineBreakRun.create(props);\n }\n }\n}\n\n/** Describes whether the characters of a [[TextRun]] should be displayed normally, in subscript, or in superscript.\n * [[TextStyleSettings.superScriptScale]], [[TextStyleSettings.subScriptScale]], [[TextStyleSettings.superScriptOffsetFactor]], and [[TextStyleSettings.subScriptOffsetFactor]]\n * affect how the content is rendered.\n * @beta\n * @preview\n * @extensions\n */\nexport type BaselineShift = \"subscript\" | \"superscript\" | \"none\";\n\n/** JSON representation of a [[TextRun]].\n * @beta\n * @preview\n * @extensions\n */\nexport interface TextRunProps extends TextBlockComponentProps {\n /** Discriminator field for the [[RunProps]] union. */\n readonly type: \"text\";\n /** The characters displayed by the run.\n * Default: an empty string.\n */\n content?: string;\n /** Whether to display [[content]] as a subscript, superscript, or normally.\n * Default: \"none\"\n */\n baselineShift?: BaselineShift;\n}\n\n/** The most common type of [[Run]], containing a sequence of characters to be displayed using a single style.\n * @beta\n * @preview\n * @extensions\n */\nexport class TextRun extends TextBlockComponent {\n /** Discriminator field for the [[Run]] union. */\n public readonly type = \"text\";\n /** The sequence of characters to be displayed by the run. */\n public content: string;\n /** Whether to display [[content]] as a subscript, superscript, or normally. */\n public baselineShift: BaselineShift;\n\n private constructor(props: Omit<TextRunProps, \"type\">) {\n super(props);\n this.content = props.content ?? \"\";\n this.baselineShift = props.baselineShift ?? \"none\";\n }\n\n public override clone(): TextRun {\n return new TextRun(this.toJSON());\n }\n\n public override toJSON(): TextRunProps {\n return {\n ...super.toJSON(),\n type: \"text\",\n content: this.content,\n baselineShift: this.baselineShift,\n };\n }\n\n public static create(props: Omit<TextRunProps, \"type\">): TextRun {\n return new TextRun(props);\n }\n\n /** Simply returns [[content]]. */\n public override stringify(): string {\n return this.content;\n }\n\n public override equals(other: TextBlockComponent): boolean {\n return other instanceof TextRun && this.content === other.content && this.baselineShift === other.baselineShift && super.equals(other);\n }\n}\n\n/** JSON representation of a [[FractionRun]].\n * @beta\n * @preview\n * @extensions\n */\nexport interface FractionRunProps extends TextBlockComponentProps {\n /** Discriminator field for the [[RunProps]] union. */\n readonly type: \"fraction\";\n /** The text displayed before or above the fraction separator, depending on [[TextStyle.stackedFractionType]]. Default: an empty string. */\n numerator?: string;\n /** The text displayed after or below the fraction separator, depending on [[TextStyle.stackedFractionType]]. Default: an empty string. */\n denominator?: string;\n}\n\n/** A [[Run]] containing a numeric ratio to be displayed as a numerator and denominator separated by a horizontal or diagonal bar.\n * @note The [[numerator]] and [[denominator]] are stored as strings. They are not technically required to contain a numeric representation.\n * @beta\n * @preview\n * @extensions\n */\nexport class FractionRun extends TextBlockComponent {\n /** Discriminator field for the [[Run]] union. */\n public readonly type = \"fraction\";\n /** The fraction's numerator. */\n public numerator: string;\n /** The fraction's denominator. */\n public denominator: string;\n\n private constructor(props: Omit<FractionRunProps, \"type\">) {\n super(props);\n this.numerator = props.numerator ?? \"\";\n this.denominator = props.denominator ?? \"\";\n }\n\n public override toJSON(): FractionRunProps {\n return {\n ...super.toJSON(),\n type: \"fraction\",\n numerator: this.numerator,\n denominator: this.denominator,\n };\n }\n\n public override clone(): FractionRun {\n return new FractionRun(this.toJSON());\n }\n\n public static create(props: Omit<FractionRunProps, \"type\">): FractionRun {\n return new FractionRun(props);\n }\n\n /** Formats the fraction as a string with the [[numerator]] and [[denominator]] separated by [[TextBlockStringifyOptions.fractionSeparator]]. */\n public override stringify(options?: TextBlockStringifyOptions): string {\n const sep = options?.fractionSeparator ?? \"/\";\n return `${this.numerator}${sep}${this.denominator}`;\n }\n\n public override equals(other: TextBlockComponent): boolean {\n return other instanceof FractionRun && this.numerator === other.numerator && this.denominator === other.denominator && super.equals(other);\n }\n}\n\n/** JSON representation of a [[LineBreakRun]].\n * @beta\n * @preview\n * @extensions\n */\nexport interface LineBreakRunProps extends TextBlockComponentProps {\n /** Discriminator field for the [[RunProps]] union. */\n readonly type: \"linebreak\";\n}\n\n/** A [[Run]] that represents the end of a line of text within a [[Paragraph]]. It contains no content of its own - it simply causes subsequent content to display on a new line.\n * @beta\n * @preview\n * @extensions\n */\nexport class LineBreakRun extends TextBlockComponent {\n /** Discriminator field for the [[Run]] union. */\n public readonly type = \"linebreak\";\n\n private constructor(props: TextBlockComponentProps) {\n super(props);\n }\n\n public override toJSON(): LineBreakRunProps {\n return {\n ...super.toJSON(),\n type: \"linebreak\",\n };\n }\n\n public static create(props: TextBlockComponentProps) {\n return new LineBreakRun(props);\n }\n\n public override clone(): LineBreakRun {\n return new LineBreakRun(this.toJSON());\n }\n\n /** Simply returns [[TextBlockStringifyOptions.lineBreak]]. */\n public override stringify(options?: TextBlockStringifyOptions): string {\n return options?.lineBreak ?? \" \";\n }\n\n public override equals(other: TextBlockComponent): boolean {\n return other instanceof LineBreakRun && super.equals(other);\n }\n}\n\n/** JSON representation of a [[Paragraph]].\n * @beta\n * @preview\n * @extensions\n */\nexport interface ParagraphProps extends TextBlockComponentProps {\n /** The collection of [[Run]]s within the paragraph.\n * Default: an empty array.\n */\n runs?: RunProps[];\n}\n\n/** A collection of [[Run]]s within a [[TextBlock]]. Each paragraph within a text block is laid out on a separate line.\n * @beta\n * @preview\n * @extensions\n */\nexport class Paragraph extends TextBlockComponent {\n /** The runs within the paragraph. You can modify the contents of this array to change the content of the paragraph. */\n public readonly runs: Run[];\n\n private constructor(props: ParagraphProps) {\n super(props);\n this.runs = props.runs?.map((run) => Run.fromJSON(run)) ?? [];\n }\n\n public override toJSON(): ParagraphProps {\n return {\n ...super.toJSON(),\n runs: this.runs.map((run) => run.toJSON()),\n };\n }\n\n /** Create a paragraph from its JSON representation. */\n public static create(props: ParagraphProps): Paragraph {\n return new Paragraph(props);\n }\n\n public override clone(): Paragraph {\n return new Paragraph(this.toJSON());\n }\n\n /** Apply the specified style to this [[Paragraph]], and - unless [[ApplyTextStyleOptions.preventPropagation]] is `true` - to all of its [[runs]]. */\n public override applyStyle(styleName: string, options?: ApplyTextStyleOptions): void {\n super.applyStyle(styleName, options);\n if (!(options?.preventPropagation)) {\n for (const run of this.runs) {\n run.applyStyle(styleName, options);\n }\n }\n }\n\n /** Compute a string representation of this paragraph by concatenating the string representations of all of its [[runs]]. */\n public override stringify(options?: TextBlockStringifyOptions): string {\n return this.runs.map((x) => x.stringify(options)).join(\"\");\n }\n\n public override equals(other: TextBlockComponent): boolean {\n if (!(other instanceof Paragraph)) {\n return false;\n }\n\n if (this.runs.length !== other.runs.length || !super.equals(other)) {\n return false;\n }\n\n return this.runs.every((run, index) => run.equals(other.runs[index]));\n }\n}\n\n/** Describes the relative alignment of the content of a [[TextBlock]].\n * @beta\n * @preview\n * @extensions\n */\nexport type TextBlockJustification = \"left\" | \"center\" | \"right\";\n\n/** JSON representation of a [[TextBlock]].\n * @beta\n * @preview\n * @extensions\n */\nexport interface TextBlockProps extends TextBlockComponentProps {\n /** The width of the document in meters. Lines that would exceed this width are instead wrapped around to the next line.\n * A value less than or equal to zero indicates no wrapping is to be applied.\n * Default: 0\n */\n width?: number;\n /** The alignment of the document content. Default: \"left\". */\n justification?: TextBlockJustification;\n /** The paragraphs within the text block. Default: an empty array. */\n paragraphs?: ParagraphProps[];\n}\n\n/** Represents a formatted text document consisting of a series of [[Paragraph]]s, each laid out on a separate line and containing their own content in the form of [[Run]]s.\n * You can change the content of the document by directly modifying the contents of its [[paragraphs]], or via [[appendParagraph]] and [[appendRun]].\n * No word-wrapping is applied to the document unless a [[width]] greater than zero is specified.\n * @see [[TextAnnotation]] to position a text block as an annotation in 2d or 3d space.\n * @beta\n * @preview\n * @extensions\n */\nexport class TextBlock extends TextBlockComponent {\n /** The width of the document in meters. Lines that would exceed this width are instead wrapped around to the next line.\n * A value less than or equal to zero indicates no wrapping is to be applied.\n * Default: 0\n */\n public width: number;\n /** The alignment of the document's content. */\n public justification: TextBlockJustification;\n /** The ordered list of paragraphs within the document. */\n public readonly paragraphs: Paragraph[];\n\n private constructor(props: TextBlockProps) {\n super(props);\n this.width = props.width ?? 0;\n this.justification = props.justification ?? \"left\";\n this.paragraphs = props.paragraphs?.map((x) => Paragraph.create(x)) ?? [];\n }\n\n public override toJSON(): TextBlockProps {\n return {\n ...super.toJSON(),\n width: this.width,\n justification: this.justification,\n paragraphs: this.paragraphs.map((x) => x.toJSON()),\n };\n }\n\n /** Create a text block from its JSON representation. */\n public static create(props: TextBlockProps): TextBlock {\n return new TextBlock(props);\n }\n\n /** Create an empty text block containing no [[paragraphs]] and an empty [[styleName]]. */\n public static createEmpty(): TextBlock {\n return TextBlock.create({ styleName: \"\" });\n }\n\n /** Returns true if every paragraph in this text block is empty. */\n public get isEmpty(): boolean {\n return this.paragraphs.every((p) => p.runs.length === 0);\n }\n\n public override clone(): TextBlock {\n return new TextBlock(this.toJSON());\n }\n\n /** Apply the specified style to this block and - unless [[ApplyTextStyleOptions.preventPropagation]] is `true` - to all of its [[paragraphs]]. */\n public override applyStyle(styleName: string, options?: ApplyTextStyleOptions): void {\n super.applyStyle(styleName, options);\n if (!(options?.preventPropagation)) {\n for (const paragraph of this.paragraphs) {\n paragraph.applyStyle(styleName, options);\n }\n }\n }\n\n /** Compute a string representation of the document's contents by concatenating the string representations of each of its [[paragraphs]], separated by [[TextBlockStringifyOptions.paragraphBreak]]. */\n public stringify(options?: TextBlockStringifyOptions): string {\n return this.paragraphs.map((x) => x.stringify(options)).join(options?.paragraphBreak ?? \" \");\n }\n\n /** Add and return a new paragraph.\n * If [[paragraphs]] is not empty, the style and overrides of the last [[Paragraph]] in the block will be applied to the new paragraph; otherwise,\n * the paragraph will inherit this block's style with no overrides.\n */\n public appendParagraph(): Paragraph {\n const seed = this.paragraphs[0];\n const paragraph = Paragraph.create({\n styleName: seed?.styleName ?? this.styleName,\n styleOverrides: seed?.styleOverrides ?? undefined,\n });\n\n this.paragraphs.push(paragraph);\n return paragraph;\n }\n\n /** Append a run to the last [[Paragraph]] in this block.\n * If the block contains no [[paragraphs]], a new one will first be created using [[appendParagraph]].\n */\n public appendRun(run: Run): void {\n const paragraph = this.paragraphs[this.paragraphs.length - 1] ?? this.appendParagraph();\n paragraph.runs.push(run);\n }\n\n public override equals(other: TextBlockComponent): boolean {\n if (!(other instanceof TextBlock)) {\n return false;\n }\n\n if (this.width !== other.width || this.justification !== other.justification || this.paragraphs.length !== other.paragraphs.length) {\n return false;\n }\n\n return this.paragraphs.every((paragraph, index) => paragraph.equals(other.paragraphs[index]));\n }\n}\n"]}
@@ -0,0 +1,44 @@
1
+ /** @packageDocumentation
2
+ * @module Annotation
3
+ */
4
+ import { XYZProps } from "@itwin/core-geometry";
5
+ import { TextStringProps } from "../geometry/TextString";
6
+ import { TextStyleColor } from "./TextStyle";
7
+ /**
8
+ * A single entry in a [[TextBlockGeometryProps]], representing one of the following primitive types:
9
+ * - A [[TextString]],
10
+ * - A fraction separator described by a [LineSegment3d]($geometry), or
11
+ * - A change in color, to be applied to all subsequent primitives.
12
+ * @beta
13
+ * @extensions
14
+ * @preview
15
+ */
16
+ export type TextBlockGeometryPropsEntry = {
17
+ text: TextStringProps;
18
+ separator?: never;
19
+ color?: never;
20
+ } | {
21
+ text?: never;
22
+ separator: {
23
+ startPoint: XYZProps;
24
+ endPoint: XYZProps;
25
+ };
26
+ color?: never;
27
+ } | {
28
+ text?: never;
29
+ separator?: never;
30
+ color: TextStyleColor;
31
+ };
32
+ /**
33
+ * JSON representation of the geometric primitives that can be used to display a [[TextBlock]].
34
+ * @see [produceTextAnnotationGeometry]($backend) to convert an annotation to its geometric representation.
35
+ * @see [[GeometryStreamBuilder.appendTextBlock]] to add a block of text to a [GeometryStream]($docs/learning/common/GeometryStream.md).
36
+ * @beta
37
+ * @extensions
38
+ * @preview
39
+ */
40
+ export interface TextBlockGeometryProps {
41
+ /** The set of geometric primitives representing the contents of the [[TextBlock]]. */
42
+ entries: TextBlockGeometryPropsEntry[];
43
+ }
44
+ //# sourceMappingURL=TextBlockGeometryProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextBlockGeometryProps.d.ts","sourceRoot":"","sources":["../../../src/annotation/TextBlockGeometryProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GAAG;IACF,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,SAAS,EAAE;QACT,UAAU,EAAE,QAAQ,CAAC;QACrB,QAAQ,EAAE,QAAQ,CAAC;KACpB,CAAC;IACF,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GAAG;IACF,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,KAAK,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,sFAAsF;IACtF,OAAO,EAAE,2BAA2B,EAAE,CAAC;CACxC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Annotation
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=TextBlockGeometryProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextBlockGeometryProps.js","sourceRoot":"","sources":["../../../src/annotation/TextBlockGeometryProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Annotation\n */\n\nimport { XYZProps } from \"@itwin/core-geometry\";\nimport { TextStringProps } from \"../geometry/TextString\";\nimport { TextStyleColor } from \"./TextStyle\";\n\n/**\n * A single entry in a [[TextBlockGeometryProps]], representing one of the following primitive types:\n * - A [[TextString]],\n * - A fraction separator described by a [LineSegment3d]($geometry), or\n * - A change in color, to be applied to all subsequent primitives.\n * @beta\n * @extensions\n * @preview\n */\nexport type TextBlockGeometryPropsEntry = {\n text: TextStringProps;\n separator?: never;\n color?: never;\n} | {\n text?: never;\n separator: {\n startPoint: XYZProps;\n endPoint: XYZProps;\n };\n color?: never;\n} | {\n text?: never;\n separator?: never;\n color: TextStyleColor;\n};\n\n/**\n * JSON representation of the geometric primitives that can be used to display a [[TextBlock]].\n * @see [produceTextAnnotationGeometry]($backend) to convert an annotation to its geometric representation.\n * @see [[GeometryStreamBuilder.appendTextBlock]] to add a block of text to a [GeometryStream]($docs/learning/common/GeometryStream.md).\n * @beta\n * @extensions\n * @preview\n */\nexport interface TextBlockGeometryProps {\n /** The set of geometric primitives representing the contents of the [[TextBlock]]. */\n entries: TextBlockGeometryPropsEntry[];\n}\n"]}
@@ -0,0 +1,185 @@
1
+ /** @packageDocumentation
2
+ * @module Annotation
3
+ */
4
+ import { ColorDefProps } from "../ColorDef";
5
+ /** Specifies how to separate the numerator and denominator of a [[FractionRun]], by either a horizontal or diagonal bar.
6
+ * @see [[TextStyleSettingsProps.stackedFractionType]] and [[TextStyleSettings.stackedFractionType]].
7
+ * @beta
8
+ * @preview
9
+ * @extensions
10
+ */
11
+ export type StackedFractionType = "horizontal" | "diagonal";
12
+ /** Describes the color in which to draw the text in a [[TextRun]].
13
+ * "subcategory" indicates that the text should be drawn using the color of the [SubCategory]($backend) specified by the [GeometryStream]($docs/learning/common/GeometryStream.md) hosting the
14
+ * text.
15
+ * @beta
16
+ * @preview
17
+ * @extensions
18
+ */
19
+ export type TextStyleColor = ColorDefProps | "subcategory";
20
+ /** Serves both as the JSON representation of a [[TextStyleSettings]], and a way for a [[TextBlockComponent]] to selectively override aspects of a [[TextStyle]]'s properties.
21
+ * @beta
22
+ * @preview
23
+ * @extensions
24
+ */
25
+ export interface TextStyleSettingsProps {
26
+ /** The color of the text.
27
+ * Default: "subcategory".
28
+ */
29
+ color?: TextStyleColor;
30
+ /** The name of a font stored in a [Workspace]($backend), used to draw the contents of a [[TextRun]].
31
+ * Default: "" (an invalid font name).
32
+ */
33
+ fontName?: string;
34
+ /** The height each line of text, in meters. Many other settings use the line height as the basis for computing their own values.
35
+ * For example, the height and offset from baseline of a subscript [[TextRun]] are compuated as lineHeight * [[subScriptScale]] and
36
+ * lineHeight * [[subScriptOffsetFactor]], respectively.
37
+ * Default: 1.0. */
38
+ lineHeight?: number;
39
+ /** Multiplier used to compute the vertical distance between two lines of text.
40
+ * The distance is computed in meters as lineSpacingFactor * [[lineHeight]].
41
+ * Default: 0.5.
42
+ */
43
+ lineSpacingFactor?: number;
44
+ /** Specifies whether the content of a [[TextRun]] should be rendered **bold**.
45
+ * Default: false.
46
+ */
47
+ isBold?: boolean;
48
+ /** Specifies whether the content of a [[TextRun]] should be rendered in *italics*.
49
+ * Default: false.
50
+ */
51
+ isItalic?: boolean;
52
+ /** Specifies whether the content of a [[TextRun]] should be underlined.
53
+ * Default: false.
54
+ */
55
+ isUnderlined?: boolean;
56
+ /** Multiplier used to compute the height of both the numerator and denominator of a [[FractionRun]].
57
+ * The height is computed in meters as stackedFractionScale * [[lineHeight]].
58
+ * Default: 0.7.
59
+ */
60
+ stackedFractionScale?: number;
61
+ /** Specifies how to separate the numerator and denominator of a [[FractionRun]].
62
+ * Default: "horizontal".
63
+ */
64
+ stackedFractionType?: StackedFractionType;
65
+ /** Multiplier used to compute the vertical offset from the baseline for a subscript [[TextRun]].
66
+ * The offset is computed in meters as subScriptOffsetFactor * [[lineHeight]].
67
+ * Default: -0.15.
68
+ */
69
+ subScriptOffsetFactor?: number;
70
+ /** Multiplier used to compute the height of a subscript [[TextRun]].
71
+ * The height is computed as subScriptScale * [[lineHeight]].
72
+ * Default: 2/3
73
+ */
74
+ subScriptScale?: number;
75
+ /** Multiplier used to compute the vertical offset from the baseline for a super [[TextRun]].
76
+ * The offset is computed in meters as superScriptOffsetFactor * [[lineHeight]].
77
+ * Default: -0.5.
78
+ */
79
+ superScriptOffsetFactor?: number;
80
+ /** Multiplier used to compute the height of a superscript [[TextRun]].
81
+ * The height is computed as superScriptScale * [[lineHeight]].
82
+ * Default: 2/3
83
+ */
84
+ superScriptScale?: number;
85
+ /** A scale applied to the width of each glyph.
86
+ * Default: 1.0
87
+ */
88
+ widthFactor?: number;
89
+ }
90
+ /** A description of the formatting to be applied to a [[TextBlockComponent]].
91
+ * Named instances of these settings can be stored as [[TextStyle]]s in a [Workspace]($backend).
92
+ * @note This is an immutable type. Use [[clone]] to create a modified copy.
93
+ * @see [[TextStyleSettingsProps]] for documentation of each of the settings.
94
+ * @beta
95
+ * @preview
96
+ * @extensions
97
+ */
98
+ export declare class TextStyleSettings {
99
+ /** The color of the text. */
100
+ readonly color: TextStyleColor;
101
+ /** The name of a font stored in a [Workspace]($backend), used to draw the contents of a [[TextRun]].
102
+ */
103
+ readonly fontName: string;
104
+ /** The height each line of text, in meters. Many other settings use the line height as the basis for computing their own values.
105
+ * For example, the height and offset from baseline of a subscript [[TextRun]] are compuated as lineHeight * [[subScriptScale]] and
106
+ * lineHeight * [[subScriptOffsetFactor]], respectively.
107
+ */
108
+ readonly lineHeight: number;
109
+ /** Multiplier used to compute the vertical distance between two lines of text.
110
+ * The distance is computed in meters as lineSpacingFactor * [[lineHeight]].
111
+ */
112
+ readonly lineSpacingFactor: number;
113
+ /** Specifies whether the content of a [[TextRun]] should be rendered **bold**. */
114
+ readonly isBold: boolean;
115
+ /** Specifies whether the content of a [[TextRun]] should be rendered in *italics*. */
116
+ readonly isItalic: boolean;
117
+ /** Specifies whether the content of a [[TextRun]] should be underlined. */
118
+ readonly isUnderlined: boolean;
119
+ /** Multiplier used to compute the height of both the numerator and denominator of a [[FractionRun]].
120
+ * The height is computed in meters as stackedFractionScale * [[lineHeight]].
121
+ */
122
+ readonly stackedFractionScale: number;
123
+ /** Specifies how to separate the numerator and denominator of a [[FractionRun]]. */
124
+ readonly stackedFractionType: StackedFractionType;
125
+ /** Multiplier used to compute the vertical offset from the baseline for a subscript [[TextRun]].
126
+ * The offset is computed in meters as subScriptOffsetFactor * [[lineHeight]].
127
+ */
128
+ readonly subScriptOffsetFactor: number;
129
+ /** Multiplier used to compute the height of a subscript [[TextRun]].
130
+ * The height is computed as subScriptScale * [[lineHeight]].
131
+ */
132
+ readonly subScriptScale: number;
133
+ /** Multiplier used to compute the vertical offset from the baseline for a super [[TextRun]].
134
+ * The offset is computed in meters as superScriptOffsetFactor * [[lineHeight]].
135
+ */
136
+ readonly superScriptOffsetFactor: number;
137
+ /** Multiplier used to compute the height of a superscript [[TextRun]].
138
+ * The height is computed as superScriptScale * [[lineHeight]].
139
+ */
140
+ readonly superScriptScale: number;
141
+ /** Multiplier used to compute the width of each glyph, relative to [[lineHeight]]. */
142
+ readonly widthFactor: number;
143
+ /** A fully-populated JSON representation of the default settings. */
144
+ static defaultProps: Readonly<Required<TextStyleSettingsProps>>;
145
+ /** Settings initialized to all default values. */
146
+ static defaults: TextStyleSettings;
147
+ private constructor();
148
+ /** Create a copy of these settings, modified according to the properties defined by `alteredProps`. */
149
+ clone(alteredProps?: TextStyleSettingsProps): TextStyleSettings;
150
+ /** Create settings from their JSON representation. */
151
+ static fromJSON(props?: TextStyleSettingsProps): TextStyleSettings;
152
+ toJSON(): TextStyleSettingsProps;
153
+ equals(other: TextStyleSettings): boolean;
154
+ }
155
+ /** The JSON representation of a [[TextStyle]].
156
+ * @beta
157
+ * @preview
158
+ * @extensions
159
+ */
160
+ export interface TextStyleProps {
161
+ /** The name of the style. */
162
+ name: string;
163
+ /** The settings defined for the style. Any omitted properties will use their default values, as described by [[TextStyleSettingsProps]]. */
164
+ settings?: TextStyleSettingsProps;
165
+ }
166
+ /** A named, immutable [[TextStyleSettings]] stored in a [Workspace]($backend).
167
+ * @see [[TextBlockComponent.styleName]] to define the text style for a component of a [[TextBlock]].
168
+ * @note This is an immutable type. Use [[clone]] to create a modified copy.
169
+ * @beta
170
+ * @preview
171
+ * @extensions
172
+ */
173
+ export declare class TextStyle {
174
+ readonly name: string;
175
+ readonly settings: TextStyleSettings;
176
+ private constructor();
177
+ /** Create a style from its JSON representation. */
178
+ static fromJSON(json: TextStyleProps): TextStyle;
179
+ /** Create a new style. */
180
+ static create(name: string, settings: TextStyleSettings): TextStyle;
181
+ /** Create a copy of this style with the same name, and settings modified according to the properties defined by `alteredSettings`. */
182
+ clone(alteredSettings: TextStyleSettingsProps): TextStyle;
183
+ equals(other: TextStyle): boolean;
184
+ }
185
+ //# sourceMappingURL=TextStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextStyle.d.ts","sourceRoot":"","sources":["../../../src/annotation/TextStyle.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,aAAa,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;uBAGmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC5B,6BAA6B;IAC7B,SAAgB,KAAK,EAAE,cAAc,CAAC;IACtC;OACG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BAAa,SAAS;IACpB,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,QAAQ,EAAE,iBAAiB,CAAC;IAE5C,OAAO;IAKP,mDAAmD;WACrC,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS;IAIvD,0BAA0B;WACZ,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAG,SAAS;IAI1E,sIAAsI;IAC/H,KAAK,CAAC,eAAe,EAAE,sBAAsB,GAAG,SAAS;IAIzD,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;CAGzC"}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Annotation
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.TextStyle = exports.TextStyleSettings = void 0;
11
+ /** A description of the formatting to be applied to a [[TextBlockComponent]].
12
+ * Named instances of these settings can be stored as [[TextStyle]]s in a [Workspace]($backend).
13
+ * @note This is an immutable type. Use [[clone]] to create a modified copy.
14
+ * @see [[TextStyleSettingsProps]] for documentation of each of the settings.
15
+ * @beta
16
+ * @preview
17
+ * @extensions
18
+ */
19
+ class TextStyleSettings {
20
+ constructor(props, defaults) {
21
+ if (!defaults) {
22
+ defaults = TextStyleSettings.defaultProps;
23
+ }
24
+ this.color = props.color ?? defaults.color;
25
+ this.fontName = props.fontName ?? defaults.fontName;
26
+ this.lineHeight = props.lineHeight ?? defaults.lineHeight;
27
+ this.lineSpacingFactor = props.lineSpacingFactor ?? defaults.lineSpacingFactor;
28
+ this.isBold = props.isBold ?? defaults.isBold;
29
+ this.isItalic = props.isItalic ?? defaults.isItalic;
30
+ this.isUnderlined = props.isUnderlined ?? defaults.isUnderlined;
31
+ this.stackedFractionScale = props.stackedFractionScale ?? defaults.stackedFractionScale;
32
+ this.stackedFractionType = props.stackedFractionType ?? defaults.stackedFractionType;
33
+ this.subScriptOffsetFactor = props.subScriptOffsetFactor ?? defaults.subScriptOffsetFactor;
34
+ this.subScriptScale = props.subScriptScale ?? defaults.subScriptScale;
35
+ this.superScriptOffsetFactor = props.superScriptOffsetFactor ?? defaults.superScriptOffsetFactor;
36
+ this.superScriptScale = props.superScriptScale ?? defaults.superScriptScale;
37
+ this.widthFactor = props.widthFactor ?? defaults.widthFactor;
38
+ }
39
+ /** Create a copy of these settings, modified according to the properties defined by `alteredProps`. */
40
+ clone(alteredProps) {
41
+ return alteredProps ? new TextStyleSettings(alteredProps, this) : this;
42
+ }
43
+ /** Create settings from their JSON representation. */
44
+ static fromJSON(props) {
45
+ return props ? new TextStyleSettings(props) : TextStyleSettings.defaults;
46
+ }
47
+ toJSON() {
48
+ return { ...this };
49
+ }
50
+ equals(other) {
51
+ return this.color === other.color && this.fontName === other.fontName
52
+ && this.lineHeight === other.lineHeight && this.lineSpacingFactor === other.lineSpacingFactor && this.widthFactor === other.widthFactor
53
+ && this.isBold === other.isBold && this.isItalic === other.isItalic && this.isUnderlined === other.isUnderlined
54
+ && this.stackedFractionType === other.stackedFractionType && this.stackedFractionScale === other.stackedFractionScale
55
+ && this.subScriptOffsetFactor === other.subScriptOffsetFactor && this.subScriptScale === other.subScriptScale
56
+ && this.superScriptOffsetFactor === other.superScriptOffsetFactor && this.superScriptScale === other.superScriptScale;
57
+ }
58
+ }
59
+ exports.TextStyleSettings = TextStyleSettings;
60
+ /** A fully-populated JSON representation of the default settings. */
61
+ TextStyleSettings.defaultProps = {
62
+ color: "subcategory",
63
+ fontName: "",
64
+ lineHeight: 1,
65
+ lineSpacingFactor: 0.5,
66
+ isBold: false,
67
+ isItalic: false,
68
+ isUnderlined: false,
69
+ stackedFractionScale: 0.7,
70
+ stackedFractionType: "horizontal",
71
+ subScriptOffsetFactor: -0.15,
72
+ subScriptScale: 2 / 3,
73
+ superScriptOffsetFactor: 0.5,
74
+ superScriptScale: 2 / 3,
75
+ widthFactor: 1,
76
+ };
77
+ /** Settings initialized to all default values. */
78
+ TextStyleSettings.defaults = new TextStyleSettings({});
79
+ Object.freeze(TextStyleSettings.defaultProps);
80
+ Object.freeze(TextStyleSettings.defaults);
81
+ /** A named, immutable [[TextStyleSettings]] stored in a [Workspace]($backend).
82
+ * @see [[TextBlockComponent.styleName]] to define the text style for a component of a [[TextBlock]].
83
+ * @note This is an immutable type. Use [[clone]] to create a modified copy.
84
+ * @beta
85
+ * @preview
86
+ * @extensions
87
+ */
88
+ class TextStyle {
89
+ constructor(name, settings) {
90
+ this.name = name;
91
+ this.settings = settings;
92
+ }
93
+ /** Create a style from its JSON representation. */
94
+ static fromJSON(json) {
95
+ return TextStyle.create(json.name, TextStyleSettings.fromJSON(json.settings));
96
+ }
97
+ /** Create a new style. */
98
+ static create(name, settings) {
99
+ return new TextStyle(name, settings);
100
+ }
101
+ /** Create a copy of this style with the same name, and settings modified according to the properties defined by `alteredSettings`. */
102
+ clone(alteredSettings) {
103
+ return TextStyle.create(this.name, this.settings.clone(alteredSettings));
104
+ }
105
+ equals(other) {
106
+ return this.name === other.name && this.settings.equals(other.settings);
107
+ }
108
+ }
109
+ exports.TextStyle = TextStyle;
110
+ //# sourceMappingURL=TextStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextStyle.js","sourceRoot":"","sources":["../../../src/annotation/TextStyle.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AA4FH;;;;;;;GAOG;AACH,MAAa,iBAAiB;IAmE5B,YAAoB,KAA6B,EAAE,QAA2C;QAC5F,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,QAAQ,GAAG,iBAAiB,CAAC,YAAY,CAAC;QAC5C,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK,CAAC;QAC3C,IAA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AAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC1E,CAAC;CACF;AA3BD,8BA2BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Annotation\n */\n\nimport { ColorDefProps } from \"../ColorDef\";\n\n/** Specifies how to separate the numerator and denominator of a [[FractionRun]], by either a horizontal or diagonal bar.\n * @see [[TextStyleSettingsProps.stackedFractionType]] and [[TextStyleSettings.stackedFractionType]].\n * @beta\n * @preview\n * @extensions\n */\nexport type StackedFractionType = \"horizontal\" | \"diagonal\";\n\n/** Describes the color in which to draw the text in a [[TextRun]].\n * \"subcategory\" indicates that the text should be drawn using the color of the [SubCategory]($backend) specified by the [GeometryStream]($docs/learning/common/GeometryStream.md) hosting the\n * text.\n * @beta\n * @preview\n * @extensions\n */\nexport type TextStyleColor = ColorDefProps | \"subcategory\";\n\n/** Serves both as the JSON representation of a [[TextStyleSettings]], and a way for a [[TextBlockComponent]] to selectively override aspects of a [[TextStyle]]'s properties.\n * @beta\n * @preview\n * @extensions\n */\nexport interface TextStyleSettingsProps {\n /** The color of the text.\n * Default: \"subcategory\".\n */\n color?: TextStyleColor;\n /** The name of a font stored in a [Workspace]($backend), used to draw the contents of a [[TextRun]].\n * Default: \"\" (an invalid font name).\n */\n fontName?: string;\n /** The height each line of text, in meters. Many other settings use the line height as the basis for computing their own values.\n * For example, the height and offset from baseline of a subscript [[TextRun]] are compuated as lineHeight * [[subScriptScale]] and\n * lineHeight * [[subScriptOffsetFactor]], respectively.\n * Default: 1.0. */\n lineHeight?: number;\n /** Multiplier used to compute the vertical distance between two lines of text.\n * The distance is computed in meters as lineSpacingFactor * [[lineHeight]].\n * Default: 0.5.\n */\n lineSpacingFactor?: number;\n /** Specifies whether the content of a [[TextRun]] should be rendered **bold**.\n * Default: false.\n */\n isBold?: boolean;\n /** Specifies whether the content of a [[TextRun]] should be rendered in *italics*.\n * Default: false.\n */\n isItalic?: boolean;\n /** Specifies whether the content of a [[TextRun]] should be underlined.\n * Default: false.\n */\n isUnderlined?: boolean;\n /** Multiplier used to compute the height of both the numerator and denominator of a [[FractionRun]].\n * The height is computed in meters as stackedFractionScale * [[lineHeight]].\n * Default: 0.7.\n */\n stackedFractionScale?: number;\n /** Specifies how to separate the numerator and denominator of a [[FractionRun]].\n * Default: \"horizontal\".\n */\n stackedFractionType?: StackedFractionType;\n /** Multiplier used to compute the vertical offset from the baseline for a subscript [[TextRun]].\n * The offset is computed in meters as subScriptOffsetFactor * [[lineHeight]].\n * Default: -0.15.\n */\n subScriptOffsetFactor?: number;\n /** Multiplier used to compute the height of a subscript [[TextRun]].\n * The height is computed as subScriptScale * [[lineHeight]].\n * Default: 2/3\n */\n subScriptScale?: number;\n /** Multiplier used to compute the vertical offset from the baseline for a super [[TextRun]].\n * The offset is computed in meters as superScriptOffsetFactor * [[lineHeight]].\n * Default: -0.5.\n */\n superScriptOffsetFactor?: number;\n /** Multiplier used to compute the height of a superscript [[TextRun]].\n * The height is computed as superScriptScale * [[lineHeight]].\n * Default: 2/3\n */\n superScriptScale?: number;\n /** A scale applied to the width of each glyph.\n * Default: 1.0\n */\n widthFactor?: number;\n}\n\n/** A description of the formatting to be applied to a [[TextBlockComponent]].\n * Named instances of these settings can be stored as [[TextStyle]]s in a [Workspace]($backend).\n * @note This is an immutable type. Use [[clone]] to create a modified copy.\n * @see [[TextStyleSettingsProps]] for documentation of each of the settings.\n * @beta\n * @preview\n * @extensions\n */\nexport class TextStyleSettings {\n /** The color of the text. */\n public readonly color: TextStyleColor;\n /** The name of a font stored in a [Workspace]($backend), used to draw the contents of a [[TextRun]].\n */\n public readonly fontName: string;\n /** The height each line of text, in meters. Many other settings use the line height as the basis for computing their own values.\n * For example, the height and offset from baseline of a subscript [[TextRun]] are compuated as lineHeight * [[subScriptScale]] and\n * lineHeight * [[subScriptOffsetFactor]], respectively.\n */\n public readonly lineHeight: number;\n /** Multiplier used to compute the vertical distance between two lines of text.\n * The distance is computed in meters as lineSpacingFactor * [[lineHeight]].\n */\n public readonly lineSpacingFactor: number;\n /** Specifies whether the content of a [[TextRun]] should be rendered **bold**. */\n public readonly isBold: boolean;\n /** Specifies whether the content of a [[TextRun]] should be rendered in *italics*. */\n public readonly isItalic: boolean;\n /** Specifies whether the content of a [[TextRun]] should be underlined. */\n public readonly isUnderlined: boolean;\n /** Multiplier used to compute the height of both the numerator and denominator of a [[FractionRun]].\n * The height is computed in meters as stackedFractionScale * [[lineHeight]].\n */\n public readonly stackedFractionScale: number;\n /** Specifies how to separate the numerator and denominator of a [[FractionRun]]. */\n public readonly stackedFractionType: StackedFractionType;\n /** Multiplier used to compute the vertical offset from the baseline for a subscript [[TextRun]].\n * The offset is computed in meters as subScriptOffsetFactor * [[lineHeight]].\n */\n public readonly subScriptOffsetFactor: number;\n /** Multiplier used to compute the height of a subscript [[TextRun]].\n * The height is computed as subScriptScale * [[lineHeight]].\n */\n public readonly subScriptScale: number;\n /** Multiplier used to compute the vertical offset from the baseline for a super [[TextRun]].\n * The offset is computed in meters as superScriptOffsetFactor * [[lineHeight]].\n */\n public readonly superScriptOffsetFactor: number;\n /** Multiplier used to compute the height of a superscript [[TextRun]].\n * The height is computed as superScriptScale * [[lineHeight]].\n */\n public readonly superScriptScale: number;\n /** Multiplier used to compute the width of each glyph, relative to [[lineHeight]]. */\n public readonly widthFactor: number;\n\n /** A fully-populated JSON representation of the default settings. */\n public static defaultProps: Readonly<Required<TextStyleSettingsProps>> = {\n color: \"subcategory\",\n fontName: \"\",\n lineHeight: 1,\n lineSpacingFactor: 0.5,\n isBold: false,\n isItalic: false,\n isUnderlined: false,\n stackedFractionScale: 0.7,\n stackedFractionType: \"horizontal\",\n subScriptOffsetFactor: -0.15,\n subScriptScale: 2 / 3,\n superScriptOffsetFactor: 0.5,\n superScriptScale: 2 / 3,\n widthFactor: 1,\n };\n\n /** Settings initialized to all default values. */\n public static defaults: TextStyleSettings = new TextStyleSettings({ });\n\n private constructor(props: TextStyleSettingsProps, defaults?: Required<TextStyleSettingsProps>) {\n if (!defaults) {\n defaults = TextStyleSettings.defaultProps;\n }\n\n this.color = props.color ?? defaults.color;\n this.fontName = props.fontName ?? defaults.fontName;\n this.lineHeight = props.lineHeight ?? defaults.lineHeight;\n this.lineSpacingFactor = props.lineSpacingFactor ?? defaults.lineSpacingFactor;\n this.isBold = props.isBold ?? defaults.isBold;\n this.isItalic = props.isItalic ?? defaults.isItalic;\n this.isUnderlined = props.isUnderlined ?? defaults.isUnderlined;\n this.stackedFractionScale = props.stackedFractionScale ?? defaults.stackedFractionScale;\n this.stackedFractionType = props.stackedFractionType ?? defaults.stackedFractionType;\n this.subScriptOffsetFactor = props.subScriptOffsetFactor ?? defaults.subScriptOffsetFactor;\n this.subScriptScale = props.subScriptScale ?? defaults.subScriptScale;\n this.superScriptOffsetFactor = props.superScriptOffsetFactor ?? defaults.superScriptOffsetFactor;\n this.superScriptScale = props.superScriptScale ?? defaults.superScriptScale;\n this.widthFactor = props.widthFactor ?? defaults.widthFactor;\n }\n\n /** Create a copy of these settings, modified according to the properties defined by `alteredProps`. */\n public clone(alteredProps?: TextStyleSettingsProps): TextStyleSettings {\n return alteredProps ? new TextStyleSettings(alteredProps, this) : this;\n }\n\n /** Create settings from their JSON representation. */\n public static fromJSON(props?: TextStyleSettingsProps): TextStyleSettings {\n return props ? new TextStyleSettings(props) : TextStyleSettings.defaults;\n }\n\n public toJSON(): TextStyleSettingsProps {\n return { ...this };\n }\n\n public equals(other: TextStyleSettings): boolean {\n return this.color === other.color && this.fontName === other.fontName\n && this.lineHeight === other.lineHeight && this.lineSpacingFactor === other.lineSpacingFactor && this.widthFactor === other.widthFactor\n && this.isBold === other.isBold && this.isItalic === other.isItalic && this.isUnderlined === other.isUnderlined\n && this.stackedFractionType === other.stackedFractionType && this.stackedFractionScale === other.stackedFractionScale\n && this.subScriptOffsetFactor === other.subScriptOffsetFactor && this.subScriptScale === other.subScriptScale\n && this.superScriptOffsetFactor === other.superScriptOffsetFactor && this.superScriptScale === other.superScriptScale;\n }\n}\n\nObject.freeze(TextStyleSettings.defaultProps);\nObject.freeze(TextStyleSettings.defaults);\n\n/** The JSON representation of a [[TextStyle]].\n * @beta\n * @preview\n * @extensions\n */\nexport interface TextStyleProps {\n /** The name of the style. */\n name: string;\n /** The settings defined for the style. Any omitted properties will use their default values, as described by [[TextStyleSettingsProps]]. */\n settings?: TextStyleSettingsProps;\n}\n\n/** A named, immutable [[TextStyleSettings]] stored in a [Workspace]($backend).\n * @see [[TextBlockComponent.styleName]] to define the text style for a component of a [[TextBlock]].\n * @note This is an immutable type. Use [[clone]] to create a modified copy.\n * @beta\n * @preview\n * @extensions\n */\nexport class TextStyle {\n public readonly name: string;\n public readonly settings: TextStyleSettings;\n\n private constructor(name: string, settings: TextStyleSettings) {\n this.name = name;\n this.settings = settings;\n }\n\n /** Create a style from its JSON representation. */\n public static fromJSON(json: TextStyleProps): TextStyle {\n return TextStyle.create(json.name, TextStyleSettings.fromJSON(json.settings));\n }\n\n /** Create a new style. */\n public static create(name: string, settings: TextStyleSettings): TextStyle {\n return new TextStyle(name, settings);\n }\n\n /** Create a copy of this style with the same name, and settings modified according to the properties defined by `alteredSettings`. */\n public clone(alteredSettings: TextStyleSettingsProps): TextStyle {\n return TextStyle.create(this.name, this.settings.clone(alteredSettings));\n }\n\n public equals(other: TextStyle): boolean {\n return this.name === other.name && this.settings.equals(other.settings);\n }\n}\n\n"]}
@@ -1,5 +1,9 @@
1
1
  export * from "./AmbientOcclusion";
2
2
  export * from "./AnalysisStyle";
3
+ export * from "./annotation/TextAnnotation";
4
+ export * from "./annotation/TextBlock";
5
+ export * from "./annotation/TextBlockGeometryProps";
6
+ export * from "./annotation/TextStyle";
3
7
  export * from "./Atmosphere";
4
8
  export * from "./AuthorizationClient";
5
9
  export * from "./BackgroundMapProvider";
@@ -243,4 +247,8 @@ export * from "./WhiteOnWhiteReversalSettings";
243
247
  * @docs-group-description MapLayers
244
248
  * Types for working with the MapLayers API.
245
249
  */
250
+ /**
251
+ * @docs-group-description Annotation
252
+ * APIs for producing and manipulating annotations like text, dimensions, and labels.
253
+ */
246
254
  //# sourceMappingURL=core-common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core-common.d.ts","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAA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,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAE/C;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
1
+ {"version":3,"file":"core-common.d.ts","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB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cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAE/C;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
@@ -20,6 +20,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
20
20
  *--------------------------------------------------------------------------------------------*/
21
21
  __exportStar(require("./AmbientOcclusion"), exports);
22
22
  __exportStar(require("./AnalysisStyle"), exports);
23
+ __exportStar(require("./annotation/TextAnnotation"), exports);
24
+ __exportStar(require("./annotation/TextBlock"), exports);
25
+ __exportStar(require("./annotation/TextBlockGeometryProps"), exports);
26
+ __exportStar(require("./annotation/TextStyle"), exports);
23
27
  __exportStar(require("./Atmosphere"), exports);
24
28
  __exportStar(require("./AuthorizationClient"), exports);
25
29
  __exportStar(require("./BackgroundMapProvider"), exports);
@@ -263,4 +267,8 @@ __exportStar(require("./WhiteOnWhiteReversalSettings"), exports);
263
267
  * @docs-group-description MapLayers
264
268
  * Types for working with the MapLayers API.
265
269
  */
270
+ /**
271
+ * @docs-group-description Annotation
272
+ * APIs for producing and manipulating annotations like text, dimensions, and labels.
273
+ */
266
274
  //# sourceMappingURL=core-common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core-common.js","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[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AGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nexport * from \"./AmbientOcclusion\";\nexport * from \"./AnalysisStyle\";\nexport * from \"./Atmosphere\";\nexport * from \"./AuthorizationClient\";\nexport * from \"./BackgroundMapProvider\";\nexport * from \"./BackgroundMapSettings\";\nexport * from \"./Base64EncodedString\";\nexport * from \"./BriefcaseTypes\";\nexport * from \"./Camera\";\nexport * from \"./ChangedElements\";\nexport * from \"./ChangedEntities\";\nexport * from \"./ChangesetProps\";\nexport * from \"./ClipStyle\";\nexport * from \"./Code\";\nexport * from \"./ColorByName\";\nexport * from \"./ColorDef\";\nexport * from \"./CommonLoggerCategory\";\nexport * from \"./ContextRealityModel\";\nexport * from \"./DisplayStyleSettings\";\nexport * from \"./domains/FunctionalElementProps\";\nexport * from \"./domains/GenericElementProps\";\nexport * from \"./ECSqlTypes\";\nexport * from \"./ECSchemaProps\";\nexport * from \"./ElementMesh\";\nexport * from \"./ElementProps\";\nexport * from \"./EmphasizeElementsProps\";\nexport * from \"./EntityProps\";\nexport * from \"./EntityReference\";\nexport * from \"./Environment\";\nexport * from \"./FeatureIndex\";\nexport * from \"./FeatureSymbology\";\nexport * from \"./FeatureTable\";\nexport * from \"./Fonts\";\nexport * from \"./Frustum\";\nexport * from \"./GenericInstanceFilter\";\nexport * from \"./GeoCoordinateServices\";\nexport * from \"./geometry/AdditionalTransform\";\nexport * from \"./geometry/AreaPattern\";\nexport * from \"./geometry/BoundingSphere\";\nexport * from \"./geometry/Cartographic\";\nexport * from \"./geometry/CoordinateReferenceSystem\";\nexport * from \"./geometry/ElementGeometry\";\nexport * from \"./geometry/FrustumPlanes\";\nexport * from \"./geometry/GeodeticDatum\";\nexport * from \"./geometry/GeodeticEllipsoid\";\nexport * from \"./geometry/GeometryStream\";\nexport * from \"./geometry/ImageGraphic\";\nexport * from \"./geometry/LineStyle\";\nexport * from \"./geometry/Placement\";\nexport * from \"./geometry/Projection\";\nexport * from \"./geometry/TextString\";\nexport * from \"./GeometryContainment\";\nexport * from \"./GeometryParams\";\nexport * from \"./GeometrySummary\";\nexport * from \"./Gradient\";\nexport * from \"./GraphicParams\";\nexport * from \"./GroundPlane\";\nexport * from \"./HiddenLine\";\nexport * from \"./Hilite\";\nexport * from \"./HSLColor\";\nexport * from \"./HSVColor\";\nexport * from \"./Image\";\nexport * from \"./IModel\";\nexport * from \"./IModelError\";\nexport * from \"./IModelVersion\";\nexport * from \"./ipc/IpcSocket\";\nexport * from \"./ipc/IpcWebSocket\";\nexport * from \"./ipc/IpcWebSocketTransport\";\nexport * from \"./ipc/IpcSession\";\nexport * from \"./IpcAppProps\";\nexport * from \"./LightSettings\";\nexport * from \"./LinePixels\";\nexport * from \"./Localization\";\nexport * from \"./MapImagerySettings\";\nexport * from \"./MapLayerSettings\";\nexport * from \"./MassProperties\";\nexport * from \"./MaterialProps\";\nexport * from \"./ModelClipGroup\";\nexport * from \"./ModelProps\";\nexport * from \"./NativeAppProps\";\nexport * from \"./OctEncodedNormal\";\nexport * from \"./ConcurrentQuery\";\nexport * from \"./ECSqlReader\";\nexport * from \"./PlanarClipMask\";\nexport * from \"./ModelGeometryChanges\";\nexport * from \"./PlanProjectionSettings\";\nexport * from \"./BackendTypes\";\nexport * from \"./QPoint\";\nexport * from \"./RealityDataAccessProps\";\nexport * from \"./RealityModelDisplaySettings\";\nexport * from \"./Render\";\nexport * from \"./RenderMaterial\";\nexport * from \"./RenderSchedule\";\nexport * from \"./RenderTexture\";\nexport * from \"./RgbColor\";\nexport * from \"./RpcManager\";\nexport * from \"./SessionProps\";\nexport * from \"./SkyBox\";\nexport * from \"./Snapping\";\nexport * from \"./SolarCalculate\";\nexport * from \"./SolarShadows\";\nexport * from \"./SpatialClassification\";\nexport * from \"./SubCategoryAppearance\";\nexport * from \"./SubCategoryOverride\";\nexport * from \"./TerrainSettings\";\nexport * from \"./TextureMapping\";\nexport * from \"./TextureProps\";\nexport * from \"./ThematicDisplay\";\nexport * from \"./Thumbnail\";\nexport * from \"./TileProps\";\nexport * from \"./Tween\";\nexport * from \"./TxnAction\";\nexport * from \"./ViewDetails\";\nexport * from \"./ViewFlags\";\nexport * from \"./ViewProps\";\nexport * from \"./rpc/core/RpcConstants\";\nexport * from \"./rpc/core/RpcControl\";\nexport * from \"./rpc/core/RpcInvocation\";\nexport * from \"./rpc/core/RpcSessionInvocation\";\nexport * from \"./rpc/core/RpcMarshaling\";\nexport * from \"./rpc/core/RpcOperation\";\nexport * from \"./rpc/core/RpcPendingQueue\";\nexport * from \"./rpc/core/RpcProtocol\";\nexport * from \"./rpc/core/RpcRegistry\";\nexport * from \"./rpc/core/RpcRequest\";\nexport * from \"./rpc/core/RpcRequestContext\";\nexport * from \"./rpc/core/RpcRoutingToken\";\nexport * from \"./rpc/core/RpcPush\";\nexport * from \"./rpc/core/RpcConfiguration\";\nexport * from \"./rpc/DevToolsRpcInterface\";\nexport * from \"./rpc/IModelReadRpcInterface\";\nexport * from \"./rpc/IModelTileRpcInterface\";\nexport * from \"./rpc/SnapshotIModelRpcInterface\";\nexport * from \"./rpc/TestRpcManager\";\nexport * from \"./rpc/WipRpcInterface\";\nexport * from \"./RpcInterface\";\nexport * from \"./rpc/web/BentleyCloudRpcManager\";\nexport * from \"./rpc/web/BentleyCloudRpcProtocol\";\nexport * from \"./rpc/web/OpenAPI\";\nexport * from \"./rpc/web/RpcMultipart\";\nexport * from \"./rpc/web/WebAppRpcProtocol\";\nexport * from \"./rpc/web/WebAppRpcRequest\";\nexport * from \"./rpc/web/WebAppRpcLogging\";\nexport * from \"./tile/B3dmTileIO\";\nexport * from \"./tile/CompositeTileIO\";\nexport * from \"./tile/ElementGraphics\";\nexport * from \"./tile/GltfTileIO\";\nexport * from \"./tile/I3dmTileIO\";\nexport * from \"./tile/IModelTileIO\";\nexport * from \"./tile/PntsTileIO\";\nexport * from \"./tile/TileIO\";\nexport * from \"./tile/TileMetadata\";\nexport * from \"./tile/Tileset3dSchema\";\nexport * from \"./WhiteOnWhiteReversalSettings\";\n\n/** @docs-package-description\n * The core-common package contains classes for working with iModels that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).\n */\n/**\n * @docs-group-description Entities\n * Definitions of the \"props\" interfaces and types that define the [wire format]($docs/learning/wireformat.md) for communication between the frontend and backend about entities (models, elements, etc) contained in an iModel.\n */\n/**\n * @docs-group-description Codes\n * Types for working with [Codes]($docs/bis/guide/fundamentals/codes.md).\n */\n/**\n * @docs-group-description Geometry\n * Types for working with geometry.\n */\n/**\n * @docs-group-description Serialization\n * Types for serializing geometry\n */\n/**\n * @docs-group-description Views\n * Types for defining graphical views of the contents of an iModel.\n */\n/**\n * @docs-group-description DisplayStyles\n * Types for describing how the contents of Views should be rendered.\n */\n/**\n * @docs-group-description Rendering\n * Types describing geometry, views, and symbology for consumption by a display system.\n */\n/**\n * @docs-group-description Symbology\n * Types that define the appearance of geometry.\n */\n/**\n * @docs-group-description iModels\n * Types for working with [iModels]($docs/learning/IModels.md) in both the frontend and backend.\n */\n/**\n * @docs-group-description RpcInterface\n * Types for working with [RpcInterfaces]($docs/learning/RpcInterface.md).\n */\n/**\n * @docs-group-description IpcSocket\n * Types for working with [IpcInterfaces]($docs/learning/IpcInterface.md).\n */\n/**\n * @docs-group-description ECSQL\n * Types for working with [ECSQL]($docs/learning/ECSQL.md), [Spatial Queries]($docs/learning/SpatialQueries.md), and [ECSQL Geometry Functions]($docs/learning/GeometrySqlFuncs.md).\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package.\n */\n/**\n * @docs-group-description CloudStorage\n * Types for working with Cloud Storage.\n */\n/**\n * @docs-group-description Tween\n * Tweening library adapted from tween.js.\n */\n/**\n * @docs-group-description Tile\n * Types for working with 3d tile formats.\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description NativeApp\n * [Native applications]($docs/learning/NativeApps.md)\n */\n/**\n * @docs-group-description Localization\n * Classes for internationalization and localization of your app.\n */\n/**\n * @docs-group-description Authorization\n * Classes for managing AccessToken used for all requests in other classes.\n */\n/**\n * @docs-group-description RealityData\n * Types for working with the RealityData API.\n */\n/**\n * @docs-group-description MapLayers\n * Types for working with the MapLayers API.\n */\n"]}
1
+ {"version":3,"file":"core-common.js","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,qDAAmC;AACnC,kDAAgC;AAChC,8DAA4C;AAC5C,yDAAuC;AACvC,sEAAoD;AACpD,yDAAuC;AACvC,+CAA6B;AAC7B,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC;AACxC,wDAAsC;AACtC,mDAAiC;AACjC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC;AACjC,8CAA4B;AAC5B,yCAAuB;AACvB,gDAA8B;AAC9B,6CAA2B;AAC3B,yDAAuC;AACvC,wDAAsC;AACtC,yDAAuC;AACvC,mEAAiD;AACjD,gEAA8C;AAC9C,+CAA6B;AAC7B,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,2DAAyC;AACzC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,qDAAmC;AACnC,iDAA+B;AAC/B,0CAAwB;AACxB,4CAA0B;AAC1B,0DAAwC;AACxC,0DAAwC;AACxC,iEAA+C;AAC/C,yDAAuC;AACvC,4DAA0C;AAC1C,0DAAwC;AACxC,uEAAqD;AACrD,6DAA2C;AAC3C,2DAAyC;AACzC,2DAAyC;AACzC,+DAA6C;AAC7C,4DA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DAA4C;AAC5C,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,mEAAiD;AACjD,uDAAqC;AACrC,wDAAsC;AACtC,iDAA+B;AAC/B,mEAAiD;AACjD,oEAAkD;AAClD,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,6DAA2C;AAC3C,6DAA2C;AAC3C,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,gDAA8B;AAC9B,sDAAoC;AACpC,yDAAuC;AACvC,iEAA+C;AAE/C;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nexport * from \"./AmbientOcclusion\";\nexport * from \"./AnalysisStyle\";\nexport * from \"./annotation/TextAnnotation\";\nexport * from \"./annotation/TextBlock\";\nexport * from \"./annotation/TextBlockGeometryProps\";\nexport * from \"./annotation/TextStyle\";\nexport * from \"./Atmosphere\";\nexport * from \"./AuthorizationClient\";\nexport * from \"./BackgroundMapProvider\";\nexport * from \"./BackgroundMapSettings\";\nexport * from \"./Base64EncodedString\";\nexport * from \"./BriefcaseTypes\";\nexport * from \"./Camera\";\nexport * from \"./ChangedElements\";\nexport * from \"./ChangedEntities\";\nexport * from \"./ChangesetProps\";\nexport * from \"./ClipStyle\";\nexport * from \"./Code\";\nexport * from \"./ColorByName\";\nexport * from \"./ColorDef\";\nexport * from \"./CommonLoggerCategory\";\nexport * from \"./ContextRealityModel\";\nexport * from \"./DisplayStyleSettings\";\nexport * from \"./domains/FunctionalElementProps\";\nexport * from \"./domains/GenericElementProps\";\nexport * from \"./ECSqlTypes\";\nexport * from \"./ECSchemaProps\";\nexport * from \"./ElementMesh\";\nexport * from \"./ElementProps\";\nexport * from \"./EmphasizeElementsProps\";\nexport * from \"./EntityProps\";\nexport * from \"./EntityReference\";\nexport * from \"./Environment\";\nexport * from \"./FeatureIndex\";\nexport * from \"./FeatureSymbology\";\nexport * from \"./FeatureTable\";\nexport * from \"./Fonts\";\nexport * from \"./Frustum\";\nexport * from \"./GenericInstanceFilter\";\nexport * from \"./GeoCoordinateServices\";\nexport * from \"./geometry/AdditionalTransform\";\nexport * from \"./geometry/AreaPattern\";\nexport * from \"./geometry/BoundingSphere\";\nexport * from \"./geometry/Cartographic\";\nexport * from \"./geometry/CoordinateReferenceSystem\";\nexport * from \"./geometry/ElementGeometry\";\nexport * from \"./geometry/FrustumPlanes\";\nexport * from \"./geometry/GeodeticDatum\";\nexport * from \"./geometry/GeodeticEllipsoid\";\nexport * from \"./geometry/GeometryStream\";\nexport * from \"./geometry/ImageGraphic\";\nexport * from \"./geometry/LineStyle\";\nexport * from \"./geometry/Placement\";\nexport * from \"./geometry/Projection\";\nexport * from \"./geometry/TextString\";\nexport * from \"./GeometryContainment\";\nexport * from \"./GeometryParams\";\nexport * from \"./GeometrySummary\";\nexport * from \"./Gradient\";\nexport * from \"./GraphicParams\";\nexport * from \"./GroundPlane\";\nexport * from \"./HiddenLine\";\nexport * from \"./Hilite\";\nexport * from \"./HSLColor\";\nexport * from \"./HSVColor\";\nexport * from \"./Image\";\nexport * from \"./IModel\";\nexport * from \"./IModelError\";\nexport * from \"./IModelVersion\";\nexport * from \"./ipc/IpcSocket\";\nexport * from \"./ipc/IpcWebSocket\";\nexport * from \"./ipc/IpcWebSocketTransport\";\nexport * from \"./ipc/IpcSession\";\nexport * from \"./IpcAppProps\";\nexport * from \"./LightSettings\";\nexport * from \"./LinePixels\";\nexport * from \"./Localization\";\nexport * from \"./MapImagerySettings\";\nexport * from \"./MapLayerSettings\";\nexport * from \"./MassProperties\";\nexport * from \"./MaterialProps\";\nexport * from \"./ModelClipGroup\";\nexport * from \"./ModelProps\";\nexport * from \"./NativeAppProps\";\nexport * from \"./OctEncodedNormal\";\nexport * from \"./ConcurrentQuery\";\nexport * from \"./ECSqlReader\";\nexport * from \"./PlanarClipMask\";\nexport * from \"./ModelGeometryChanges\";\nexport * from \"./PlanProjectionSettings\";\nexport * from \"./BackendTypes\";\nexport * from \"./QPoint\";\nexport * from \"./RealityDataAccessProps\";\nexport * from \"./RealityModelDisplaySettings\";\nexport * from \"./Render\";\nexport * from \"./RenderMaterial\";\nexport * from \"./RenderSchedule\";\nexport * from \"./RenderTexture\";\nexport * from \"./RgbColor\";\nexport * from \"./RpcManager\";\nexport * from \"./SessionProps\";\nexport * from \"./SkyBox\";\nexport * from \"./Snapping\";\nexport * from \"./SolarCalculate\";\nexport * from \"./SolarShadows\";\nexport * from \"./SpatialClassification\";\nexport * from \"./SubCategoryAppearance\";\nexport * from \"./SubCategoryOverride\";\nexport * from \"./TerrainSettings\";\nexport * from \"./TextureMapping\";\nexport * from \"./TextureProps\";\nexport * from \"./ThematicDisplay\";\nexport * from \"./Thumbnail\";\nexport * from \"./TileProps\";\nexport * from \"./Tween\";\nexport * from \"./TxnAction\";\nexport * from \"./ViewDetails\";\nexport * from \"./ViewFlags\";\nexport * from \"./ViewProps\";\nexport * from \"./rpc/core/RpcConstants\";\nexport * from \"./rpc/core/RpcControl\";\nexport * from \"./rpc/core/RpcInvocation\";\nexport * from \"./rpc/core/RpcSessionInvocation\";\nexport * from \"./rpc/core/RpcMarshaling\";\nexport * from \"./rpc/core/RpcOperation\";\nexport * from \"./rpc/core/RpcPendingQueue\";\nexport * from \"./rpc/core/RpcProtocol\";\nexport * from \"./rpc/core/RpcRegistry\";\nexport * from \"./rpc/core/RpcRequest\";\nexport * from \"./rpc/core/RpcRequestContext\";\nexport * from \"./rpc/core/RpcRoutingToken\";\nexport * from \"./rpc/core/RpcPush\";\nexport * from \"./rpc/core/RpcConfiguration\";\nexport * from \"./rpc/DevToolsRpcInterface\";\nexport * from \"./rpc/IModelReadRpcInterface\";\nexport * from \"./rpc/IModelTileRpcInterface\";\nexport * from \"./rpc/SnapshotIModelRpcInterface\";\nexport * from \"./rpc/TestRpcManager\";\nexport * from \"./rpc/WipRpcInterface\";\nexport * from \"./RpcInterface\";\nexport * from \"./rpc/web/BentleyCloudRpcManager\";\nexport * from \"./rpc/web/BentleyCloudRpcProtocol\";\nexport * from \"./rpc/web/OpenAPI\";\nexport * from \"./rpc/web/RpcMultipart\";\nexport * from \"./rpc/web/WebAppRpcProtocol\";\nexport * from \"./rpc/web/WebAppRpcRequest\";\nexport * from \"./rpc/web/WebAppRpcLogging\";\nexport * from \"./tile/B3dmTileIO\";\nexport * from \"./tile/CompositeTileIO\";\nexport * from \"./tile/ElementGraphics\";\nexport * from \"./tile/GltfTileIO\";\nexport * from \"./tile/I3dmTileIO\";\nexport * from \"./tile/IModelTileIO\";\nexport * from \"./tile/PntsTileIO\";\nexport * from \"./tile/TileIO\";\nexport * from \"./tile/TileMetadata\";\nexport * from \"./tile/Tileset3dSchema\";\nexport * from \"./WhiteOnWhiteReversalSettings\";\n\n/** @docs-package-description\n * The core-common package contains classes for working with iModels that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).\n */\n/**\n * @docs-group-description Entities\n * Definitions of the \"props\" interfaces and types that define the [wire format]($docs/learning/wireformat.md) for communication between the frontend and backend about entities (models, elements, etc) contained in an iModel.\n */\n/**\n * @docs-group-description Codes\n * Types for working with [Codes]($docs/bis/guide/fundamentals/codes.md).\n */\n/**\n * @docs-group-description Geometry\n * Types for working with geometry.\n */\n/**\n * @docs-group-description Serialization\n * Types for serializing geometry\n */\n/**\n * @docs-group-description Views\n * Types for defining graphical views of the contents of an iModel.\n */\n/**\n * @docs-group-description DisplayStyles\n * Types for describing how the contents of Views should be rendered.\n */\n/**\n * @docs-group-description Rendering\n * Types describing geometry, views, and symbology for consumption by a display system.\n */\n/**\n * @docs-group-description Symbology\n * Types that define the appearance of geometry.\n */\n/**\n * @docs-group-description iModels\n * Types for working with [iModels]($docs/learning/IModels.md) in both the frontend and backend.\n */\n/**\n * @docs-group-description RpcInterface\n * Types for working with [RpcInterfaces]($docs/learning/RpcInterface.md).\n */\n/**\n * @docs-group-description IpcSocket\n * Types for working with [IpcInterfaces]($docs/learning/IpcInterface.md).\n */\n/**\n * @docs-group-description ECSQL\n * Types for working with [ECSQL]($docs/learning/ECSQL.md), [Spatial Queries]($docs/learning/SpatialQueries.md), and [ECSQL Geometry Functions]($docs/learning/GeometrySqlFuncs.md).\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package.\n */\n/**\n * @docs-group-description CloudStorage\n * Types for working with Cloud Storage.\n */\n/**\n * @docs-group-description Tween\n * Tweening library adapted from tween.js.\n */\n/**\n * @docs-group-description Tile\n * Types for working with 3d tile formats.\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description NativeApp\n * [Native applications]($docs/learning/NativeApps.md)\n */\n/**\n * @docs-group-description Localization\n * Classes for internationalization and localization of your app.\n */\n/**\n * @docs-group-description Authorization\n * Classes for managing AccessToken used for all requests in other classes.\n */\n/**\n * @docs-group-description RealityData\n * Types for working with the RealityData API.\n */\n/**\n * @docs-group-description MapLayers\n * Types for working with the MapLayers API.\n */\n/**\n * @docs-group-description Annotation\n * APIs for producing and manipulating annotations like text, dimensions, and labels.\n */\n"]}