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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (632) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/lib/cjs/AnalysisStyle.d.ts +3 -0
  3. package/lib/cjs/AnalysisStyle.d.ts.map +1 -1
  4. package/lib/cjs/AnalysisStyle.js.map +1 -1
  5. package/lib/cjs/BackgroundMapProvider.d.ts +6 -0
  6. package/lib/cjs/BackgroundMapProvider.d.ts.map +1 -1
  7. package/lib/cjs/BackgroundMapProvider.js +10 -0
  8. package/lib/cjs/BackgroundMapProvider.js.map +1 -1
  9. package/lib/cjs/BackgroundMapSettings.d.ts +4 -0
  10. package/lib/cjs/BackgroundMapSettings.d.ts.map +1 -1
  11. package/lib/cjs/BackgroundMapSettings.js +1 -0
  12. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  13. package/lib/cjs/Base64EncodedString.d.ts +1 -0
  14. package/lib/cjs/Base64EncodedString.d.ts.map +1 -1
  15. package/lib/cjs/Base64EncodedString.js.map +1 -1
  16. package/lib/cjs/BriefcaseTypes.d.ts +5 -0
  17. package/lib/cjs/BriefcaseTypes.d.ts.map +1 -1
  18. package/lib/cjs/BriefcaseTypes.js +2 -0
  19. package/lib/cjs/BriefcaseTypes.js.map +1 -1
  20. package/lib/cjs/Camera.d.ts +1 -0
  21. package/lib/cjs/Camera.d.ts.map +1 -1
  22. package/lib/cjs/Camera.js.map +1 -1
  23. package/lib/cjs/ChangedElements.d.ts +2 -0
  24. package/lib/cjs/ChangedElements.d.ts.map +1 -1
  25. package/lib/cjs/ChangedElements.js +1 -0
  26. package/lib/cjs/ChangedElements.js.map +1 -1
  27. package/lib/cjs/ChangedEntities.d.ts +3 -0
  28. package/lib/cjs/ChangedEntities.d.ts.map +1 -1
  29. package/lib/cjs/ChangedEntities.js.map +1 -1
  30. package/lib/cjs/ChangesetProps.d.ts +9 -1
  31. package/lib/cjs/ChangesetProps.d.ts.map +1 -1
  32. package/lib/cjs/ChangesetProps.js +3 -1
  33. package/lib/cjs/ChangesetProps.js.map +1 -1
  34. package/lib/cjs/ClipStyle.d.ts +2 -0
  35. package/lib/cjs/ClipStyle.d.ts.map +1 -1
  36. package/lib/cjs/ClipStyle.js.map +1 -1
  37. package/lib/cjs/CloudStorage.d.ts.map +1 -1
  38. package/lib/cjs/CloudStorage.js +14 -20
  39. package/lib/cjs/CloudStorage.js.map +1 -1
  40. package/lib/cjs/Code.d.ts +3 -0
  41. package/lib/cjs/Code.d.ts.map +1 -1
  42. package/lib/cjs/Code.js +1 -0
  43. package/lib/cjs/Code.js.map +1 -1
  44. package/lib/cjs/ColorByName.d.ts +153 -152
  45. package/lib/cjs/ColorByName.d.ts.map +1 -1
  46. package/lib/cjs/ColorByName.js +153 -153
  47. package/lib/cjs/ColorByName.js.map +1 -1
  48. package/lib/cjs/ColorDef.d.ts +55 -46
  49. package/lib/cjs/ColorDef.d.ts.map +1 -1
  50. package/lib/cjs/ColorDef.js +49 -31
  51. package/lib/cjs/ColorDef.js.map +1 -1
  52. package/lib/cjs/CommonLoggerCategory.d.ts +1 -0
  53. package/lib/cjs/CommonLoggerCategory.d.ts.map +1 -1
  54. package/lib/cjs/CommonLoggerCategory.js +1 -0
  55. package/lib/cjs/CommonLoggerCategory.js.map +1 -1
  56. package/lib/cjs/ConcurrentQuery.d.ts +6 -1
  57. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  58. package/lib/cjs/ConcurrentQuery.js +1 -0
  59. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  60. package/lib/cjs/ContextRealityModel.d.ts +2 -0
  61. package/lib/cjs/ContextRealityModel.d.ts.map +1 -1
  62. package/lib/cjs/ContextRealityModel.js.map +1 -1
  63. package/lib/cjs/DisplayStyleSettings.d.ts +10 -0
  64. package/lib/cjs/DisplayStyleSettings.d.ts.map +1 -1
  65. package/lib/cjs/DisplayStyleSettings.js +1 -0
  66. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  67. package/lib/cjs/ECSqlTypes.d.ts +6 -0
  68. package/lib/cjs/ECSqlTypes.d.ts.map +1 -1
  69. package/lib/cjs/ECSqlTypes.js +4 -0
  70. package/lib/cjs/ECSqlTypes.js.map +1 -1
  71. package/lib/cjs/ElementProps.d.ts +37 -1
  72. package/lib/cjs/ElementProps.d.ts.map +1 -1
  73. package/lib/cjs/ElementProps.js +2 -0
  74. package/lib/cjs/ElementProps.js.map +1 -1
  75. package/lib/cjs/EmphasizeElementsProps.d.ts +3 -0
  76. package/lib/cjs/EmphasizeElementsProps.d.ts.map +1 -1
  77. package/lib/cjs/EmphasizeElementsProps.js +1 -0
  78. package/lib/cjs/EmphasizeElementsProps.js.map +1 -1
  79. package/lib/cjs/EntityProps.d.ts +4 -0
  80. package/lib/cjs/EntityProps.d.ts.map +1 -1
  81. package/lib/cjs/EntityProps.js.map +1 -1
  82. package/lib/cjs/Environment.d.ts +1 -0
  83. package/lib/cjs/Environment.d.ts.map +1 -1
  84. package/lib/cjs/Environment.js.map +1 -1
  85. package/lib/cjs/FeatureSymbology.d.ts +3 -0
  86. package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
  87. package/lib/cjs/FeatureSymbology.js.map +1 -1
  88. package/lib/cjs/FeatureTable.d.ts +1 -0
  89. package/lib/cjs/FeatureTable.d.ts.map +1 -1
  90. package/lib/cjs/FeatureTable.js +1 -0
  91. package/lib/cjs/FeatureTable.js.map +1 -1
  92. package/lib/cjs/Fonts.d.ts +3 -0
  93. package/lib/cjs/Fonts.d.ts.map +1 -1
  94. package/lib/cjs/Fonts.js +1 -0
  95. package/lib/cjs/Fonts.js.map +1 -1
  96. package/lib/cjs/Frustum.d.ts +1 -0
  97. package/lib/cjs/Frustum.d.ts.map +1 -1
  98. package/lib/cjs/Frustum.js +1 -0
  99. package/lib/cjs/Frustum.js.map +1 -1
  100. package/lib/cjs/GeoCoordinateServices.d.ts +1 -0
  101. package/lib/cjs/GeoCoordinateServices.d.ts.map +1 -1
  102. package/lib/cjs/GeoCoordinateServices.js +1 -0
  103. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  104. package/lib/cjs/GeometryContainment.d.ts +2 -0
  105. package/lib/cjs/GeometryContainment.d.ts.map +1 -1
  106. package/lib/cjs/GeometryContainment.js.map +1 -1
  107. package/lib/cjs/GeometryParams.d.ts +3 -0
  108. package/lib/cjs/GeometryParams.d.ts.map +1 -1
  109. package/lib/cjs/GeometryParams.js +3 -0
  110. package/lib/cjs/GeometryParams.js.map +1 -1
  111. package/lib/cjs/GeometrySummary.d.ts +3 -0
  112. package/lib/cjs/GeometrySummary.d.ts.map +1 -1
  113. package/lib/cjs/GeometrySummary.js +1 -0
  114. package/lib/cjs/GeometrySummary.js.map +1 -1
  115. package/lib/cjs/GraphicParams.d.ts +1 -0
  116. package/lib/cjs/GraphicParams.d.ts.map +1 -1
  117. package/lib/cjs/GraphicParams.js +1 -0
  118. package/lib/cjs/GraphicParams.js.map +1 -1
  119. package/lib/cjs/GroundPlane.d.ts +1 -0
  120. package/lib/cjs/GroundPlane.d.ts.map +1 -1
  121. package/lib/cjs/GroundPlane.js.map +1 -1
  122. package/lib/cjs/HSVColor.d.ts +4 -1
  123. package/lib/cjs/HSVColor.d.ts.map +1 -1
  124. package/lib/cjs/HSVColor.js +4 -1
  125. package/lib/cjs/HSVColor.js.map +1 -1
  126. package/lib/cjs/IModel.d.ts +6 -1
  127. package/lib/cjs/IModel.d.ts.map +1 -1
  128. package/lib/cjs/IModel.js.map +1 -1
  129. package/lib/cjs/Image.d.ts +2 -0
  130. package/lib/cjs/Image.d.ts.map +1 -1
  131. package/lib/cjs/Image.js +2 -0
  132. package/lib/cjs/Image.js.map +1 -1
  133. package/lib/cjs/IpcAppProps.d.ts +1 -0
  134. package/lib/cjs/IpcAppProps.d.ts.map +1 -1
  135. package/lib/cjs/IpcAppProps.js.map +1 -1
  136. package/lib/cjs/LightSettings.d.ts +5 -0
  137. package/lib/cjs/LightSettings.d.ts.map +1 -1
  138. package/lib/cjs/LightSettings.js.map +1 -1
  139. package/lib/cjs/LinePixels.d.ts +1 -0
  140. package/lib/cjs/LinePixels.d.ts.map +1 -1
  141. package/lib/cjs/LinePixels.js +1 -0
  142. package/lib/cjs/LinePixels.js.map +1 -1
  143. package/lib/cjs/Localization.d.ts +1 -0
  144. package/lib/cjs/Localization.d.ts.map +1 -1
  145. package/lib/cjs/Localization.js.map +1 -1
  146. package/lib/cjs/MassProperties.d.ts +27 -1
  147. package/lib/cjs/MassProperties.d.ts.map +1 -1
  148. package/lib/cjs/MassProperties.js +1 -0
  149. package/lib/cjs/MassProperties.js.map +1 -1
  150. package/lib/cjs/MaterialProps.d.ts +6 -0
  151. package/lib/cjs/MaterialProps.d.ts.map +1 -1
  152. package/lib/cjs/MaterialProps.js +1 -0
  153. package/lib/cjs/MaterialProps.js.map +1 -1
  154. package/lib/cjs/ModelClipGroup.d.ts +1 -0
  155. package/lib/cjs/ModelClipGroup.d.ts.map +1 -1
  156. package/lib/cjs/ModelClipGroup.js.map +1 -1
  157. package/lib/cjs/ModelGeometryChanges.d.ts +9 -1
  158. package/lib/cjs/ModelGeometryChanges.d.ts.map +1 -1
  159. package/lib/cjs/ModelGeometryChanges.js.map +1 -1
  160. package/lib/cjs/ModelProps.d.ts +6 -0
  161. package/lib/cjs/ModelProps.d.ts.map +1 -1
  162. package/lib/cjs/ModelProps.js.map +1 -1
  163. package/lib/cjs/PlanProjectionSettings.d.ts +1 -0
  164. package/lib/cjs/PlanProjectionSettings.d.ts.map +1 -1
  165. package/lib/cjs/PlanProjectionSettings.js.map +1 -1
  166. package/lib/cjs/PlanarClipMask.d.ts +3 -0
  167. package/lib/cjs/PlanarClipMask.d.ts.map +1 -1
  168. package/lib/cjs/PlanarClipMask.js +2 -0
  169. package/lib/cjs/PlanarClipMask.js.map +1 -1
  170. package/lib/cjs/RgbColor.d.ts +1 -0
  171. package/lib/cjs/RgbColor.d.ts.map +1 -1
  172. package/lib/cjs/RgbColor.js.map +1 -1
  173. package/lib/cjs/SessionProps.d.ts +1 -0
  174. package/lib/cjs/SessionProps.d.ts.map +1 -1
  175. package/lib/cjs/SessionProps.js.map +1 -1
  176. package/lib/cjs/SkyBox.d.ts +4 -0
  177. package/lib/cjs/SkyBox.d.ts.map +1 -1
  178. package/lib/cjs/SkyBox.js +1 -0
  179. package/lib/cjs/SkyBox.js.map +1 -1
  180. package/lib/cjs/SolarShadows.d.ts +1 -0
  181. package/lib/cjs/SolarShadows.d.ts.map +1 -1
  182. package/lib/cjs/SolarShadows.js.map +1 -1
  183. package/lib/cjs/SpatialClassification.d.ts +5 -0
  184. package/lib/cjs/SpatialClassification.d.ts.map +1 -1
  185. package/lib/cjs/SpatialClassification.js +2 -0
  186. package/lib/cjs/SpatialClassification.js.map +1 -1
  187. package/lib/cjs/TerrainSettings.d.ts +3 -0
  188. package/lib/cjs/TerrainSettings.d.ts.map +1 -1
  189. package/lib/cjs/TerrainSettings.js +1 -0
  190. package/lib/cjs/TerrainSettings.js.map +1 -1
  191. package/lib/cjs/TextureProps.d.ts +3 -0
  192. package/lib/cjs/TextureProps.d.ts.map +1 -1
  193. package/lib/cjs/TextureProps.js.map +1 -1
  194. package/lib/cjs/ThematicDisplay.d.ts +9 -1
  195. package/lib/cjs/ThematicDisplay.d.ts.map +1 -1
  196. package/lib/cjs/ThematicDisplay.js +5 -1
  197. package/lib/cjs/ThematicDisplay.js.map +1 -1
  198. package/lib/cjs/Thumbnail.d.ts +2 -0
  199. package/lib/cjs/Thumbnail.d.ts.map +1 -1
  200. package/lib/cjs/Thumbnail.js.map +1 -1
  201. package/lib/cjs/TileProps.d.ts +1 -0
  202. package/lib/cjs/TileProps.d.ts.map +1 -1
  203. package/lib/cjs/TileProps.js.map +1 -1
  204. package/lib/cjs/Tween.d.ts +16 -4
  205. package/lib/cjs/Tween.d.ts.map +1 -1
  206. package/lib/cjs/Tween.js.map +1 -1
  207. package/lib/cjs/TxnAction.d.ts +1 -0
  208. package/lib/cjs/TxnAction.d.ts.map +1 -1
  209. package/lib/cjs/TxnAction.js +1 -0
  210. package/lib/cjs/TxnAction.js.map +1 -1
  211. package/lib/cjs/ViewDetails.d.ts +3 -0
  212. package/lib/cjs/ViewDetails.d.ts.map +1 -1
  213. package/lib/cjs/ViewDetails.js +1 -0
  214. package/lib/cjs/ViewDetails.js.map +1 -1
  215. package/lib/cjs/ViewFlags.d.ts +4 -0
  216. package/lib/cjs/ViewFlags.d.ts.map +1 -1
  217. package/lib/cjs/ViewFlags.js +1 -0
  218. package/lib/cjs/ViewFlags.js.map +1 -1
  219. package/lib/cjs/ViewProps.d.ts +69 -3
  220. package/lib/cjs/ViewProps.d.ts.map +1 -1
  221. package/lib/cjs/ViewProps.js.map +1 -1
  222. package/lib/cjs/WhiteOnWhiteReversalSettings.d.ts +1 -0
  223. package/lib/cjs/WhiteOnWhiteReversalSettings.d.ts.map +1 -1
  224. package/lib/cjs/WhiteOnWhiteReversalSettings.js.map +1 -1
  225. package/lib/cjs/domains/FunctionalElementProps.d.ts +4 -1
  226. package/lib/cjs/domains/FunctionalElementProps.d.ts.map +1 -1
  227. package/lib/cjs/domains/FunctionalElementProps.js.map +1 -1
  228. package/lib/cjs/domains/GenericElementProps.d.ts +8 -2
  229. package/lib/cjs/domains/GenericElementProps.d.ts.map +1 -1
  230. package/lib/cjs/domains/GenericElementProps.js.map +1 -1
  231. package/lib/cjs/geometry/AdditionalTransform.d.ts +2 -0
  232. package/lib/cjs/geometry/AdditionalTransform.d.ts.map +1 -1
  233. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  234. package/lib/cjs/geometry/Cartographic.d.ts +1 -0
  235. package/lib/cjs/geometry/Cartographic.d.ts.map +1 -1
  236. package/lib/cjs/geometry/Cartographic.js.map +1 -1
  237. package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts +5 -0
  238. package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
  239. package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
  240. package/lib/cjs/geometry/ElementGeometry.d.ts +2 -0
  241. package/lib/cjs/geometry/ElementGeometry.d.ts.map +1 -1
  242. package/lib/cjs/geometry/ElementGeometry.js +1 -0
  243. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  244. package/lib/cjs/geometry/GeodeticDatum.d.ts +80 -1
  245. package/lib/cjs/geometry/GeodeticDatum.d.ts.map +1 -1
  246. package/lib/cjs/geometry/GeodeticDatum.js +79 -1
  247. package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
  248. package/lib/cjs/geometry/GeodeticEllipsoid.d.ts +1 -0
  249. package/lib/cjs/geometry/GeodeticEllipsoid.d.ts.map +1 -1
  250. package/lib/cjs/geometry/GeodeticEllipsoid.js.map +1 -1
  251. package/lib/cjs/geometry/GeometryStream.d.ts +15 -0
  252. package/lib/cjs/geometry/GeometryStream.d.ts.map +1 -1
  253. package/lib/cjs/geometry/GeometryStream.js +11 -7
  254. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  255. package/lib/cjs/geometry/ImageGraphic.d.ts +2 -0
  256. package/lib/cjs/geometry/ImageGraphic.d.ts.map +1 -1
  257. package/lib/cjs/geometry/ImageGraphic.js.map +1 -1
  258. package/lib/cjs/geometry/Placement.d.ts +6 -0
  259. package/lib/cjs/geometry/Placement.d.ts.map +1 -1
  260. package/lib/cjs/geometry/Placement.js.map +1 -1
  261. package/lib/cjs/geometry/Projection.d.ts +6 -0
  262. package/lib/cjs/geometry/Projection.d.ts.map +1 -1
  263. package/lib/cjs/geometry/Projection.js.map +1 -1
  264. package/lib/cjs/geometry/TextString.d.ts +1 -0
  265. package/lib/cjs/geometry/TextString.d.ts.map +1 -1
  266. package/lib/cjs/geometry/TextString.js.map +1 -1
  267. package/lib/cjs/ipc/IpcSocket.d.ts +1 -0
  268. package/lib/cjs/ipc/IpcSocket.d.ts.map +1 -1
  269. package/lib/cjs/ipc/IpcSocket.js.map +1 -1
  270. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts +5 -2
  271. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  272. package/lib/cjs/rpc/IModelReadRpcInterface.js +4 -1
  273. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  274. package/lib/cjs/rpc/IModelTileRpcInterface.d.ts +4 -2
  275. package/lib/cjs/rpc/IModelTileRpcInterface.d.ts.map +1 -1
  276. package/lib/cjs/rpc/IModelTileRpcInterface.js +4 -2
  277. package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
  278. package/lib/cjs/rpc/core/RpcInvocation.d.ts +3 -0
  279. package/lib/cjs/rpc/core/RpcInvocation.d.ts.map +1 -1
  280. package/lib/cjs/rpc/core/RpcInvocation.js +33 -7
  281. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  282. package/lib/cjs/rpc/core/RpcMarshaling.d.ts.map +1 -1
  283. package/lib/cjs/rpc/core/RpcMarshaling.js +2 -1
  284. package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
  285. package/lib/cjs/rpc/core/RpcOperation.d.ts +2 -0
  286. package/lib/cjs/rpc/core/RpcOperation.d.ts.map +1 -1
  287. package/lib/cjs/rpc/core/RpcOperation.js +2 -0
  288. package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
  289. package/lib/cjs/rpc/core/RpcProtocol.d.ts +22 -1
  290. package/lib/cjs/rpc/core/RpcProtocol.d.ts.map +1 -1
  291. package/lib/cjs/rpc/core/RpcProtocol.js +13 -2
  292. package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
  293. package/lib/cjs/rpc/core/RpcRequest.d.ts +3 -0
  294. package/lib/cjs/rpc/core/RpcRequest.d.ts.map +1 -1
  295. package/lib/cjs/rpc/core/RpcRequest.js +35 -1
  296. package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
  297. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.d.ts.map +1 -1
  298. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +1 -2
  299. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  300. package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
  301. package/lib/cjs/rpc/web/WebAppRpcLogging.js +14 -10
  302. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  303. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +1 -0
  304. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  305. package/lib/cjs/rpc/web/WebAppRpcProtocol.js +2 -1
  306. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  307. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts +5 -6
  308. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  309. package/lib/cjs/rpc/web/WebAppRpcRequest.js +47 -25
  310. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  311. package/lib/cjs/tile/ElementGraphics.d.ts +8 -0
  312. package/lib/cjs/tile/ElementGraphics.d.ts.map +1 -1
  313. package/lib/cjs/tile/ElementGraphics.js.map +1 -1
  314. package/lib/cjs/tile/IModelTileIO.d.ts +2 -2
  315. package/lib/cjs/tile/IModelTileIO.js +2 -2
  316. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  317. package/lib/esm/AnalysisStyle.d.ts +3 -0
  318. package/lib/esm/AnalysisStyle.d.ts.map +1 -1
  319. package/lib/esm/AnalysisStyle.js.map +1 -1
  320. package/lib/esm/BackgroundMapProvider.d.ts +6 -0
  321. package/lib/esm/BackgroundMapProvider.d.ts.map +1 -1
  322. package/lib/esm/BackgroundMapProvider.js +10 -0
  323. package/lib/esm/BackgroundMapProvider.js.map +1 -1
  324. package/lib/esm/BackgroundMapSettings.d.ts +4 -0
  325. package/lib/esm/BackgroundMapSettings.d.ts.map +1 -1
  326. package/lib/esm/BackgroundMapSettings.js +1 -0
  327. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  328. package/lib/esm/Base64EncodedString.d.ts +1 -0
  329. package/lib/esm/Base64EncodedString.d.ts.map +1 -1
  330. package/lib/esm/Base64EncodedString.js.map +1 -1
  331. package/lib/esm/BriefcaseTypes.d.ts +5 -0
  332. package/lib/esm/BriefcaseTypes.d.ts.map +1 -1
  333. package/lib/esm/BriefcaseTypes.js +2 -0
  334. package/lib/esm/BriefcaseTypes.js.map +1 -1
  335. package/lib/esm/Camera.d.ts +1 -0
  336. package/lib/esm/Camera.d.ts.map +1 -1
  337. package/lib/esm/Camera.js.map +1 -1
  338. package/lib/esm/ChangedElements.d.ts +2 -0
  339. package/lib/esm/ChangedElements.d.ts.map +1 -1
  340. package/lib/esm/ChangedElements.js +1 -0
  341. package/lib/esm/ChangedElements.js.map +1 -1
  342. package/lib/esm/ChangedEntities.d.ts +3 -0
  343. package/lib/esm/ChangedEntities.d.ts.map +1 -1
  344. package/lib/esm/ChangedEntities.js.map +1 -1
  345. package/lib/esm/ChangesetProps.d.ts +9 -1
  346. package/lib/esm/ChangesetProps.d.ts.map +1 -1
  347. package/lib/esm/ChangesetProps.js +3 -1
  348. package/lib/esm/ChangesetProps.js.map +1 -1
  349. package/lib/esm/ClipStyle.d.ts +2 -0
  350. package/lib/esm/ClipStyle.d.ts.map +1 -1
  351. package/lib/esm/ClipStyle.js.map +1 -1
  352. package/lib/esm/CloudStorage.d.ts.map +1 -1
  353. package/lib/esm/CloudStorage.js +14 -20
  354. package/lib/esm/CloudStorage.js.map +1 -1
  355. package/lib/esm/Code.d.ts +3 -0
  356. package/lib/esm/Code.d.ts.map +1 -1
  357. package/lib/esm/Code.js +1 -0
  358. package/lib/esm/Code.js.map +1 -1
  359. package/lib/esm/ColorByName.d.ts +153 -152
  360. package/lib/esm/ColorByName.d.ts.map +1 -1
  361. package/lib/esm/ColorByName.js +153 -153
  362. package/lib/esm/ColorByName.js.map +1 -1
  363. package/lib/esm/ColorDef.d.ts +55 -46
  364. package/lib/esm/ColorDef.d.ts.map +1 -1
  365. package/lib/esm/ColorDef.js +49 -31
  366. package/lib/esm/ColorDef.js.map +1 -1
  367. package/lib/esm/CommonLoggerCategory.d.ts +1 -0
  368. package/lib/esm/CommonLoggerCategory.d.ts.map +1 -1
  369. package/lib/esm/CommonLoggerCategory.js +1 -0
  370. package/lib/esm/CommonLoggerCategory.js.map +1 -1
  371. package/lib/esm/ConcurrentQuery.d.ts +6 -1
  372. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  373. package/lib/esm/ConcurrentQuery.js +1 -0
  374. package/lib/esm/ConcurrentQuery.js.map +1 -1
  375. package/lib/esm/ContextRealityModel.d.ts +2 -0
  376. package/lib/esm/ContextRealityModel.d.ts.map +1 -1
  377. package/lib/esm/ContextRealityModel.js.map +1 -1
  378. package/lib/esm/DisplayStyleSettings.d.ts +10 -0
  379. package/lib/esm/DisplayStyleSettings.d.ts.map +1 -1
  380. package/lib/esm/DisplayStyleSettings.js +1 -0
  381. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  382. package/lib/esm/ECSqlTypes.d.ts +6 -0
  383. package/lib/esm/ECSqlTypes.d.ts.map +1 -1
  384. package/lib/esm/ECSqlTypes.js +4 -0
  385. package/lib/esm/ECSqlTypes.js.map +1 -1
  386. package/lib/esm/ElementProps.d.ts +37 -1
  387. package/lib/esm/ElementProps.d.ts.map +1 -1
  388. package/lib/esm/ElementProps.js +2 -0
  389. package/lib/esm/ElementProps.js.map +1 -1
  390. package/lib/esm/EmphasizeElementsProps.d.ts +3 -0
  391. package/lib/esm/EmphasizeElementsProps.d.ts.map +1 -1
  392. package/lib/esm/EmphasizeElementsProps.js +1 -0
  393. package/lib/esm/EmphasizeElementsProps.js.map +1 -1
  394. package/lib/esm/EntityProps.d.ts +4 -0
  395. package/lib/esm/EntityProps.d.ts.map +1 -1
  396. package/lib/esm/EntityProps.js.map +1 -1
  397. package/lib/esm/Environment.d.ts +1 -0
  398. package/lib/esm/Environment.d.ts.map +1 -1
  399. package/lib/esm/Environment.js.map +1 -1
  400. package/lib/esm/FeatureSymbology.d.ts +3 -0
  401. package/lib/esm/FeatureSymbology.d.ts.map +1 -1
  402. package/lib/esm/FeatureSymbology.js.map +1 -1
  403. package/lib/esm/FeatureTable.d.ts +1 -0
  404. package/lib/esm/FeatureTable.d.ts.map +1 -1
  405. package/lib/esm/FeatureTable.js +1 -0
  406. package/lib/esm/FeatureTable.js.map +1 -1
  407. package/lib/esm/Fonts.d.ts +3 -0
  408. package/lib/esm/Fonts.d.ts.map +1 -1
  409. package/lib/esm/Fonts.js +1 -0
  410. package/lib/esm/Fonts.js.map +1 -1
  411. package/lib/esm/Frustum.d.ts +1 -0
  412. package/lib/esm/Frustum.d.ts.map +1 -1
  413. package/lib/esm/Frustum.js +1 -0
  414. package/lib/esm/Frustum.js.map +1 -1
  415. package/lib/esm/GeoCoordinateServices.d.ts +1 -0
  416. package/lib/esm/GeoCoordinateServices.d.ts.map +1 -1
  417. package/lib/esm/GeoCoordinateServices.js +1 -0
  418. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  419. package/lib/esm/GeometryContainment.d.ts +2 -0
  420. package/lib/esm/GeometryContainment.d.ts.map +1 -1
  421. package/lib/esm/GeometryContainment.js.map +1 -1
  422. package/lib/esm/GeometryParams.d.ts +3 -0
  423. package/lib/esm/GeometryParams.d.ts.map +1 -1
  424. package/lib/esm/GeometryParams.js +3 -0
  425. package/lib/esm/GeometryParams.js.map +1 -1
  426. package/lib/esm/GeometrySummary.d.ts +3 -0
  427. package/lib/esm/GeometrySummary.d.ts.map +1 -1
  428. package/lib/esm/GeometrySummary.js +1 -0
  429. package/lib/esm/GeometrySummary.js.map +1 -1
  430. package/lib/esm/GraphicParams.d.ts +1 -0
  431. package/lib/esm/GraphicParams.d.ts.map +1 -1
  432. package/lib/esm/GraphicParams.js +1 -0
  433. package/lib/esm/GraphicParams.js.map +1 -1
  434. package/lib/esm/GroundPlane.d.ts +1 -0
  435. package/lib/esm/GroundPlane.d.ts.map +1 -1
  436. package/lib/esm/GroundPlane.js.map +1 -1
  437. package/lib/esm/HSVColor.d.ts +4 -1
  438. package/lib/esm/HSVColor.d.ts.map +1 -1
  439. package/lib/esm/HSVColor.js +4 -1
  440. package/lib/esm/HSVColor.js.map +1 -1
  441. package/lib/esm/IModel.d.ts +6 -1
  442. package/lib/esm/IModel.d.ts.map +1 -1
  443. package/lib/esm/IModel.js.map +1 -1
  444. package/lib/esm/Image.d.ts +2 -0
  445. package/lib/esm/Image.d.ts.map +1 -1
  446. package/lib/esm/Image.js +2 -0
  447. package/lib/esm/Image.js.map +1 -1
  448. package/lib/esm/IpcAppProps.d.ts +1 -0
  449. package/lib/esm/IpcAppProps.d.ts.map +1 -1
  450. package/lib/esm/IpcAppProps.js.map +1 -1
  451. package/lib/esm/LightSettings.d.ts +5 -0
  452. package/lib/esm/LightSettings.d.ts.map +1 -1
  453. package/lib/esm/LightSettings.js.map +1 -1
  454. package/lib/esm/LinePixels.d.ts +1 -0
  455. package/lib/esm/LinePixels.d.ts.map +1 -1
  456. package/lib/esm/LinePixels.js +1 -0
  457. package/lib/esm/LinePixels.js.map +1 -1
  458. package/lib/esm/Localization.d.ts +1 -0
  459. package/lib/esm/Localization.d.ts.map +1 -1
  460. package/lib/esm/Localization.js.map +1 -1
  461. package/lib/esm/MassProperties.d.ts +27 -1
  462. package/lib/esm/MassProperties.d.ts.map +1 -1
  463. package/lib/esm/MassProperties.js +1 -0
  464. package/lib/esm/MassProperties.js.map +1 -1
  465. package/lib/esm/MaterialProps.d.ts +6 -0
  466. package/lib/esm/MaterialProps.d.ts.map +1 -1
  467. package/lib/esm/MaterialProps.js +1 -0
  468. package/lib/esm/MaterialProps.js.map +1 -1
  469. package/lib/esm/ModelClipGroup.d.ts +1 -0
  470. package/lib/esm/ModelClipGroup.d.ts.map +1 -1
  471. package/lib/esm/ModelClipGroup.js.map +1 -1
  472. package/lib/esm/ModelGeometryChanges.d.ts +9 -1
  473. package/lib/esm/ModelGeometryChanges.d.ts.map +1 -1
  474. package/lib/esm/ModelGeometryChanges.js.map +1 -1
  475. package/lib/esm/ModelProps.d.ts +6 -0
  476. package/lib/esm/ModelProps.d.ts.map +1 -1
  477. package/lib/esm/ModelProps.js.map +1 -1
  478. package/lib/esm/PlanProjectionSettings.d.ts +1 -0
  479. package/lib/esm/PlanProjectionSettings.d.ts.map +1 -1
  480. package/lib/esm/PlanProjectionSettings.js.map +1 -1
  481. package/lib/esm/PlanarClipMask.d.ts +3 -0
  482. package/lib/esm/PlanarClipMask.d.ts.map +1 -1
  483. package/lib/esm/PlanarClipMask.js +2 -0
  484. package/lib/esm/PlanarClipMask.js.map +1 -1
  485. package/lib/esm/RgbColor.d.ts +1 -0
  486. package/lib/esm/RgbColor.d.ts.map +1 -1
  487. package/lib/esm/RgbColor.js.map +1 -1
  488. package/lib/esm/SessionProps.d.ts +1 -0
  489. package/lib/esm/SessionProps.d.ts.map +1 -1
  490. package/lib/esm/SessionProps.js.map +1 -1
  491. package/lib/esm/SkyBox.d.ts +4 -0
  492. package/lib/esm/SkyBox.d.ts.map +1 -1
  493. package/lib/esm/SkyBox.js +1 -0
  494. package/lib/esm/SkyBox.js.map +1 -1
  495. package/lib/esm/SolarShadows.d.ts +1 -0
  496. package/lib/esm/SolarShadows.d.ts.map +1 -1
  497. package/lib/esm/SolarShadows.js.map +1 -1
  498. package/lib/esm/SpatialClassification.d.ts +5 -0
  499. package/lib/esm/SpatialClassification.d.ts.map +1 -1
  500. package/lib/esm/SpatialClassification.js +2 -0
  501. package/lib/esm/SpatialClassification.js.map +1 -1
  502. package/lib/esm/TerrainSettings.d.ts +3 -0
  503. package/lib/esm/TerrainSettings.d.ts.map +1 -1
  504. package/lib/esm/TerrainSettings.js +1 -0
  505. package/lib/esm/TerrainSettings.js.map +1 -1
  506. package/lib/esm/TextureProps.d.ts +3 -0
  507. package/lib/esm/TextureProps.d.ts.map +1 -1
  508. package/lib/esm/TextureProps.js.map +1 -1
  509. package/lib/esm/ThematicDisplay.d.ts +9 -1
  510. package/lib/esm/ThematicDisplay.d.ts.map +1 -1
  511. package/lib/esm/ThematicDisplay.js +5 -1
  512. package/lib/esm/ThematicDisplay.js.map +1 -1
  513. package/lib/esm/Thumbnail.d.ts +2 -0
  514. package/lib/esm/Thumbnail.d.ts.map +1 -1
  515. package/lib/esm/Thumbnail.js.map +1 -1
  516. package/lib/esm/TileProps.d.ts +1 -0
  517. package/lib/esm/TileProps.d.ts.map +1 -1
  518. package/lib/esm/TileProps.js.map +1 -1
  519. package/lib/esm/Tween.d.ts +16 -4
  520. package/lib/esm/Tween.d.ts.map +1 -1
  521. package/lib/esm/Tween.js.map +1 -1
  522. package/lib/esm/TxnAction.d.ts +1 -0
  523. package/lib/esm/TxnAction.d.ts.map +1 -1
  524. package/lib/esm/TxnAction.js +1 -0
  525. package/lib/esm/TxnAction.js.map +1 -1
  526. package/lib/esm/ViewDetails.d.ts +3 -0
  527. package/lib/esm/ViewDetails.d.ts.map +1 -1
  528. package/lib/esm/ViewDetails.js +1 -0
  529. package/lib/esm/ViewDetails.js.map +1 -1
  530. package/lib/esm/ViewFlags.d.ts +4 -0
  531. package/lib/esm/ViewFlags.d.ts.map +1 -1
  532. package/lib/esm/ViewFlags.js +1 -0
  533. package/lib/esm/ViewFlags.js.map +1 -1
  534. package/lib/esm/ViewProps.d.ts +69 -3
  535. package/lib/esm/ViewProps.d.ts.map +1 -1
  536. package/lib/esm/ViewProps.js.map +1 -1
  537. package/lib/esm/WhiteOnWhiteReversalSettings.d.ts +1 -0
  538. package/lib/esm/WhiteOnWhiteReversalSettings.d.ts.map +1 -1
  539. package/lib/esm/WhiteOnWhiteReversalSettings.js.map +1 -1
  540. package/lib/esm/domains/FunctionalElementProps.d.ts +4 -1
  541. package/lib/esm/domains/FunctionalElementProps.d.ts.map +1 -1
  542. package/lib/esm/domains/FunctionalElementProps.js.map +1 -1
  543. package/lib/esm/domains/GenericElementProps.d.ts +8 -2
  544. package/lib/esm/domains/GenericElementProps.d.ts.map +1 -1
  545. package/lib/esm/domains/GenericElementProps.js.map +1 -1
  546. package/lib/esm/geometry/AdditionalTransform.d.ts +2 -0
  547. package/lib/esm/geometry/AdditionalTransform.d.ts.map +1 -1
  548. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  549. package/lib/esm/geometry/Cartographic.d.ts +1 -0
  550. package/lib/esm/geometry/Cartographic.d.ts.map +1 -1
  551. package/lib/esm/geometry/Cartographic.js.map +1 -1
  552. package/lib/esm/geometry/CoordinateReferenceSystem.d.ts +5 -0
  553. package/lib/esm/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
  554. package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
  555. package/lib/esm/geometry/ElementGeometry.d.ts +2 -0
  556. package/lib/esm/geometry/ElementGeometry.d.ts.map +1 -1
  557. package/lib/esm/geometry/ElementGeometry.js +1 -0
  558. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  559. package/lib/esm/geometry/GeodeticDatum.d.ts +80 -1
  560. package/lib/esm/geometry/GeodeticDatum.d.ts.map +1 -1
  561. package/lib/esm/geometry/GeodeticDatum.js +77 -0
  562. package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
  563. package/lib/esm/geometry/GeodeticEllipsoid.d.ts +1 -0
  564. package/lib/esm/geometry/GeodeticEllipsoid.d.ts.map +1 -1
  565. package/lib/esm/geometry/GeodeticEllipsoid.js.map +1 -1
  566. package/lib/esm/geometry/GeometryStream.d.ts +15 -0
  567. package/lib/esm/geometry/GeometryStream.d.ts.map +1 -1
  568. package/lib/esm/geometry/GeometryStream.js +11 -7
  569. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  570. package/lib/esm/geometry/ImageGraphic.d.ts +2 -0
  571. package/lib/esm/geometry/ImageGraphic.d.ts.map +1 -1
  572. package/lib/esm/geometry/ImageGraphic.js.map +1 -1
  573. package/lib/esm/geometry/Placement.d.ts +6 -0
  574. package/lib/esm/geometry/Placement.d.ts.map +1 -1
  575. package/lib/esm/geometry/Placement.js.map +1 -1
  576. package/lib/esm/geometry/Projection.d.ts +6 -0
  577. package/lib/esm/geometry/Projection.d.ts.map +1 -1
  578. package/lib/esm/geometry/Projection.js.map +1 -1
  579. package/lib/esm/geometry/TextString.d.ts +1 -0
  580. package/lib/esm/geometry/TextString.d.ts.map +1 -1
  581. package/lib/esm/geometry/TextString.js.map +1 -1
  582. package/lib/esm/ipc/IpcSocket.d.ts +1 -0
  583. package/lib/esm/ipc/IpcSocket.d.ts.map +1 -1
  584. package/lib/esm/ipc/IpcSocket.js.map +1 -1
  585. package/lib/esm/rpc/IModelReadRpcInterface.d.ts +5 -2
  586. package/lib/esm/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  587. package/lib/esm/rpc/IModelReadRpcInterface.js +4 -1
  588. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  589. package/lib/esm/rpc/IModelTileRpcInterface.d.ts +4 -2
  590. package/lib/esm/rpc/IModelTileRpcInterface.d.ts.map +1 -1
  591. package/lib/esm/rpc/IModelTileRpcInterface.js +4 -2
  592. package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
  593. package/lib/esm/rpc/core/RpcInvocation.d.ts +3 -0
  594. package/lib/esm/rpc/core/RpcInvocation.d.ts.map +1 -1
  595. package/lib/esm/rpc/core/RpcInvocation.js +35 -9
  596. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  597. package/lib/esm/rpc/core/RpcMarshaling.d.ts.map +1 -1
  598. package/lib/esm/rpc/core/RpcMarshaling.js +1 -0
  599. package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
  600. package/lib/esm/rpc/core/RpcOperation.d.ts +2 -0
  601. package/lib/esm/rpc/core/RpcOperation.d.ts.map +1 -1
  602. package/lib/esm/rpc/core/RpcOperation.js +2 -0
  603. package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
  604. package/lib/esm/rpc/core/RpcProtocol.d.ts +22 -1
  605. package/lib/esm/rpc/core/RpcProtocol.d.ts.map +1 -1
  606. package/lib/esm/rpc/core/RpcProtocol.js +12 -1
  607. package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
  608. package/lib/esm/rpc/core/RpcRequest.d.ts +3 -0
  609. package/lib/esm/rpc/core/RpcRequest.d.ts.map +1 -1
  610. package/lib/esm/rpc/core/RpcRequest.js +36 -2
  611. package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
  612. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.d.ts.map +1 -1
  613. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +0 -1
  614. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  615. package/lib/esm/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
  616. package/lib/esm/rpc/web/WebAppRpcLogging.js +14 -10
  617. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  618. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +1 -0
  619. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  620. package/lib/esm/rpc/web/WebAppRpcProtocol.js +2 -1
  621. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  622. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts +5 -6
  623. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  624. package/lib/esm/rpc/web/WebAppRpcRequest.js +47 -25
  625. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  626. package/lib/esm/tile/ElementGraphics.d.ts +8 -0
  627. package/lib/esm/tile/ElementGraphics.d.ts.map +1 -1
  628. package/lib/esm/tile/ElementGraphics.js.map +1 -1
  629. package/lib/esm/tile/IModelTileIO.d.ts +2 -2
  630. package/lib/esm/tile/IModelTileIO.js +2 -2
  631. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  632. package/package.json +24 -11
@@ -6,6 +6,7 @@ import { ModelMapLayerSettings } from "./MapLayerSettings";
6
6
  /** Describes how a [[SpatialClassifier]] affects the display of classified geometry - that is, geometry intersecting
7
7
  * the classifier.
8
8
  * @public
9
+ * @extensions
9
10
  */
10
11
  export declare enum SpatialClassifierInsideDisplay {
11
12
  /** The geometry is not displayed. */
@@ -22,6 +23,7 @@ export declare enum SpatialClassifierInsideDisplay {
22
23
  /** Describes how a [[SpatialClassifier]] affects the display of unclassified geometry - that is, geometry not intersecting
23
24
  * the classifier.
24
25
  * @public
26
+ * @extensions
25
27
  */
26
28
  export declare enum SpatialClassifierOutsideDisplay {
27
29
  /** The geometry is not displayed. */
@@ -33,6 +35,7 @@ export declare enum SpatialClassifierOutsideDisplay {
33
35
  }
34
36
  /** JSON representation of a [[SpatialClassifierFlags]].
35
37
  * @public
38
+ * @extensions
36
39
  */
37
40
  export interface SpatialClassifierFlagsProps {
38
41
  /** @see [[SpatialClassifierFlags.inside]]. */
@@ -67,6 +70,7 @@ export declare class SpatialClassifierFlags {
67
70
  }
68
71
  /** JSON representation of a [[SpatialClassifier]].
69
72
  * @public
73
+ * @extensions
70
74
  */
71
75
  export interface SpatialClassifierProps {
72
76
  /** @see [[SpatialClassifier.modelId]]. */
@@ -133,6 +137,7 @@ export declare class SpatialClassifier {
133
137
  /** An object that can store the JSON representation of a list of [[SpatialClassifier]]s.
134
138
  * @see [[SpatialClassifiers]].
135
139
  * @public
140
+ * @extensions
136
141
  */
137
142
  export interface SpatialClassifiersContainer {
138
143
  /** The list of classifiers. */
@@ -1 +1 @@
1
- {"version":3,"file":"SpatialClassification.d.ts","sourceRoot":"","sources":["../../src/SpatialClassification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAU,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;GAGG;AACH,oBAAY,8BAA8B;IACxC,qCAAqC;IACrC,GAAG,IAAI;IACP,oDAAoD;IACpD,EAAE,IAAI;IACN,gCAAgC;IAChC,MAAM,IAAI;IACV,wEAAwE;IACxE,MAAM,IAAI;IACV,yE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SAAS,GAAG,iBAAiB,GAAG,SAAS;IA4BtF,qEAAqE;IAC9D,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,iBAAiB,CAAC;IAIvD,6CAA6C;IAC7C,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,6GAA6G;IACtG,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,OAAO,GAAG,iBAAiB,GAAG,SAAS;IAIjG,8IAA8I;IACvI,cAAc,CAAC,UAAU,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,SAAS;IAInF,0FAA0F;IACnF,GAAG,CAAC,UAAU,EAAE,iBAAiB,GAAG,OAAO;IAIlD;;;OAGG;IACI,GAAG,CAAC,UAAU,EAAE,iBAAiB,GAAG,iBAAiB;IAc5D;;;;;OAKG;IACI,OAAO,CAAC,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,GAAG,OAAO;IA4BrF;;;OAGG;IACI,MAAM,CAAC,UAAU,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,SAAS;IA0B3E,4CAA4C;IACrC,KAAK,IAAI,IAAI;IAMpB,OAAO,KAAK,MAAM,GAEjB;CACF"}
@@ -9,6 +9,7 @@ import { assert } from "@itwin/core-bentley";
9
9
  /** Describes how a [[SpatialClassifier]] affects the display of classified geometry - that is, geometry intersecting
10
10
  * the classifier.
11
11
  * @public
12
+ * @extensions
12
13
  */
13
14
  export var SpatialClassifierInsideDisplay;
14
15
  (function (SpatialClassifierInsideDisplay) {
@@ -26,6 +27,7 @@ export var SpatialClassifierInsideDisplay;
26
27
  /** Describes how a [[SpatialClassifier]] affects the display of unclassified geometry - that is, geometry not intersecting
27
28
  * the classifier.
28
29
  * @public
30
+ * @extensions
29
31
  */
30
32
  export var SpatialClassifierOutsideDisplay;
31
33
  (function (SpatialClassifierOutsideDisplay) {
@@ -1 +1 @@
1
- {"version":3,"file":"SpatialClassification.js","sourceRoot":"","sources":["../../src/SpatialCl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UAAU,KAAK,IAAI,CAAC,MAAM;YAC5B,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;QAE3B,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,4CAA4C;IACrC,KAAK;QACV,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;QAC7B,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;IAED,IAAY,MAAM;QAChB,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IACpF,CAAC;CACF;AAED,SAAS,aAAa,CAAC,OAAe;IACpC,QAAQ,OAAO,EAAE;QACf,KAAK,8BAA8B,CAAC,GAAG,CAAC;QACxC,KAAK,8BAA8B,CAAC,EAAE,CAAC;QACvC,KAAK,8BAA8B,CAAC,MAAM,CAAC;QAC3C,KAAK,8BAA8B,CAAC,MAAM,CAAC;QAC3C,KAAK,8BAA8B,CAAC,YAAY;YAC9C,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,8BAA8B,CAAC,YAAY,CAAC;KACtD;AACH,CAAC;AAED,SAAS,cAAc,CAAC,OAAe;IACrC,QAAQ,OAAO,EAAE;QACf,KAAK,+BAA+B,CAAC,GAAG,CAAC;QACzC,KAAK,+BAA+B,CAAC,EAAE,CAAC;QACxC,KAAK,+BAA+B,CAAC,MAAM;YACzC,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,+BAA+B,CAAC,MAAM,CAAC;KACjD;AACH,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { assert, Id64String } from \"@itwin/core-bentley\";\r\nimport { ModelMapLayerSettings } from \"./MapLayerSettings\";\r\n\r\n/** Describes how a [[SpatialClassifier]] affects the display of classified geometry - that is, geometry intersecting\r\n * the classifier.\r\n * @public\r\n */\r\nexport enum SpatialClassifierInsideDisplay {\r\n /** The geometry is not displayed. */\r\n Off = 0,\r\n /** The geometry is displayed without alteration. */\r\n On = 1,\r\n /** The geometry is darkened. */\r\n Dimmed = 2,\r\n /** The geometry is tinted by the [Viewport.hilite]($frontend) color. */\r\n Hilite = 3,\r\n /** The geometry is tinted with the colors of the classifier elements. */\r\n ElementColor = 4,\r\n}\r\n\r\n/** Describes how a [[SpatialClassifier]] affects the display of unclassified geometry - that is, geometry not intersecting\r\n * the classifier.\r\n * @public\r\n */\r\nexport enum SpatialClassifierOutsideDisplay {\r\n /** The geometry is not displayed. */\r\n Off = 0,\r\n /** The geometry is displayed without alteration. */\r\n On = 1,\r\n /** The geometry is darkened. */\r\n Dimmed = 2,\r\n}\r\n\r\n/** JSON representation of a [[SpatialClassifierFlags]].\r\n * @public\r\n */\r\nexport interface SpatialClassifierFlagsProps {\r\n /** @see [[SpatialClassifierFlags.inside]]. */\r\n inside: SpatialClassifierInsideDisplay;\r\n /** @see [[SpatialClassifierFlags.outside]]. */\r\n outside: SpatialClassifierOutsideDisplay;\r\n /** @see [[SpatialClassifierFlags.isVolumeClassifier]]. */\r\n isVolumeClassifier?: boolean;\r\n}\r\n\r\n/** Flags affecting how a [[SpatialClassifier]] is applied.\r\n * @public\r\n */\r\nexport class SpatialClassifierFlags {\r\n /** How geometry intersecting the classifier should be displayed. */\r\n public readonly inside: SpatialClassifierInsideDisplay;\r\n /** How geometry not intersecting the classifier should be displayed. */\r\n public readonly outside: SpatialClassifierOutsideDisplay;\r\n /** True for volume classification; false for planar classification. */\r\n public readonly isVolumeClassifier: boolean;\r\n\r\n /** Construct new flags. */\r\n public constructor(inside = SpatialClassifierInsideDisplay.ElementColor, outside = SpatialClassifierOutsideDisplay.Dimmed, isVolumeClassifier = false) {\r\n this.inside = insideDisplay(inside);\r\n this.outside = outsideDisplay(outside);\r\n this.isVolumeClassifier = isVolumeClassifier;\r\n }\r\n\r\n /** Construct from JSON representation. */\r\n public static fromJSON(props: SpatialClassifierFlagsProps): SpatialClassifierFlags {\r\n return new SpatialClassifierFlags(props.inside, props.outside, true === props.isVolumeClassifier);\r\n }\r\n\r\n /** Convert to JSON representation. */\r\n public toJSON(): SpatialClassifierFlagsProps {\r\n const props: SpatialClassifierFlagsProps = {\r\n inside: this.inside,\r\n outside: this.outside,\r\n };\r\n\r\n if (this.isVolumeClassifier)\r\n props.isVolumeClassifier = true;\r\n\r\n return props;\r\n }\r\n\r\n /** Create flags indentical to these ones except for any properties explicitly specified by `changedProps`. */\r\n public clone(changedProps?: Partial<SpatialClassifierFlagsProps>): SpatialClassifierFlags {\r\n if (!changedProps)\r\n return this;\r\n\r\n return SpatialClassifierFlags.fromJSON({ ...this.toJSON(), ...changedProps });\r\n }\r\n\r\n /** Return true if these flags are equivalent to `other`. */\r\n public equals(other: SpatialClassifierFlags): boolean {\r\n if (other === this)\r\n return true;\r\n\r\n return other.inside === this.inside && other.outside === this.outside && other.isVolumeClassifier === this.isVolumeClassifier;\r\n }\r\n\r\n /** Return true if these flags are equivalent to `props`. */\r\n public equalsProps(props: SpatialClassifierFlagsProps): boolean {\r\n return this.inside === props.inside && this.outside === props.outside && this.isVolumeClassifier === (true === props.isVolumeClassifier);\r\n }\r\n}\r\n\r\n/** JSON representation of a [[SpatialClassifier]].\r\n * @public\r\n */\r\nexport interface SpatialClassifierProps {\r\n /** @see [[SpatialClassifier.modelId]]. */\r\n modelId: Id64String;\r\n /** @see [[SpatialClassifier.expand]]. */\r\n expand: number;\r\n /** @see [[SpatialClassifier.flags]]. */\r\n flags: SpatialClassifierFlagsProps;\r\n /** @see [[SpatialClassifier.name]]. */\r\n name: string;\r\n /** Records whether this is the active classifier.\r\n * @see [[SpatialClassifier.active]].\r\n */\r\n isActive?: boolean;\r\n}\r\n\r\n/** Describes how to use the geometry of one [GeometricModel]($backend) to classify the contents of other models - most typically, reality models.\r\n * Applying a classifier divides the geometry of the classified model into two groups:\r\n * - Classified (intersecting the classifier); and\r\n * - Unclassified (not intersecting the classifier).\r\n * For example, a model containing the building footprints for a city block could be used to classify a reality mesh captured from photographs of the\r\n * real-world block. Then, buildings within the reality mesh can be selected individually, and present the properties of the classifier geometry (e.g.,\r\n * the address of the building). The appearance of the geometry can also be customized based using [[SpatialClassifierInsideDisplay]] and [[SpatialClassifierOutsideDisplay]].\r\n * Two types of classification are supported:\r\n * - Planar classification, in which the geometry of the classifier model is projected onto a plane to classify geometry within a region extruded perpendicular\r\n * the plane (e.g., the building footprints example); and\r\n * - Volume classification, in which closed volumes within the classifier classify geometry that intersects those same volumes (e.g., imagine using boxes instead\r\n * of footprints to classify buildings, or floors of buildings).\r\n * @see this (interactive example)[https://www.itwinjs.org/sample-showcase/?group=Viewer+Features&sample=classifier-sample].\r\n * @see [[SpatialClassifiers]] to define a set of classifiers.\r\n * @see [[ContextRealityModel.classifiers]] to classify a context reality model.\r\n * @see [SpatialModelState.classifiers]($frontend) to classify a persistent reality model.\r\n * @public\r\n */\r\nexport class SpatialClassifier {\r\n /** The Id of the [GeometricModel]($backend) whose geometry is used to produce the classifier. */\r\n public readonly modelId: Id64String;\r\n /** A distance in meters by which to expand the classifier geometry. For example, if line strings are used to represent streets,\r\n * you might expand them to the average width of a street.\r\n */\r\n public readonly expand: number;\r\n /** Flags controlling how to apply the classifier. */\r\n public readonly flags: SpatialClassifierFlags;\r\n /** A user-friendly name, useful for identifying individual classifiers within a [[SpatialClassifiers]]. */\r\n public readonly name: string;\r\n\r\n /** Construct a new classifier. */\r\n public constructor(modelId: Id64String, name: string, flags = new SpatialClassifierFlags(), expand = 0) {\r\n this.modelId = modelId;\r\n this.expand = expand;\r\n this.flags = flags;\r\n this.name = name;\r\n }\r\n\r\n /** Construct from JSON representation. */\r\n public static fromJSON(props: SpatialClassifierProps): SpatialClassifier {\r\n return new SpatialClassifier(props.modelId, props.name, SpatialClassifierFlags.fromJSON(props.flags), props.expand);\r\n }\r\n\r\n /** Convert to JSON representation.\r\n * @note This method always sets the [[SpatialClassifierProps.isActive]] property to `false`.\r\n */\r\n public toJSON(): SpatialClassifierProps {\r\n return {\r\n modelId: this.modelId,\r\n expand: this.expand,\r\n flags: this.flags.toJSON(),\r\n name: this.name,\r\n isActive: false,\r\n };\r\n }\r\n\r\n /** Construct from Model Map Layer.\r\n * @beta\r\n */\r\n public static fromModelMapLayer(mapLayer: ModelMapLayerSettings): SpatialClassifier {\r\n const flags = SpatialClassifierFlags.fromJSON({ inside: SpatialClassifierInsideDisplay.Off, outside: SpatialClassifierOutsideDisplay.Off });\r\n\r\n return new SpatialClassifier(mapLayer.modelId, mapLayer.name, flags);\r\n }\r\n\r\n /** Create a classifier identical to this one except for any properties explicitly specified by `changedProps`. */\r\n public clone(changedProps?: Partial<SpatialClassifierProps>): SpatialClassifier {\r\n if (!changedProps)\r\n return this;\r\n\r\n return SpatialClassifier.fromJSON({ ...this.toJSON(), ...changedProps });\r\n }\r\n\r\n /** Return true if this classifier is equivalent to `other`. */\r\n public equals(other: SpatialClassifier): boolean {\r\n if (other === this)\r\n return true;\r\n\r\n return this.modelId === other.modelId && this.expand === other.expand && this.name === other.name && this.flags.equals(other.flags);\r\n }\r\n\r\n /** Return true if this classifier is equivalent to `props`. */\r\n public equalsProps(props: SpatialClassifierProps): boolean {\r\n return this.modelId === props.modelId && this.expand === props.expand && this.name === props.name && this.flags.equalsProps(props.flags);\r\n }\r\n}\r\n\r\n/** An object that can store the JSON representation of a list of [[SpatialClassifier]]s.\r\n * @see [[SpatialClassifiers]].\r\n * @public\r\n */\r\nexport interface SpatialClassifiersContainer {\r\n /** The list of classifiers. */\r\n classifiers?: SpatialClassifierProps[];\r\n}\r\n\r\n/** A set of [[SpatialClassifier]]s for a given reality model. At most one of the classifiers can be actively classifying the model at any given time.\r\n * The set of classifiers can be presented to the user, listed by name, so that the active classifier can be changed.\r\n * The set of classifiers is populated from its JSON representation and that representation is kept in sync as the set of classifiers is modified.\r\n * @see this (interactive example)[https://www.itwinjs.org/sample-showcase/?group=Viewer+Features&sample=classifier-sample].\r\n * @see [[SpatialClassifier]] for details on how spatial classification works.\r\n * @see [[ContextRealityModel.classifiers]] to define classifiers for a context reality model.\r\n * @see [SpatialModelState.classifiers]($frontend) to define classifiers for a persistent reality model.\r\n * @public\r\n */\r\nexport class SpatialClassifiers implements Iterable<SpatialClassifier> {\r\n private readonly _json: SpatialClassifiersContainer;\r\n private readonly _classifiers: SpatialClassifier[] = [];\r\n private _active?: SpatialClassifier;\r\n\r\n /** Construct a new set of classifiers from the JSON representation. The set will be initialized from `container.classifiers` and that JSON representation\r\n * will be kept in sync with changes made to the set. The caller should not directly modify `container.classifiers` or its contents as that will cause the set to become out\r\n * of sync with the JSON representation.\r\n * The [[active]] classifier will be determined by the first [[SpatialClassifierProps]] whose `isActive` property is set to `true`, if any.\r\n */\r\n public constructor(container: SpatialClassifiersContainer) {\r\n this._json = container;\r\n\r\n const json = this._array;\r\n if (!json)\r\n return;\r\n\r\n for (const props of json) {\r\n const classifier = SpatialClassifier.fromJSON(props);\r\n this._classifiers.push(classifier);\r\n if (props.isActive) {\r\n if (!this._active)\r\n this._active = classifier;\r\n else\r\n props.isActive = false;\r\n }\r\n }\r\n }\r\n\r\n /** The classifier currently classifying the target reality model. The classifier passed to the setter must be one obtained from this set, or one equivalent to\r\n * one contained in this set; in the latter case, the equivalent classifier contained in this set becomes active.\r\n */\r\n /** The classifier currently classifying the target reality model, if any.\r\n * @see [[setActive]] to change the active classifier.\r\n */\r\n public get active(): SpatialClassifier | undefined {\r\n return this._active;\r\n }\r\n\r\n /** Change the [[active]] classifier. The input must be a classifier belonging to this set, or equivalent to one in the set.\r\n * If no equivalent classifier exists in the set, the active classifier remains unchanged.\r\n * @param The classifier to set as active, or `undefined` to clear the active classifier.\r\n * @returns the active classifier.\r\n */\r\n public setActive(active: SpatialClassifier | undefined): SpatialClassifier | undefined {\r\n const array = this._array;\r\n if (!array)\r\n return this.active;\r\n\r\n if (active) {\r\n active = this.findEquivalent(active);\r\n if (!active)\r\n return this.active;\r\n }\r\n\r\n if (active === this.active)\r\n return this.active;\r\n\r\n let propsIndex = -1;\r\n if (active) {\r\n propsIndex = array.findIndex((x) => active!.equalsProps(x));\r\n if (-1 === propsIndex)\r\n return this.active;\r\n }\r\n\r\n this._active = active;\r\n for (let i = 0; i < array.length; i++)\r\n array[i].isActive = (i === propsIndex);\r\n\r\n return this.active;\r\n }\r\n\r\n /** Obtain an iterator over the classifiers contained in this set. */\r\n public [Symbol.iterator](): Iterator<SpatialClassifier> {\r\n return this._classifiers[Symbol.iterator]();\r\n }\r\n\r\n /** The number of classifiers in this set. */\r\n public get size(): number {\r\n return this._array?.length ?? 0;\r\n }\r\n\r\n /** Returns the first classifier that satisfies `criterion`, or `undefined` if no classifier satisfies it. */\r\n public find(criterion: (classifier: SpatialClassifier) => boolean): SpatialClassifier | undefined {\r\n return this._classifiers.find(criterion);\r\n }\r\n\r\n /** Find the first classifier that is equivalent to the supplied classifier, or `undefined` if no equivalent classifier exists in this set. */\r\n public findEquivalent(classifier: SpatialClassifier): SpatialClassifier | undefined {\r\n return this.find((x) => x.equals(classifier));\r\n }\r\n\r\n /** Return true if the specified classifier or one equivalent to it exists in this set. */\r\n public has(classifier: SpatialClassifier): boolean {\r\n return undefined !== this.findEquivalent(classifier);\r\n }\r\n\r\n /** Add a classifier to this set. If an equivalent classifier already exists, the supplied classifier is not added.\r\n * @param classifier The classifier to add.\r\n * @returns The equivalent pre-existing classifier, if one existed; or the supplied classifier, if it was added to the set.\r\n */\r\n public add(classifier: SpatialClassifier): SpatialClassifier {\r\n const existing = this.findEquivalent(classifier);\r\n if (existing)\r\n return existing;\r\n\r\n let array = this._array;\r\n if (!array)\r\n array = this._json.classifiers = [];\r\n\r\n this._classifiers.push(classifier);\r\n array.push(classifier.toJSON());\r\n return classifier;\r\n }\r\n\r\n /** Replace an existing classifier with a different one.\r\n * @param toReplace The classifier to be replaced.\r\n * @param replacement The classifier to replace `toReplace`.\r\n * @returns true if a classifier equivalent to `toReplace` existed in the set and was replaced by `replacement`.\r\n * @note If `toReplace` was the [[active]] classifier, `replacement` will become active.\r\n */\r\n public replace(toReplace: SpatialClassifier, replacement: SpatialClassifier): boolean {\r\n const list = this._array;\r\n if (!list)\r\n return false;\r\n\r\n const classifierIndex = this._classifiers.findIndex((x) => x.equals(toReplace));\r\n if (-1 === classifierIndex)\r\n return false;\r\n\r\n const propsIndex = list.findIndex((x) => toReplace.equalsProps(x));\r\n assert(propsIndex === classifierIndex);\r\n if (-1 === propsIndex)\r\n return false;\r\n\r\n toReplace = this._classifiers[classifierIndex];\r\n const wasActive = this.active === toReplace;\r\n\r\n this._classifiers[classifierIndex] = replacement;\r\n const props = list[propsIndex] = replacement.toJSON();\r\n\r\n if (wasActive) {\r\n props.isActive = true;\r\n this._active = replacement;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /** Remove the first classifier equivalent to `classifier` from this set.\r\n * @param classifier The classifier to remove.\r\n * @returns The classifier that was actually removed, or `undefined` if none was removed.\r\n */\r\n public delete(classifier: SpatialClassifier): SpatialClassifier | undefined {\r\n const list = this._array;\r\n if (!list)\r\n return undefined;\r\n\r\n const classifierIndex = this._classifiers.findIndex((x) => x.equals(classifier));\r\n if (-1 === classifierIndex)\r\n return undefined;\r\n\r\n classifier = this._classifiers[classifierIndex];\r\n const propsIndex = list.findIndex((x) => classifier.equalsProps(x));\r\n assert(propsIndex === classifierIndex);\r\n if (-1 === propsIndex)\r\n return undefined;\r\n\r\n list.splice(propsIndex, 1);\r\n this._classifiers.splice(classifierIndex, 1);\r\n if (list.length === 0)\r\n this._json.classifiers = undefined;\r\n\r\n if (classifier === this.active)\r\n this._active = undefined;\r\n\r\n return classifier;\r\n }\r\n\r\n /** Remove all classifiers from this set. */\r\n public clear(): void {\r\n this._classifiers.length = 0;\r\n this._json.classifiers = undefined;\r\n this._active = undefined;\r\n }\r\n\r\n private get _array(): SpatialClassifierProps[] | undefined {\r\n return Array.isArray(this._json.classifiers) ? this._json.classifiers : undefined;\r\n }\r\n}\r\n\r\nfunction insideDisplay(display: number): SpatialClassifierInsideDisplay {\r\n switch (display) {\r\n case SpatialClassifierInsideDisplay.Off:\r\n case SpatialClassifierInsideDisplay.On:\r\n case SpatialClassifierInsideDisplay.Dimmed:\r\n case SpatialClassifierInsideDisplay.Hilite:\r\n case SpatialClassifierInsideDisplay.ElementColor:\r\n return display;\r\n default:\r\n return SpatialClassifierInsideDisplay.ElementColor;\r\n }\r\n}\r\n\r\nfunction outsideDisplay(display: number): SpatialClassifierOutsideDisplay {\r\n switch (display) {\r\n case SpatialClassifierOutsideDisplay.Off:\r\n case SpatialClassifierOutsideDisplay.On:\r\n case SpatialClassifierOutsideDisplay.Dimmed:\r\n return display;\r\n default:\r\n return SpatialClassifierOutsideDisplay.Dimmed;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"SpatialClassification.js","sourceRoot":"","sources":["../../src/SpatialClassification.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAc,MAAM,qBAAqB,CAAC;AAGzD;;;;GAIG;AACH,MAAM,CAAN,IAAY,8BAWX;AAXD,WAAY,8BAA8B;IACxC,qCAAqC;IACrC,iFAAO,CAAA;IACP,oDAAoD;IACpD,+EAAM,CAAA;IACN,gCAAgC;IAChC,uFAAU,CAAA;IACV,wEAAwE;IACxE,uFAAU,CAAA;IACV,yEAAyE;IACzE,mGAAgB,CAAA;AAClB,CAAC,EAXW,8BAA8B,KAA9B,8BAA8B,QAWzC;AAED;;;;GAIG;AACH,MAAM,CAAN,IAAY,+BAOX;AAPD,WAAY,+BAA+B;IACzC,qCAAqC;IACrC,mFAAO,CAAA;IACP,oDAAoD;IACpD,iFAAM,CAAA;IACN,gCA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Q,OAAO,EAAE;QACf,KAAK,8BAA8B,CAAC,GAAG,CAAC;QACxC,KAAK,8BAA8B,CAAC,EAAE,CAAC;QACvC,KAAK,8BAA8B,CAAC,MAAM,CAAC;QAC3C,KAAK,8BAA8B,CAAC,MAAM,CAAC;QAC3C,KAAK,8BAA8B,CAAC,YAAY;YAC9C,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,8BAA8B,CAAC,YAAY,CAAC;KACtD;AACH,CAAC;AAED,SAAS,cAAc,CAAC,OAAe;IACrC,QAAQ,OAAO,EAAE;QACf,KAAK,+BAA+B,CAAC,GAAG,CAAC;QACzC,KAAK,+BAA+B,CAAC,EAAE,CAAC;QACxC,KAAK,+BAA+B,CAAC,MAAM;YACzC,OAAO,OAAO,CAAC;QACjB;YACE,OAAO,+BAA+B,CAAC,MAAM,CAAC;KACjD;AACH,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { assert, Id64String } from \"@itwin/core-bentley\";\r\nimport { ModelMapLayerSettings } from \"./MapLayerSettings\";\r\n\r\n/** Describes how a [[SpatialClassifier]] affects the display of classified geometry - that is, geometry intersecting\r\n * the classifier.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum SpatialClassifierInsideDisplay {\r\n /** The geometry is not displayed. */\r\n Off = 0,\r\n /** The geometry is displayed without alteration. */\r\n On = 1,\r\n /** The geometry is darkened. */\r\n Dimmed = 2,\r\n /** The geometry is tinted by the [Viewport.hilite]($frontend) color. */\r\n Hilite = 3,\r\n /** The geometry is tinted with the colors of the classifier elements. */\r\n ElementColor = 4,\r\n}\r\n\r\n/** Describes how a [[SpatialClassifier]] affects the display of unclassified geometry - that is, geometry not intersecting\r\n * the classifier.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum SpatialClassifierOutsideDisplay {\r\n /** The geometry is not displayed. */\r\n Off = 0,\r\n /** The geometry is displayed without alteration. */\r\n On = 1,\r\n /** The geometry is darkened. */\r\n Dimmed = 2,\r\n}\r\n\r\n/** JSON representation of a [[SpatialClassifierFlags]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface SpatialClassifierFlagsProps {\r\n /** @see [[SpatialClassifierFlags.inside]]. */\r\n inside: SpatialClassifierInsideDisplay;\r\n /** @see [[SpatialClassifierFlags.outside]]. */\r\n outside: SpatialClassifierOutsideDisplay;\r\n /** @see [[SpatialClassifierFlags.isVolumeClassifier]]. */\r\n isVolumeClassifier?: boolean;\r\n}\r\n\r\n/** Flags affecting how a [[SpatialClassifier]] is applied.\r\n * @public\r\n */\r\nexport class SpatialClassifierFlags {\r\n /** How geometry intersecting the classifier should be displayed. */\r\n public readonly inside: SpatialClassifierInsideDisplay;\r\n /** How geometry not intersecting the classifier should be displayed. */\r\n public readonly outside: SpatialClassifierOutsideDisplay;\r\n /** True for volume classification; false for planar classification. */\r\n public readonly isVolumeClassifier: boolean;\r\n\r\n /** Construct new flags. */\r\n public constructor(inside = SpatialClassifierInsideDisplay.ElementColor, outside = SpatialClassifierOutsideDisplay.Dimmed, isVolumeClassifier = false) {\r\n this.inside = insideDisplay(inside);\r\n this.outside = outsideDisplay(outside);\r\n this.isVolumeClassifier = isVolumeClassifier;\r\n }\r\n\r\n /** Construct from JSON representation. */\r\n public static fromJSON(props: SpatialClassifierFlagsProps): SpatialClassifierFlags {\r\n return new SpatialClassifierFlags(props.inside, props.outside, true === props.isVolumeClassifier);\r\n }\r\n\r\n /** Convert to JSON representation. */\r\n public toJSON(): SpatialClassifierFlagsProps {\r\n const props: SpatialClassifierFlagsProps = {\r\n inside: this.inside,\r\n outside: this.outside,\r\n };\r\n\r\n if (this.isVolumeClassifier)\r\n props.isVolumeClassifier = true;\r\n\r\n return props;\r\n }\r\n\r\n /** Create flags indentical to these ones except for any properties explicitly specified by `changedProps`. */\r\n public clone(changedProps?: Partial<SpatialClassifierFlagsProps>): SpatialClassifierFlags {\r\n if (!changedProps)\r\n return this;\r\n\r\n return SpatialClassifierFlags.fromJSON({ ...this.toJSON(), ...changedProps });\r\n }\r\n\r\n /** Return true if these flags are equivalent to `other`. */\r\n public equals(other: SpatialClassifierFlags): boolean {\r\n if (other === this)\r\n return true;\r\n\r\n return other.inside === this.inside && other.outside === this.outside && other.isVolumeClassifier === this.isVolumeClassifier;\r\n }\r\n\r\n /** Return true if these flags are equivalent to `props`. */\r\n public equalsProps(props: SpatialClassifierFlagsProps): boolean {\r\n return this.inside === props.inside && this.outside === props.outside && this.isVolumeClassifier === (true === props.isVolumeClassifier);\r\n }\r\n}\r\n\r\n/** JSON representation of a [[SpatialClassifier]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface SpatialClassifierProps {\r\n /** @see [[SpatialClassifier.modelId]]. */\r\n modelId: Id64String;\r\n /** @see [[SpatialClassifier.expand]]. */\r\n expand: number;\r\n /** @see [[SpatialClassifier.flags]]. */\r\n flags: SpatialClassifierFlagsProps;\r\n /** @see [[SpatialClassifier.name]]. */\r\n name: string;\r\n /** Records whether this is the active classifier.\r\n * @see [[SpatialClassifier.active]].\r\n */\r\n isActive?: boolean;\r\n}\r\n\r\n/** Describes how to use the geometry of one [GeometricModel]($backend) to classify the contents of other models - most typically, reality models.\r\n * Applying a classifier divides the geometry of the classified model into two groups:\r\n * - Classified (intersecting the classifier); and\r\n * - Unclassified (not intersecting the classifier).\r\n * For example, a model containing the building footprints for a city block could be used to classify a reality mesh captured from photographs of the\r\n * real-world block. Then, buildings within the reality mesh can be selected individually, and present the properties of the classifier geometry (e.g.,\r\n * the address of the building). The appearance of the geometry can also be customized based using [[SpatialClassifierInsideDisplay]] and [[SpatialClassifierOutsideDisplay]].\r\n * Two types of classification are supported:\r\n * - Planar classification, in which the geometry of the classifier model is projected onto a plane to classify geometry within a region extruded perpendicular\r\n * the plane (e.g., the building footprints example); and\r\n * - Volume classification, in which closed volumes within the classifier classify geometry that intersects those same volumes (e.g., imagine using boxes instead\r\n * of footprints to classify buildings, or floors of buildings).\r\n * @see this (interactive example)[https://www.itwinjs.org/sample-showcase/?group=Viewer+Features&sample=classifier-sample].\r\n * @see [[SpatialClassifiers]] to define a set of classifiers.\r\n * @see [[ContextRealityModel.classifiers]] to classify a context reality model.\r\n * @see [SpatialModelState.classifiers]($frontend) to classify a persistent reality model.\r\n * @public\r\n */\r\nexport class SpatialClassifier {\r\n /** The Id of the [GeometricModel]($backend) whose geometry is used to produce the classifier. */\r\n public readonly modelId: Id64String;\r\n /** A distance in meters by which to expand the classifier geometry. For example, if line strings are used to represent streets,\r\n * you might expand them to the average width of a street.\r\n */\r\n public readonly expand: number;\r\n /** Flags controlling how to apply the classifier. */\r\n public readonly flags: SpatialClassifierFlags;\r\n /** A user-friendly name, useful for identifying individual classifiers within a [[SpatialClassifiers]]. */\r\n public readonly name: string;\r\n\r\n /** Construct a new classifier. */\r\n public constructor(modelId: Id64String, name: string, flags = new SpatialClassifierFlags(), expand = 0) {\r\n this.modelId = modelId;\r\n this.expand = expand;\r\n this.flags = flags;\r\n this.name = name;\r\n }\r\n\r\n /** Construct from JSON representation. */\r\n public static fromJSON(props: SpatialClassifierProps): SpatialClassifier {\r\n return new SpatialClassifier(props.modelId, props.name, SpatialClassifierFlags.fromJSON(props.flags), props.expand);\r\n }\r\n\r\n /** Convert to JSON representation.\r\n * @note This method always sets the [[SpatialClassifierProps.isActive]] property to `false`.\r\n */\r\n public toJSON(): SpatialClassifierProps {\r\n return {\r\n modelId: this.modelId,\r\n expand: this.expand,\r\n flags: this.flags.toJSON(),\r\n name: this.name,\r\n isActive: false,\r\n };\r\n }\r\n\r\n /** Construct from Model Map Layer.\r\n * @beta\r\n */\r\n public static fromModelMapLayer(mapLayer: ModelMapLayerSettings): SpatialClassifier {\r\n const flags = SpatialClassifierFlags.fromJSON({ inside: SpatialClassifierInsideDisplay.Off, outside: SpatialClassifierOutsideDisplay.Off });\r\n\r\n return new SpatialClassifier(mapLayer.modelId, mapLayer.name, flags);\r\n }\r\n\r\n /** Create a classifier identical to this one except for any properties explicitly specified by `changedProps`. */\r\n public clone(changedProps?: Partial<SpatialClassifierProps>): SpatialClassifier {\r\n if (!changedProps)\r\n return this;\r\n\r\n return SpatialClassifier.fromJSON({ ...this.toJSON(), ...changedProps });\r\n }\r\n\r\n /** Return true if this classifier is equivalent to `other`. */\r\n public equals(other: SpatialClassifier): boolean {\r\n if (other === this)\r\n return true;\r\n\r\n return this.modelId === other.modelId && this.expand === other.expand && this.name === other.name && this.flags.equals(other.flags);\r\n }\r\n\r\n /** Return true if this classifier is equivalent to `props`. */\r\n public equalsProps(props: SpatialClassifierProps): boolean {\r\n return this.modelId === props.modelId && this.expand === props.expand && this.name === props.name && this.flags.equalsProps(props.flags);\r\n }\r\n}\r\n\r\n/** An object that can store the JSON representation of a list of [[SpatialClassifier]]s.\r\n * @see [[SpatialClassifiers]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface SpatialClassifiersContainer {\r\n /** The list of classifiers. */\r\n classifiers?: SpatialClassifierProps[];\r\n}\r\n\r\n/** A set of [[SpatialClassifier]]s for a given reality model. At most one of the classifiers can be actively classifying the model at any given time.\r\n * The set of classifiers can be presented to the user, listed by name, so that the active classifier can be changed.\r\n * The set of classifiers is populated from its JSON representation and that representation is kept in sync as the set of classifiers is modified.\r\n * @see this (interactive example)[https://www.itwinjs.org/sample-showcase/?group=Viewer+Features&sample=classifier-sample].\r\n * @see [[SpatialClassifier]] for details on how spatial classification works.\r\n * @see [[ContextRealityModel.classifiers]] to define classifiers for a context reality model.\r\n * @see [SpatialModelState.classifiers]($frontend) to define classifiers for a persistent reality model.\r\n * @public\r\n */\r\nexport class SpatialClassifiers implements Iterable<SpatialClassifier> {\r\n private readonly _json: SpatialClassifiersContainer;\r\n private readonly _classifiers: SpatialClassifier[] = [];\r\n private _active?: SpatialClassifier;\r\n\r\n /** Construct a new set of classifiers from the JSON representation. The set will be initialized from `container.classifiers` and that JSON representation\r\n * will be kept in sync with changes made to the set. The caller should not directly modify `container.classifiers` or its contents as that will cause the set to become out\r\n * of sync with the JSON representation.\r\n * The [[active]] classifier will be determined by the first [[SpatialClassifierProps]] whose `isActive` property is set to `true`, if any.\r\n */\r\n public constructor(container: SpatialClassifiersContainer) {\r\n this._json = container;\r\n\r\n const json = this._array;\r\n if (!json)\r\n return;\r\n\r\n for (const props of json) {\r\n const classifier = SpatialClassifier.fromJSON(props);\r\n this._classifiers.push(classifier);\r\n if (props.isActive) {\r\n if (!this._active)\r\n this._active = classifier;\r\n else\r\n props.isActive = false;\r\n }\r\n }\r\n }\r\n\r\n /** The classifier currently classifying the target reality model. The classifier passed to the setter must be one obtained from this set, or one equivalent to\r\n * one contained in this set; in the latter case, the equivalent classifier contained in this set becomes active.\r\n */\r\n /** The classifier currently classifying the target reality model, if any.\r\n * @see [[setActive]] to change the active classifier.\r\n */\r\n public get active(): SpatialClassifier | undefined {\r\n return this._active;\r\n }\r\n\r\n /** Change the [[active]] classifier. The input must be a classifier belonging to this set, or equivalent to one in the set.\r\n * If no equivalent classifier exists in the set, the active classifier remains unchanged.\r\n * @param The classifier to set as active, or `undefined` to clear the active classifier.\r\n * @returns the active classifier.\r\n */\r\n public setActive(active: SpatialClassifier | undefined): SpatialClassifier | undefined {\r\n const array = this._array;\r\n if (!array)\r\n return this.active;\r\n\r\n if (active) {\r\n active = this.findEquivalent(active);\r\n if (!active)\r\n return this.active;\r\n }\r\n\r\n if (active === this.active)\r\n return this.active;\r\n\r\n let propsIndex = -1;\r\n if (active) {\r\n propsIndex = array.findIndex((x) => active!.equalsProps(x));\r\n if (-1 === propsIndex)\r\n return this.active;\r\n }\r\n\r\n this._active = active;\r\n for (let i = 0; i < array.length; i++)\r\n array[i].isActive = (i === propsIndex);\r\n\r\n return this.active;\r\n }\r\n\r\n /** Obtain an iterator over the classifiers contained in this set. */\r\n public [Symbol.iterator](): Iterator<SpatialClassifier> {\r\n return this._classifiers[Symbol.iterator]();\r\n }\r\n\r\n /** The number of classifiers in this set. */\r\n public get size(): number {\r\n return this._array?.length ?? 0;\r\n }\r\n\r\n /** Returns the first classifier that satisfies `criterion`, or `undefined` if no classifier satisfies it. */\r\n public find(criterion: (classifier: SpatialClassifier) => boolean): SpatialClassifier | undefined {\r\n return this._classifiers.find(criterion);\r\n }\r\n\r\n /** Find the first classifier that is equivalent to the supplied classifier, or `undefined` if no equivalent classifier exists in this set. */\r\n public findEquivalent(classifier: SpatialClassifier): SpatialClassifier | undefined {\r\n return this.find((x) => x.equals(classifier));\r\n }\r\n\r\n /** Return true if the specified classifier or one equivalent to it exists in this set. */\r\n public has(classifier: SpatialClassifier): boolean {\r\n return undefined !== this.findEquivalent(classifier);\r\n }\r\n\r\n /** Add a classifier to this set. If an equivalent classifier already exists, the supplied classifier is not added.\r\n * @param classifier The classifier to add.\r\n * @returns The equivalent pre-existing classifier, if one existed; or the supplied classifier, if it was added to the set.\r\n */\r\n public add(classifier: SpatialClassifier): SpatialClassifier {\r\n const existing = this.findEquivalent(classifier);\r\n if (existing)\r\n return existing;\r\n\r\n let array = this._array;\r\n if (!array)\r\n array = this._json.classifiers = [];\r\n\r\n this._classifiers.push(classifier);\r\n array.push(classifier.toJSON());\r\n return classifier;\r\n }\r\n\r\n /** Replace an existing classifier with a different one.\r\n * @param toReplace The classifier to be replaced.\r\n * @param replacement The classifier to replace `toReplace`.\r\n * @returns true if a classifier equivalent to `toReplace` existed in the set and was replaced by `replacement`.\r\n * @note If `toReplace` was the [[active]] classifier, `replacement` will become active.\r\n */\r\n public replace(toReplace: SpatialClassifier, replacement: SpatialClassifier): boolean {\r\n const list = this._array;\r\n if (!list)\r\n return false;\r\n\r\n const classifierIndex = this._classifiers.findIndex((x) => x.equals(toReplace));\r\n if (-1 === classifierIndex)\r\n return false;\r\n\r\n const propsIndex = list.findIndex((x) => toReplace.equalsProps(x));\r\n assert(propsIndex === classifierIndex);\r\n if (-1 === propsIndex)\r\n return false;\r\n\r\n toReplace = this._classifiers[classifierIndex];\r\n const wasActive = this.active === toReplace;\r\n\r\n this._classifiers[classifierIndex] = replacement;\r\n const props = list[propsIndex] = replacement.toJSON();\r\n\r\n if (wasActive) {\r\n props.isActive = true;\r\n this._active = replacement;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /** Remove the first classifier equivalent to `classifier` from this set.\r\n * @param classifier The classifier to remove.\r\n * @returns The classifier that was actually removed, or `undefined` if none was removed.\r\n */\r\n public delete(classifier: SpatialClassifier): SpatialClassifier | undefined {\r\n const list = this._array;\r\n if (!list)\r\n return undefined;\r\n\r\n const classifierIndex = this._classifiers.findIndex((x) => x.equals(classifier));\r\n if (-1 === classifierIndex)\r\n return undefined;\r\n\r\n classifier = this._classifiers[classifierIndex];\r\n const propsIndex = list.findIndex((x) => classifier.equalsProps(x));\r\n assert(propsIndex === classifierIndex);\r\n if (-1 === propsIndex)\r\n return undefined;\r\n\r\n list.splice(propsIndex, 1);\r\n this._classifiers.splice(classifierIndex, 1);\r\n if (list.length === 0)\r\n this._json.classifiers = undefined;\r\n\r\n if (classifier === this.active)\r\n this._active = undefined;\r\n\r\n return classifier;\r\n }\r\n\r\n /** Remove all classifiers from this set. */\r\n public clear(): void {\r\n this._classifiers.length = 0;\r\n this._json.classifiers = undefined;\r\n this._active = undefined;\r\n }\r\n\r\n private get _array(): SpatialClassifierProps[] | undefined {\r\n return Array.isArray(this._json.classifiers) ? this._json.classifiers : undefined;\r\n }\r\n}\r\n\r\nfunction insideDisplay(display: number): SpatialClassifierInsideDisplay {\r\n switch (display) {\r\n case SpatialClassifierInsideDisplay.Off:\r\n case SpatialClassifierInsideDisplay.On:\r\n case SpatialClassifierInsideDisplay.Dimmed:\r\n case SpatialClassifierInsideDisplay.Hilite:\r\n case SpatialClassifierInsideDisplay.ElementColor:\r\n return display;\r\n default:\r\n return SpatialClassifierInsideDisplay.ElementColor;\r\n }\r\n}\r\n\r\nfunction outsideDisplay(display: number): SpatialClassifierOutsideDisplay {\r\n switch (display) {\r\n case SpatialClassifierOutsideDisplay.Off:\r\n case SpatialClassifierOutsideDisplay.On:\r\n case SpatialClassifierOutsideDisplay.Dimmed:\r\n return display;\r\n default:\r\n return SpatialClassifierOutsideDisplay.Dimmed;\r\n }\r\n}\r\n"]}
@@ -5,12 +5,14 @@ import { BackgroundMapProps } from "./BackgroundMapSettings";
5
5
  /** The current set of supported terrain providers. Currently only CesiumWorldTerrain.
6
6
  * @see [[TerrainProps]]
7
7
  * @public
8
+ * @extensions
8
9
  */
9
10
  export declare type TerrainProviderName = "CesiumWorldTerrain";
10
11
  /** JSON representation of the settings of the terrain applied to background map display by a [[DisplayStyle]].
11
12
  * @see [[DisplayStyleSettingsProps]]
12
13
  * @see [[BackgroundMapProps]]
13
14
  * @public
15
+ * @extensions
14
16
  */
15
17
  export interface TerrainProps {
16
18
  /** Identifies the provider currently only CesiumWorldTerrain is supported. */
@@ -31,6 +33,7 @@ export interface TerrainProps {
31
33
  /** Correction modes for terrain height
32
34
  * @see [[TerrainProps]]
33
35
  * @public
36
+ * @extensions
34
37
  */
35
38
  export declare enum TerrainHeightOriginMode {
36
39
  /** Height value indicates the geodetic height of the IModel origin (also referred to as ellipsoidal or GPS height) */
@@ -1 +1 @@
1
- {"version":3,"file":"TerrainSettings.d.ts","sourceRoot":"","sources":["../../src/TerrainSettings.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;GAGG;AACH,oBAAY,mBAAmB,GAAG,oBAAoB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8IAA8I;IAC9I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAC;IACt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Y,CAAC,EAAE,YAAY,GAAG,eAAe;CAe3D"}
@@ -8,6 +8,7 @@
8
8
  /** Correction modes for terrain height
9
9
  * @see [[TerrainProps]]
10
10
  * @public
11
+ * @extensions
11
12
  */
12
13
  export var TerrainHeightOriginMode;
13
14
  (function (TerrainHeightOriginMode) {
@@ -1 +1 @@
1
- {"version":3,"file":"TerrainSettings.js","sourceRoot":"","sources":["../../src/TerrainSettings.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAgCH;;;GAGG;AACH,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,sHAAsH;IACtH,6EAAY,CAAA;IACZ,0GAA0G;IAC1G,uEAAS,CAAA;IACT,yGAAyG;IACzG,yEAAU,CAAA;AACZ,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED;;GAEG;AACH,MAAM,OAAO,eAAe;IAoB1B,YAAY,eAAoC,oBAAoB,EAAE,eAAuB,GAAG,EAAE,aAAa,GAAG,KAAK,EAAE,YAAY,GAAG,GAAG,EAAE,gBAAgB,GAAG,uBAAuB,CAAC,QAAQ;QAC9L,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,QAAQ,gBAAgB,EAAE;YACxB,KAAK,uBAAuB,CAAC,MAAM,CAAC;YACpC,KAAK,uBAAuB,CAAC,KAAK;gBAChC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;gBACzC,MAAM;YACR;gBACE,IAAI,CAAC,gBAAgB,GAAG,uBAAuB,CAAC,QAAQ,CAAC;gBACzD,MAAM;SACT;IACH,CAAC;IAtBD;;;OAGG;IACH,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K,CAAC,aAAa;eACpI,IAAI,CAAC,YAAY,KAAK,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,gBAAgB,KAAK,KAAK,CAAC,gBAAgB,IAAI,IAAI,CAAC,YAAY,KAAK,KAAK,CAAC,YAAY,CAAC;IAChJ,CAAC;IAED,mFAAmF;IAC5E,UAAU,CAAC,IAAyB;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,YAA2B;;QACtC,IAAI,SAAS,KAAK,YAAY;YAC5B,OAAO,IAAI,CAAC;QAEd,MAAM,KAAK,GAAG;YACZ,YAAY,EAAE,MAAA,YAAY,CAAC,YAAY,mCAAI,IAAI,CAAC,YAAY;YAC5D,YAAY,EAAE,MAAA,YAAY,CAAC,YAAY,mCAAI,IAAI,CAAC,YAAY;YAC5D,YAAY,EAAE,MAAA,YAAY,CAAC,YAAY,mCAAI,IAAI,CAAC,YAAY;YAC5D,aAAa,EAAE,MAAA,YAAY,CAAC,aAAa,mCAAI,IAAI,CAAC,aAAa;YAC/D,YAAY,EAAE,MAAA,YAAY,CAAC,YAAY,mCAAI,IAAI,CAAC,YAAY;YAC5D,gBAAgB,EAAE,MAAA,YAAY,CAAC,gBAAgB,mCAAI,IAAI,CAAC,gBAAgB;SACzE,CAAC;QAEF,OAAO,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProps } from \"./BackgroundMapSettings\";\r\n\r\n/** The current set of supported terrain providers. Currently only CesiumWorldTerrain.\r\n * @see [[TerrainProps]]\r\n * @public\r\n */\r\nexport type TerrainProviderName = \"CesiumWorldTerrain\";\r\n\r\n/** JSON representation of the settings of the terrain applied to background map display by a [[DisplayStyle]].\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @see [[BackgroundMapProps]]\r\n * @public\r\n */\r\nexport interface TerrainProps {\r\n /** Identifies the provider currently only CesiumWorldTerrain is supported. */\r\n providerName?: string;\r\n /** A value greater than one will cause terrain height to be exaggerated/scaled.false (or 1.0) indicate no exaggeration. Default value: 1.0 */\r\n exaggeration?: number;\r\n /** Applying lighting can help to visualize subtle terrain variation. Default value: true */\r\n applyLighting?: boolean;\r\n /** Origin value - height of the IModel origin at the project center as defined by heightOriginMode. Default value: 0.0 */\r\n heightOrigin?: number;\r\n /** Determines how/if the heightOrigin is applied to the terrain height. Default value: Geodetic */\r\n heightOriginMode?: TerrainHeightOriginMode;\r\n /** If true, the terrain will not be locatable. Otherwise, [[BackgroundMapProps.nonLocatable]] will determine whether terrain is locatable.\r\n * @internal use [[BackgroundMapProps.nonLocatable]]. Retained for backwards compatibility only.\r\n */\r\n nonLocatable?: boolean;\r\n}\r\n\r\n/** Correction modes for terrain height\r\n * @see [[TerrainProps]]\r\n * @public\r\n */\r\nexport enum TerrainHeightOriginMode {\r\n /** Height value indicates the geodetic height of the IModel origin (also referred to as ellipsoidal or GPS height) */\r\n Geodetic = 0,\r\n /** Height value indicates the geoidal height of the IModel origin (commonly referred to as sea level). */\r\n Geoid = 1,\r\n /** Height value indicates the height of the IModel origin relative to ground level at project center. */\r\n Ground = 2,\r\n}\r\n\r\n/** Normalized version of [[TerrainProps]] for which provider has been validated and default values of all members are used.\r\n * @public\r\n */\r\nexport class TerrainSettings {\r\n private _nonLocatable: true | undefined;\r\n /** Identifies the provider currently only CesiumWorldTerrain supported. */\r\n public readonly providerName: TerrainProviderName;\r\n /** A value greater than one will cause terrain height to be exaggerated/scaled. 1.0 indicates no exaggeration. Default value: 1.0 */\r\n public readonly exaggeration: number;\r\n /** Applying lighting can help to visualize subtle terrain variations. Default value: false */\r\n public readonly applyLighting: boolean;\r\n /** Origin value - height of the IModel origin at the project center as defined by heightOriginMode. Default value 0.0 */\r\n public readonly heightOrigin: number;\r\n /** Determines how/if the heightOrigin is applied to the terrain height. Default value: Geodetic */\r\n public readonly heightOriginMode: TerrainHeightOriginMode;\r\n /** Optionally overrides [[BackgroundMapSettings.locatable]]. For backwards compatibility only.\r\n * @see [[TerrainProps.nonLocatable]].\r\n * @internal\r\n */\r\n public get nonLocatable(): true | undefined {\r\n return this._nonLocatable;\r\n }\r\n\r\n constructor(providerName: TerrainProviderName = \"CesiumWorldTerrain\", exaggeration: number = 1.0, applyLighting = false, heightOrigin = 0.0, heightOriginMode = TerrainHeightOriginMode.Geodetic) {\r\n this.providerName = providerName;\r\n this.exaggeration = Math.min(100, Math.max(0.1, exaggeration));\r\n this.applyLighting = applyLighting;\r\n this.heightOrigin = heightOrigin;\r\n switch (heightOriginMode) {\r\n case TerrainHeightOriginMode.Ground:\r\n case TerrainHeightOriginMode.Geoid:\r\n this.heightOriginMode = heightOriginMode;\r\n break;\r\n default:\r\n this.heightOriginMode = TerrainHeightOriginMode.Geodetic;\r\n break;\r\n }\r\n }\r\n\r\n public static fromJSON(json?: TerrainProps) {\r\n if (undefined === json)\r\n return new TerrainSettings();\r\n\r\n const providerName = \"CesiumWorldTerrain\"; // This is only terrain provider currently supported.\r\n const settings = new TerrainSettings(providerName, json.exaggeration, json.applyLighting, json.heightOrigin, json.heightOriginMode);\r\n if (true === json.nonLocatable)\r\n settings._nonLocatable = true;\r\n\r\n return settings;\r\n }\r\n\r\n public toJSON(): TerrainProps {\r\n const props: TerrainProps = { heightOriginMode: this.heightOriginMode };\r\n if (\"CesiumWorldTerrain\" !== this.providerName)\r\n props.providerName = this.providerName;\r\n if (1 !== this.exaggeration)\r\n props.exaggeration = this.exaggeration;\r\n if (this.nonLocatable)\r\n props.nonLocatable = true;\r\n if (this.applyLighting)\r\n props.applyLighting = true;\r\n if (0 !== this.heightOrigin)\r\n props.heightOrigin = this.heightOrigin;\r\n\r\n return props;\r\n }\r\n\r\n public equals(other: TerrainSettings): boolean {\r\n return this.providerName === other.providerName && this.exaggeration === other.exaggeration && this.applyLighting === other.applyLighting\r\n && this.heightOrigin === other.heightOrigin && this.heightOriginMode === other.heightOriginMode && this.nonLocatable === other.nonLocatable;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(TerrainSettings.fromJSON(json));\r\n }\r\n\r\n /** Create a copy of this TerrainSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A TerrainSettings with all of its properties set to match those of`this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: TerrainProps): TerrainSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n providerName: changedProps.providerName ?? this.providerName,\r\n exaggeration: changedProps.exaggeration ?? this.exaggeration,\r\n nonLocatable: changedProps.nonLocatable ?? this.nonLocatable,\r\n applyLighting: changedProps.applyLighting ?? this.applyLighting,\r\n heightOrigin: changedProps.heightOrigin ?? this.heightOrigin,\r\n heightOriginMode: changedProps.heightOriginMode ?? this.heightOriginMode,\r\n };\r\n\r\n return TerrainSettings.fromJSON(props);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"TerrainSettings.js","sourceRoot":"","sources":["../../src/TerrainSettings.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAkCH;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,sHAAsH;IACtH,6EAAY,CAAA;IACZ,0GAA0G;IAC1G,uEAAS,CAAA;IACT,yGAAyG;IACzG,yEAAU,CAAA;AACZ,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAED;;GAEG;AACH,MAAM,OAAO,eAAe;IAoB1B,YAAY,eAAoC,oBAAoB,EAAE,eAAu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,CAAC,YAAY,mCAAI,IAAI,CAAC,YAAY;YAC5D,aAAa,EAAE,MAAA,YAAY,CAAC,aAAa,mCAAI,IAAI,CAAC,aAAa;YAC/D,YAAY,EAAE,MAAA,YAAY,CAAC,YAAY,mCAAI,IAAI,CAAC,YAAY;YAC5D,gBAAgB,EAAE,MAAA,YAAY,CAAC,gBAAgB,mCAAI,IAAI,CAAC,gBAAgB;SACzE,CAAC;QAEF,OAAO,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProps } from \"./BackgroundMapSettings\";\r\n\r\n/** The current set of supported terrain providers. Currently only CesiumWorldTerrain.\r\n * @see [[TerrainProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport type TerrainProviderName = \"CesiumWorldTerrain\";\r\n\r\n/** JSON representation of the settings of the terrain applied to background map display by a [[DisplayStyle]].\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @see [[BackgroundMapProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport interface TerrainProps {\r\n /** Identifies the provider currently only CesiumWorldTerrain is supported. */\r\n providerName?: string;\r\n /** A value greater than one will cause terrain height to be exaggerated/scaled.false (or 1.0) indicate no exaggeration. Default value: 1.0 */\r\n exaggeration?: number;\r\n /** Applying lighting can help to visualize subtle terrain variation. Default value: true */\r\n applyLighting?: boolean;\r\n /** Origin value - height of the IModel origin at the project center as defined by heightOriginMode. Default value: 0.0 */\r\n heightOrigin?: number;\r\n /** Determines how/if the heightOrigin is applied to the terrain height. Default value: Geodetic */\r\n heightOriginMode?: TerrainHeightOriginMode;\r\n /** If true, the terrain will not be locatable. Otherwise, [[BackgroundMapProps.nonLocatable]] will determine whether terrain is locatable.\r\n * @internal use [[BackgroundMapProps.nonLocatable]]. Retained for backwards compatibility only.\r\n */\r\n nonLocatable?: boolean;\r\n}\r\n\r\n/** Correction modes for terrain height\r\n * @see [[TerrainProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TerrainHeightOriginMode {\r\n /** Height value indicates the geodetic height of the IModel origin (also referred to as ellipsoidal or GPS height) */\r\n Geodetic = 0,\r\n /** Height value indicates the geoidal height of the IModel origin (commonly referred to as sea level). */\r\n Geoid = 1,\r\n /** Height value indicates the height of the IModel origin relative to ground level at project center. */\r\n Ground = 2,\r\n}\r\n\r\n/** Normalized version of [[TerrainProps]] for which provider has been validated and default values of all members are used.\r\n * @public\r\n */\r\nexport class TerrainSettings {\r\n private _nonLocatable: true | undefined;\r\n /** Identifies the provider currently only CesiumWorldTerrain supported. */\r\n public readonly providerName: TerrainProviderName;\r\n /** A value greater than one will cause terrain height to be exaggerated/scaled. 1.0 indicates no exaggeration. Default value: 1.0 */\r\n public readonly exaggeration: number;\r\n /** Applying lighting can help to visualize subtle terrain variations. Default value: false */\r\n public readonly applyLighting: boolean;\r\n /** Origin value - height of the IModel origin at the project center as defined by heightOriginMode. Default value 0.0 */\r\n public readonly heightOrigin: number;\r\n /** Determines how/if the heightOrigin is applied to the terrain height. Default value: Geodetic */\r\n public readonly heightOriginMode: TerrainHeightOriginMode;\r\n /** Optionally overrides [[BackgroundMapSettings.locatable]]. For backwards compatibility only.\r\n * @see [[TerrainProps.nonLocatable]].\r\n * @internal\r\n */\r\n public get nonLocatable(): true | undefined {\r\n return this._nonLocatable;\r\n }\r\n\r\n constructor(providerName: TerrainProviderName = \"CesiumWorldTerrain\", exaggeration: number = 1.0, applyLighting = false, heightOrigin = 0.0, heightOriginMode = TerrainHeightOriginMode.Geodetic) {\r\n this.providerName = providerName;\r\n this.exaggeration = Math.min(100, Math.max(0.1, exaggeration));\r\n this.applyLighting = applyLighting;\r\n this.heightOrigin = heightOrigin;\r\n switch (heightOriginMode) {\r\n case TerrainHeightOriginMode.Ground:\r\n case TerrainHeightOriginMode.Geoid:\r\n this.heightOriginMode = heightOriginMode;\r\n break;\r\n default:\r\n this.heightOriginMode = TerrainHeightOriginMode.Geodetic;\r\n break;\r\n }\r\n }\r\n\r\n public static fromJSON(json?: TerrainProps) {\r\n if (undefined === json)\r\n return new TerrainSettings();\r\n\r\n const providerName = \"CesiumWorldTerrain\"; // This is only terrain provider currently supported.\r\n const settings = new TerrainSettings(providerName, json.exaggeration, json.applyLighting, json.heightOrigin, json.heightOriginMode);\r\n if (true === json.nonLocatable)\r\n settings._nonLocatable = true;\r\n\r\n return settings;\r\n }\r\n\r\n public toJSON(): TerrainProps {\r\n const props: TerrainProps = { heightOriginMode: this.heightOriginMode };\r\n if (\"CesiumWorldTerrain\" !== this.providerName)\r\n props.providerName = this.providerName;\r\n if (1 !== this.exaggeration)\r\n props.exaggeration = this.exaggeration;\r\n if (this.nonLocatable)\r\n props.nonLocatable = true;\r\n if (this.applyLighting)\r\n props.applyLighting = true;\r\n if (0 !== this.heightOrigin)\r\n props.heightOrigin = this.heightOrigin;\r\n\r\n return props;\r\n }\r\n\r\n public equals(other: TerrainSettings): boolean {\r\n return this.providerName === other.providerName && this.exaggeration === other.exaggeration && this.applyLighting === other.applyLighting\r\n && this.heightOrigin === other.heightOrigin && this.heightOriginMode === other.heightOriginMode && this.nonLocatable === other.nonLocatable;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(TerrainSettings.fromJSON(json));\r\n }\r\n\r\n /** Create a copy of this TerrainSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A TerrainSettings with all of its properties set to match those of`this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: TerrainProps): TerrainSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n providerName: changedProps.providerName ?? this.providerName,\r\n exaggeration: changedProps.exaggeration ?? this.exaggeration,\r\n nonLocatable: changedProps.nonLocatable ?? this.nonLocatable,\r\n applyLighting: changedProps.applyLighting ?? this.applyLighting,\r\n heightOrigin: changedProps.heightOrigin ?? this.heightOrigin,\r\n heightOriginMode: changedProps.heightOriginMode ?? this.heightOriginMode,\r\n };\r\n\r\n return TerrainSettings.fromJSON(props);\r\n }\r\n}\r\n"]}
@@ -7,6 +7,7 @@ import { ImageSourceFormat } from "./Image";
7
7
  import { Base64EncodedString } from "./Base64EncodedString";
8
8
  /** Properties that define a [Texture]($backend) element.
9
9
  * @public
10
+ * @extensions
10
11
  */
11
12
  export interface TextureProps extends DefinitionElementProps {
12
13
  /** Format of the image data. */
@@ -21,6 +22,7 @@ export interface TextureProps extends DefinitionElementProps {
21
22
  }
22
23
  /** Properties that specify what texture should be loaded and how it should be loaded.
23
24
  * @public
25
+ * @extensions
24
26
  */
25
27
  export interface TextureLoadProps {
26
28
  /** A valid Id64 string identifying the texture */
@@ -47,6 +49,7 @@ export declare enum TextureTransparency {
47
49
  }
48
50
  /** Information about [Texture]($backend) data returned by [[IModelReadRpcInterface.queryTextureData]].
49
51
  * @public
52
+ * @extensions
50
53
  */
51
54
  export interface TextureData {
52
55
  /** The width of the image, possibly reduced from the original width based on [[TextureLoadProps.maxTextureSize]]. */
@@ -1 +1 @@
1
- {"version":3,"file":"TextureProps.d.ts","sourceRoot":"","sources":["../../src/TextureProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,sBAAsB;IAC1D,gCAAgC;IAChC,MAAM,EAAE,iBAAiB,CA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IAAI,EAAE,UAAU,CAAC;IACjB,iJAAiJ;IACjJ,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;GAMG;AACH,oBAAY,mBAAmB;IAC7B,kGAAkG;IAClG,MAAM,IAAA;IACN,mGAAmG;IACnG,WAAW,IAAA;IACX;;OAEG;IACH,KAAK,IAAA;CACN;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,qHAAqH;IACrH,KAAK,EAAE,MAAM,CAAC;IACd,uHAAuH;IACvH,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,MAAM,EAAE,iBAAiB,CAAC;IAC1B,+BAA+B;IAC/B,KAAK,EAAE,UAAU,CAAC;IAClB,uGAAuG;IACvG,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextureProps.js","sourceRoot":"","sources":["../../src/TextureProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAgCH;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,kGAAkG;IAClG,iEAAM,CAAA;IACN,mGAAmG;IACnG,2EAAW,CAAA;IACX;;OAEG;IACH,+DAAK,CAAA;AACP,CAAC,EATW,mBAAmB,KAAnB,mBAAmB,QAS9B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Entities\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { DefinitionElementProps } from \"./ElementProps\";\r\nimport { ImageSourceFormat } from \"./Image\";\r\nimport { Base64EncodedString } from \"./Base64EncodedString\";\r\n\r\n/** Properties that define a [Texture]($backend) element.\r\n * @public\r\n */\r\nexport interface TextureProps extends DefinitionElementProps {\r\n /** Format of the image data. */\r\n format: ImageSourceFormat;\r\n /** The image data stored in a Base64-encoded string according to the specified format.\r\n * @see [[Base64EncodedString.fromUint8Array]] to produce a well-formed base-64-encoded string.\r\n * @see [[Base64EncodedString.toUint8Array]] to decode the bytes.\r\n */\r\n data: Base64EncodedString;\r\n /** An optional description of the texture. */\r\n description?: string;\r\n}\r\n\r\n/** Properties that specify what texture should be loaded and how it should be loaded.\r\n * @public\r\n */\r\nexport interface TextureLoadProps {\r\n /** A valid Id64 string identifying the texture */\r\n name: Id64String;\r\n /** Maximum texture size supported by the client. If specified, the texture will be downsampled so both of its dimensions adhere to this size. */\r\n maxTextureSize?: number;\r\n}\r\n\r\n/** Describes the type of transparency in the pixels of a [TextureImage]($frontend).\r\n * Each pixel can be classified as either opaque or translucent.\r\n * The transparency of the image as a whole is based on the combination of pixel transparencies.\r\n * If this information is known, it should be supplied when creating a texture for more efficient rendering.\r\n * @see [TextureImage.transparency]($frontend).\r\n * @public\r\n */\r\nexport enum TextureTransparency {\r\n /** The image contains only opaque pixels. It should not blend with other objects in the scene. */\r\n Opaque,\r\n /** The image contains only translucent pixels. It should blend with other objects in the scene. */\r\n Translucent,\r\n /** The image contains both opaque and translucent pixels. The translucent pixels should blend with other objects in the scene, while\r\n * the opaque pixels should not. Rendering this type of transparency is somewhat more expensive.\r\n */\r\n Mixed,\r\n}\r\n\r\n/** Information about [Texture]($backend) data returned by [[IModelReadRpcInterface.queryTextureData]].\r\n * @public\r\n */\r\nexport interface TextureData {\r\n /** The width of the image, possibly reduced from the original width based on [[TextureLoadProps.maxTextureSize]]. */\r\n width: number;\r\n /** The height of the image, possibly reduced from the original height based on [[TextureLoadProps.maxTextureSize]]. */\r\n height: number;\r\n /** The format of the image (Jpeg or Png). */\r\n format: ImageSourceFormat;\r\n /** The encoded image bytes. */\r\n bytes: Uint8Array;\r\n /** Information about the transparency of the texture image. Default: [[TextureTransparency.Mixed]]. */\r\n transparency?: TextureTransparency;\r\n}\r\n"]}
1
+ {"version":3,"file":"TextureProps.js","sourceRoot":"","sources":["../../src/TextureProps.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAkCH;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,kGAAkG;IAClG,iEAAM,CAAA;IACN,mGAAmG;IACnG,2EAAW,CAAA;IACX;;OAEG;IACH,+DAAK,CAAA;AACP,CAAC,EATW,mBAAmB,KAAnB,mBAAmB,QAS9B","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Entities\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { DefinitionElementProps } from \"./ElementProps\";\r\nimport { ImageSourceFormat } from \"./Image\";\r\nimport { Base64EncodedString } from \"./Base64EncodedString\";\r\n\r\n/** Properties that define a [Texture]($backend) element.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface TextureProps extends DefinitionElementProps {\r\n /** Format of the image data. */\r\n format: ImageSourceFormat;\r\n /** The image data stored in a Base64-encoded string according to the specified format.\r\n * @see [[Base64EncodedString.fromUint8Array]] to produce a well-formed base-64-encoded string.\r\n * @see [[Base64EncodedString.toUint8Array]] to decode the bytes.\r\n */\r\n data: Base64EncodedString;\r\n /** An optional description of the texture. */\r\n description?: string;\r\n}\r\n\r\n/** Properties that specify what texture should be loaded and how it should be loaded.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface TextureLoadProps {\r\n /** A valid Id64 string identifying the texture */\r\n name: Id64String;\r\n /** Maximum texture size supported by the client. If specified, the texture will be downsampled so both of its dimensions adhere to this size. */\r\n maxTextureSize?: number;\r\n}\r\n\r\n/** Describes the type of transparency in the pixels of a [TextureImage]($frontend).\r\n * Each pixel can be classified as either opaque or translucent.\r\n * The transparency of the image as a whole is based on the combination of pixel transparencies.\r\n * If this information is known, it should be supplied when creating a texture for more efficient rendering.\r\n * @see [TextureImage.transparency]($frontend).\r\n * @public\r\n */\r\nexport enum TextureTransparency {\r\n /** The image contains only opaque pixels. It should not blend with other objects in the scene. */\r\n Opaque,\r\n /** The image contains only translucent pixels. It should blend with other objects in the scene. */\r\n Translucent,\r\n /** The image contains both opaque and translucent pixels. The translucent pixels should blend with other objects in the scene, while\r\n * the opaque pixels should not. Rendering this type of transparency is somewhat more expensive.\r\n */\r\n Mixed,\r\n}\r\n\r\n/** Information about [Texture]($backend) data returned by [[IModelReadRpcInterface.queryTextureData]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface TextureData {\r\n /** The width of the image, possibly reduced from the original width based on [[TextureLoadProps.maxTextureSize]]. */\r\n width: number;\r\n /** The height of the image, possibly reduced from the original height based on [[TextureLoadProps.maxTextureSize]]. */\r\n height: number;\r\n /** The format of the image (Jpeg or Png). */\r\n format: ImageSourceFormat;\r\n /** The encoded image bytes. */\r\n bytes: Uint8Array;\r\n /** Information about the transparency of the texture image. Default: [[TextureTransparency.Mixed]]. */\r\n transparency?: TextureTransparency;\r\n}\r\n"]}
@@ -7,6 +7,7 @@ import { Gradient } from "./Gradient";
7
7
  /** A thematic gradient mode used to generate and apply a thematic effect to a scene.
8
8
  * @see [[ThematicGradientSettings.mode]]
9
9
  * @public
10
+ * @extensions
10
11
  */
11
12
  export declare enum ThematicGradientMode {
12
13
  /** Apply a smooth color gradient to the scene. */
@@ -21,7 +22,9 @@ export declare enum ThematicGradientMode {
21
22
  /** A color scheme used to generate the colors of a thematic gradient within an applied range.
22
23
  * @see [[ThematicGradientSettings.colorScheme]]
23
24
  * @see [[ThematicDisplay.range]]
24
- * @public */
25
+ * @public
26
+ * @extensions
27
+ */
25
28
  export declare enum ThematicGradientColorScheme {
26
29
  /** A color gradient scheme that represents a blue-to-red gradation. */
27
30
  BlueRed = 0,
@@ -40,6 +43,7 @@ export declare enum ThematicGradientColorScheme {
40
43
  }
41
44
  /** JSON representation of a [[ThematicGradientSettings]].
42
45
  * @public
46
+ * @extensions
43
47
  **/
44
48
  export interface ThematicGradientSettingsProps {
45
49
  /** The thematic image mode used to generate and apply the thematic gradient. Defaults to [[ThematicGradientMode.Smooth]]. */
@@ -102,6 +106,7 @@ export declare class ThematicGradientSettings {
102
106
  }
103
107
  /** JSON representation of a [[ThematicDisplaySensor]].
104
108
  * @public
109
+ * @extensions
105
110
  */
106
111
  export interface ThematicDisplaySensorProps {
107
112
  /** The world position of the sensor in X, Y, and Z. Defaults to {0,0,0}. */
@@ -124,6 +129,7 @@ export declare class ThematicDisplaySensor {
124
129
  }
125
130
  /** JSON representation of a [[ThematicDisplaySensorSettings]] for [[ThematicDisplayMode.InverseDistanceWeightedSensors]].
126
131
  * @public
132
+ * @extensions
127
133
  */
128
134
  export interface ThematicDisplaySensorSettingsProps {
129
135
  /** This is the list of sensors. Defaults to an empty array. */
@@ -154,6 +160,7 @@ export declare class ThematicDisplaySensorSettings {
154
160
  }
155
161
  /** The thematic display mode. This determines how to apply the thematic color gradient to the geometry.
156
162
  * @public
163
+ * @extensions
157
164
  */
158
165
  export declare enum ThematicDisplayMode {
159
166
  /** The color gradient will be mapped to surface geometry and point clouds based on world height in meters. */
@@ -173,6 +180,7 @@ export declare enum ThematicDisplayMode {
173
180
  }
174
181
  /** JSON representation of the thematic display setup of a [[DisplayStyle3d]].
175
182
  * @public
183
+ * @extensions
176
184
  */
177
185
  export interface ThematicDisplayProps {
178
186
  /** The thematic display mode. This determines how to apply the thematic color gradient to the geometry. Defaults to [[ThematicDisplayMode.Height]]. */
@@ -1 +1 @@
1
- {"version":3,"file":"ThematicDisplay.d.ts","sourceRoot":"","sources":["../../src/ThematicDisplay.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,aAAa,EA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c,EAAE,6BAA6B,CAAC;IAEvD,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAiB9C,OAAO;WAkCO,QAAQ,CAAC,IAAI,CAAC,EAAE,oBAAoB;IAI3C,MAAM,IAAI,oBAAoB;CActC"}
@@ -12,6 +12,7 @@ import { Gradient } from "./Gradient";
12
12
  /** A thematic gradient mode used to generate and apply a thematic effect to a scene.
13
13
  * @see [[ThematicGradientSettings.mode]]
14
14
  * @public
15
+ * @extensions
15
16
  */
16
17
  export var ThematicGradientMode;
17
18
  (function (ThematicGradientMode) {
@@ -27,7 +28,9 @@ export var ThematicGradientMode;
27
28
  /** A color scheme used to generate the colors of a thematic gradient within an applied range.
28
29
  * @see [[ThematicGradientSettings.colorScheme]]
29
30
  * @see [[ThematicDisplay.range]]
30
- * @public */
31
+ * @public
32
+ * @extensions
33
+ */
31
34
  export var ThematicGradientColorScheme;
32
35
  (function (ThematicGradientColorScheme) {
33
36
  /** A color gradient scheme that represents a blue-to-red gradation. */
@@ -241,6 +244,7 @@ export class ThematicDisplaySensorSettings {
241
244
  }
242
245
  /** The thematic display mode. This determines how to apply the thematic color gradient to the geometry.
243
246
  * @public
247
+ * @extensions
244
248
  */
245
249
  export var ThematicDisplayMode;
246
250
  (function (ThematicDisplayMode) {