@itwin/core-common 3.5.0-dev.5 → 3.5.0-dev.52

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 (984) hide show
  1. package/CHANGELOG.md +60 -1
  2. package/lib/cjs/AmbientOcclusion.d.ts +49 -49
  3. package/lib/cjs/AmbientOcclusion.js +55 -55
  4. package/lib/cjs/AmbientOcclusion.js.map +1 -1
  5. package/lib/cjs/AnalysisStyle.d.ts +134 -134
  6. package/lib/cjs/AnalysisStyle.js +165 -165
  7. package/lib/cjs/AnalysisStyle.js.map +1 -1
  8. package/lib/cjs/AuthorizationClient.d.ts +11 -11
  9. package/lib/cjs/AuthorizationClient.js +9 -9
  10. package/lib/cjs/AuthorizationClient.js.map +1 -1
  11. package/lib/cjs/BackendTypes.d.ts +13 -0
  12. package/lib/cjs/BackendTypes.d.ts.map +1 -0
  13. package/lib/cjs/BackendTypes.js +10 -0
  14. package/lib/cjs/BackendTypes.js.map +1 -0
  15. package/lib/cjs/BackgroundMapProvider.d.ts +51 -51
  16. package/lib/cjs/BackgroundMapProvider.js +68 -68
  17. package/lib/cjs/BackgroundMapProvider.js.map +1 -1
  18. package/lib/cjs/BackgroundMapSettings.d.ts +136 -136
  19. package/lib/cjs/BackgroundMapSettings.js +156 -156
  20. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  21. package/lib/cjs/Base64EncodedString.d.ts +32 -30
  22. package/lib/cjs/Base64EncodedString.d.ts.map +1 -1
  23. package/lib/cjs/Base64EncodedString.js +66 -56
  24. package/lib/cjs/Base64EncodedString.js.map +1 -1
  25. package/lib/cjs/BlobReader.d.ts +31 -31
  26. package/lib/cjs/BlobReader.js +84 -84
  27. package/lib/cjs/BlobReader.js.map +1 -1
  28. package/lib/cjs/BriefcaseTypes.d.ts +189 -189
  29. package/lib/cjs/BriefcaseTypes.js +95 -95
  30. package/lib/cjs/BriefcaseTypes.js.map +1 -1
  31. package/lib/cjs/Camera.d.ts +42 -42
  32. package/lib/cjs/Camera.js +62 -62
  33. package/lib/cjs/Camera.js.map +1 -1
  34. package/lib/cjs/ChangedElements.d.ts +83 -83
  35. package/lib/cjs/ChangedElements.js +21 -21
  36. package/lib/cjs/ChangedElements.js.map +1 -1
  37. package/lib/cjs/ChangedEntities.d.ts +45 -45
  38. package/lib/cjs/ChangedEntities.js +9 -9
  39. package/lib/cjs/ChangedEntities.js.map +1 -1
  40. package/lib/cjs/ChangesetProps.d.ts +98 -98
  41. package/lib/cjs/ChangesetProps.js +22 -22
  42. package/lib/cjs/ChangesetProps.js.map +1 -1
  43. package/lib/cjs/ClipStyle.d.ts +89 -89
  44. package/lib/cjs/ClipStyle.js +123 -123
  45. package/lib/cjs/ClipStyle.js.map +1 -1
  46. package/lib/cjs/CloudStorage.d.ts +62 -62
  47. package/lib/cjs/CloudStorage.js +113 -113
  48. package/lib/cjs/CloudStorage.js.map +1 -1
  49. package/lib/cjs/CloudStorageTileCache.d.ts +27 -27
  50. package/lib/cjs/CloudStorageTileCache.js +66 -66
  51. package/lib/cjs/CloudStorageTileCache.js.map +1 -1
  52. package/lib/cjs/Code.d.ts +256 -256
  53. package/lib/cjs/Code.js +281 -281
  54. package/lib/cjs/Code.js.map +1 -1
  55. package/lib/cjs/ColorByName.d.ts +161 -161
  56. package/lib/cjs/ColorByName.js +169 -169
  57. package/lib/cjs/ColorByName.js.map +1 -1
  58. package/lib/cjs/ColorDef.d.ts +208 -208
  59. package/lib/cjs/ColorDef.js +571 -571
  60. package/lib/cjs/ColorDef.js.map +1 -1
  61. package/lib/cjs/CommonLoggerCategory.d.ts +18 -18
  62. package/lib/cjs/CommonLoggerCategory.js +26 -26
  63. package/lib/cjs/CommonLoggerCategory.js.map +1 -1
  64. package/lib/cjs/ConcurrentQuery.d.ts +241 -241
  65. package/lib/cjs/ConcurrentQuery.js +380 -380
  66. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  67. package/lib/cjs/ContextRealityModel.d.ts +276 -276
  68. package/lib/cjs/ContextRealityModel.js +358 -358
  69. package/lib/cjs/ContextRealityModel.js.map +1 -1
  70. package/lib/cjs/DisplayStyleSettings.d.ts +584 -584
  71. package/lib/cjs/DisplayStyleSettings.js +981 -981
  72. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  73. package/lib/cjs/ECSchemaProps.d.ts +39 -39
  74. package/lib/cjs/ECSchemaProps.js +9 -9
  75. package/lib/cjs/ECSchemaProps.js.map +1 -1
  76. package/lib/cjs/ECSqlReader.d.ts +70 -70
  77. package/lib/cjs/ECSqlReader.js +280 -280
  78. package/lib/cjs/ECSqlReader.js.map +1 -1
  79. package/lib/cjs/ECSqlTypes.d.ts +128 -128
  80. package/lib/cjs/ECSqlTypes.js +189 -189
  81. package/lib/cjs/ECSqlTypes.js.map +1 -1
  82. package/lib/cjs/ElementProps.d.ts +479 -476
  83. package/lib/cjs/ElementProps.d.ts.map +1 -1
  84. package/lib/cjs/ElementProps.js +99 -99
  85. package/lib/cjs/ElementProps.js.map +1 -1
  86. package/lib/cjs/EmphasizeElementsProps.d.ts +55 -55
  87. package/lib/cjs/EmphasizeElementsProps.js +25 -25
  88. package/lib/cjs/EmphasizeElementsProps.js.map +1 -1
  89. package/lib/cjs/EntityProps.d.ts +176 -176
  90. package/lib/cjs/EntityProps.js +112 -112
  91. package/lib/cjs/EntityProps.js.map +1 -1
  92. package/lib/cjs/EntityReference.d.ts +52 -0
  93. package/lib/cjs/EntityReference.d.ts.map +1 -0
  94. package/lib/cjs/EntityReference.js +57 -0
  95. package/lib/cjs/EntityReference.js.map +1 -0
  96. package/lib/cjs/Environment.d.ts +61 -61
  97. package/lib/cjs/Environment.js +73 -73
  98. package/lib/cjs/Environment.js.map +1 -1
  99. package/lib/cjs/FeatureGates.d.ts +31 -31
  100. package/lib/cjs/FeatureGates.js +55 -55
  101. package/lib/cjs/FeatureGates.js.map +1 -1
  102. package/lib/cjs/FeatureIndex.d.ts +39 -39
  103. package/lib/cjs/FeatureIndex.js +63 -63
  104. package/lib/cjs/FeatureIndex.js.map +1 -1
  105. package/lib/cjs/FeatureSymbology.d.ts +444 -444
  106. package/lib/cjs/FeatureSymbology.js +614 -614
  107. package/lib/cjs/FeatureSymbology.js.map +1 -1
  108. package/lib/cjs/FeatureTable.d.ts +141 -141
  109. package/lib/cjs/FeatureTable.js +278 -278
  110. package/lib/cjs/FeatureTable.js.map +1 -1
  111. package/lib/cjs/Fonts.d.ts +51 -51
  112. package/lib/cjs/Fonts.js +53 -53
  113. package/lib/cjs/Fonts.js.map +1 -1
  114. package/lib/cjs/Frustum.d.ts +114 -114
  115. package/lib/cjs/Frustum.js +292 -292
  116. package/lib/cjs/Frustum.js.map +1 -1
  117. package/lib/cjs/GeoCoordinateServices.d.ts +119 -119
  118. package/lib/cjs/GeoCoordinateServices.js +80 -80
  119. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  120. package/lib/cjs/GeometryContainment.d.ts +28 -28
  121. package/lib/cjs/GeometryContainment.js +9 -9
  122. package/lib/cjs/GeometryContainment.js.map +1 -1
  123. package/lib/cjs/GeometryParams.d.ts +130 -130
  124. package/lib/cjs/GeometryParams.js +174 -174
  125. package/lib/cjs/GeometryParams.js.map +1 -1
  126. package/lib/cjs/GeometrySummary.d.ts +45 -45
  127. package/lib/cjs/GeometrySummary.js +23 -23
  128. package/lib/cjs/GeometrySummary.js.map +1 -1
  129. package/lib/cjs/Gradient.d.ts +139 -139
  130. package/lib/cjs/Gradient.js +455 -455
  131. package/lib/cjs/Gradient.js.map +1 -1
  132. package/lib/cjs/GraphicParams.d.ts +58 -58
  133. package/lib/cjs/GraphicParams.js +85 -85
  134. package/lib/cjs/GraphicParams.js.map +1 -1
  135. package/lib/cjs/GroundPlane.d.ts +52 -52
  136. package/lib/cjs/GroundPlane.js +64 -64
  137. package/lib/cjs/GroundPlane.js.map +1 -1
  138. package/lib/cjs/HSLColor.d.ts +20 -20
  139. package/lib/cjs/HSLColor.js +32 -32
  140. package/lib/cjs/HSLColor.js.map +1 -1
  141. package/lib/cjs/HSVColor.d.ts +30 -30
  142. package/lib/cjs/HSVColor.js +59 -59
  143. package/lib/cjs/HSVColor.js.map +1 -1
  144. package/lib/cjs/HiddenLine.d.ts +97 -97
  145. package/lib/cjs/HiddenLine.js +162 -162
  146. package/lib/cjs/HiddenLine.js.map +1 -1
  147. package/lib/cjs/Hilite.d.ts +50 -50
  148. package/lib/cjs/Hilite.js +64 -64
  149. package/lib/cjs/Hilite.js.map +1 -1
  150. package/lib/cjs/IModel.d.ts +359 -359
  151. package/lib/cjs/IModel.js +347 -347
  152. package/lib/cjs/IModel.js.map +1 -1
  153. package/lib/cjs/IModelError.d.ts +36 -36
  154. package/lib/cjs/IModelError.js +72 -72
  155. package/lib/cjs/IModelError.js.map +1 -1
  156. package/lib/cjs/IModelVersion.d.ts +68 -68
  157. package/lib/cjs/IModelVersion.js +79 -79
  158. package/lib/cjs/IModelVersion.js.map +1 -1
  159. package/lib/cjs/Image.d.ts +86 -86
  160. package/lib/cjs/Image.js +128 -128
  161. package/lib/cjs/Image.js.map +1 -1
  162. package/lib/cjs/IpcAppProps.d.ts +141 -124
  163. package/lib/cjs/IpcAppProps.d.ts.map +1 -1
  164. package/lib/cjs/IpcAppProps.js +23 -18
  165. package/lib/cjs/IpcAppProps.js.map +1 -1
  166. package/lib/cjs/LightSettings.d.ts +224 -224
  167. package/lib/cjs/LightSettings.js +309 -309
  168. package/lib/cjs/LightSettings.js.map +1 -1
  169. package/lib/cjs/LinePixels.d.ts +34 -34
  170. package/lib/cjs/LinePixels.js +42 -42
  171. package/lib/cjs/LinePixels.js.map +1 -1
  172. package/lib/cjs/Localization.d.ts +111 -111
  173. package/lib/cjs/Localization.js +26 -26
  174. package/lib/cjs/Localization.js.map +1 -1
  175. package/lib/cjs/MapImagerySettings.d.ts +62 -62
  176. package/lib/cjs/MapImagerySettings.js +80 -80
  177. package/lib/cjs/MapImagerySettings.js.map +1 -1
  178. package/lib/cjs/MapLayerSettings.d.ts +272 -272
  179. package/lib/cjs/MapLayerSettings.js +411 -411
  180. package/lib/cjs/MapLayerSettings.js.map +1 -1
  181. package/lib/cjs/MassProperties.d.ts +64 -64
  182. package/lib/cjs/MassProperties.js +23 -23
  183. package/lib/cjs/MassProperties.js.map +1 -1
  184. package/lib/cjs/MaterialProps.d.ts +118 -118
  185. package/lib/cjs/MaterialProps.js +23 -23
  186. package/lib/cjs/MaterialProps.js.map +1 -1
  187. package/lib/cjs/ModelClipGroup.d.ts +67 -67
  188. package/lib/cjs/ModelClipGroup.js +98 -98
  189. package/lib/cjs/ModelClipGroup.js.map +1 -1
  190. package/lib/cjs/ModelGeometryChanges.d.ts +107 -107
  191. package/lib/cjs/ModelGeometryChanges.js +83 -83
  192. package/lib/cjs/ModelGeometryChanges.js.map +1 -1
  193. package/lib/cjs/ModelProps.d.ts +67 -66
  194. package/lib/cjs/ModelProps.d.ts.map +1 -1
  195. package/lib/cjs/ModelProps.js +9 -9
  196. package/lib/cjs/ModelProps.js.map +1 -1
  197. package/lib/cjs/NativeAppProps.d.ts +122 -122
  198. package/lib/cjs/NativeAppProps.js +30 -30
  199. package/lib/cjs/NativeAppProps.js.map +1 -1
  200. package/lib/cjs/OctEncodedNormal.d.ts +33 -33
  201. package/lib/cjs/OctEncodedNormal.js +98 -98
  202. package/lib/cjs/OctEncodedNormal.js.map +1 -1
  203. package/lib/cjs/PlanProjectionSettings.d.ts +47 -47
  204. package/lib/cjs/PlanProjectionSettings.js +63 -63
  205. package/lib/cjs/PlanProjectionSettings.js.map +1 -1
  206. package/lib/cjs/PlanarClipMask.d.ts +177 -177
  207. package/lib/cjs/PlanarClipMask.js +136 -136
  208. package/lib/cjs/PlanarClipMask.js.map +1 -1
  209. package/lib/cjs/QPoint.d.ts +479 -479
  210. package/lib/cjs/QPoint.js +826 -826
  211. package/lib/cjs/QPoint.js.map +1 -1
  212. package/lib/cjs/RealityDataAccessProps.d.ts +41 -41
  213. package/lib/cjs/RealityDataAccessProps.js +19 -19
  214. package/lib/cjs/RealityDataAccessProps.js.map +1 -1
  215. package/lib/cjs/RealityModelDisplaySettings.d.ts +118 -118
  216. package/lib/cjs/RealityModelDisplaySettings.js +114 -114
  217. package/lib/cjs/RealityModelDisplaySettings.js.map +1 -1
  218. package/lib/cjs/Render.d.ts +89 -89
  219. package/lib/cjs/Render.js +177 -177
  220. package/lib/cjs/Render.js.map +1 -1
  221. package/lib/cjs/RenderMaterial.d.ts +58 -58
  222. package/lib/cjs/RenderMaterial.js +76 -76
  223. package/lib/cjs/RenderMaterial.js.map +1 -1
  224. package/lib/cjs/RenderSchedule.d.ts +543 -540
  225. package/lib/cjs/RenderSchedule.d.ts.map +1 -1
  226. package/lib/cjs/RenderSchedule.js +1002 -1000
  227. package/lib/cjs/RenderSchedule.js.map +1 -1
  228. package/lib/cjs/RenderTexture.d.ts +70 -70
  229. package/lib/cjs/RenderTexture.js +59 -59
  230. package/lib/cjs/RenderTexture.js.map +1 -1
  231. package/lib/cjs/RgbColor.d.ts +47 -47
  232. package/lib/cjs/RgbColor.js +77 -77
  233. package/lib/cjs/RgbColor.js.map +1 -1
  234. package/lib/cjs/RpcInterface.d.ts +33 -33
  235. package/lib/cjs/RpcInterface.js +137 -137
  236. package/lib/cjs/RpcInterface.js.map +1 -1
  237. package/lib/cjs/RpcManager.d.ts +40 -40
  238. package/lib/cjs/RpcManager.js +55 -55
  239. package/lib/cjs/RpcManager.js.map +1 -1
  240. package/lib/cjs/SessionProps.d.ts +16 -16
  241. package/lib/cjs/SessionProps.js +9 -9
  242. package/lib/cjs/SessionProps.js.map +1 -1
  243. package/lib/cjs/SkyBox.d.ts +215 -215
  244. package/lib/cjs/SkyBox.js +210 -210
  245. package/lib/cjs/SkyBox.js.map +1 -1
  246. package/lib/cjs/Snapping.d.ts +49 -49
  247. package/lib/cjs/Snapping.js +9 -9
  248. package/lib/cjs/Snapping.js.map +1 -1
  249. package/lib/cjs/SolarCalculate.d.ts +27 -27
  250. package/lib/cjs/SolarCalculate.js +211 -211
  251. package/lib/cjs/SolarCalculate.js.map +1 -1
  252. package/lib/cjs/SolarShadows.d.ts +35 -35
  253. package/lib/cjs/SolarShadows.js +62 -62
  254. package/lib/cjs/SolarShadows.js.map +1 -1
  255. package/lib/cjs/SpatialClassification.d.ts +208 -208
  256. package/lib/cjs/SpatialClassification.js +340 -340
  257. package/lib/cjs/SpatialClassification.js.map +1 -1
  258. package/lib/cjs/SubCategoryAppearance.d.ts +91 -91
  259. package/lib/cjs/SubCategoryAppearance.js +96 -96
  260. package/lib/cjs/SubCategoryAppearance.js.map +1 -1
  261. package/lib/cjs/SubCategoryOverride.d.ts +46 -46
  262. package/lib/cjs/SubCategoryOverride.js +104 -104
  263. package/lib/cjs/SubCategoryOverride.js.map +1 -1
  264. package/lib/cjs/TerrainSettings.d.ts +82 -82
  265. package/lib/cjs/TerrainSettings.js +102 -102
  266. package/lib/cjs/TerrainSettings.js.map +1 -1
  267. package/lib/cjs/TextureMapping.d.ts +101 -101
  268. package/lib/cjs/TextureMapping.js +174 -174
  269. package/lib/cjs/TextureMapping.js.map +1 -1
  270. package/lib/cjs/TextureProps.d.ts +65 -65
  271. package/lib/cjs/TextureProps.js +28 -28
  272. package/lib/cjs/TextureProps.js.map +1 -1
  273. package/lib/cjs/ThematicDisplay.d.ts +230 -230
  274. package/lib/cjs/ThematicDisplay.js +344 -344
  275. package/lib/cjs/ThematicDisplay.js.map +1 -1
  276. package/lib/cjs/Thumbnail.d.ts +26 -26
  277. package/lib/cjs/Thumbnail.js +9 -9
  278. package/lib/cjs/Thumbnail.js.map +1 -1
  279. package/lib/cjs/TileProps.d.ts +82 -82
  280. package/lib/cjs/TileProps.js +29 -29
  281. package/lib/cjs/TileProps.js.map +1 -1
  282. package/lib/cjs/Tween.d.ts +191 -191
  283. package/lib/cjs/Tween.js +570 -570
  284. package/lib/cjs/Tween.js.map +1 -1
  285. package/lib/cjs/TxnAction.d.ts +21 -21
  286. package/lib/cjs/TxnAction.js +29 -29
  287. package/lib/cjs/TxnAction.js.map +1 -1
  288. package/lib/cjs/ViewDetails.d.ts +125 -125
  289. package/lib/cjs/ViewDetails.js +158 -158
  290. package/lib/cjs/ViewDetails.js.map +1 -1
  291. package/lib/cjs/ViewFlags.d.ts +291 -291
  292. package/lib/cjs/ViewFlags.js +368 -368
  293. package/lib/cjs/ViewFlags.js.map +1 -1
  294. package/lib/cjs/ViewProps.d.ts +205 -205
  295. package/lib/cjs/ViewProps.js +9 -9
  296. package/lib/cjs/ViewProps.js.map +1 -1
  297. package/lib/cjs/WhiteOnWhiteReversalSettings.d.ts +36 -36
  298. package/lib/cjs/WhiteOnWhiteReversalSettings.js +37 -37
  299. package/lib/cjs/WhiteOnWhiteReversalSettings.js.map +1 -1
  300. package/lib/cjs/core-common.d.ts +244 -241
  301. package/lib/cjs/core-common.d.ts.map +1 -1
  302. package/lib/cjs/core-common.js +260 -257
  303. package/lib/cjs/core-common.js.map +1 -1
  304. package/lib/cjs/domains/FunctionalElementProps.d.ts +11 -11
  305. package/lib/cjs/domains/FunctionalElementProps.js +9 -9
  306. package/lib/cjs/domains/FunctionalElementProps.js.map +1 -1
  307. package/lib/cjs/domains/GenericElementProps.d.ts +18 -18
  308. package/lib/cjs/domains/GenericElementProps.js +9 -9
  309. package/lib/cjs/domains/GenericElementProps.js.map +1 -1
  310. package/lib/cjs/geometry/AdditionalTransform.d.ts +84 -84
  311. package/lib/cjs/geometry/AdditionalTransform.js +85 -85
  312. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  313. package/lib/cjs/geometry/AreaPattern.d.ts +82 -82
  314. package/lib/cjs/geometry/AreaPattern.js +204 -204
  315. package/lib/cjs/geometry/AreaPattern.js.map +1 -1
  316. package/lib/cjs/geometry/BoundingSphere.d.ts +14 -14
  317. package/lib/cjs/geometry/BoundingSphere.js +30 -30
  318. package/lib/cjs/geometry/BoundingSphere.js.map +1 -1
  319. package/lib/cjs/geometry/Cartographic.d.ts +137 -137
  320. package/lib/cjs/geometry/Cartographic.js +345 -345
  321. package/lib/cjs/geometry/Cartographic.js.map +1 -1
  322. package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts +269 -269
  323. package/lib/cjs/geometry/CoordinateReferenceSystem.js +261 -261
  324. package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
  325. package/lib/cjs/geometry/ElementGeometry.d.ts +402 -402
  326. package/lib/cjs/geometry/ElementGeometry.js +1719 -1719
  327. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  328. package/lib/cjs/geometry/ElementGeometryFB.d.ts +2372 -2372
  329. package/lib/cjs/geometry/ElementGeometryFB.js +3814 -3814
  330. package/lib/cjs/geometry/ElementGeometryFB.js.map +1 -1
  331. package/lib/cjs/geometry/FrustumPlanes.d.ts +32 -32
  332. package/lib/cjs/geometry/FrustumPlanes.js +132 -132
  333. package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
  334. package/lib/cjs/geometry/GeodeticDatum.d.ts +409 -409
  335. package/lib/cjs/geometry/GeodeticDatum.js +401 -401
  336. package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
  337. package/lib/cjs/geometry/GeodeticEllipsoid.d.ts +72 -72
  338. package/lib/cjs/geometry/GeodeticEllipsoid.js +72 -72
  339. package/lib/cjs/geometry/GeodeticEllipsoid.js.map +1 -1
  340. package/lib/cjs/geometry/GeometryStream.d.ts +347 -347
  341. package/lib/cjs/geometry/GeometryStream.js +469 -469
  342. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  343. package/lib/cjs/geometry/ImageGraphic.d.ts +74 -74
  344. package/lib/cjs/geometry/ImageGraphic.js +98 -98
  345. package/lib/cjs/geometry/ImageGraphic.js.map +1 -1
  346. package/lib/cjs/geometry/LineStyle.d.ts +71 -71
  347. package/lib/cjs/geometry/LineStyle.js +129 -129
  348. package/lib/cjs/geometry/LineStyle.js.map +1 -1
  349. package/lib/cjs/geometry/Placement.d.ts +95 -95
  350. package/lib/cjs/geometry/Placement.js +131 -131
  351. package/lib/cjs/geometry/Placement.js.map +1 -1
  352. package/lib/cjs/geometry/Projection.d.ts +251 -251
  353. package/lib/cjs/geometry/Projection.js +198 -198
  354. package/lib/cjs/geometry/Projection.js.map +1 -1
  355. package/lib/cjs/geometry/TextString.d.ts +55 -55
  356. package/lib/cjs/geometry/TextString.js +65 -65
  357. package/lib/cjs/geometry/TextString.js.map +1 -1
  358. package/lib/cjs/ipc/IpcSession.d.ts +23 -23
  359. package/lib/cjs/ipc/IpcSession.js +27 -27
  360. package/lib/cjs/ipc/IpcSession.js.map +1 -1
  361. package/lib/cjs/ipc/IpcSocket.d.ts +96 -96
  362. package/lib/cjs/ipc/IpcSocket.js +16 -16
  363. package/lib/cjs/ipc/IpcSocket.js.map +1 -1
  364. package/lib/cjs/ipc/IpcWebSocket.d.ts +61 -61
  365. package/lib/cjs/ipc/IpcWebSocket.js +151 -151
  366. package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
  367. package/lib/cjs/ipc/IpcWebSocketTransport.d.ts +15 -15
  368. package/lib/cjs/ipc/IpcWebSocketTransport.d.ts.map +1 -1
  369. package/lib/cjs/ipc/IpcWebSocketTransport.js +160 -158
  370. package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -1
  371. package/lib/cjs/rpc/DevToolsRpcInterface.d.ts +32 -32
  372. package/lib/cjs/rpc/DevToolsRpcInterface.js +48 -48
  373. package/lib/cjs/rpc/DevToolsRpcInterface.js.map +1 -1
  374. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts +97 -75
  375. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  376. package/lib/cjs/rpc/IModelReadRpcInterface.js +119 -115
  377. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  378. package/lib/cjs/rpc/IModelTileRpcInterface.d.ts +61 -61
  379. package/lib/cjs/rpc/IModelTileRpcInterface.js +96 -96
  380. package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
  381. package/lib/cjs/rpc/SnapshotIModelRpcInterface.d.ts +23 -23
  382. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js +48 -48
  383. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  384. package/lib/cjs/rpc/TestRpcManager.d.ts +20 -20
  385. package/lib/cjs/rpc/TestRpcManager.js +39 -39
  386. package/lib/cjs/rpc/TestRpcManager.js.map +1 -1
  387. package/lib/cjs/rpc/WipRpcInterface.d.ts +29 -29
  388. package/lib/cjs/rpc/WipRpcInterface.js +40 -40
  389. package/lib/cjs/rpc/WipRpcInterface.js.map +1 -1
  390. package/lib/cjs/rpc/core/RpcConfiguration.d.ts +111 -111
  391. package/lib/cjs/rpc/core/RpcConfiguration.d.ts.map +1 -1
  392. package/lib/cjs/rpc/core/RpcConfiguration.js +191 -192
  393. package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
  394. package/lib/cjs/rpc/core/RpcConstants.d.ts +85 -85
  395. package/lib/cjs/rpc/core/RpcConstants.js +103 -103
  396. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  397. package/lib/cjs/rpc/core/RpcControl.d.ts +54 -52
  398. package/lib/cjs/rpc/core/RpcControl.d.ts.map +1 -1
  399. package/lib/cjs/rpc/core/RpcControl.js +144 -149
  400. package/lib/cjs/rpc/core/RpcControl.js.map +1 -1
  401. package/lib/cjs/rpc/core/RpcInvocation.d.ts +89 -89
  402. package/lib/cjs/rpc/core/RpcInvocation.d.ts.map +1 -1
  403. package/lib/cjs/rpc/core/RpcInvocation.js +258 -257
  404. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  405. package/lib/cjs/rpc/core/RpcMarshaling.d.ts +35 -36
  406. package/lib/cjs/rpc/core/RpcMarshaling.d.ts.map +1 -1
  407. package/lib/cjs/rpc/core/RpcMarshaling.js +156 -153
  408. package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
  409. package/lib/cjs/rpc/core/RpcOperation.d.ts +67 -67
  410. package/lib/cjs/rpc/core/RpcOperation.js +133 -133
  411. package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
  412. package/lib/cjs/rpc/core/RpcPendingQueue.d.ts +21 -21
  413. package/lib/cjs/rpc/core/RpcPendingQueue.js +94 -94
  414. package/lib/cjs/rpc/core/RpcPendingQueue.js.map +1 -1
  415. package/lib/cjs/rpc/core/RpcProtocol.d.ts +132 -132
  416. package/lib/cjs/rpc/core/RpcProtocol.js +127 -127
  417. package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
  418. package/lib/cjs/rpc/core/RpcPush.d.ts +68 -68
  419. package/lib/cjs/rpc/core/RpcPush.js +127 -127
  420. package/lib/cjs/rpc/core/RpcPush.js.map +1 -1
  421. package/lib/cjs/rpc/core/RpcRegistry.d.ts +48 -48
  422. package/lib/cjs/rpc/core/RpcRegistry.js +198 -198
  423. package/lib/cjs/rpc/core/RpcRegistry.js.map +1 -1
  424. package/lib/cjs/rpc/core/RpcRequest.d.ts +186 -186
  425. package/lib/cjs/rpc/core/RpcRequest.js +477 -477
  426. package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
  427. package/lib/cjs/rpc/core/RpcRequestContext.d.ts +14 -14
  428. package/lib/cjs/rpc/core/RpcRequestContext.js +2 -2
  429. package/lib/cjs/rpc/core/RpcRequestContext.js.map +1 -1
  430. package/lib/cjs/rpc/core/RpcRoutingToken.d.ts +12 -12
  431. package/lib/cjs/rpc/core/RpcRoutingToken.js +23 -23
  432. package/lib/cjs/rpc/core/RpcRoutingToken.js.map +1 -1
  433. package/lib/cjs/rpc/core/RpcSessionInvocation.d.ts +10 -10
  434. package/lib/cjs/rpc/core/RpcSessionInvocation.js +59 -59
  435. package/lib/cjs/rpc/core/RpcSessionInvocation.js.map +1 -1
  436. package/lib/cjs/rpc/web/BentleyCloudRpcManager.d.ts +46 -46
  437. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js +73 -73
  438. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  439. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.d.ts +33 -33
  440. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +142 -142
  441. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  442. package/lib/cjs/rpc/web/OpenAPI.d.ts +139 -139
  443. package/lib/cjs/rpc/web/OpenAPI.js +60 -60
  444. package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
  445. package/lib/cjs/rpc/web/RpcMultipart.d.ts +35 -31
  446. package/lib/cjs/rpc/web/RpcMultipart.d.ts.map +1 -1
  447. package/lib/cjs/rpc/web/RpcMultipart.js +50 -45
  448. package/lib/cjs/rpc/web/RpcMultipart.js.map +1 -1
  449. package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts +28 -17
  450. package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
  451. package/lib/cjs/rpc/web/WebAppRpcLogging.js +139 -140
  452. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  453. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +87 -86
  454. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  455. package/lib/cjs/rpc/web/WebAppRpcProtocol.js +116 -116
  456. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  457. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts +67 -71
  458. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  459. package/lib/cjs/rpc/web/WebAppRpcRequest.js +239 -374
  460. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  461. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.d.ts +32 -33
  462. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.d.ts.map +1 -1
  463. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js +372 -359
  464. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  465. package/lib/cjs/tile/B3dmTileIO.d.ts +19 -19
  466. package/lib/cjs/tile/B3dmTileIO.js +66 -66
  467. package/lib/cjs/tile/B3dmTileIO.js.map +1 -1
  468. package/lib/cjs/tile/CompositeTileIO.d.ts +15 -15
  469. package/lib/cjs/tile/CompositeTileIO.js +26 -26
  470. package/lib/cjs/tile/CompositeTileIO.js.map +1 -1
  471. package/lib/cjs/tile/ElementGraphics.d.ts +145 -134
  472. package/lib/cjs/tile/ElementGraphics.d.ts.map +1 -1
  473. package/lib/cjs/tile/ElementGraphics.js +9 -9
  474. package/lib/cjs/tile/ElementGraphics.js.map +1 -1
  475. package/lib/cjs/tile/GltfTileIO.d.ts +45 -45
  476. package/lib/cjs/tile/GltfTileIO.js +109 -109
  477. package/lib/cjs/tile/GltfTileIO.js.map +1 -1
  478. package/lib/cjs/tile/I3dmTileIO.d.ts +20 -20
  479. package/lib/cjs/tile/I3dmTileIO.js +40 -40
  480. package/lib/cjs/tile/I3dmTileIO.js.map +1 -1
  481. package/lib/cjs/tile/IModelTileIO.d.ts +75 -75
  482. package/lib/cjs/tile/IModelTileIO.js +95 -95
  483. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  484. package/lib/cjs/tile/PntsTileIO.d.ts +17 -17
  485. package/lib/cjs/tile/PntsTileIO.js +26 -26
  486. package/lib/cjs/tile/PntsTileIO.js.map +1 -1
  487. package/lib/cjs/tile/TileIO.d.ts +66 -66
  488. package/lib/cjs/tile/TileIO.js +118 -118
  489. package/lib/cjs/tile/TileIO.js.map +1 -1
  490. package/lib/cjs/tile/TileMetadata.d.ts +228 -228
  491. package/lib/cjs/tile/TileMetadata.js +676 -676
  492. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  493. package/lib/esm/AmbientOcclusion.d.ts +49 -49
  494. package/lib/esm/AmbientOcclusion.js +52 -52
  495. package/lib/esm/AmbientOcclusion.js.map +1 -1
  496. package/lib/esm/AnalysisStyle.d.ts +134 -134
  497. package/lib/esm/AnalysisStyle.js +159 -159
  498. package/lib/esm/AnalysisStyle.js.map +1 -1
  499. package/lib/esm/AuthorizationClient.d.ts +11 -11
  500. package/lib/esm/AuthorizationClient.js +8 -8
  501. package/lib/esm/AuthorizationClient.js.map +1 -1
  502. package/lib/esm/BackendTypes.d.ts +13 -0
  503. package/lib/esm/BackendTypes.d.ts.map +1 -0
  504. package/lib/esm/BackendTypes.js +9 -0
  505. package/lib/esm/BackendTypes.js.map +1 -0
  506. package/lib/esm/BackgroundMapProvider.d.ts +51 -51
  507. package/lib/esm/BackgroundMapProvider.js +64 -64
  508. package/lib/esm/BackgroundMapProvider.js.map +1 -1
  509. package/lib/esm/BackgroundMapSettings.d.ts +136 -136
  510. package/lib/esm/BackgroundMapSettings.js +152 -152
  511. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  512. package/lib/esm/Base64EncodedString.d.ts +32 -30
  513. package/lib/esm/Base64EncodedString.d.ts.map +1 -1
  514. package/lib/esm/Base64EncodedString.js +63 -53
  515. package/lib/esm/Base64EncodedString.js.map +1 -1
  516. package/lib/esm/BlobReader.d.ts +31 -31
  517. package/lib/esm/BlobReader.js +79 -79
  518. package/lib/esm/BlobReader.js.map +1 -1
  519. package/lib/esm/BriefcaseTypes.d.ts +189 -189
  520. package/lib/esm/BriefcaseTypes.js +92 -92
  521. package/lib/esm/BriefcaseTypes.js.map +1 -1
  522. package/lib/esm/Camera.d.ts +42 -42
  523. package/lib/esm/Camera.js +58 -58
  524. package/lib/esm/Camera.js.map +1 -1
  525. package/lib/esm/ChangedElements.d.ts +83 -83
  526. package/lib/esm/ChangedElements.js +18 -18
  527. package/lib/esm/ChangedElements.js.map +1 -1
  528. package/lib/esm/ChangedEntities.d.ts +45 -45
  529. package/lib/esm/ChangedEntities.js +8 -8
  530. package/lib/esm/ChangedEntities.js.map +1 -1
  531. package/lib/esm/ChangesetProps.d.ts +98 -98
  532. package/lib/esm/ChangesetProps.js +19 -19
  533. package/lib/esm/ChangesetProps.js.map +1 -1
  534. package/lib/esm/ClipStyle.d.ts +89 -89
  535. package/lib/esm/ClipStyle.js +118 -118
  536. package/lib/esm/ClipStyle.js.map +1 -1
  537. package/lib/esm/CloudStorage.d.ts +62 -62
  538. package/lib/esm/CloudStorage.js +109 -109
  539. package/lib/esm/CloudStorage.js.map +1 -1
  540. package/lib/esm/CloudStorageTileCache.d.ts +27 -27
  541. package/lib/esm/CloudStorageTileCache.js +62 -62
  542. package/lib/esm/CloudStorageTileCache.js.map +1 -1
  543. package/lib/esm/Code.d.ts +256 -256
  544. package/lib/esm/Code.js +276 -276
  545. package/lib/esm/Code.js.map +1 -1
  546. package/lib/esm/ColorByName.d.ts +161 -161
  547. package/lib/esm/ColorByName.js +166 -166
  548. package/lib/esm/ColorByName.js.map +1 -1
  549. package/lib/esm/ColorDef.d.ts +208 -208
  550. package/lib/esm/ColorDef.js +567 -567
  551. package/lib/esm/ColorDef.js.map +1 -1
  552. package/lib/esm/CommonLoggerCategory.d.ts +18 -18
  553. package/lib/esm/CommonLoggerCategory.js +23 -23
  554. package/lib/esm/CommonLoggerCategory.js.map +1 -1
  555. package/lib/esm/ConcurrentQuery.d.ts +241 -241
  556. package/lib/esm/ConcurrentQuery.js +373 -373
  557. package/lib/esm/ConcurrentQuery.js.map +1 -1
  558. package/lib/esm/ContextRealityModel.d.ts +276 -276
  559. package/lib/esm/ContextRealityModel.js +353 -353
  560. package/lib/esm/ContextRealityModel.js.map +1 -1
  561. package/lib/esm/DisplayStyleSettings.d.ts +584 -584
  562. package/lib/esm/DisplayStyleSettings.js +976 -976
  563. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  564. package/lib/esm/ECSchemaProps.d.ts +39 -39
  565. package/lib/esm/ECSchemaProps.js +8 -8
  566. package/lib/esm/ECSchemaProps.js.map +1 -1
  567. package/lib/esm/ECSqlReader.d.ts +70 -70
  568. package/lib/esm/ECSqlReader.js +275 -275
  569. package/lib/esm/ECSqlReader.js.map +1 -1
  570. package/lib/esm/ECSqlTypes.d.ts +128 -128
  571. package/lib/esm/ECSqlTypes.js +185 -185
  572. package/lib/esm/ECSqlTypes.js.map +1 -1
  573. package/lib/esm/ElementProps.d.ts +479 -476
  574. package/lib/esm/ElementProps.d.ts.map +1 -1
  575. package/lib/esm/ElementProps.js +92 -92
  576. package/lib/esm/ElementProps.js.map +1 -1
  577. package/lib/esm/EmphasizeElementsProps.d.ts +55 -55
  578. package/lib/esm/EmphasizeElementsProps.js +22 -22
  579. package/lib/esm/EmphasizeElementsProps.js.map +1 -1
  580. package/lib/esm/EntityProps.d.ts +176 -176
  581. package/lib/esm/EntityProps.js +107 -107
  582. package/lib/esm/EntityProps.js.map +1 -1
  583. package/lib/esm/EntityReference.d.ts +52 -0
  584. package/lib/esm/EntityReference.d.ts.map +1 -0
  585. package/lib/esm/EntityReference.js +53 -0
  586. package/lib/esm/EntityReference.js.map +1 -0
  587. package/lib/esm/Environment.d.ts +61 -61
  588. package/lib/esm/Environment.js +69 -69
  589. package/lib/esm/Environment.js.map +1 -1
  590. package/lib/esm/FeatureGates.d.ts +31 -31
  591. package/lib/esm/FeatureGates.js +51 -51
  592. package/lib/esm/FeatureGates.js.map +1 -1
  593. package/lib/esm/FeatureIndex.d.ts +39 -39
  594. package/lib/esm/FeatureIndex.js +57 -57
  595. package/lib/esm/FeatureIndex.js.map +1 -1
  596. package/lib/esm/FeatureSymbology.d.ts +444 -444
  597. package/lib/esm/FeatureSymbology.js +609 -609
  598. package/lib/esm/FeatureSymbology.js.map +1 -1
  599. package/lib/esm/FeatureTable.d.ts +141 -141
  600. package/lib/esm/FeatureTable.js +272 -272
  601. package/lib/esm/FeatureTable.js.map +1 -1
  602. package/lib/esm/Fonts.d.ts +51 -51
  603. package/lib/esm/Fonts.js +49 -49
  604. package/lib/esm/Fonts.js.map +1 -1
  605. package/lib/esm/Frustum.d.ts +114 -114
  606. package/lib/esm/Frustum.js +288 -288
  607. package/lib/esm/Frustum.js.map +1 -1
  608. package/lib/esm/GeoCoordinateServices.d.ts +119 -119
  609. package/lib/esm/GeoCoordinateServices.js +76 -76
  610. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  611. package/lib/esm/GeometryContainment.d.ts +28 -28
  612. package/lib/esm/GeometryContainment.js +8 -8
  613. package/lib/esm/GeometryContainment.js.map +1 -1
  614. package/lib/esm/GeometryParams.d.ts +130 -130
  615. package/lib/esm/GeometryParams.js +170 -170
  616. package/lib/esm/GeometryParams.js.map +1 -1
  617. package/lib/esm/GeometrySummary.d.ts +45 -45
  618. package/lib/esm/GeometrySummary.js +20 -20
  619. package/lib/esm/GeometrySummary.js.map +1 -1
  620. package/lib/esm/Gradient.d.ts +139 -139
  621. package/lib/esm/Gradient.js +452 -452
  622. package/lib/esm/Gradient.js.map +1 -1
  623. package/lib/esm/GraphicParams.d.ts +58 -58
  624. package/lib/esm/GraphicParams.js +81 -81
  625. package/lib/esm/GraphicParams.js.map +1 -1
  626. package/lib/esm/GroundPlane.d.ts +52 -52
  627. package/lib/esm/GroundPlane.js +60 -60
  628. package/lib/esm/GroundPlane.js.map +1 -1
  629. package/lib/esm/HSLColor.d.ts +20 -20
  630. package/lib/esm/HSLColor.js +28 -28
  631. package/lib/esm/HSLColor.js.map +1 -1
  632. package/lib/esm/HSVColor.d.ts +30 -30
  633. package/lib/esm/HSVColor.js +55 -55
  634. package/lib/esm/HSVColor.js.map +1 -1
  635. package/lib/esm/HiddenLine.d.ts +97 -97
  636. package/lib/esm/HiddenLine.js +159 -159
  637. package/lib/esm/HiddenLine.js.map +1 -1
  638. package/lib/esm/Hilite.d.ts +50 -50
  639. package/lib/esm/Hilite.js +61 -61
  640. package/lib/esm/Hilite.js.map +1 -1
  641. package/lib/esm/IModel.d.ts +359 -359
  642. package/lib/esm/IModel.js +342 -342
  643. package/lib/esm/IModel.js.map +1 -1
  644. package/lib/esm/IModelError.d.ts +36 -36
  645. package/lib/esm/IModelError.js +55 -55
  646. package/lib/esm/IModelError.js.map +1 -1
  647. package/lib/esm/IModelVersion.d.ts +68 -68
  648. package/lib/esm/IModelVersion.js +75 -75
  649. package/lib/esm/IModelVersion.js.map +1 -1
  650. package/lib/esm/Image.d.ts +86 -86
  651. package/lib/esm/Image.js +120 -120
  652. package/lib/esm/Image.js.map +1 -1
  653. package/lib/esm/IpcAppProps.d.ts +141 -124
  654. package/lib/esm/IpcAppProps.d.ts.map +1 -1
  655. package/lib/esm/IpcAppProps.js +19 -15
  656. package/lib/esm/IpcAppProps.js.map +1 -1
  657. package/lib/esm/LightSettings.d.ts +224 -224
  658. package/lib/esm/LightSettings.js +301 -301
  659. package/lib/esm/LightSettings.js.map +1 -1
  660. package/lib/esm/LinePixels.d.ts +34 -34
  661. package/lib/esm/LinePixels.js +39 -39
  662. package/lib/esm/LinePixels.js.map +1 -1
  663. package/lib/esm/Localization.d.ts +111 -111
  664. package/lib/esm/Localization.js +22 -22
  665. package/lib/esm/Localization.js.map +1 -1
  666. package/lib/esm/MapImagerySettings.d.ts +62 -62
  667. package/lib/esm/MapImagerySettings.js +76 -76
  668. package/lib/esm/MapImagerySettings.js.map +1 -1
  669. package/lib/esm/MapLayerSettings.d.ts +272 -272
  670. package/lib/esm/MapLayerSettings.js +403 -403
  671. package/lib/esm/MapLayerSettings.js.map +1 -1
  672. package/lib/esm/MassProperties.d.ts +64 -64
  673. package/lib/esm/MassProperties.js +20 -20
  674. package/lib/esm/MassProperties.js.map +1 -1
  675. package/lib/esm/MaterialProps.d.ts +118 -118
  676. package/lib/esm/MaterialProps.js +20 -20
  677. package/lib/esm/MaterialProps.js.map +1 -1
  678. package/lib/esm/ModelClipGroup.d.ts +67 -67
  679. package/lib/esm/ModelClipGroup.js +93 -93
  680. package/lib/esm/ModelClipGroup.js.map +1 -1
  681. package/lib/esm/ModelGeometryChanges.d.ts +107 -107
  682. package/lib/esm/ModelGeometryChanges.js +80 -80
  683. package/lib/esm/ModelGeometryChanges.js.map +1 -1
  684. package/lib/esm/ModelProps.d.ts +67 -66
  685. package/lib/esm/ModelProps.d.ts.map +1 -1
  686. package/lib/esm/ModelProps.js +8 -8
  687. package/lib/esm/ModelProps.js.map +1 -1
  688. package/lib/esm/NativeAppProps.d.ts +122 -122
  689. package/lib/esm/NativeAppProps.js +27 -27
  690. package/lib/esm/NativeAppProps.js.map +1 -1
  691. package/lib/esm/OctEncodedNormal.d.ts +33 -33
  692. package/lib/esm/OctEncodedNormal.js +93 -93
  693. package/lib/esm/OctEncodedNormal.js.map +1 -1
  694. package/lib/esm/PlanProjectionSettings.d.ts +47 -47
  695. package/lib/esm/PlanProjectionSettings.js +59 -59
  696. package/lib/esm/PlanProjectionSettings.js.map +1 -1
  697. package/lib/esm/PlanarClipMask.d.ts +177 -177
  698. package/lib/esm/PlanarClipMask.js +132 -132
  699. package/lib/esm/PlanarClipMask.js.map +1 -1
  700. package/lib/esm/QPoint.d.ts +479 -479
  701. package/lib/esm/QPoint.js +815 -815
  702. package/lib/esm/QPoint.js.map +1 -1
  703. package/lib/esm/RealityDataAccessProps.d.ts +41 -41
  704. package/lib/esm/RealityDataAccessProps.js +16 -16
  705. package/lib/esm/RealityDataAccessProps.js.map +1 -1
  706. package/lib/esm/RealityModelDisplaySettings.d.ts +118 -118
  707. package/lib/esm/RealityModelDisplaySettings.js +109 -109
  708. package/lib/esm/RealityModelDisplaySettings.js.map +1 -1
  709. package/lib/esm/Render.d.ts +89 -89
  710. package/lib/esm/Render.js +165 -165
  711. package/lib/esm/Render.js.map +1 -1
  712. package/lib/esm/RenderMaterial.d.ts +58 -58
  713. package/lib/esm/RenderMaterial.js +72 -72
  714. package/lib/esm/RenderMaterial.js.map +1 -1
  715. package/lib/esm/RenderSchedule.d.ts +543 -540
  716. package/lib/esm/RenderSchedule.d.ts.map +1 -1
  717. package/lib/esm/RenderSchedule.js +999 -997
  718. package/lib/esm/RenderSchedule.js.map +1 -1
  719. package/lib/esm/RenderTexture.d.ts +70 -70
  720. package/lib/esm/RenderTexture.js +55 -55
  721. package/lib/esm/RenderTexture.js.map +1 -1
  722. package/lib/esm/RgbColor.d.ts +47 -47
  723. package/lib/esm/RgbColor.js +73 -73
  724. package/lib/esm/RgbColor.js.map +1 -1
  725. package/lib/esm/RpcInterface.d.ts +33 -33
  726. package/lib/esm/RpcInterface.js +133 -133
  727. package/lib/esm/RpcInterface.js.map +1 -1
  728. package/lib/esm/RpcManager.d.ts +40 -40
  729. package/lib/esm/RpcManager.js +51 -51
  730. package/lib/esm/RpcManager.js.map +1 -1
  731. package/lib/esm/SessionProps.d.ts +16 -16
  732. package/lib/esm/SessionProps.js +8 -8
  733. package/lib/esm/SessionProps.js.map +1 -1
  734. package/lib/esm/SkyBox.d.ts +215 -215
  735. package/lib/esm/SkyBox.js +203 -203
  736. package/lib/esm/SkyBox.js.map +1 -1
  737. package/lib/esm/Snapping.d.ts +49 -49
  738. package/lib/esm/Snapping.js +8 -8
  739. package/lib/esm/Snapping.js.map +1 -1
  740. package/lib/esm/SolarCalculate.d.ts +27 -27
  741. package/lib/esm/SolarCalculate.js +204 -204
  742. package/lib/esm/SolarCalculate.js.map +1 -1
  743. package/lib/esm/SolarShadows.d.ts +35 -35
  744. package/lib/esm/SolarShadows.js +58 -58
  745. package/lib/esm/SolarShadows.js.map +1 -1
  746. package/lib/esm/SpatialClassification.d.ts +208 -208
  747. package/lib/esm/SpatialClassification.js +334 -334
  748. package/lib/esm/SpatialClassification.js.map +1 -1
  749. package/lib/esm/SubCategoryAppearance.d.ts +91 -91
  750. package/lib/esm/SubCategoryAppearance.js +92 -92
  751. package/lib/esm/SubCategoryAppearance.js.map +1 -1
  752. package/lib/esm/SubCategoryOverride.d.ts +46 -46
  753. package/lib/esm/SubCategoryOverride.js +100 -100
  754. package/lib/esm/SubCategoryOverride.js.map +1 -1
  755. package/lib/esm/TerrainSettings.d.ts +82 -82
  756. package/lib/esm/TerrainSettings.js +98 -98
  757. package/lib/esm/TerrainSettings.js.map +1 -1
  758. package/lib/esm/TextureMapping.d.ts +101 -101
  759. package/lib/esm/TextureMapping.js +170 -170
  760. package/lib/esm/TextureMapping.js.map +1 -1
  761. package/lib/esm/TextureProps.d.ts +65 -65
  762. package/lib/esm/TextureProps.js +25 -25
  763. package/lib/esm/TextureProps.js.map +1 -1
  764. package/lib/esm/ThematicDisplay.d.ts +230 -230
  765. package/lib/esm/ThematicDisplay.js +337 -337
  766. package/lib/esm/ThematicDisplay.js.map +1 -1
  767. package/lib/esm/Thumbnail.d.ts +26 -26
  768. package/lib/esm/Thumbnail.js +8 -8
  769. package/lib/esm/Thumbnail.js.map +1 -1
  770. package/lib/esm/TileProps.d.ts +82 -82
  771. package/lib/esm/TileProps.js +25 -25
  772. package/lib/esm/TileProps.js.map +1 -1
  773. package/lib/esm/Tween.d.ts +191 -191
  774. package/lib/esm/Tween.js +565 -565
  775. package/lib/esm/Tween.js.map +1 -1
  776. package/lib/esm/TxnAction.d.ts +21 -21
  777. package/lib/esm/TxnAction.js +26 -26
  778. package/lib/esm/TxnAction.js.map +1 -1
  779. package/lib/esm/ViewDetails.d.ts +125 -125
  780. package/lib/esm/ViewDetails.js +153 -153
  781. package/lib/esm/ViewDetails.js.map +1 -1
  782. package/lib/esm/ViewFlags.d.ts +291 -291
  783. package/lib/esm/ViewFlags.js +364 -364
  784. package/lib/esm/ViewFlags.js.map +1 -1
  785. package/lib/esm/ViewProps.d.ts +205 -205
  786. package/lib/esm/ViewProps.js +8 -8
  787. package/lib/esm/ViewProps.js.map +1 -1
  788. package/lib/esm/WhiteOnWhiteReversalSettings.d.ts +36 -36
  789. package/lib/esm/WhiteOnWhiteReversalSettings.js +33 -33
  790. package/lib/esm/WhiteOnWhiteReversalSettings.js.map +1 -1
  791. package/lib/esm/core-common.d.ts +244 -241
  792. package/lib/esm/core-common.d.ts.map +1 -1
  793. package/lib/esm/core-common.js +248 -245
  794. package/lib/esm/core-common.js.map +1 -1
  795. package/lib/esm/domains/FunctionalElementProps.d.ts +11 -11
  796. package/lib/esm/domains/FunctionalElementProps.js +8 -8
  797. package/lib/esm/domains/FunctionalElementProps.js.map +1 -1
  798. package/lib/esm/domains/GenericElementProps.d.ts +18 -18
  799. package/lib/esm/domains/GenericElementProps.js +8 -8
  800. package/lib/esm/domains/GenericElementProps.js.map +1 -1
  801. package/lib/esm/geometry/AdditionalTransform.d.ts +84 -84
  802. package/lib/esm/geometry/AdditionalTransform.js +80 -80
  803. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  804. package/lib/esm/geometry/AreaPattern.d.ts +82 -82
  805. package/lib/esm/geometry/AreaPattern.js +201 -201
  806. package/lib/esm/geometry/AreaPattern.js.map +1 -1
  807. package/lib/esm/geometry/BoundingSphere.d.ts +14 -14
  808. package/lib/esm/geometry/BoundingSphere.js +26 -26
  809. package/lib/esm/geometry/BoundingSphere.js.map +1 -1
  810. package/lib/esm/geometry/Cartographic.d.ts +137 -137
  811. package/lib/esm/geometry/Cartographic.js +340 -340
  812. package/lib/esm/geometry/Cartographic.js.map +1 -1
  813. package/lib/esm/geometry/CoordinateReferenceSystem.d.ts +269 -269
  814. package/lib/esm/geometry/CoordinateReferenceSystem.js +254 -254
  815. package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
  816. package/lib/esm/geometry/ElementGeometry.d.ts +402 -402
  817. package/lib/esm/geometry/ElementGeometry.js +1716 -1716
  818. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  819. package/lib/esm/geometry/ElementGeometryFB.d.ts +2372 -2372
  820. package/lib/esm/geometry/ElementGeometryFB.js +3811 -3811
  821. package/lib/esm/geometry/ElementGeometryFB.js.map +1 -1
  822. package/lib/esm/geometry/FrustumPlanes.d.ts +32 -32
  823. package/lib/esm/geometry/FrustumPlanes.js +128 -128
  824. package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
  825. package/lib/esm/geometry/GeodeticDatum.d.ts +409 -409
  826. package/lib/esm/geometry/GeodeticDatum.js +390 -390
  827. package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
  828. package/lib/esm/geometry/GeodeticEllipsoid.d.ts +72 -72
  829. package/lib/esm/geometry/GeodeticEllipsoid.js +68 -68
  830. package/lib/esm/geometry/GeodeticEllipsoid.js.map +1 -1
  831. package/lib/esm/geometry/GeometryStream.d.ts +347 -347
  832. package/lib/esm/geometry/GeometryStream.js +464 -464
  833. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  834. package/lib/esm/geometry/ImageGraphic.d.ts +74 -74
  835. package/lib/esm/geometry/ImageGraphic.js +93 -93
  836. package/lib/esm/geometry/ImageGraphic.js.map +1 -1
  837. package/lib/esm/geometry/LineStyle.d.ts +71 -71
  838. package/lib/esm/geometry/LineStyle.js +126 -126
  839. package/lib/esm/geometry/LineStyle.js.map +1 -1
  840. package/lib/esm/geometry/Placement.d.ts +95 -95
  841. package/lib/esm/geometry/Placement.js +126 -126
  842. package/lib/esm/geometry/Placement.js.map +1 -1
  843. package/lib/esm/geometry/Projection.d.ts +251 -251
  844. package/lib/esm/geometry/Projection.js +192 -192
  845. package/lib/esm/geometry/Projection.js.map +1 -1
  846. package/lib/esm/geometry/TextString.d.ts +55 -55
  847. package/lib/esm/geometry/TextString.js +61 -61
  848. package/lib/esm/geometry/TextString.js.map +1 -1
  849. package/lib/esm/ipc/IpcSession.d.ts +23 -23
  850. package/lib/esm/ipc/IpcSession.js +23 -23
  851. package/lib/esm/ipc/IpcSession.js.map +1 -1
  852. package/lib/esm/ipc/IpcSocket.d.ts +96 -96
  853. package/lib/esm/ipc/IpcSocket.js +12 -12
  854. package/lib/esm/ipc/IpcSocket.js.map +1 -1
  855. package/lib/esm/ipc/IpcWebSocket.d.ts +61 -61
  856. package/lib/esm/ipc/IpcWebSocket.js +145 -145
  857. package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
  858. package/lib/esm/ipc/IpcWebSocketTransport.d.ts +15 -15
  859. package/lib/esm/ipc/IpcWebSocketTransport.d.ts.map +1 -1
  860. package/lib/esm/ipc/IpcWebSocketTransport.js +156 -154
  861. package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -1
  862. package/lib/esm/rpc/DevToolsRpcInterface.d.ts +32 -32
  863. package/lib/esm/rpc/DevToolsRpcInterface.js +44 -44
  864. package/lib/esm/rpc/DevToolsRpcInterface.js.map +1 -1
  865. package/lib/esm/rpc/IModelReadRpcInterface.d.ts +97 -75
  866. package/lib/esm/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  867. package/lib/esm/rpc/IModelReadRpcInterface.js +114 -110
  868. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  869. package/lib/esm/rpc/IModelTileRpcInterface.d.ts +61 -61
  870. package/lib/esm/rpc/IModelTileRpcInterface.js +92 -92
  871. package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
  872. package/lib/esm/rpc/SnapshotIModelRpcInterface.d.ts +23 -23
  873. package/lib/esm/rpc/SnapshotIModelRpcInterface.js +44 -44
  874. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  875. package/lib/esm/rpc/TestRpcManager.d.ts +20 -20
  876. package/lib/esm/rpc/TestRpcManager.js +35 -35
  877. package/lib/esm/rpc/TestRpcManager.js.map +1 -1
  878. package/lib/esm/rpc/WipRpcInterface.d.ts +29 -29
  879. package/lib/esm/rpc/WipRpcInterface.js +36 -36
  880. package/lib/esm/rpc/WipRpcInterface.js.map +1 -1
  881. package/lib/esm/rpc/core/RpcConfiguration.d.ts +111 -111
  882. package/lib/esm/rpc/core/RpcConfiguration.d.ts.map +1 -1
  883. package/lib/esm/rpc/core/RpcConfiguration.js +184 -185
  884. package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
  885. package/lib/esm/rpc/core/RpcConstants.d.ts +85 -85
  886. package/lib/esm/rpc/core/RpcConstants.js +100 -100
  887. package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
  888. package/lib/esm/rpc/core/RpcControl.d.ts +54 -52
  889. package/lib/esm/rpc/core/RpcControl.d.ts.map +1 -1
  890. package/lib/esm/rpc/core/RpcControl.js +137 -142
  891. package/lib/esm/rpc/core/RpcControl.js.map +1 -1
  892. package/lib/esm/rpc/core/RpcInvocation.d.ts +89 -89
  893. package/lib/esm/rpc/core/RpcInvocation.d.ts.map +1 -1
  894. package/lib/esm/rpc/core/RpcInvocation.js +254 -253
  895. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  896. package/lib/esm/rpc/core/RpcMarshaling.d.ts +35 -36
  897. package/lib/esm/rpc/core/RpcMarshaling.d.ts.map +1 -1
  898. package/lib/esm/rpc/core/RpcMarshaling.js +152 -149
  899. package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
  900. package/lib/esm/rpc/core/RpcOperation.d.ts +67 -67
  901. package/lib/esm/rpc/core/RpcOperation.js +128 -128
  902. package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
  903. package/lib/esm/rpc/core/RpcPendingQueue.d.ts +21 -21
  904. package/lib/esm/rpc/core/RpcPendingQueue.js +90 -90
  905. package/lib/esm/rpc/core/RpcPendingQueue.js.map +1 -1
  906. package/lib/esm/rpc/core/RpcProtocol.d.ts +132 -132
  907. package/lib/esm/rpc/core/RpcProtocol.js +123 -123
  908. package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
  909. package/lib/esm/rpc/core/RpcPush.d.ts +68 -68
  910. package/lib/esm/rpc/core/RpcPush.js +119 -119
  911. package/lib/esm/rpc/core/RpcPush.js.map +1 -1
  912. package/lib/esm/rpc/core/RpcRegistry.d.ts +48 -48
  913. package/lib/esm/rpc/core/RpcRegistry.js +194 -194
  914. package/lib/esm/rpc/core/RpcRegistry.js.map +1 -1
  915. package/lib/esm/rpc/core/RpcRequest.d.ts +186 -186
  916. package/lib/esm/rpc/core/RpcRequest.js +472 -472
  917. package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
  918. package/lib/esm/rpc/core/RpcRequestContext.d.ts +14 -14
  919. package/lib/esm/rpc/core/RpcRequestContext.js +1 -1
  920. package/lib/esm/rpc/core/RpcRequestContext.js.map +1 -1
  921. package/lib/esm/rpc/core/RpcRoutingToken.d.ts +12 -12
  922. package/lib/esm/rpc/core/RpcRoutingToken.js +19 -19
  923. package/lib/esm/rpc/core/RpcRoutingToken.js.map +1 -1
  924. package/lib/esm/rpc/core/RpcSessionInvocation.d.ts +10 -10
  925. package/lib/esm/rpc/core/RpcSessionInvocation.js +55 -55
  926. package/lib/esm/rpc/core/RpcSessionInvocation.js.map +1 -1
  927. package/lib/esm/rpc/web/BentleyCloudRpcManager.d.ts +46 -46
  928. package/lib/esm/rpc/web/BentleyCloudRpcManager.js +68 -68
  929. package/lib/esm/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  930. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.d.ts +33 -33
  931. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +138 -138
  932. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  933. package/lib/esm/rpc/web/OpenAPI.d.ts +139 -139
  934. package/lib/esm/rpc/web/OpenAPI.js +56 -56
  935. package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
  936. package/lib/esm/rpc/web/RpcMultipart.d.ts +35 -31
  937. package/lib/esm/rpc/web/RpcMultipart.d.ts.map +1 -1
  938. package/lib/esm/rpc/web/RpcMultipart.js +46 -41
  939. package/lib/esm/rpc/web/RpcMultipart.js.map +1 -1
  940. package/lib/esm/rpc/web/WebAppRpcLogging.d.ts +28 -17
  941. package/lib/esm/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
  942. package/lib/esm/rpc/web/WebAppRpcLogging.js +135 -136
  943. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  944. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +87 -86
  945. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  946. package/lib/esm/rpc/web/WebAppRpcProtocol.js +112 -112
  947. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  948. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts +67 -71
  949. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  950. package/lib/esm/rpc/web/WebAppRpcRequest.js +235 -370
  951. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  952. package/lib/esm/rpc/web/multipart/RpcMultipartParser.d.ts +32 -33
  953. package/lib/esm/rpc/web/multipart/RpcMultipartParser.d.ts.map +1 -1
  954. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js +368 -355
  955. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  956. package/lib/esm/tile/B3dmTileIO.d.ts +19 -19
  957. package/lib/esm/tile/B3dmTileIO.js +62 -62
  958. package/lib/esm/tile/B3dmTileIO.js.map +1 -1
  959. package/lib/esm/tile/CompositeTileIO.d.ts +15 -15
  960. package/lib/esm/tile/CompositeTileIO.js +22 -22
  961. package/lib/esm/tile/CompositeTileIO.js.map +1 -1
  962. package/lib/esm/tile/ElementGraphics.d.ts +145 -134
  963. package/lib/esm/tile/ElementGraphics.d.ts.map +1 -1
  964. package/lib/esm/tile/ElementGraphics.js +8 -8
  965. package/lib/esm/tile/ElementGraphics.js.map +1 -1
  966. package/lib/esm/tile/GltfTileIO.d.ts +45 -45
  967. package/lib/esm/tile/GltfTileIO.js +105 -105
  968. package/lib/esm/tile/GltfTileIO.js.map +1 -1
  969. package/lib/esm/tile/I3dmTileIO.d.ts +20 -20
  970. package/lib/esm/tile/I3dmTileIO.js +36 -36
  971. package/lib/esm/tile/I3dmTileIO.js.map +1 -1
  972. package/lib/esm/tile/IModelTileIO.d.ts +75 -75
  973. package/lib/esm/tile/IModelTileIO.js +90 -90
  974. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  975. package/lib/esm/tile/PntsTileIO.d.ts +17 -17
  976. package/lib/esm/tile/PntsTileIO.js +22 -22
  977. package/lib/esm/tile/PntsTileIO.js.map +1 -1
  978. package/lib/esm/tile/TileIO.d.ts +66 -66
  979. package/lib/esm/tile/TileIO.js +110 -110
  980. package/lib/esm/tile/TileIO.js.map +1 -1
  981. package/lib/esm/tile/TileMetadata.d.ts +228 -228
  982. package/lib/esm/tile/TileMetadata.js +661 -661
  983. package/lib/esm/tile/TileMetadata.js.map +1 -1
  984. package/package.json +8 -10
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayStyleSettings.js","sourceRoot":"","sources":["../../src/DisplayStyleSettings.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAE/B,sDAE6B;AAE7B,yDAAsD;AACtD,mDAAoE;AACpE,mEAA8F;AAC9F,2CAAwD;AACxD,yCAAqD;AAErD,6CAA0C;AAC1C,yDAA+E;AAC/E,qDAA+E;AAC/E,+DAA4D;AAC5D,mDAAoE;AACpE,6DAA2E;AAC3E,qEAA+F;AAE/F,+CAA8D;AAC9D,iDAA+E;AAE/E,uDAA+F;AAC/F,2CAAuD;AACvD,0DAAuD;AACvD,qCAAkC;AAClC,qDAA2D;AAC3D,+DAA4G;AAC5G,+EAAsG;AACtG,iFAAyG;AAyCzG;;;GAGG;AACH,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,uIAAuI;IACvI,mDAAQ,CAAA;IACR;;;OAGG;IACH,uDAAU,CAAA;AACZ,CAAC,EARW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQzB;AAiJD;;;;;;;GAOG;AACH,MAAM,gBAAgB;IAKpB,YAAmB,IAA+B;QAF1C,mBAAc,GAAG,KAAK,CAAC;QAG7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC;YACtC,IAAI,CAAC,IAAI,GAAG,IAAI,uCAAwB,CAAC,gCAAiB,CAAC,WAAW,CAAC,kCAAmB,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;;YAE9H,IAAI,CAAC,IAAI,GAAG,IAAI,uCAAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACpE,CAAC;IAEM,KAAK,CAAC,GAAwD;QACnE,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE;YACpB,IAAI,CAAC,IAAI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,IAAI,CAAC,gBAAgB,GAAG,IAAI,GAAG,EAAkC,CAAC;YAClE,IAAI,CAAC,OAAO,CAAC,eAAe,GAAG,EAAE,CAAC;SACnC;QAED,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,CAAC,eAAgB,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC7D,CAAC;IAED,oJAAoJ;IACpJ,IAAW,sBAAsB;QAC/B,OAAO,SAAS,KAAK,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3F,CAAC;CACF;AA7TD,wDA6TC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module DisplayStyles\n */\n\n// cspell:ignore greyscale ovrs\n\nimport {\n assert, BeEvent, CompressedId64Set, Id64, Id64Array, Id64String, JsonUtils, MutableCompressedId64Set, OrderedId64Iterable,\n} from \"@itwin/core-bentley\";\nimport { XYZProps } from \"@itwin/core-geometry\";\nimport { AmbientOcclusion } from \"./AmbientOcclusion\";\nimport { AnalysisStyle, AnalysisStyleProps } from \"./AnalysisStyle\";\nimport { BackgroundMapSettings, PersistentBackgroundMapProps } from \"./BackgroundMapSettings\";\nimport { ClipStyle, ClipStyleProps } from \"./ClipStyle\";\nimport { ColorDef, ColorDefProps } from \"./ColorDef\";\nimport { DefinitionElementProps } from \"./ElementProps\";\nimport { HiddenLine } from \"./HiddenLine\";\nimport { FeatureAppearance, FeatureAppearanceProps } from \"./FeatureSymbology\";\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\nimport { SubCategoryOverride } from \"./SubCategoryOverride\";\nimport { LightSettings, LightSettingsProps } from \"./LightSettings\";\nimport { MapImageryProps, MapImagerySettings } from \"./MapImagerySettings\";\nimport { PlanProjectionSettings, PlanProjectionSettingsProps } from \"./PlanProjectionSettings\";\nimport { RenderSchedule } from \"./RenderSchedule\";\nimport { Environment, EnvironmentProps } from \"./Environment\";\nimport { SolarShadowSettings, SolarShadowSettingsProps } from \"./SolarShadows\";\nimport { SubCategoryAppearance } from \"./SubCategoryAppearance\";\nimport { ThematicDisplay, ThematicDisplayMode, ThematicDisplayProps } from \"./ThematicDisplay\";\nimport { ViewFlagProps, ViewFlags } from \"./ViewFlags\";\nimport { Cartographic } from \"./geometry/Cartographic\";\nimport { IModel } from \"./IModel\";\nimport { calculateSolarDirection } from \"./SolarCalculate\";\nimport { ContextRealityModel, ContextRealityModelProps, ContextRealityModels } from \"./ContextRealityModel\";\nimport { RealityModelDisplayProps, RealityModelDisplaySettings } from \"./RealityModelDisplaySettings\";\nimport { WhiteOnWhiteReversalProps, WhiteOnWhiteReversalSettings } from \"./WhiteOnWhiteReversalSettings\";\n\n/** Describes the [[SubCategoryOverride]]s applied to a [[SubCategory]] by a [[DisplayStyle]].\n * @see [[DisplayStyleSettingsProps]]\n * @public\n * @extensions\n */\nexport interface DisplayStyleSubCategoryProps extends SubCategoryAppearance.Props {\n /** The Id of the [[SubCategory]] whose appearance is to be overridden. */\n subCategory?: Id64String;\n}\n\n/** A [[FeatureAppearanceProps]] applied to a specific model to override its appearance within the context of a [DisplayStyle]($backend).\n * @see [[DisplayStyleSettingsProps.modelOvr]].\n * @public\n * @extensions\n */\nexport interface DisplayStyleModelAppearanceProps extends FeatureAppearanceProps {\n /** The Id of the model whose appearance is to be overridden. */\n modelId: Id64String;\n}\n\n/** [[RealityModelDisplaySettings]] applied to a reality [Model]($backend) to change how it is rendered within the context of a [DisplayStyle]($backend).\n * @see [[DisplayStyleSettingsProps.realityModelDisplay]].\n * @beta\n */\nexport interface DisplayStyleRealityModelDisplayProps extends RealityModelDisplayProps {\n /** The Id of the reality [Model]($backend) to which the settings apply. */\n modelId?: Id64String;\n}\n\n/** A [[PlanarClipMaskProps]] associated with a specific reality model.\n * @see [[DisplayStyleSettingsProps.planarClipOvr]].\n * @public\n * @extensions\n */\nexport interface DisplayStylePlanarClipMaskProps extends PlanarClipMaskProps {\n /** The Id of the model to mask. */\n modelId?: Id64String;\n}\n\n/** Describes the style in which monochrome color is applied by a [[DisplayStyleSettings]].\n * @public\n * @extensions\n */\nexport enum MonochromeMode {\n /** The color of the geometry is replaced with the monochrome color. e.g., if monochrome color is white, the geometry will be white. */\n Flat = 0,\n /** The color of surfaces is computed as normal, then scaled to a shade of the monochrome color based on the surface color's intensity.\n * For example, if the monochrome color is white, this results in a greyscale effect.\n * Geometry other than surfaces is treated the same as [[MonochromeMode.Flat]].\n */\n Scaled = 1,\n}\n\n/** JSON representation of the [[DisplayStyleSettings]] associated with a [[DisplayStyleProps]].\n * These settings are not stored directly as members of the [[DisplayStyleProps]]. Instead, they are stored\n * as members of [[DisplayStyleProps.jsonProperties.styles]].\n * @public\n * @extensions\n */\nexport interface DisplayStyleSettingsProps {\n /** See [[DisplayStyleSettings.viewFlags]].\n * @note Be careful with the case of this field - it is spelled in all lower-case letters, while [[DisplayStyleSettings.viewFlags]] is spelled `viewFlags`.\n */\n viewflags?: ViewFlagProps;\n /** See [[DisplayStyleSettings.backgroundColor]]. */\n backgroundColor?: ColorDefProps;\n /** See [[DisplayStyleSettings.monochromeColor]]. */\n monochromeColor?: ColorDefProps;\n /** See [[DisplayStyleSettings.monochromeMode]]. */\n monochromeMode?: MonochromeMode;\n /** See [[DisplayStyleSettings.analysisStyle]]. */\n analysisStyle?: AnalysisStyleProps;\n /** See [[DisplayStyleSettings.analysisFraction]]. */\n analysisFraction?: number;\n /** See [[DisplayStyleSettings.scheduleScriptProps]]. */\n scheduleScript?: RenderSchedule.ScriptProps;\n /** See [[DisplayStyleSettings.renderTimeline]]. */\n renderTimeline?: Id64String;\n /** See [[DisplayStyleSettings.timePoint]]. */\n timePoint?: number;\n /** Overrides applied to the appearances of subcategories in the view.\n * See [[DisplayStyleSettings.overrideSubCategory]].\n */\n subCategoryOvr?: DisplayStyleSubCategoryProps[];\n /** See [[DisplayStyleSettings.backgroundMap]]. */\n backgroundMap?: PersistentBackgroundMapProps;\n /** See [[DisplayStyleSettings.contextRealityModels]]. */\n contextRealityModels?: ContextRealityModelProps[];\n /** Ids of elements not to be displayed in the view. Prefer the compressed format, especially when sending between frontend and backend - the number of Ids may be quite large.\n * See [[DisplayStyleSettings.excludedElements]].\n */\n excludedElements?: Id64Array | CompressedId64Set;\n /** See [[DisplayStyleSettings.mapImagery]].\n * @beta\n */\n mapImagery?: MapImageryProps;\n /** Overrides applied to the appearance of models in the view.\n * See [[DisplayStyleSettings.overrideModelAppearance]].\n */\n modelOvr?: DisplayStyleModelAppearanceProps[];\n /** Display settings applied to specific reality models in the view.\n * @see [[DisplayStyleSettings.setRealityModelDisplaySettings]].\n * @beta\n */\n realityModelDisplay?: DisplayStyleRealityModelDisplayProps[];\n /** See [[DisplayStyleSettings.clipStyle]]. */\n clipStyle?: ClipStyleProps;\n /** See [[DisplayStyleSettings.planarClipMasks]]. */\n planarClipOvr?: DisplayStylePlanarClipMaskProps[];\n /** See [[DisplayStyleSettings.whiteOnWhiteReversal]]. */\n whiteOnWhiteReversal?: WhiteOnWhiteReversalProps;\n}\n\n/** JSON representation of [[DisplayStyle3dSettings]] associated with a [[DisplayStyle3dProps]].\n * @public\n * @extensions\n */\nexport interface DisplayStyle3dSettingsProps extends DisplayStyleSettingsProps {\n /** See [[DisplayStyle3dSettings.environment. */\n environment?: EnvironmentProps;\n /** See [[DisplayStyle3dSettings.thematic. */\n thematic?: ThematicDisplayProps;\n /** See [[DisplayStyle3dSettings.hiddenLineSettings. */\n hline?: HiddenLine.SettingsProps;\n /** See [[DisplayStyle3dSettings.ambientOcclusionSettings]]. */\n ao?: AmbientOcclusion.Props;\n /** See [[DisplayStyle3dSettings.solarShadows]]. */\n solarShadows?: SolarShadowSettingsProps;\n /** See [[DisplayStyle3dSettings.lights]]. */\n lights?: LightSettingsProps;\n /** See [[DisplayStyle3dSettings.planProjections. */\n planProjections?: { [modelId: string]: PlanProjectionSettingsProps };\n /** Old lighting settings - only `sunDir` was ever used; it is now part of [[lights]].\n * DisplayStyle3dSettings will construct a LightSettings from sceneLights.sunDir IFF [[lights]] is not present.\n * @internal\n */\n sceneLights?: { sunDir?: XYZProps };\n}\n\n/** JSON representation of a [[DisplayStyle]] or [[DisplayStyleState]].\n * @public\n * @extensions\n */\nexport interface DisplayStyleProps extends DefinitionElementProps {\n /** Display styles store their settings in a `styles` property within [[ElementProps.jsonProperties]]. */\n jsonProperties?: {\n styles?: DisplayStyleSettingsProps;\n };\n}\n\n/** JSON representation of a [[DisplayStyle3d]] or [[DisplayStyle3dState]].\n * @public\n * @extensions\n */\nexport interface DisplayStyle3dProps extends DisplayStyleProps {\n /** Display styles store their settings in a `styles` property within [[ElementProps.jsonProperties]]. */\n jsonProperties?: {\n styles?: DisplayStyle3dSettingsProps;\n };\n}\n\n/** Controls which settings are serialized by [[DisplayStyleSettings.toOverrides]]. A display style includes some settings that are specific to a given iModel - for example,\n * the subcategory overrides are indexed by subcategory Ids and model appearance overrides are indexed by model ids. Other settings are specific to a given iTwin, like the set of displayed context reality models. Such settings can be useful\n * when creating display style overrides intended for use with a specific iModel or iTwin, but should be omitted when creating general-purpose display style overrides intended\n * for use with any iModel or iTwin. This is the default behavior if no more specific options are provided.\n * @public\n * @extensions\n */\nexport interface DisplayStyleOverridesOptions {\n /** Serialize all settings. Applying the resultant [[DisplayStyleSettingsProps]] will produce a [[DisplayStyleSettings]] identical to the original settings. */\n includeAll?: true;\n /** Serialize iModel-specific settings. These settings are only meaningful within the context of a specific iModel. Setting this to `true` implies all iTwin-specific settings will be serialized too.\n * The following are iModel-specific settings:\n * * Subcategory overrides.\n * * Model Appearance overrides.\n * * Classifiers associated with context reality models.\n * * Analysis style.\n * * Schedule script.\n * * Excluded elements.\n * * Plan projection settings.\n * * Thematic sensor settings and height range. If iModel-specific settings are *not* serialized, sensors will be omitted and, for thematic height mode, the range will be omitted.\n * * If the display style settings are associated with a [DisplayStyleState]($frontend), then overriding thematic settings will compute a default height range based on the iModel's project extents.\n */\n includeIModelSpecific?: true;\n /** Serialize iTwin-specific settings. These settings are only meaningful within the context of a specific iTwin. These settings are always included if `includeIModelSpecific` is `true`.\n * The following are iTwin-specific settings:\n * * Context reality models. If iModel-specific settings are *not* serialized, the classifiers will be omitted.\n * * Time point.\n */\n includeITwinSpecific?: true;\n /** Serialize settings related to drawing aid decorations (the ACS triad and the grid). */\n includeDrawingAids?: true;\n /** Serialize the background map settings. */\n includeBackgroundMap?: true;\n}\n\n/** DisplayStyleSettings initially persisted its excluded elements as an array of Id64Strings in JSON, and exposed them as a Set<string>.\n * This becomes problematic when these arrays become very large, in terms of the amount of data and the time required to convert them to a Set.\n * The Ids are now persisted to JSON as a [[CompressedId64Set]], significantly reducing their size. However, for backwards API compatibility we must\n * continue to expose [[DisplayStyleSettings.excludedElements]] as a Set<string>. The [[ExcludedElements]] class tries to minimize the impact of that requirement by\n * maintaining the Ids primarily as a [[MutableCompressedId64Set]], only allocating the Set<string> if a caller actually requests it.\n * The only operation Set provides more efficiently than MutableCompressedId64Set is checking for the presence of an Id (the `has()` method).\n * @internal\n */\nclass ExcludedElements implements OrderedId64Iterable {\n private readonly _json: DisplayStyleSettingsProps;\n private readonly _ids: MutableCompressedId64Set;\n private _synchronizing = false;\n\n public constructor(json: DisplayStyleSettingsProps) {\n this._json = json;\n if (Array.isArray(json.excludedElements))\n this._ids = new MutableCompressedId64Set(CompressedId64Set.compressIds(OrderedId64Iterable.sortArray(json.excludedElements)));\n else\n this._ids = new MutableCompressedId64Set(json.excludedElements);\n }\n\n public reset(ids: CompressedId64Set | OrderedId64Iterable | undefined) {\n this.synchronize(() => {\n this._ids.reset((ids && \"string\" !== typeof ids) ? CompressedId64Set.compressIds(ids) : ids);\n });\n }\n\n public get ids(): CompressedId64Set {\n return this._ids.ids;\n }\n\n public add(ids: Iterable<Id64String>): void {\n this.synchronize(() => {\n for (const id of ids)\n this._ids.add(id);\n });\n }\n\n public delete(ids: Iterable<Id64String>): void {\n this.synchronize(() => {\n for (const id of ids)\n this._ids.delete(id);\n });\n }\n\n public [Symbol.iterator]() {\n return this._ids[Symbol.iterator]();\n }\n\n /** The JSON must be kept up-to-date at all times. */\n private synchronize(func: () => void): void {\n if (this._synchronizing)\n return;\n\n this._synchronizing = true;\n try {\n func();\n } finally {\n this._synchronizing = false;\n\n const ids = this._ids.ids;\n if (0 === ids.length)\n delete this._json.excludedElements;\n else\n this._json.excludedElements = ids;\n }\n }\n}\n\ntype OverridesArrayKey = \"subCategoryOvr\" | \"modelOvr\" | \"planarClipOvr\" | \"realityModelDisplay\";\n\n/** An implementation of Map that is based on a JSON array, used for a display styles subcategory overrides, model appearance overrides,\n * and planar clip masks. Ensures:\n * - JSON representation kept in sync with changes to map; and\n * - Events dispatched when map contents change.\n */\nclass OverridesMap<OverrideProps, Override> extends Map<Id64String, Override> {\n // This is required for mock framework used by ui libraries, which otherwise try to clone this as a standard Map.\n public override get [Symbol.toStringTag]() { return \"OverridesMap\"; }\n\n public constructor(\n private readonly _json: DisplayStyleSettingsProps,\n private readonly _arrayKey: OverridesArrayKey,\n private readonly _event: BeEvent<(id: Id64String, ovr: Override | undefined) => void>,\n private readonly _idFromProps: (props: OverrideProps) => Id64String | undefined,\n private readonly _overrideToProps: (ovr: Override, id: Id64String) => OverrideProps,\n private readonly _overrideFromProps: (props: OverrideProps) => Override | undefined) {\n super();\n this.populate();\n }\n\n public override set(id: Id64String, override: Override): this {\n this._event.raiseEvent(id, override);\n super.set(id, override);\n\n const index = this.findOrAllocateIndex(id);\n const array = this._array;\n assert(undefined !== array);\n array[index] = this._overrideToProps(override, id);\n\n return this;\n }\n\n public override delete(id: Id64String): boolean {\n this._event.raiseEvent(id, undefined);\n if (!super.delete(id))\n return false;\n\n const index = this.findExistingIndex(id);\n if (undefined !== index) {\n assert(undefined !== this._array);\n this._array.splice(index, 1);\n }\n\n return true;\n }\n\n public override clear(): void {\n for (const id of this.keys())\n this.delete(id);\n\n this._json[this._arrayKey] = undefined;\n }\n\n public populate(): void {\n super.clear();\n\n const ovrs = this._array;\n if (!ovrs)\n return;\n\n for (const props of ovrs) {\n const id = this._idFromProps(props);\n if (undefined !== id && Id64.isValidId64(id)) {\n const ovr = this._overrideFromProps(props);\n if (ovr)\n super.set(id, ovr);\n }\n }\n }\n\n private get _array(): OverrideProps[] | undefined {\n return JsonUtils.asArray(this._json[this._arrayKey]);\n }\n\n private findOrAllocateIndex(id: Id64String): number {\n const index = this.findExistingIndex(id);\n if (undefined !== index)\n return index;\n\n let ovrs = this._array;\n if (!ovrs)\n ovrs = this._json[this._arrayKey] = [];\n\n return ovrs.length;\n }\n\n private findExistingIndex(id: Id64String): number | undefined {\n const ovrs = this._array;\n if (!ovrs)\n return undefined;\n\n for (let i = 0; i < ovrs.length; i++)\n if (this._idFromProps(ovrs[i]) === id)\n return i;\n\n return undefined;\n }\n}\n\n/** Options supplied when constructing a [[DisplayStyleSettings]].\n * @public\n * @extensions\n */\nexport interface DisplayStyleSettingsOptions {\n /** A function that instantiates a [[ContextRealityModel]] to be stored in [[DisplayStyleSettings.contextRealityModels]]. */\n createContextRealityModel?: (props: ContextRealityModelProps) => ContextRealityModel;\n}\n\n/** Provides access to the settings defined by a [[DisplayStyle]] or [[DisplayStyleState]], and ensures that\n * the style's JSON properties are kept in sync.\n * @see [[DisplayStyleSettingsProps]] for the JSON representation of these settings.\n * @public\n */\nexport class DisplayStyleSettings {\n protected readonly _json: DisplayStyleSettingsProps;\n private _viewFlags: ViewFlags;\n private _background: ColorDef;\n private _monochrome: ColorDef;\n private _monochromeMode: MonochromeMode;\n private readonly _subCategoryOverrides: OverridesMap<DisplayStyleSubCategoryProps, SubCategoryOverride>;\n private readonly _modelAppearanceOverrides: OverridesMap<DisplayStyleModelAppearanceProps, FeatureAppearance>;\n private readonly _realityModelDisplaySettings: OverridesMap<DisplayStyleRealityModelDisplayProps, RealityModelDisplaySettings>;\n private readonly _planarClipMasks: OverridesMap<DisplayStylePlanarClipMaskProps, PlanarClipMaskSettings>;\n private readonly _excludedElements: ExcludedElements;\n private _backgroundMap: BackgroundMapSettings;\n private _mapImagery: MapImagerySettings;\n private _analysisStyle?: AnalysisStyle;\n private _clipStyle: ClipStyle;\n private readonly _contextRealityModels: ContextRealityModels;\n private _whiteOnWhiteReversal: WhiteOnWhiteReversalSettings;\n\n /** Returns true if this is a [[DisplayStyle3dSettings]]. */\n public is3d(): this is DisplayStyle3dSettings {\n return false;\n }\n\n /** Planar clip masks to be applied to persistent reality models (@see [SpatialModelState.isRealityModel]($frontend).\n * The key for each entry is the Id of the model to which the mask settings apply.\n */\n public get planarClipMasks(): Map<Id64String, PlanarClipMaskSettings> {\n return this._planarClipMasks;\n }\n\n /** Reality models to be displayed in the view. */\n public get contextRealityModels(): ContextRealityModels {\n return this._contextRealityModels;\n }\n\n /** Event raised by [[applyOverrides]] just before the overrides are applied. */\n public readonly onApplyOverrides = new BeEvent<(overrides: Readonly<DisplayStyleSettingsProps>) => void>();\n /** Event raised by [[applyOverrides]] after the overrides are applied. */\n public readonly onOverridesApplied = new BeEvent<(overrides: Readonly<DisplayStyleSettingsProps>) => void>();\n /** Event raised just prior to assignment to the [[viewFlags]] property. */\n public readonly onViewFlagsChanged = new BeEvent<(newFlags: Readonly<ViewFlags>) => void>();\n /** Event raised just prior to assignment to the [[backgroundColor]] property. */\n public readonly onBackgroundColorChanged = new BeEvent<(newColor: ColorDef) => void>();\n /** Event raised just prior to assignment to the [[monochromeColor]] property. */\n public readonly onMonochromeColorChanged = new BeEvent<(newColor: ColorDef) => void>();\n /** Event raised just prior to assignment to the [[monochromeMode]] property. */\n public readonly onMonochromeModeChanged = new BeEvent<(newMode: MonochromeMode) => void>();\n /** Event raised just prior to assignment to the [[backgroundMap]] property. */\n public readonly onBackgroundMapChanged = new BeEvent<(newMap: BackgroundMapSettings) => void>();\n /** Event raised just prior to assignment to the [[mapImagery]] property.\n * @beta\n */\n public readonly onMapImageryChanged = new BeEvent<(newImagery: Readonly<MapImagerySettings>) => void>();\n /** Event raised just prior to assignment to the `scheduleScriptProps` property.\n * @see [[onRenderTimelineChanged]] to be notified when the [[renderTimeline]] property from which a script can be obtained is changed.\n */\n public readonly onScheduleScriptPropsChanged = new BeEvent<(newProps: Readonly<RenderSchedule.ScriptProps> | undefined) => void>();\n\n /** Event raised just prior to assignment to the [[renderTimeline]] property. */\n public readonly onRenderTimelineChanged = new BeEvent<(newRenderTimeline: Id64String | undefined) => void>();\n /** Event raised just prior to assignment to the [[timePoint]] property. */\n public readonly onTimePointChanged = new BeEvent<(newTimePoint: number | undefined) => void>();\n /** Event raised just prior to assignment to the [[analysisStyle]] property. */\n public readonly onAnalysisStyleChanged = new BeEvent<(newStyle: Readonly<AnalysisStyle> | undefined) => void>();\n /** Event raised just prior to assignment to the [[analysisFraction]] property. */\n public readonly onAnalysisFractionChanged = new BeEvent<(newFraction: number) => void>();\n /** Event raised when the contents of [[excludedElementIds]] changes. */\n public readonly onExcludedElementsChanged = new BeEvent<() => void>();\n /** Event raised just prior to assignment to the [[clipStyle]] property. */\n public readonly onClipStyleChanged = new BeEvent<(newStyle: ClipStyle) => void>();\n /** Event raised when the [[SubCategoryOverride]]s change. */\n public readonly onSubCategoryOverridesChanged = new BeEvent<(subCategoryId: Id64String, newOverrides: SubCategoryOverride | undefined) => void>();\n /** Event raised just before changing the appearance override for a model. */\n public readonly onModelAppearanceOverrideChanged = new BeEvent<(modelId: Id64String, newAppearance: FeatureAppearance | undefined) => void>();\n /** Event raised just before [[setRealityModelDisplaySettings]] changes the display settings for a reality model.\n * @beta\n */\n public readonly onRealityModelDisplaySettingsChanged = new BeEvent<(modelId: Id64String, newSettings: RealityModelDisplaySettings | undefined) => void>();\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.thematic]] property. */\n public readonly onThematicChanged = new BeEvent<(newThematic: ThematicDisplay) => void>();\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.hiddenLineSettings]] property. */\n public readonly onHiddenLineSettingsChanged = new BeEvent<(newSettings: HiddenLine.Settings) => void>();\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.ambientOcclusionSettings]] property. */\n public readonly onAmbientOcclusionSettingsChanged = new BeEvent<(newSettings: AmbientOcclusion.Settings) => void>();\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.solarShadows]] property. */\n public readonly onSolarShadowsChanged = new BeEvent<(newSettings: SolarShadowSettings) => void>();\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.environment]] property. */\n public readonly onEnvironmentChanged = new BeEvent<(newEnv: Readonly<Environment>) => void>();\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.lights]] property. */\n public readonly onLightsChanged = new BeEvent<(newLights: LightSettings) => void>();\n /** Event raised just before changing the plan projection settings for a model. */\n public readonly onPlanProjectionSettingsChanged = new BeEvent<(modelId: Id64String, newSettings: PlanProjectionSettings | undefined) => void>();\n /** Event raised just before adding or removing an entry from [[planarClipMasks]]. */\n public readonly onPlanarClipMaskChanged = new BeEvent<(modelId: Id64String, newSettings: PlanarClipMaskSettings | undefined) => void>();\n /** Event raised just prior to assignment to the [[whiteOnWhiteReversal]] property. */\n public readonly onWhiteOnWhiteReversalChanged = new BeEvent<(newSettings: WhiteOnWhiteReversalSettings) => void>();\n\n /** Construct a new DisplayStyleSettings from an [[ElementProps.jsonProperties]].\n * @param jsonProperties An object with an optional `styles` property containing a display style's settings.\n * @param options Options for customizing the display style settings.\n * @note When the `DisplayStyleSetting`'s properties are modified by public setters, the `jsonProperties`'s `styles` object will be updated to reflect the change.\n * @note If `jsonProperties` contains no `styles` member, one will be added as an empty object.\n * @note Generally there is no reason to create an object of this type directly; a [[DisplayStyle]] or [[DisplayStyleState]] constructs one as part of its own construction.\n */\n public constructor(jsonProperties: { styles?: DisplayStyleSettingsProps }, options?: DisplayStyleSettingsOptions) {\n if (undefined === jsonProperties.styles)\n jsonProperties.styles = {};\n\n this._json = jsonProperties.styles;\n this._viewFlags = ViewFlags.fromJSON(this._json.viewflags);\n this._background = ColorDef.fromJSON(this._json.backgroundColor);\n\n this._monochrome = undefined !== this._json.monochromeColor ? ColorDef.fromJSON(this._json.monochromeColor) : ColorDef.white;\n this._monochromeMode = MonochromeMode.Flat === this._json.monochromeMode ? MonochromeMode.Flat : MonochromeMode.Scaled;\n\n this._backgroundMap = BackgroundMapSettings.fromPersistentJSON(this._json.backgroundMap);\n this._mapImagery = MapImagerySettings.createFromJSON(this._json.mapImagery, this._json.backgroundMap);\n\n // Ensure that if we used the deprecated imagery properties from this._backgroundMap to set up the base layer of this._mapImagery,\n // we update our JSON to include that base layer.\n this._json.mapImagery = this._mapImagery.toJSON();\n\n this._excludedElements = new ExcludedElements(this._json);\n\n if (this._json.analysisStyle)\n this._analysisStyle = AnalysisStyle.fromJSON(this._json.analysisStyle);\n\n this._whiteOnWhiteReversal = WhiteOnWhiteReversalSettings.fromJSON(this._json.whiteOnWhiteReversal);\n this._clipStyle = ClipStyle.fromJSON(this._json.clipStyle);\n\n this._subCategoryOverrides = new OverridesMap<DisplayStyleSubCategoryProps, SubCategoryOverride>(this._json, \"subCategoryOvr\", this.onSubCategoryOverridesChanged,\n (props) => props.subCategory,\n (ovr, subCategory) => { return { ...ovr.toJSON(), subCategory }; },\n (props) => {\n const ovr = SubCategoryOverride.fromJSON(props);\n return ovr.anyOverridden ? ovr : undefined;\n });\n\n this._modelAppearanceOverrides = new OverridesMap<DisplayStyleModelAppearanceProps, FeatureAppearance>(this._json, \"modelOvr\", this.onModelAppearanceOverrideChanged,\n (props) => props.modelId,\n (ovr, modelId) => { return { ...ovr.toJSON(), modelId }; },\n (props) => {\n const app = FeatureAppearance.fromJSON(props);\n return app.anyOverridden ? app : undefined;\n });\n\n this._realityModelDisplaySettings = new OverridesMap<DisplayStyleRealityModelDisplayProps, RealityModelDisplaySettings>(this._json, \"realityModelDisplay\", this.onRealityModelDisplaySettingsChanged,\n (props) => props.modelId,\n (settings, modelId) => { return { ...settings.toJSON(), modelId }; },\n (props) => RealityModelDisplaySettings.fromJSON(props),\n );\n\n this._planarClipMasks = new OverridesMap<DisplayStylePlanarClipMaskProps, PlanarClipMaskSettings>(this._json, \"planarClipOvr\", this.onPlanarClipMaskChanged,\n (props) => props.modelId,\n (ovr, modelId) => { return { ...ovr.toJSON(), modelId }; },\n (props) => {\n const settings = PlanarClipMaskSettings.fromJSON(props);\n return settings.isValid ? settings : undefined;\n });\n\n this._contextRealityModels = new ContextRealityModels(this._json, options?.createContextRealityModel);\n }\n\n /** Flags controlling various aspects of the display style. */\n public get viewFlags(): ViewFlags { return this._viewFlags; }\n public set viewFlags(flags: ViewFlags) {\n if (this.viewFlags.equals(flags))\n return;\n\n this.onViewFlagsChanged.raiseEvent(flags);\n this._viewFlags = flags;\n this._json.viewflags = flags.toJSON();\n }\n\n /** The color displayed in the view background - by default, [[ColorDef.black]]. */\n public get backgroundColor(): ColorDef { return this._background; }\n public set backgroundColor(color: ColorDef) {\n if (this.backgroundColor.equals(color))\n return;\n\n this.onBackgroundColorChanged.raiseEvent(color);\n this._background = color;\n this._json.backgroundColor = color.toJSON();\n }\n\n /** The color used to draw geometry when [[ViewFlags.monochrome]] is enabled - by default, [[ColorDef.white]].\n * The monochrome color is applied to all surfaces and linear geometry, but only applied to the **edges** of surfaces in [[RenderMode.Wireframe]].\n * @see [[monochromeMode]] to control how the color is applied.\n */\n public get monochromeColor(): ColorDef { return this._monochrome; }\n public set monochromeColor(color: ColorDef) {\n if (this.monochromeColor.equals(color))\n return;\n\n this.onMonochromeColorChanged.raiseEvent(color);\n this._monochrome = color;\n this._json.monochromeColor = color.toJSON();\n }\n\n /** The style in which [[monochromeColor]] is applied when [[ViewFlags.monochrome]] is enabled - by default, [[MonochromeMode.Scaled]]. */\n public get monochromeMode(): MonochromeMode { return this._monochromeMode; }\n public set monochromeMode(mode: MonochromeMode) {\n if (this.monochromeMode === mode)\n return;\n\n this.onMonochromeModeChanged.raiseEvent(mode);\n this._monochromeMode = mode;\n this._json.monochromeMode = mode;\n }\n\n /** Settings controlling display of the background map within views of geolocated models. */\n public get backgroundMap(): BackgroundMapSettings { return this._backgroundMap; }\n\n public set backgroundMap(map: BackgroundMapSettings) {\n if (!this.backgroundMap.equals(map)) {\n this.onBackgroundMapChanged.raiseEvent(map);\n this._backgroundMap = map; // it's an immutable type.\n this._json.backgroundMap = map.toPersistentJSON();\n }\n }\n\n /** Settings defining the map imagery layers to be displayed within the view.\n * @beta\n */\n public get mapImagery(): MapImagerySettings { return this._mapImagery; }\n\n public set mapImagery(mapImagery: MapImagerySettings) {\n this.onMapImageryChanged.raiseEvent(mapImagery);\n this._mapImagery = mapImagery;\n this._json.mapImagery = this._mapImagery.toJSON();\n }\n\n /** @internal\n * Handles keeping the map imagery layers in synch after changes have been made (used internally only by front end)\n */\n public synchMapImagery() {\n this.onMapImageryChanged.raiseEvent(this._mapImagery);\n this._json.mapImagery = this._mapImagery.toJSON();\n }\n\n /** The Id of a [RenderTimeline]($backend) element containing a [[RenderSchedule.Script]] used to animate the view.\n * If [[scheduleScriptProps]] is defined, it takes precedence over the script supplied by the RenderTimeline.\n * @note If this [[DisplayStyleSettings]] is associated with a [DisplayStyleState]($frontend), assigning to [[renderTimeline]] will enqueue asynchronous loading of\n * the script from the [RenderTimeline]($backend) element; for more readable code, prefer instead to `await` [DisplayStyleState.changeRenderTimeline]($frontend).\n * @see [[onRenderTimelineChanged]] to be notified of changes to this property.\n */\n public get renderTimeline(): Id64String | undefined {\n return this._json.renderTimeline;\n }\n public set renderTimeline(id: Id64String | undefined) {\n if (id !== this.renderTimeline) {\n this.onRenderTimelineChanged.raiseEvent(id);\n this._json.renderTimeline = id;\n }\n }\n\n /** JSON representation of a [[RenderSchedule.Script]] embedded in the display style describing how to animate the contents of the view over time.\n * This script, if present, takes precedence over a script supplied by [[renderTimeline]].\n * @see [[onScheduleScriptPropsChanged]] to be notified when this property changes.\n * @see [DisplayStyleState.scheduleScript]($frontend) to change the [[RenderSchedule.Script]] object directly rather than via JSON.\n */\n public get scheduleScriptProps(): RenderSchedule.ScriptProps | undefined {\n return this._json.scheduleScript;\n }\n public set scheduleScriptProps(props: RenderSchedule.ScriptProps | undefined) {\n this.onScheduleScriptPropsChanged.raiseEvent(props);\n this._json.scheduleScript = props;\n }\n\n /** The point in time currently reflected by the view, expressed in seconds in the [Unix epoch](https://en.wikipedia.org/wiki/Unix_time).\n * This identifies a point on the timeline of the style's [[RenderSchedule.Script]], if any; it may also affect display of four-dimensional reality models.\n * @see [[onTimePointChanged]] to be notified of changes to this property.\n */\n public get timePoint(): number | undefined {\n return this._json.timePoint;\n }\n public set timePoint(timePoint: number | undefined) {\n if (timePoint !== this.timePoint) {\n this.onTimePointChanged.raiseEvent(timePoint);\n this._json.timePoint = timePoint;\n }\n }\n\n /** Settings controlling the display of analytical models.\n * @see [[analysisFraction]] to control playback of the animation.\n */\n public get analysisStyle(): AnalysisStyle | undefined { return this._analysisStyle; }\n public set analysisStyle(style: AnalysisStyle | undefined) {\n if (style === this.analysisStyle)\n return;\n\n this.onAnalysisStyleChanged.raiseEvent(style);\n this._analysisStyle = style;\n if (style)\n this._json.analysisStyle = style.toJSON();\n else\n delete this._json.analysisStyle;\n }\n\n /** A floating point value in [0..1] indicating the current point in animation of the [[analysisStyle]], where 0 corresponds to the beginning of\n * the animation and 1 to the end. Default: 0.0.\n */\n public get analysisFraction(): number {\n const fraction = this._json.analysisFraction ?? 0;\n return Math.max(0, Math.min(1, fraction));\n }\n public set analysisFraction(fraction: number) {\n if (this.analysisFraction === fraction)\n return;\n\n this.onAnalysisFractionChanged.raiseEvent(fraction);\n this._json.analysisFraction = Math.max(0, Math.min(1, fraction));\n }\n\n /** Settings controlling how white-on-white reversal is applied when [[ViewFlags.whiteOnWhiteReversal]] is enabled. */\n public get whiteOnWhiteReversal(): WhiteOnWhiteReversalSettings { return this._whiteOnWhiteReversal; }\n public set whiteOnWhiteReversal(settings: WhiteOnWhiteReversalSettings) {\n if (settings.equals(this.whiteOnWhiteReversal))\n return;\n\n this.onWhiteOnWhiteReversalChanged.raiseEvent(settings);\n this._whiteOnWhiteReversal = settings;\n const json = settings.toJSON();\n if (json)\n this._json.whiteOnWhiteReversal = json;\n else\n delete this._json.whiteOnWhiteReversal;\n }\n\n /** Customize the way geometry belonging to a [[SubCategory]] is drawn by this display style.\n * @param id The Id of the SubCategory whose appearance is to be overridden.\n * @param ovr The overrides to apply to the [[SubCategoryAppearance]].\n * @see [[dropSubCategoryOverride]]\n */\n public overrideSubCategory(id: Id64String, ovr: SubCategoryOverride): void {\n this.subCategoryOverrides.set(id, ovr);\n }\n\n /** Remove any [[SubCategoryOverride]] applied to a [[SubCategoryAppearance]] by this style.\n * @param id The Id of the [[SubCategory]].\n * @see [[overrideSubCategory]]\n */\n public dropSubCategoryOverride(id: Id64String): void {\n this.subCategoryOverrides.delete(id);\n }\n\n /** The overrides applied by this style. */\n public get subCategoryOverrides(): Map<Id64String, SubCategoryOverride> {\n return this._subCategoryOverrides;\n }\n\n /** Obtain the override applied to a [[SubCategoryAppearance]] by this style.\n * @param id The Id of the [[SubCategory]].\n * @returns The corresponding SubCategoryOverride, or undefined if the SubCategory's appearance is not overridden.\n * @see [[overrideSubCategory]]\n */\n public getSubCategoryOverride(id: Id64String): SubCategoryOverride | undefined {\n return this.subCategoryOverrides.get(id);\n }\n\n /** Returns true if an [[SubCategoryOverride]]s are defined by this style. */\n public get hasSubCategoryOverride(): boolean {\n return this.subCategoryOverrides.size > 0;\n }\n\n /** Customize the way a [Model]($backend) is drawn by this display style.\n * @param modelId The Id of the [Model]($backend) whose appearance is to be overridden.\n * @param ovr The overrides to apply to the [Model]($backend) .\n * @see [[dropModelAppearanceOverride]]\n */\n public overrideModelAppearance(modelId: Id64String, ovr: FeatureAppearance): void {\n this.modelAppearanceOverrides.set(modelId, ovr);\n }\n\n /** Remove any appearance overrides applied to a [Model]($backend) by this style.\n * @param modelId The Id of the [Model]($backend) .\n * @param ovr The overrides to apply to the [Model]($backend) .\n * @see [[overrideModelAppearance]]\n */\n public dropModelAppearanceOverride(id: Id64String): void {\n this.modelAppearanceOverrides.delete(id);\n }\n\n /** The overrides applied by this style. */\n public get modelAppearanceOverrides(): Map<Id64String, FeatureAppearance> {\n return this._modelAppearanceOverrides;\n }\n\n /** Obtain the override applied to a [Model]($backend) by this style.\n * @param id The Id of the [Model]($backend).\n * @returns The corresponding FeatureAppearance, or undefined if the Model's appearance is not overridden.\n * @see [[overrideModelAppearance]]\n */\n public getModelAppearanceOverride(id: Id64String): FeatureAppearance | undefined {\n return this.modelAppearanceOverrides.get(id);\n }\n\n /** Returns true if model appearance overrides are defined by this style. */\n public get hasModelAppearanceOverride(): boolean {\n return this.modelAppearanceOverrides.size > 0;\n }\n\n /** Get any settings that override how the reality model with the specified Id is displayed.\n * @param modelId The Id of the [Model]($backend).\n * @returns the display settings, or `undefined` if no settings have been associated with `modelId`.\n * @see [[setRealityModelDisplaySettings]] to change the settings.\n * @beta\n */\n public getRealityModelDisplaySettings(modelId: Id64String): RealityModelDisplaySettings | undefined {\n return this._realityModelDisplaySettings.get(modelId);\n }\n\n /** Change the settings that control how the reality model with the specified Id is displayed.\n * @param modelId The Id of the [Model]($backend) to which the settings apply.\n * @param settings The settings to apply to the model, or `undefined` to clear any previous settings for that model.\n * @beta\n */\n public setRealityModelDisplaySettings(modelId: Id64String, settings: RealityModelDisplaySettings | undefined): void {\n if (settings)\n this._realityModelDisplaySettings.set(modelId, settings);\n else\n this._realityModelDisplaySettings.delete(modelId);\n }\n\n /** The set of elements that will not be drawn by this display style.\n * @returns An iterable over the elements' Ids.\n */\n public get excludedElementIds(): OrderedId64Iterable {\n return this._excludedElements;\n }\n\n /** @internal */\n public get compressedExcludedElementIds(): CompressedId64Set {\n return this._excludedElements.ids;\n }\n\n /** Add one or more elements to the set of elements not to be displayed.\n * @param id The Ids of the element(s) to be excluded.\n */\n public addExcludedElements(id: Id64String | Iterable<Id64String>) {\n this._excludedElements.add(\"string\" === typeof id ? [id] : id);\n this.onExcludedElementsChanged.raiseEvent();\n }\n\n /** Remove an element from the set of elements not to be displayed. */\n public dropExcludedElement(id: Id64String): void {\n this._excludedElements.delete([id]);\n this.onExcludedElementsChanged.raiseEvent();\n }\n\n /** Remove one or more elements from the set of elements not to be displayed.\n * @param id The Ids of the element(s) to be removed from the set of excluded elements.\n */\n public dropExcludedElements(id: Id64String | Iterable<Id64String>) {\n this._excludedElements.delete(\"string\" === typeof id ? [id] : id);\n this.onExcludedElementsChanged.raiseEvent();\n }\n\n /** Remove all elements from the set of elements not to be displayed. */\n public clearExcludedElements(): void {\n this._excludedElements.reset(undefined);\n this.onExcludedElementsChanged.raiseEvent();\n }\n\n /** The style applied to the view's [ClipVector]($core-geometry). */\n public get clipStyle(): ClipStyle {\n return this._clipStyle;\n }\n public set clipStyle(style: ClipStyle) {\n this.onClipStyleChanged.raiseEvent(style);\n this._clipStyle = style;\n if (style.matchesDefaults)\n delete this._json.clipStyle;\n else\n this._json.clipStyle = style.toJSON();\n }\n\n /** @internal */\n public toJSON(): DisplayStyleSettingsProps {\n return this._json;\n }\n\n /** Serialize a subset of these settings to JSON, such that they can be applied to another DisplayStyleSettings to selectively override those settings.\n * @param options Specifies which settings should be serialized. By default, settings that are specific to an iModel (e.g., subcategory overrides) or iTwin (e.g., context reality models)\n * are omitted, as are drawing aids (e.g., ACS triad and grid).\n * @returns a JSON representation of the selected settings suitable for passing to [[applyOverrides]].\n * @see [[applyOverrides]] to apply the overrides to another DisplayStyleSettings..\n */\n public toOverrides(options?: DisplayStyleOverridesOptions): DisplayStyleSettingsProps {\n if (options?.includeAll) {\n return {\n ...this.toJSON(),\n viewflags: this.viewFlags.toFullyDefinedJSON(),\n };\n }\n\n const viewflags: Partial<ViewFlagProps> = this.viewFlags.toFullyDefinedJSON();\n const props: DisplayStyleSettingsProps = {\n viewflags,\n backgroundColor: this.backgroundColor.toJSON(),\n monochromeColor: this.monochromeColor.toJSON(),\n monochromeMode: this.monochromeMode,\n whiteOnWhiteReversal: this.whiteOnWhiteReversal.toJSON() ?? { ignoreBackgroundColor: false },\n };\n\n if (options?.includeBackgroundMap) {\n props.backgroundMap = this.backgroundMap.toPersistentJSON();\n props.mapImagery = this.mapImagery.toJSON();\n } else {\n delete viewflags.backgroundMap;\n }\n\n if (!options?.includeDrawingAids) {\n delete viewflags.acs;\n delete viewflags.grid;\n }\n\n if (options?.includeITwinSpecific || options?.includeIModelSpecific) {\n props.timePoint = this.timePoint;\n if (this._json.contextRealityModels) {\n props.contextRealityModels = this._json.contextRealityModels;\n if (!options?.includeIModelSpecific)\n for (const model of this._json.contextRealityModels)\n delete model.classifiers;\n }\n }\n\n if (options?.includeIModelSpecific) {\n if (this.analysisStyle) {\n props.analysisStyle = this.analysisStyle.toJSON();\n props.analysisFraction = this.analysisFraction;\n }\n\n if (this.scheduleScriptProps)\n props.scheduleScript = [...this.scheduleScriptProps];\n\n if (this.renderTimeline)\n props.renderTimeline = this.renderTimeline;\n\n props.subCategoryOvr = this._json.subCategoryOvr ? [...this._json.subCategoryOvr] : [];\n props.modelOvr = this._json.modelOvr ? [...this._json.modelOvr] : [];\n props.excludedElements = this._excludedElements.ids;\n }\n\n return props;\n }\n\n /** Selectively override some of these settings. Any field that is explicitly defined by the input will be overridden in these settings; any fields left undefined in the input\n * will retain their current values in these settings. The input's [[ViewFlags]] are applied individually - only those flags that are explicitly defined will be overridden.\n * For example, the following overrides will set the render mode to \"smooth\", change the background color to white, turn shadows off, and leave all other settings intact:\n * ```ts\n * {\n * viewflags: {\n * renderMode: RenderMode.SmoothShade,\n * shadows: false,\n * },\n * backgroundColor: ColorByName.white,\n * }\n * ```\n * @see [[toOverrides]] to produce overrides from an existing DisplayStyleSettings.\n */\n public applyOverrides(overrides: DisplayStyleSettingsProps): void {\n this._applyOverrides(overrides);\n this.onOverridesApplied.raiseEvent(overrides);\n }\n\n /** @internal */\n protected _applyOverrides(overrides: DisplayStyleSettingsProps): void {\n this.onApplyOverrides.raiseEvent(overrides);\n\n if (overrides.viewflags) {\n this.viewFlags = ViewFlags.fromJSON({\n ...this.viewFlags.toJSON(),\n ...overrides.viewflags,\n });\n }\n\n if (undefined !== overrides.backgroundColor)\n this.backgroundColor = ColorDef.fromJSON(overrides.backgroundColor);\n\n if (undefined !== overrides.monochromeColor)\n this.monochromeColor = ColorDef.fromJSON(overrides.monochromeColor);\n\n if (undefined !== overrides.monochromeMode)\n this.monochromeMode = overrides.monochromeMode;\n\n if (overrides.backgroundMap)\n this.backgroundMap = BackgroundMapSettings.fromPersistentJSON(overrides.backgroundMap);\n\n if (overrides.mapImagery)\n this.mapImagery = MapImagerySettings.createFromJSON(overrides.mapImagery, this.backgroundMap.toPersistentJSON());\n\n if (undefined !== overrides.timePoint)\n this.timePoint = overrides.timePoint;\n\n if (overrides.contextRealityModels) {\n this.contextRealityModels.clear();\n for (const props of overrides.contextRealityModels)\n this.contextRealityModels.add(props);\n }\n\n if (overrides.analysisStyle)\n this.analysisStyle = AnalysisStyle.fromJSON(overrides.analysisStyle);\n\n if (overrides.whiteOnWhiteReversal)\n this.whiteOnWhiteReversal = WhiteOnWhiteReversalSettings.fromJSON(overrides.whiteOnWhiteReversal);\n\n if (undefined !== overrides.analysisFraction)\n this.analysisFraction = overrides.analysisFraction;\n\n if (overrides.scheduleScript)\n this.scheduleScriptProps = [...overrides.scheduleScript];\n\n if (overrides.renderTimeline)\n this.renderTimeline = overrides.renderTimeline;\n\n if (overrides.subCategoryOvr) {\n this._json.subCategoryOvr = [...overrides.subCategoryOvr];\n this._subCategoryOverrides.populate();\n }\n\n if (overrides.modelOvr) {\n this._json.modelOvr = [...overrides.modelOvr];\n this._modelAppearanceOverrides.populate();\n }\n\n if (overrides.realityModelDisplay) {\n this._json.realityModelDisplay = [...overrides.realityModelDisplay];\n this._realityModelDisplaySettings.populate();\n }\n\n if (overrides.excludedElements)\n this._excludedElements.reset(\"string\" === typeof overrides.excludedElements ? overrides.excludedElements : [...overrides.excludedElements]);\n\n this.onOverridesApplied.raiseEvent(overrides);\n }\n}\n\n/** Provides access to the settings defined by a [[DisplayStyle3d]] or [[DisplayStyle3dState]], and ensures that\n * the style's JSON properties are kept in sync.\n * @public\n */\nexport class DisplayStyle3dSettings extends DisplayStyleSettings {\n private _thematic: ThematicDisplay;\n private _hline: HiddenLine.Settings;\n private _ao: AmbientOcclusion.Settings;\n private _solarShadows: SolarShadowSettings;\n private _lights: LightSettings;\n private _environment: Environment;\n private _planProjections?: Map<string, PlanProjectionSettings>;\n\n private get _json3d(): DisplayStyle3dSettingsProps { return this._json as DisplayStyle3dSettingsProps; }\n\n public override is3d(): this is DisplayStyle3dSettings {\n return true;\n }\n\n public constructor(jsonProperties: { styles?: DisplayStyle3dSettingsProps }, options?: DisplayStyleSettingsOptions) {\n super(jsonProperties, options);\n this._thematic = ThematicDisplay.fromJSON(this._json3d.thematic);\n this._hline = HiddenLine.Settings.fromJSON(this._json3d.hline);\n this._ao = AmbientOcclusion.Settings.fromJSON(this._json3d.ao);\n this._solarShadows = SolarShadowSettings.fromJSON(this._json3d.solarShadows);\n this._environment = Environment.fromJSON(this._json3d.environment);\n\n // Very long ago we used to stick MicroStation's light settings into json.sceneLights. Later we started adding the sunDir.\n // We don't want any of MicroStation's settings. We do want to preserve the sunDir if present.\n if (this._json3d.lights) {\n this._lights = LightSettings.fromJSON(this._json3d.lights);\n } else {\n const sunDir = this._json3d.sceneLights?.sunDir;\n this._lights = LightSettings.fromJSON(sunDir ? { solar: { direction: sunDir } } : undefined);\n }\n\n this.populatePlanProjectionsFromJSON();\n }\n\n private populatePlanProjectionsFromJSON(): void {\n this._planProjections = undefined;\n const projections = this._json3d.planProjections;\n if (undefined !== projections) {\n for (const key of Object.keys(projections)) {\n const id = Id64.fromJSON(key);\n if (!Id64.isValidId64(id)) {\n delete projections[key];\n continue;\n }\n\n const settings = PlanProjectionSettings.fromJSON(projections[key]);\n if (undefined === settings) {\n delete projections[key];\n continue;\n }\n\n if (undefined === this._planProjections)\n this._planProjections = new Map<string, PlanProjectionSettings>();\n\n this._planProjections.set(id, settings);\n }\n }\n }\n\n /** @internal */\n public override toJSON(): DisplayStyle3dSettingsProps {\n return this._json3d;\n }\n\n /** @internal */\n public override toOverrides(options?: DisplayStyleOverridesOptions): DisplayStyle3dSettingsProps {\n const props = super.toOverrides(options) as DisplayStyle3dSettingsProps;\n if (options?.includeAll)\n return props;\n\n assert(undefined !== props.viewflags);\n\n props.environment = this.environment.toJSON();\n props.hline = this.hiddenLineSettings.toJSON();\n props.ao = this.ambientOcclusionSettings.toJSON();\n props.solarShadows = this.solarShadows.toJSON();\n props.lights = this.lights.toJSON();\n\n if (options?.includeIModelSpecific) {\n props.thematic = this.thematic.toJSON();\n if (this._json3d.planProjections)\n props.planProjections = { ...this._json3d.planProjections };\n } else if (ThematicDisplayMode.InverseDistanceWeightedSensors !== this.thematic.displayMode) {\n props.thematic = {\n ...this.thematic.toJSON(),\n sensorSettings: undefined,\n };\n\n if (ThematicDisplayMode.Height === props.thematic.displayMode) {\n // DisplayStyle3dState will compute range based on project extents.\n props.thematic.range = undefined;\n }\n }\n\n return props;\n }\n\n /** Selectively override some of these settings. Any field that is explicitly defined by the input will be overridden in these settings; any fields left undefined in the input\n * will retain their current values in these settings. The input's [[ViewFlags]] are applied individually - only those flags that are explicitly defined will be overridden.\n * For example, the following overrides will set the render mode to \"smooth\", change the background color to white, turn shadows off, and leave all other settings intact:\n * ```ts\n * {\n * viewflags: {\n * renderMode: RenderMode.SmoothShade,\n * shadows: false,\n * },\n * backgroundColor: ColorByName.white,\n * }\n * ```\n * @see [[toOverrides]] to produce overrides from an existing DisplayStyleSettings.\n * @internal override\n */\n public override applyOverrides(overrides: DisplayStyle3dSettingsProps): void {\n super._applyOverrides(overrides);\n\n if (overrides.environment)\n this.environment = Environment.fromJSON(overrides.environment);\n\n if (overrides.hline)\n this.hiddenLineSettings = HiddenLine.Settings.fromJSON(overrides.hline);\n\n if (overrides.ao)\n this.ambientOcclusionSettings = AmbientOcclusion.Settings.fromJSON(overrides.ao);\n\n if (overrides.solarShadows)\n this.solarShadows = SolarShadowSettings.fromJSON(overrides.solarShadows);\n\n if (overrides.lights)\n this.lights = LightSettings.fromJSON(overrides.lights);\n\n if (overrides.planProjections) {\n this._json3d.planProjections = { ...overrides.planProjections };\n this.populatePlanProjectionsFromJSON();\n }\n\n if (overrides.thematic)\n this.thematic = ThematicDisplay.fromJSON(overrides.thematic);\n\n this.onOverridesApplied.raiseEvent(overrides);\n }\n\n /** The settings that control thematic display. */\n public get thematic(): ThematicDisplay { return this._thematic; }\n public set thematic(thematic: ThematicDisplay) {\n if (thematic.equals(this.thematic))\n return;\n\n this.onThematicChanged.raiseEvent(thematic);\n this._thematic = thematic;\n this._json3d.thematic = thematic.toJSON();\n }\n\n /** The settings that control how visible and hidden edges are displayed. */\n public get hiddenLineSettings(): HiddenLine.Settings { return this._hline; }\n public set hiddenLineSettings(hline: HiddenLine.Settings) {\n if (hline.equals(this.hiddenLineSettings))\n return;\n\n this.onHiddenLineSettingsChanged.raiseEvent(hline);\n this._hline = hline;\n this._json3d.hline = hline.toJSON();\n }\n\n /** The settings that control how ambient occlusion is displayed. */\n public get ambientOcclusionSettings(): AmbientOcclusion.Settings { return this._ao; }\n public set ambientOcclusionSettings(ao: AmbientOcclusion.Settings) {\n this.onAmbientOcclusionSettingsChanged.raiseEvent(ao);\n this._ao = ao;\n this._json3d.ao = ao.toJSON();\n }\n\n /** The settings that control how solar shadows are displayed. */\n public get solarShadows(): SolarShadowSettings {\n return this._solarShadows;\n }\n public set solarShadows(solarShadows: SolarShadowSettings) {\n if (solarShadows.equals(this.solarShadows))\n return;\n\n this.onSolarShadowsChanged.raiseEvent(solarShadows);\n this._solarShadows = solarShadows;\n const json = solarShadows.toJSON();\n if (!json)\n delete this._json3d.solarShadows;\n else\n this._json3d.solarShadows = json;\n }\n\n /** Controls the display of a [[SkyBox]] and [[GroundPlane]].\n * @public\n */\n public get environment(): Environment {\n return this._environment;\n }\n public set environment(environment: Environment) {\n if (environment !== this.environment) {\n this.onEnvironmentChanged.raiseEvent(environment);\n this._environment = environment;\n this._json3d.environment = environment.toJSON();\n }\n }\n\n /** Toggle display of the [[environment]]'s [[SkyBox]].\n * @param display Whether to display the skybox, or `undefined` to toggle the current display.\n */\n public toggleSkyBox(display?: boolean): void {\n display = display ?? this.environment.displaySky;\n if (display !== this.environment.displaySky)\n this.environment = this.environment.withDisplay({ sky: display });\n }\n\n /** Toggle display of the [[environment]]'s [[GroundPlane]].\n * @param display Whether to display the ground plane, or `undefined` to toggle the current display.\n */\n public toggleGroundPlane(display?: boolean): void {\n display = display ?? this.environment.displayGround;\n if (display !== this.environment.displayGround)\n this.environment = this.environment.withDisplay({ ground: display });\n }\n\n public get lights(): LightSettings {\n return this._lights;\n }\n public set lights(lights: LightSettings) {\n if (this.lights.equals(lights))\n return;\n\n this.onLightsChanged.raiseEvent(lights);\n this._lights = lights;\n this._json3d.lights = lights.toJSON();\n }\n\n /** Adjust the solar light direction based on a date and time at a geographic location.\n * This replaces `this.lights` with a copy that records the time point and the computed direction.\n * @param timePoint The time in UNIX milliseconds.\n * @param location The geographic location; or an iModel, in which case the iModel's [[EcefLocation]] is used.\n * @see [[sunTime]] to get the current sun time.\n * @see [[clearSunTime]] to clear the time point.\n * @note If `location` is an iModel lacking an EcefLocation, a location in Exton, Pennsylvania will be used to compute the light direction instead.\n */\n public setSunTime(timePoint: number, location: IModel | Cartographic): void {\n let cartoCenter;\n if (location instanceof IModel) {\n if (location.ecefLocation)\n cartoCenter = Cartographic.fromEcef(location.ecefLocation.origin);\n\n if (!cartoCenter)\n cartoCenter = Cartographic.fromDegrees({ longitude: -75.17035, latitude: 39.954927, height: 0.0 });\n } else {\n cartoCenter = location;\n }\n\n const direction = calculateSolarDirection(new Date(timePoint), cartoCenter);\n this.lights = this.lights.clone({ solar: { direction, timePoint } });\n }\n\n /** Clear the solar time point stored in `this.lights.solarLight`.\n * @note This does not affect the solar light direction.\n * @see [[sunTime]] to get the current sun time.\n * @see [[setSunTime]] to set the time point and the solar light direction derived from it.\n */\n public clearSunTime(): void {\n if (this.lights.solar.timePoint === undefined)\n return;\n\n const solar = this.lights.solar.toJSON() ?? {};\n solar.timePoint = undefined;\n this.lights = this.lights.clone({ solar });\n }\n\n /** The time point from which the solar light direction was derived, in UNIX milliseconds.\n * @see [[setSunTime]] to change the time point and solar direction.\n * @see [[clearSunTime]] to reset the time point to `undefined`.\n */\n public get sunTime(): number | undefined {\n return this.lights.solar.timePoint;\n }\n\n /** Get the plan projection settings associated with the specified model, if defined. */\n public getPlanProjectionSettings(modelId: Id64String): PlanProjectionSettings | undefined {\n return undefined !== this._planProjections ? this._planProjections.get(modelId) : undefined;\n }\n\n /** Set or clear the plan projection settings associated with the specified model. */\n public setPlanProjectionSettings(modelId: Id64String, settings: PlanProjectionSettings | undefined): void {\n this.onPlanProjectionSettingsChanged.raiseEvent(modelId, settings);\n\n if (undefined === settings) {\n if (undefined !== this._planProjections) {\n assert(undefined !== this._json3d.planProjections);\n\n this._planProjections.delete(modelId);\n delete this._json3d.planProjections[modelId];\n\n if (0 === this._planProjections.size) {\n this._planProjections = undefined;\n delete this._json3d.planProjections;\n }\n }\n\n return;\n }\n\n if (undefined === this._planProjections) {\n this._planProjections = new Map<string, PlanProjectionSettings>();\n this._json3d.planProjections = {};\n }\n\n this._planProjections.set(modelId, settings);\n this._json3d.planProjections![modelId] = settings.toJSON();\n }\n\n /** An iterator over all of the defined plan projection settings. The iterator includes the Id of the model associated with each settings object. */\n public get planProjectionSettings(): Iterable<[Id64String, PlanProjectionSettings]> | undefined {\n return undefined !== this._planProjections ? this._planProjections.entries() : undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"DisplayStyleSettings.js","sourceRoot":"","sources":["../../src/DisplayStyleSettings.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;A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GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,CAAC,eAAgB,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC7D,CAAC;IAED,oJAAoJ;IACpJ,IAAW,sBAAsB;QAC/B,OAAO,SAAS,KAAK,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC3F,CAAC;CACF;AA7TD,wDA6TC","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\n// cspell:ignore greyscale ovrs\r\n\r\nimport {\r\n assert, BeEvent, CompressedId64Set, Id64, Id64Array, Id64String, JsonUtils, MutableCompressedId64Set, OrderedId64Iterable,\r\n} from \"@itwin/core-bentley\";\r\nimport { XYZProps } from \"@itwin/core-geometry\";\r\nimport { AmbientOcclusion } from \"./AmbientOcclusion\";\r\nimport { AnalysisStyle, AnalysisStyleProps } from \"./AnalysisStyle\";\r\nimport { BackgroundMapSettings, PersistentBackgroundMapProps } from \"./BackgroundMapSettings\";\r\nimport { ClipStyle, ClipStyleProps } from \"./ClipStyle\";\r\nimport { ColorDef, ColorDefProps } from \"./ColorDef\";\r\nimport { DefinitionElementProps } from \"./ElementProps\";\r\nimport { HiddenLine } from \"./HiddenLine\";\r\nimport { FeatureAppearance, FeatureAppearanceProps } from \"./FeatureSymbology\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { SubCategoryOverride } from \"./SubCategoryOverride\";\r\nimport { LightSettings, LightSettingsProps } from \"./LightSettings\";\r\nimport { MapImageryProps, MapImagerySettings } from \"./MapImagerySettings\";\r\nimport { PlanProjectionSettings, PlanProjectionSettingsProps } from \"./PlanProjectionSettings\";\r\nimport { RenderSchedule } from \"./RenderSchedule\";\r\nimport { Environment, EnvironmentProps } from \"./Environment\";\r\nimport { SolarShadowSettings, SolarShadowSettingsProps } from \"./SolarShadows\";\r\nimport { SubCategoryAppearance } from \"./SubCategoryAppearance\";\r\nimport { ThematicDisplay, ThematicDisplayMode, ThematicDisplayProps } from \"./ThematicDisplay\";\r\nimport { ViewFlagProps, ViewFlags } from \"./ViewFlags\";\r\nimport { Cartographic } from \"./geometry/Cartographic\";\r\nimport { IModel } from \"./IModel\";\r\nimport { calculateSolarDirection } from \"./SolarCalculate\";\r\nimport { ContextRealityModel, ContextRealityModelProps, ContextRealityModels } from \"./ContextRealityModel\";\r\nimport { RealityModelDisplayProps, RealityModelDisplaySettings } from \"./RealityModelDisplaySettings\";\r\nimport { WhiteOnWhiteReversalProps, WhiteOnWhiteReversalSettings } from \"./WhiteOnWhiteReversalSettings\";\r\n\r\n/** Describes the [[SubCategoryOverride]]s applied to a [[SubCategory]] by a [[DisplayStyle]].\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStyleSubCategoryProps extends SubCategoryAppearance.Props {\r\n /** The Id of the [[SubCategory]] whose appearance is to be overridden. */\r\n subCategory?: Id64String;\r\n}\r\n\r\n/** A [[FeatureAppearanceProps]] applied to a specific model to override its appearance within the context of a [DisplayStyle]($backend).\r\n * @see [[DisplayStyleSettingsProps.modelOvr]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStyleModelAppearanceProps extends FeatureAppearanceProps {\r\n /** The Id of the model whose appearance is to be overridden. */\r\n modelId: Id64String;\r\n}\r\n\r\n/** [[RealityModelDisplaySettings]] applied to a reality [Model]($backend) to change how it is rendered within the context of a [DisplayStyle]($backend).\r\n * @see [[DisplayStyleSettingsProps.realityModelDisplay]].\r\n * @beta\r\n */\r\nexport interface DisplayStyleRealityModelDisplayProps extends RealityModelDisplayProps {\r\n /** The Id of the reality [Model]($backend) to which the settings apply. */\r\n modelId?: Id64String;\r\n}\r\n\r\n/** A [[PlanarClipMaskProps]] associated with a specific reality model.\r\n * @see [[DisplayStyleSettingsProps.planarClipOvr]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStylePlanarClipMaskProps extends PlanarClipMaskProps {\r\n /** The Id of the model to mask. */\r\n modelId?: Id64String;\r\n}\r\n\r\n/** Describes the style in which monochrome color is applied by a [[DisplayStyleSettings]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum MonochromeMode {\r\n /** The color of the geometry is replaced with the monochrome color. e.g., if monochrome color is white, the geometry will be white. */\r\n Flat = 0,\r\n /** The color of surfaces is computed as normal, then scaled to a shade of the monochrome color based on the surface color's intensity.\r\n * For example, if the monochrome color is white, this results in a greyscale effect.\r\n * Geometry other than surfaces is treated the same as [[MonochromeMode.Flat]].\r\n */\r\n Scaled = 1,\r\n}\r\n\r\n/** JSON representation of the [[DisplayStyleSettings]] associated with a [[DisplayStyleProps]].\r\n * These settings are not stored directly as members of the [[DisplayStyleProps]]. Instead, they are stored\r\n * as members of [[DisplayStyleProps.jsonProperties.styles]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStyleSettingsProps {\r\n /** See [[DisplayStyleSettings.viewFlags]].\r\n * @note Be careful with the case of this field - it is spelled in all lower-case letters, while [[DisplayStyleSettings.viewFlags]] is spelled `viewFlags`.\r\n */\r\n viewflags?: ViewFlagProps;\r\n /** See [[DisplayStyleSettings.backgroundColor]]. */\r\n backgroundColor?: ColorDefProps;\r\n /** See [[DisplayStyleSettings.monochromeColor]]. */\r\n monochromeColor?: ColorDefProps;\r\n /** See [[DisplayStyleSettings.monochromeMode]]. */\r\n monochromeMode?: MonochromeMode;\r\n /** See [[DisplayStyleSettings.analysisStyle]]. */\r\n analysisStyle?: AnalysisStyleProps;\r\n /** See [[DisplayStyleSettings.analysisFraction]]. */\r\n analysisFraction?: number;\r\n /** See [[DisplayStyleSettings.scheduleScriptProps]]. */\r\n scheduleScript?: RenderSchedule.ScriptProps;\r\n /** See [[DisplayStyleSettings.renderTimeline]]. */\r\n renderTimeline?: Id64String;\r\n /** See [[DisplayStyleSettings.timePoint]]. */\r\n timePoint?: number;\r\n /** Overrides applied to the appearances of subcategories in the view.\r\n * See [[DisplayStyleSettings.overrideSubCategory]].\r\n */\r\n subCategoryOvr?: DisplayStyleSubCategoryProps[];\r\n /** See [[DisplayStyleSettings.backgroundMap]]. */\r\n backgroundMap?: PersistentBackgroundMapProps;\r\n /** See [[DisplayStyleSettings.contextRealityModels]]. */\r\n contextRealityModels?: ContextRealityModelProps[];\r\n /** Ids of elements not to be displayed in the view. Prefer the compressed format, especially when sending between frontend and backend - the number of Ids may be quite large.\r\n * See [[DisplayStyleSettings.excludedElements]].\r\n */\r\n excludedElements?: Id64Array | CompressedId64Set;\r\n /** See [[DisplayStyleSettings.mapImagery]].\r\n * @beta\r\n */\r\n mapImagery?: MapImageryProps;\r\n /** Overrides applied to the appearance of models in the view.\r\n * See [[DisplayStyleSettings.overrideModelAppearance]].\r\n */\r\n modelOvr?: DisplayStyleModelAppearanceProps[];\r\n /** Display settings applied to specific reality models in the view.\r\n * @see [[DisplayStyleSettings.setRealityModelDisplaySettings]].\r\n * @beta\r\n */\r\n realityModelDisplay?: DisplayStyleRealityModelDisplayProps[];\r\n /** See [[DisplayStyleSettings.clipStyle]]. */\r\n clipStyle?: ClipStyleProps;\r\n /** See [[DisplayStyleSettings.planarClipMasks]]. */\r\n planarClipOvr?: DisplayStylePlanarClipMaskProps[];\r\n /** See [[DisplayStyleSettings.whiteOnWhiteReversal]]. */\r\n whiteOnWhiteReversal?: WhiteOnWhiteReversalProps;\r\n}\r\n\r\n/** JSON representation of [[DisplayStyle3dSettings]] associated with a [[DisplayStyle3dProps]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStyle3dSettingsProps extends DisplayStyleSettingsProps {\r\n /** See [[DisplayStyle3dSettings.environment. */\r\n environment?: EnvironmentProps;\r\n /** See [[DisplayStyle3dSettings.thematic. */\r\n thematic?: ThematicDisplayProps;\r\n /** See [[DisplayStyle3dSettings.hiddenLineSettings. */\r\n hline?: HiddenLine.SettingsProps;\r\n /** See [[DisplayStyle3dSettings.ambientOcclusionSettings]]. */\r\n ao?: AmbientOcclusion.Props;\r\n /** See [[DisplayStyle3dSettings.solarShadows]]. */\r\n solarShadows?: SolarShadowSettingsProps;\r\n /** See [[DisplayStyle3dSettings.lights]]. */\r\n lights?: LightSettingsProps;\r\n /** See [[DisplayStyle3dSettings.planProjections. */\r\n planProjections?: { [modelId: string]: PlanProjectionSettingsProps };\r\n /** Old lighting settings - only `sunDir` was ever used; it is now part of [[lights]].\r\n * DisplayStyle3dSettings will construct a LightSettings from sceneLights.sunDir IFF [[lights]] is not present.\r\n * @internal\r\n */\r\n sceneLights?: { sunDir?: XYZProps };\r\n}\r\n\r\n/** JSON representation of a [[DisplayStyle]] or [[DisplayStyleState]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStyleProps extends DefinitionElementProps {\r\n /** Display styles store their settings in a `styles` property within [[ElementProps.jsonProperties]]. */\r\n jsonProperties?: {\r\n styles?: DisplayStyleSettingsProps;\r\n };\r\n}\r\n\r\n/** JSON representation of a [[DisplayStyle3d]] or [[DisplayStyle3dState]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStyle3dProps extends DisplayStyleProps {\r\n /** Display styles store their settings in a `styles` property within [[ElementProps.jsonProperties]]. */\r\n jsonProperties?: {\r\n styles?: DisplayStyle3dSettingsProps;\r\n };\r\n}\r\n\r\n/** Controls which settings are serialized by [[DisplayStyleSettings.toOverrides]]. A display style includes some settings that are specific to a given iModel - for example,\r\n * the subcategory overrides are indexed by subcategory Ids and model appearance overrides are indexed by model ids. Other settings are specific to a given iTwin, like the set of displayed context reality models. Such settings can be useful\r\n * when creating display style overrides intended for use with a specific iModel or iTwin, but should be omitted when creating general-purpose display style overrides intended\r\n * for use with any iModel or iTwin. This is the default behavior if no more specific options are provided.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStyleOverridesOptions {\r\n /** Serialize all settings. Applying the resultant [[DisplayStyleSettingsProps]] will produce a [[DisplayStyleSettings]] identical to the original settings. */\r\n includeAll?: true;\r\n /** Serialize iModel-specific settings. These settings are only meaningful within the context of a specific iModel. Setting this to `true` implies all iTwin-specific settings will be serialized too.\r\n * The following are iModel-specific settings:\r\n * * Subcategory overrides.\r\n * * Model Appearance overrides.\r\n * * Classifiers associated with context reality models.\r\n * * Analysis style.\r\n * * Schedule script.\r\n * * Excluded elements.\r\n * * Plan projection settings.\r\n * * Thematic sensor settings and height range. If iModel-specific settings are *not* serialized, sensors will be omitted and, for thematic height mode, the range will be omitted.\r\n * * If the display style settings are associated with a [DisplayStyleState]($frontend), then overriding thematic settings will compute a default height range based on the iModel's project extents.\r\n */\r\n includeIModelSpecific?: true;\r\n /** Serialize iTwin-specific settings. These settings are only meaningful within the context of a specific iTwin. These settings are always included if `includeIModelSpecific` is `true`.\r\n * The following are iTwin-specific settings:\r\n * * Context reality models. If iModel-specific settings are *not* serialized, the classifiers will be omitted.\r\n * * Time point.\r\n */\r\n includeITwinSpecific?: true;\r\n /** Serialize settings related to drawing aid decorations (the ACS triad and the grid). */\r\n includeDrawingAids?: true;\r\n /** Serialize the background map settings. */\r\n includeBackgroundMap?: true;\r\n}\r\n\r\n/** DisplayStyleSettings initially persisted its excluded elements as an array of Id64Strings in JSON, and exposed them as a Set<string>.\r\n * This becomes problematic when these arrays become very large, in terms of the amount of data and the time required to convert them to a Set.\r\n * The Ids are now persisted to JSON as a [[CompressedId64Set]], significantly reducing their size. However, for backwards API compatibility we must\r\n * continue to expose [[DisplayStyleSettings.excludedElements]] as a Set<string>. The [[ExcludedElements]] class tries to minimize the impact of that requirement by\r\n * maintaining the Ids primarily as a [[MutableCompressedId64Set]], only allocating the Set<string> if a caller actually requests it.\r\n * The only operation Set provides more efficiently than MutableCompressedId64Set is checking for the presence of an Id (the `has()` method).\r\n * @internal\r\n */\r\nclass ExcludedElements implements OrderedId64Iterable {\r\n private readonly _json: DisplayStyleSettingsProps;\r\n private readonly _ids: MutableCompressedId64Set;\r\n private _synchronizing = false;\r\n\r\n public constructor(json: DisplayStyleSettingsProps) {\r\n this._json = json;\r\n if (Array.isArray(json.excludedElements))\r\n this._ids = new MutableCompressedId64Set(CompressedId64Set.compressIds(OrderedId64Iterable.sortArray(json.excludedElements)));\r\n else\r\n this._ids = new MutableCompressedId64Set(json.excludedElements);\r\n }\r\n\r\n public reset(ids: CompressedId64Set | OrderedId64Iterable | undefined) {\r\n this.synchronize(() => {\r\n this._ids.reset((ids && \"string\" !== typeof ids) ? CompressedId64Set.compressIds(ids) : ids);\r\n });\r\n }\r\n\r\n public get ids(): CompressedId64Set {\r\n return this._ids.ids;\r\n }\r\n\r\n public add(ids: Iterable<Id64String>): void {\r\n this.synchronize(() => {\r\n for (const id of ids)\r\n this._ids.add(id);\r\n });\r\n }\r\n\r\n public delete(ids: Iterable<Id64String>): void {\r\n this.synchronize(() => {\r\n for (const id of ids)\r\n this._ids.delete(id);\r\n });\r\n }\r\n\r\n public [Symbol.iterator]() {\r\n return this._ids[Symbol.iterator]();\r\n }\r\n\r\n /** The JSON must be kept up-to-date at all times. */\r\n private synchronize(func: () => void): void {\r\n if (this._synchronizing)\r\n return;\r\n\r\n this._synchronizing = true;\r\n try {\r\n func();\r\n } finally {\r\n this._synchronizing = false;\r\n\r\n const ids = this._ids.ids;\r\n if (0 === ids.length)\r\n delete this._json.excludedElements;\r\n else\r\n this._json.excludedElements = ids;\r\n }\r\n }\r\n}\r\n\r\ntype OverridesArrayKey = \"subCategoryOvr\" | \"modelOvr\" | \"planarClipOvr\" | \"realityModelDisplay\";\r\n\r\n/** An implementation of Map that is based on a JSON array, used for a display styles subcategory overrides, model appearance overrides,\r\n * and planar clip masks. Ensures:\r\n * - JSON representation kept in sync with changes to map; and\r\n * - Events dispatched when map contents change.\r\n */\r\nclass OverridesMap<OverrideProps, Override> extends Map<Id64String, Override> {\r\n // This is required for mock framework used by ui libraries, which otherwise try to clone this as a standard Map.\r\n public override get [Symbol.toStringTag]() { return \"OverridesMap\"; }\r\n\r\n public constructor(\r\n private readonly _json: DisplayStyleSettingsProps,\r\n private readonly _arrayKey: OverridesArrayKey,\r\n private readonly _event: BeEvent<(id: Id64String, ovr: Override | undefined) => void>,\r\n private readonly _idFromProps: (props: OverrideProps) => Id64String | undefined,\r\n private readonly _overrideToProps: (ovr: Override, id: Id64String) => OverrideProps,\r\n private readonly _overrideFromProps: (props: OverrideProps) => Override | undefined) {\r\n super();\r\n this.populate();\r\n }\r\n\r\n public override set(id: Id64String, override: Override): this {\r\n this._event.raiseEvent(id, override);\r\n super.set(id, override);\r\n\r\n const index = this.findOrAllocateIndex(id);\r\n const array = this._array;\r\n assert(undefined !== array);\r\n array[index] = this._overrideToProps(override, id);\r\n\r\n return this;\r\n }\r\n\r\n public override delete(id: Id64String): boolean {\r\n this._event.raiseEvent(id, undefined);\r\n if (!super.delete(id))\r\n return false;\r\n\r\n const index = this.findExistingIndex(id);\r\n if (undefined !== index) {\r\n assert(undefined !== this._array);\r\n this._array.splice(index, 1);\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public override clear(): void {\r\n for (const id of this.keys())\r\n this.delete(id);\r\n\r\n this._json[this._arrayKey] = undefined;\r\n }\r\n\r\n public populate(): void {\r\n super.clear();\r\n\r\n const ovrs = this._array;\r\n if (!ovrs)\r\n return;\r\n\r\n for (const props of ovrs) {\r\n const id = this._idFromProps(props);\r\n if (undefined !== id && Id64.isValidId64(id)) {\r\n const ovr = this._overrideFromProps(props);\r\n if (ovr)\r\n super.set(id, ovr);\r\n }\r\n }\r\n }\r\n\r\n private get _array(): OverrideProps[] | undefined {\r\n return JsonUtils.asArray(this._json[this._arrayKey]);\r\n }\r\n\r\n private findOrAllocateIndex(id: Id64String): number {\r\n const index = this.findExistingIndex(id);\r\n if (undefined !== index)\r\n return index;\r\n\r\n let ovrs = this._array;\r\n if (!ovrs)\r\n ovrs = this._json[this._arrayKey] = [];\r\n\r\n return ovrs.length;\r\n }\r\n\r\n private findExistingIndex(id: Id64String): number | undefined {\r\n const ovrs = this._array;\r\n if (!ovrs)\r\n return undefined;\r\n\r\n for (let i = 0; i < ovrs.length; i++)\r\n if (this._idFromProps(ovrs[i]) === id)\r\n return i;\r\n\r\n return undefined;\r\n }\r\n}\r\n\r\n/** Options supplied when constructing a [[DisplayStyleSettings]].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DisplayStyleSettingsOptions {\r\n /** A function that instantiates a [[ContextRealityModel]] to be stored in [[DisplayStyleSettings.contextRealityModels]]. */\r\n createContextRealityModel?: (props: ContextRealityModelProps) => ContextRealityModel;\r\n}\r\n\r\n/** Provides access to the settings defined by a [[DisplayStyle]] or [[DisplayStyleState]], and ensures that\r\n * the style's JSON properties are kept in sync.\r\n * @see [[DisplayStyleSettingsProps]] for the JSON representation of these settings.\r\n * @public\r\n */\r\nexport class DisplayStyleSettings {\r\n protected readonly _json: DisplayStyleSettingsProps;\r\n private _viewFlags: ViewFlags;\r\n private _background: ColorDef;\r\n private _monochrome: ColorDef;\r\n private _monochromeMode: MonochromeMode;\r\n private readonly _subCategoryOverrides: OverridesMap<DisplayStyleSubCategoryProps, SubCategoryOverride>;\r\n private readonly _modelAppearanceOverrides: OverridesMap<DisplayStyleModelAppearanceProps, FeatureAppearance>;\r\n private readonly _realityModelDisplaySettings: OverridesMap<DisplayStyleRealityModelDisplayProps, RealityModelDisplaySettings>;\r\n private readonly _planarClipMasks: OverridesMap<DisplayStylePlanarClipMaskProps, PlanarClipMaskSettings>;\r\n private readonly _excludedElements: ExcludedElements;\r\n private _backgroundMap: BackgroundMapSettings;\r\n private _mapImagery: MapImagerySettings;\r\n private _analysisStyle?: AnalysisStyle;\r\n private _clipStyle: ClipStyle;\r\n private readonly _contextRealityModels: ContextRealityModels;\r\n private _whiteOnWhiteReversal: WhiteOnWhiteReversalSettings;\r\n\r\n /** Returns true if this is a [[DisplayStyle3dSettings]]. */\r\n public is3d(): this is DisplayStyle3dSettings {\r\n return false;\r\n }\r\n\r\n /** Planar clip masks to be applied to persistent reality models (@see [SpatialModelState.isRealityModel]($frontend).\r\n * The key for each entry is the Id of the model to which the mask settings apply.\r\n */\r\n public get planarClipMasks(): Map<Id64String, PlanarClipMaskSettings> {\r\n return this._planarClipMasks;\r\n }\r\n\r\n /** Reality models to be displayed in the view. */\r\n public get contextRealityModels(): ContextRealityModels {\r\n return this._contextRealityModels;\r\n }\r\n\r\n /** Event raised by [[applyOverrides]] just before the overrides are applied. */\r\n public readonly onApplyOverrides = new BeEvent<(overrides: Readonly<DisplayStyleSettingsProps>) => void>();\r\n /** Event raised by [[applyOverrides]] after the overrides are applied. */\r\n public readonly onOverridesApplied = new BeEvent<(overrides: Readonly<DisplayStyleSettingsProps>) => void>();\r\n /** Event raised just prior to assignment to the [[viewFlags]] property. */\r\n public readonly onViewFlagsChanged = new BeEvent<(newFlags: Readonly<ViewFlags>) => void>();\r\n /** Event raised just prior to assignment to the [[backgroundColor]] property. */\r\n public readonly onBackgroundColorChanged = new BeEvent<(newColor: ColorDef) => void>();\r\n /** Event raised just prior to assignment to the [[monochromeColor]] property. */\r\n public readonly onMonochromeColorChanged = new BeEvent<(newColor: ColorDef) => void>();\r\n /** Event raised just prior to assignment to the [[monochromeMode]] property. */\r\n public readonly onMonochromeModeChanged = new BeEvent<(newMode: MonochromeMode) => void>();\r\n /** Event raised just prior to assignment to the [[backgroundMap]] property. */\r\n public readonly onBackgroundMapChanged = new BeEvent<(newMap: BackgroundMapSettings) => void>();\r\n /** Event raised just prior to assignment to the [[mapImagery]] property.\r\n * @beta\r\n */\r\n public readonly onMapImageryChanged = new BeEvent<(newImagery: Readonly<MapImagerySettings>) => void>();\r\n /** Event raised just prior to assignment to the `scheduleScriptProps` property.\r\n * @see [[onRenderTimelineChanged]] to be notified when the [[renderTimeline]] property from which a script can be obtained is changed.\r\n */\r\n public readonly onScheduleScriptPropsChanged = new BeEvent<(newProps: Readonly<RenderSchedule.ScriptProps> | undefined) => void>();\r\n\r\n /** Event raised just prior to assignment to the [[renderTimeline]] property. */\r\n public readonly onRenderTimelineChanged = new BeEvent<(newRenderTimeline: Id64String | undefined) => void>();\r\n /** Event raised just prior to assignment to the [[timePoint]] property. */\r\n public readonly onTimePointChanged = new BeEvent<(newTimePoint: number | undefined) => void>();\r\n /** Event raised just prior to assignment to the [[analysisStyle]] property. */\r\n public readonly onAnalysisStyleChanged = new BeEvent<(newStyle: Readonly<AnalysisStyle> | undefined) => void>();\r\n /** Event raised just prior to assignment to the [[analysisFraction]] property. */\r\n public readonly onAnalysisFractionChanged = new BeEvent<(newFraction: number) => void>();\r\n /** Event raised when the contents of [[excludedElementIds]] changes. */\r\n public readonly onExcludedElementsChanged = new BeEvent<() => void>();\r\n /** Event raised just prior to assignment to the [[clipStyle]] property. */\r\n public readonly onClipStyleChanged = new BeEvent<(newStyle: ClipStyle) => void>();\r\n /** Event raised when the [[SubCategoryOverride]]s change. */\r\n public readonly onSubCategoryOverridesChanged = new BeEvent<(subCategoryId: Id64String, newOverrides: SubCategoryOverride | undefined) => void>();\r\n /** Event raised just before changing the appearance override for a model. */\r\n public readonly onModelAppearanceOverrideChanged = new BeEvent<(modelId: Id64String, newAppearance: FeatureAppearance | undefined) => void>();\r\n /** Event raised just before [[setRealityModelDisplaySettings]] changes the display settings for a reality model.\r\n * @beta\r\n */\r\n public readonly onRealityModelDisplaySettingsChanged = new BeEvent<(modelId: Id64String, newSettings: RealityModelDisplaySettings | undefined) => void>();\r\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.thematic]] property. */\r\n public readonly onThematicChanged = new BeEvent<(newThematic: ThematicDisplay) => void>();\r\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.hiddenLineSettings]] property. */\r\n public readonly onHiddenLineSettingsChanged = new BeEvent<(newSettings: HiddenLine.Settings) => void>();\r\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.ambientOcclusionSettings]] property. */\r\n public readonly onAmbientOcclusionSettingsChanged = new BeEvent<(newSettings: AmbientOcclusion.Settings) => void>();\r\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.solarShadows]] property. */\r\n public readonly onSolarShadowsChanged = new BeEvent<(newSettings: SolarShadowSettings) => void>();\r\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.environment]] property. */\r\n public readonly onEnvironmentChanged = new BeEvent<(newEnv: Readonly<Environment>) => void>();\r\n /** Event raised just prior to assignment to the [[DisplayStyle3dSettings.lights]] property. */\r\n public readonly onLightsChanged = new BeEvent<(newLights: LightSettings) => void>();\r\n /** Event raised just before changing the plan projection settings for a model. */\r\n public readonly onPlanProjectionSettingsChanged = new BeEvent<(modelId: Id64String, newSettings: PlanProjectionSettings | undefined) => void>();\r\n /** Event raised just before adding or removing an entry from [[planarClipMasks]]. */\r\n public readonly onPlanarClipMaskChanged = new BeEvent<(modelId: Id64String, newSettings: PlanarClipMaskSettings | undefined) => void>();\r\n /** Event raised just prior to assignment to the [[whiteOnWhiteReversal]] property. */\r\n public readonly onWhiteOnWhiteReversalChanged = new BeEvent<(newSettings: WhiteOnWhiteReversalSettings) => void>();\r\n\r\n /** Construct a new DisplayStyleSettings from an [[ElementProps.jsonProperties]].\r\n * @param jsonProperties An object with an optional `styles` property containing a display style's settings.\r\n * @param options Options for customizing the display style settings.\r\n * @note When the `DisplayStyleSetting`'s properties are modified by public setters, the `jsonProperties`'s `styles` object will be updated to reflect the change.\r\n * @note If `jsonProperties` contains no `styles` member, one will be added as an empty object.\r\n * @note Generally there is no reason to create an object of this type directly; a [[DisplayStyle]] or [[DisplayStyleState]] constructs one as part of its own construction.\r\n */\r\n public constructor(jsonProperties: { styles?: DisplayStyleSettingsProps }, options?: DisplayStyleSettingsOptions) {\r\n if (undefined === jsonProperties.styles)\r\n jsonProperties.styles = {};\r\n\r\n this._json = jsonProperties.styles;\r\n this._viewFlags = ViewFlags.fromJSON(this._json.viewflags);\r\n this._background = ColorDef.fromJSON(this._json.backgroundColor);\r\n\r\n this._monochrome = undefined !== this._json.monochromeColor ? ColorDef.fromJSON(this._json.monochromeColor) : ColorDef.white;\r\n this._monochromeMode = MonochromeMode.Flat === this._json.monochromeMode ? MonochromeMode.Flat : MonochromeMode.Scaled;\r\n\r\n this._backgroundMap = BackgroundMapSettings.fromPersistentJSON(this._json.backgroundMap);\r\n this._mapImagery = MapImagerySettings.createFromJSON(this._json.mapImagery, this._json.backgroundMap);\r\n\r\n // Ensure that if we used the deprecated imagery properties from this._backgroundMap to set up the base layer of this._mapImagery,\r\n // we update our JSON to include that base layer.\r\n this._json.mapImagery = this._mapImagery.toJSON();\r\n\r\n this._excludedElements = new ExcludedElements(this._json);\r\n\r\n if (this._json.analysisStyle)\r\n this._analysisStyle = AnalysisStyle.fromJSON(this._json.analysisStyle);\r\n\r\n this._whiteOnWhiteReversal = WhiteOnWhiteReversalSettings.fromJSON(this._json.whiteOnWhiteReversal);\r\n this._clipStyle = ClipStyle.fromJSON(this._json.clipStyle);\r\n\r\n this._subCategoryOverrides = new OverridesMap<DisplayStyleSubCategoryProps, SubCategoryOverride>(this._json, \"subCategoryOvr\", this.onSubCategoryOverridesChanged,\r\n (props) => props.subCategory,\r\n (ovr, subCategory) => { return { ...ovr.toJSON(), subCategory }; },\r\n (props) => {\r\n const ovr = SubCategoryOverride.fromJSON(props);\r\n return ovr.anyOverridden ? ovr : undefined;\r\n });\r\n\r\n this._modelAppearanceOverrides = new OverridesMap<DisplayStyleModelAppearanceProps, FeatureAppearance>(this._json, \"modelOvr\", this.onModelAppearanceOverrideChanged,\r\n (props) => props.modelId,\r\n (ovr, modelId) => { return { ...ovr.toJSON(), modelId }; },\r\n (props) => {\r\n const app = FeatureAppearance.fromJSON(props);\r\n return app.anyOverridden ? app : undefined;\r\n });\r\n\r\n this._realityModelDisplaySettings = new OverridesMap<DisplayStyleRealityModelDisplayProps, RealityModelDisplaySettings>(this._json, \"realityModelDisplay\", this.onRealityModelDisplaySettingsChanged,\r\n (props) => props.modelId,\r\n (settings, modelId) => { return { ...settings.toJSON(), modelId }; },\r\n (props) => RealityModelDisplaySettings.fromJSON(props),\r\n );\r\n\r\n this._planarClipMasks = new OverridesMap<DisplayStylePlanarClipMaskProps, PlanarClipMaskSettings>(this._json, \"planarClipOvr\", this.onPlanarClipMaskChanged,\r\n (props) => props.modelId,\r\n (ovr, modelId) => { return { ...ovr.toJSON(), modelId }; },\r\n (props) => {\r\n const settings = PlanarClipMaskSettings.fromJSON(props);\r\n return settings.isValid ? settings : undefined;\r\n });\r\n\r\n this._contextRealityModels = new ContextRealityModels(this._json, options?.createContextRealityModel);\r\n }\r\n\r\n /** Flags controlling various aspects of the display style. */\r\n public get viewFlags(): ViewFlags { return this._viewFlags; }\r\n public set viewFlags(flags: ViewFlags) {\r\n if (this.viewFlags.equals(flags))\r\n return;\r\n\r\n this.onViewFlagsChanged.raiseEvent(flags);\r\n this._viewFlags = flags;\r\n this._json.viewflags = flags.toJSON();\r\n }\r\n\r\n /** The color displayed in the view background - by default, [[ColorDef.black]]. */\r\n public get backgroundColor(): ColorDef { return this._background; }\r\n public set backgroundColor(color: ColorDef) {\r\n if (this.backgroundColor.equals(color))\r\n return;\r\n\r\n this.onBackgroundColorChanged.raiseEvent(color);\r\n this._background = color;\r\n this._json.backgroundColor = color.toJSON();\r\n }\r\n\r\n /** The color used to draw geometry when [[ViewFlags.monochrome]] is enabled - by default, [[ColorDef.white]].\r\n * The monochrome color is applied to all surfaces and linear geometry, but only applied to the **edges** of surfaces in [[RenderMode.Wireframe]].\r\n * @see [[monochromeMode]] to control how the color is applied.\r\n */\r\n public get monochromeColor(): ColorDef { return this._monochrome; }\r\n public set monochromeColor(color: ColorDef) {\r\n if (this.monochromeColor.equals(color))\r\n return;\r\n\r\n this.onMonochromeColorChanged.raiseEvent(color);\r\n this._monochrome = color;\r\n this._json.monochromeColor = color.toJSON();\r\n }\r\n\r\n /** The style in which [[monochromeColor]] is applied when [[ViewFlags.monochrome]] is enabled - by default, [[MonochromeMode.Scaled]]. */\r\n public get monochromeMode(): MonochromeMode { return this._monochromeMode; }\r\n public set monochromeMode(mode: MonochromeMode) {\r\n if (this.monochromeMode === mode)\r\n return;\r\n\r\n this.onMonochromeModeChanged.raiseEvent(mode);\r\n this._monochromeMode = mode;\r\n this._json.monochromeMode = mode;\r\n }\r\n\r\n /** Settings controlling display of the background map within views of geolocated models. */\r\n public get backgroundMap(): BackgroundMapSettings { return this._backgroundMap; }\r\n\r\n public set backgroundMap(map: BackgroundMapSettings) {\r\n if (!this.backgroundMap.equals(map)) {\r\n this.onBackgroundMapChanged.raiseEvent(map);\r\n this._backgroundMap = map; // it's an immutable type.\r\n this._json.backgroundMap = map.toPersistentJSON();\r\n }\r\n }\r\n\r\n /** Settings defining the map imagery layers to be displayed within the view.\r\n * @beta\r\n */\r\n public get mapImagery(): MapImagerySettings { return this._mapImagery; }\r\n\r\n public set mapImagery(mapImagery: MapImagerySettings) {\r\n this.onMapImageryChanged.raiseEvent(mapImagery);\r\n this._mapImagery = mapImagery;\r\n this._json.mapImagery = this._mapImagery.toJSON();\r\n }\r\n\r\n /** @internal\r\n * Handles keeping the map imagery layers in synch after changes have been made (used internally only by front end)\r\n */\r\n public synchMapImagery() {\r\n this.onMapImageryChanged.raiseEvent(this._mapImagery);\r\n this._json.mapImagery = this._mapImagery.toJSON();\r\n }\r\n\r\n /** The Id of a [RenderTimeline]($backend) element containing a [[RenderSchedule.Script]] used to animate the view.\r\n * If [[scheduleScriptProps]] is defined, it takes precedence over the script supplied by the RenderTimeline.\r\n * @note If this [[DisplayStyleSettings]] is associated with a [DisplayStyleState]($frontend), assigning to [[renderTimeline]] will enqueue asynchronous loading of\r\n * the script from the [RenderTimeline]($backend) element; for more readable code, prefer instead to `await` [DisplayStyleState.changeRenderTimeline]($frontend).\r\n * @see [[onRenderTimelineChanged]] to be notified of changes to this property.\r\n */\r\n public get renderTimeline(): Id64String | undefined {\r\n return this._json.renderTimeline;\r\n }\r\n public set renderTimeline(id: Id64String | undefined) {\r\n if (id !== this.renderTimeline) {\r\n this.onRenderTimelineChanged.raiseEvent(id);\r\n this._json.renderTimeline = id;\r\n }\r\n }\r\n\r\n /** JSON representation of a [[RenderSchedule.Script]] embedded in the display style describing how to animate the contents of the view over time.\r\n * This script, if present, takes precedence over a script supplied by [[renderTimeline]].\r\n * @see [[onScheduleScriptPropsChanged]] to be notified when this property changes.\r\n * @see [DisplayStyleState.scheduleScript]($frontend) to change the [[RenderSchedule.Script]] object directly rather than via JSON.\r\n */\r\n public get scheduleScriptProps(): RenderSchedule.ScriptProps | undefined {\r\n return this._json.scheduleScript;\r\n }\r\n public set scheduleScriptProps(props: RenderSchedule.ScriptProps | undefined) {\r\n this.onScheduleScriptPropsChanged.raiseEvent(props);\r\n this._json.scheduleScript = props;\r\n }\r\n\r\n /** The point in time currently reflected by the view, expressed in seconds in the [Unix epoch](https://en.wikipedia.org/wiki/Unix_time).\r\n * This identifies a point on the timeline of the style's [[RenderSchedule.Script]], if any; it may also affect display of four-dimensional reality models.\r\n * @see [[onTimePointChanged]] to be notified of changes to this property.\r\n */\r\n public get timePoint(): number | undefined {\r\n return this._json.timePoint;\r\n }\r\n public set timePoint(timePoint: number | undefined) {\r\n if (timePoint !== this.timePoint) {\r\n this.onTimePointChanged.raiseEvent(timePoint);\r\n this._json.timePoint = timePoint;\r\n }\r\n }\r\n\r\n /** Settings controlling the display of analytical models.\r\n * @see [[analysisFraction]] to control playback of the animation.\r\n */\r\n public get analysisStyle(): AnalysisStyle | undefined { return this._analysisStyle; }\r\n public set analysisStyle(style: AnalysisStyle | undefined) {\r\n if (style === this.analysisStyle)\r\n return;\r\n\r\n this.onAnalysisStyleChanged.raiseEvent(style);\r\n this._analysisStyle = style;\r\n if (style)\r\n this._json.analysisStyle = style.toJSON();\r\n else\r\n delete this._json.analysisStyle;\r\n }\r\n\r\n /** A floating point value in [0..1] indicating the current point in animation of the [[analysisStyle]], where 0 corresponds to the beginning of\r\n * the animation and 1 to the end. Default: 0.0.\r\n */\r\n public get analysisFraction(): number {\r\n const fraction = this._json.analysisFraction ?? 0;\r\n return Math.max(0, Math.min(1, fraction));\r\n }\r\n public set analysisFraction(fraction: number) {\r\n if (this.analysisFraction === fraction)\r\n return;\r\n\r\n this.onAnalysisFractionChanged.raiseEvent(fraction);\r\n this._json.analysisFraction = Math.max(0, Math.min(1, fraction));\r\n }\r\n\r\n /** Settings controlling how white-on-white reversal is applied when [[ViewFlags.whiteOnWhiteReversal]] is enabled. */\r\n public get whiteOnWhiteReversal(): WhiteOnWhiteReversalSettings { return this._whiteOnWhiteReversal; }\r\n public set whiteOnWhiteReversal(settings: WhiteOnWhiteReversalSettings) {\r\n if (settings.equals(this.whiteOnWhiteReversal))\r\n return;\r\n\r\n this.onWhiteOnWhiteReversalChanged.raiseEvent(settings);\r\n this._whiteOnWhiteReversal = settings;\r\n const json = settings.toJSON();\r\n if (json)\r\n this._json.whiteOnWhiteReversal = json;\r\n else\r\n delete this._json.whiteOnWhiteReversal;\r\n }\r\n\r\n /** Customize the way geometry belonging to a [[SubCategory]] is drawn by this display style.\r\n * @param id The Id of the SubCategory whose appearance is to be overridden.\r\n * @param ovr The overrides to apply to the [[SubCategoryAppearance]].\r\n * @see [[dropSubCategoryOverride]]\r\n */\r\n public overrideSubCategory(id: Id64String, ovr: SubCategoryOverride): void {\r\n this.subCategoryOverrides.set(id, ovr);\r\n }\r\n\r\n /** Remove any [[SubCategoryOverride]] applied to a [[SubCategoryAppearance]] by this style.\r\n * @param id The Id of the [[SubCategory]].\r\n * @see [[overrideSubCategory]]\r\n */\r\n public dropSubCategoryOverride(id: Id64String): void {\r\n this.subCategoryOverrides.delete(id);\r\n }\r\n\r\n /** The overrides applied by this style. */\r\n public get subCategoryOverrides(): Map<Id64String, SubCategoryOverride> {\r\n return this._subCategoryOverrides;\r\n }\r\n\r\n /** Obtain the override applied to a [[SubCategoryAppearance]] by this style.\r\n * @param id The Id of the [[SubCategory]].\r\n * @returns The corresponding SubCategoryOverride, or undefined if the SubCategory's appearance is not overridden.\r\n * @see [[overrideSubCategory]]\r\n */\r\n public getSubCategoryOverride(id: Id64String): SubCategoryOverride | undefined {\r\n return this.subCategoryOverrides.get(id);\r\n }\r\n\r\n /** Returns true if an [[SubCategoryOverride]]s are defined by this style. */\r\n public get hasSubCategoryOverride(): boolean {\r\n return this.subCategoryOverrides.size > 0;\r\n }\r\n\r\n /** Customize the way a [Model]($backend) is drawn by this display style.\r\n * @param modelId The Id of the [Model]($backend) whose appearance is to be overridden.\r\n * @param ovr The overrides to apply to the [Model]($backend) .\r\n * @see [[dropModelAppearanceOverride]]\r\n */\r\n public overrideModelAppearance(modelId: Id64String, ovr: FeatureAppearance): void {\r\n this.modelAppearanceOverrides.set(modelId, ovr);\r\n }\r\n\r\n /** Remove any appearance overrides applied to a [Model]($backend) by this style.\r\n * @param modelId The Id of the [Model]($backend) .\r\n * @param ovr The overrides to apply to the [Model]($backend) .\r\n * @see [[overrideModelAppearance]]\r\n */\r\n public dropModelAppearanceOverride(id: Id64String): void {\r\n this.modelAppearanceOverrides.delete(id);\r\n }\r\n\r\n /** The overrides applied by this style. */\r\n public get modelAppearanceOverrides(): Map<Id64String, FeatureAppearance> {\r\n return this._modelAppearanceOverrides;\r\n }\r\n\r\n /** Obtain the override applied to a [Model]($backend) by this style.\r\n * @param id The Id of the [Model]($backend).\r\n * @returns The corresponding FeatureAppearance, or undefined if the Model's appearance is not overridden.\r\n * @see [[overrideModelAppearance]]\r\n */\r\n public getModelAppearanceOverride(id: Id64String): FeatureAppearance | undefined {\r\n return this.modelAppearanceOverrides.get(id);\r\n }\r\n\r\n /** Returns true if model appearance overrides are defined by this style. */\r\n public get hasModelAppearanceOverride(): boolean {\r\n return this.modelAppearanceOverrides.size > 0;\r\n }\r\n\r\n /** Get any settings that override how the reality model with the specified Id is displayed.\r\n * @param modelId The Id of the [Model]($backend).\r\n * @returns the display settings, or `undefined` if no settings have been associated with `modelId`.\r\n * @see [[setRealityModelDisplaySettings]] to change the settings.\r\n * @beta\r\n */\r\n public getRealityModelDisplaySettings(modelId: Id64String): RealityModelDisplaySettings | undefined {\r\n return this._realityModelDisplaySettings.get(modelId);\r\n }\r\n\r\n /** Change the settings that control how the reality model with the specified Id is displayed.\r\n * @param modelId The Id of the [Model]($backend) to which the settings apply.\r\n * @param settings The settings to apply to the model, or `undefined` to clear any previous settings for that model.\r\n * @beta\r\n */\r\n public setRealityModelDisplaySettings(modelId: Id64String, settings: RealityModelDisplaySettings | undefined): void {\r\n if (settings)\r\n this._realityModelDisplaySettings.set(modelId, settings);\r\n else\r\n this._realityModelDisplaySettings.delete(modelId);\r\n }\r\n\r\n /** The set of elements that will not be drawn by this display style.\r\n * @returns An iterable over the elements' Ids.\r\n */\r\n public get excludedElementIds(): OrderedId64Iterable {\r\n return this._excludedElements;\r\n }\r\n\r\n /** @internal */\r\n public get compressedExcludedElementIds(): CompressedId64Set {\r\n return this._excludedElements.ids;\r\n }\r\n\r\n /** Add one or more elements to the set of elements not to be displayed.\r\n * @param id The Ids of the element(s) to be excluded.\r\n */\r\n public addExcludedElements(id: Id64String | Iterable<Id64String>) {\r\n this._excludedElements.add(\"string\" === typeof id ? [id] : id);\r\n this.onExcludedElementsChanged.raiseEvent();\r\n }\r\n\r\n /** Remove an element from the set of elements not to be displayed. */\r\n public dropExcludedElement(id: Id64String): void {\r\n this._excludedElements.delete([id]);\r\n this.onExcludedElementsChanged.raiseEvent();\r\n }\r\n\r\n /** Remove one or more elements from the set of elements not to be displayed.\r\n * @param id The Ids of the element(s) to be removed from the set of excluded elements.\r\n */\r\n public dropExcludedElements(id: Id64String | Iterable<Id64String>) {\r\n this._excludedElements.delete(\"string\" === typeof id ? [id] : id);\r\n this.onExcludedElementsChanged.raiseEvent();\r\n }\r\n\r\n /** Remove all elements from the set of elements not to be displayed. */\r\n public clearExcludedElements(): void {\r\n this._excludedElements.reset(undefined);\r\n this.onExcludedElementsChanged.raiseEvent();\r\n }\r\n\r\n /** The style applied to the view's [ClipVector]($core-geometry). */\r\n public get clipStyle(): ClipStyle {\r\n return this._clipStyle;\r\n }\r\n public set clipStyle(style: ClipStyle) {\r\n this.onClipStyleChanged.raiseEvent(style);\r\n this._clipStyle = style;\r\n if (style.matchesDefaults)\r\n delete this._json.clipStyle;\r\n else\r\n this._json.clipStyle = style.toJSON();\r\n }\r\n\r\n /** @internal */\r\n public toJSON(): DisplayStyleSettingsProps {\r\n return this._json;\r\n }\r\n\r\n /** Serialize a subset of these settings to JSON, such that they can be applied to another DisplayStyleSettings to selectively override those settings.\r\n * @param options Specifies which settings should be serialized. By default, settings that are specific to an iModel (e.g., subcategory overrides) or iTwin (e.g., context reality models)\r\n * are omitted, as are drawing aids (e.g., ACS triad and grid).\r\n * @returns a JSON representation of the selected settings suitable for passing to [[applyOverrides]].\r\n * @see [[applyOverrides]] to apply the overrides to another DisplayStyleSettings..\r\n */\r\n public toOverrides(options?: DisplayStyleOverridesOptions): DisplayStyleSettingsProps {\r\n if (options?.includeAll) {\r\n return {\r\n ...this.toJSON(),\r\n viewflags: this.viewFlags.toFullyDefinedJSON(),\r\n };\r\n }\r\n\r\n const viewflags: Partial<ViewFlagProps> = this.viewFlags.toFullyDefinedJSON();\r\n const props: DisplayStyleSettingsProps = {\r\n viewflags,\r\n backgroundColor: this.backgroundColor.toJSON(),\r\n monochromeColor: this.monochromeColor.toJSON(),\r\n monochromeMode: this.monochromeMode,\r\n whiteOnWhiteReversal: this.whiteOnWhiteReversal.toJSON() ?? { ignoreBackgroundColor: false },\r\n };\r\n\r\n if (options?.includeBackgroundMap) {\r\n props.backgroundMap = this.backgroundMap.toPersistentJSON();\r\n props.mapImagery = this.mapImagery.toJSON();\r\n } else {\r\n delete viewflags.backgroundMap;\r\n }\r\n\r\n if (!options?.includeDrawingAids) {\r\n delete viewflags.acs;\r\n delete viewflags.grid;\r\n }\r\n\r\n if (options?.includeITwinSpecific || options?.includeIModelSpecific) {\r\n props.timePoint = this.timePoint;\r\n if (this._json.contextRealityModels) {\r\n props.contextRealityModels = this._json.contextRealityModels;\r\n if (!options?.includeIModelSpecific)\r\n for (const model of this._json.contextRealityModels)\r\n delete model.classifiers;\r\n }\r\n }\r\n\r\n if (options?.includeIModelSpecific) {\r\n if (this.analysisStyle) {\r\n props.analysisStyle = this.analysisStyle.toJSON();\r\n props.analysisFraction = this.analysisFraction;\r\n }\r\n\r\n if (this.scheduleScriptProps)\r\n props.scheduleScript = [...this.scheduleScriptProps];\r\n\r\n if (this.renderTimeline)\r\n props.renderTimeline = this.renderTimeline;\r\n\r\n props.subCategoryOvr = this._json.subCategoryOvr ? [...this._json.subCategoryOvr] : [];\r\n props.modelOvr = this._json.modelOvr ? [...this._json.modelOvr] : [];\r\n props.excludedElements = this._excludedElements.ids;\r\n }\r\n\r\n return props;\r\n }\r\n\r\n /** Selectively override some of these settings. Any field that is explicitly defined by the input will be overridden in these settings; any fields left undefined in the input\r\n * will retain their current values in these settings. The input's [[ViewFlags]] are applied individually - only those flags that are explicitly defined will be overridden.\r\n * For example, the following overrides will set the render mode to \"smooth\", change the background color to white, turn shadows off, and leave all other settings intact:\r\n * ```ts\r\n * {\r\n * viewflags: {\r\n * renderMode: RenderMode.SmoothShade,\r\n * shadows: false,\r\n * },\r\n * backgroundColor: ColorByName.white,\r\n * }\r\n * ```\r\n * @see [[toOverrides]] to produce overrides from an existing DisplayStyleSettings.\r\n */\r\n public applyOverrides(overrides: DisplayStyleSettingsProps): void {\r\n this._applyOverrides(overrides);\r\n this.onOverridesApplied.raiseEvent(overrides);\r\n }\r\n\r\n /** @internal */\r\n protected _applyOverrides(overrides: DisplayStyleSettingsProps): void {\r\n this.onApplyOverrides.raiseEvent(overrides);\r\n\r\n if (overrides.viewflags) {\r\n this.viewFlags = ViewFlags.fromJSON({\r\n ...this.viewFlags.toJSON(),\r\n ...overrides.viewflags,\r\n });\r\n }\r\n\r\n if (undefined !== overrides.backgroundColor)\r\n this.backgroundColor = ColorDef.fromJSON(overrides.backgroundColor);\r\n\r\n if (undefined !== overrides.monochromeColor)\r\n this.monochromeColor = ColorDef.fromJSON(overrides.monochromeColor);\r\n\r\n if (undefined !== overrides.monochromeMode)\r\n this.monochromeMode = overrides.monochromeMode;\r\n\r\n if (overrides.backgroundMap)\r\n this.backgroundMap = BackgroundMapSettings.fromPersistentJSON(overrides.backgroundMap);\r\n\r\n if (overrides.mapImagery)\r\n this.mapImagery = MapImagerySettings.createFromJSON(overrides.mapImagery, this.backgroundMap.toPersistentJSON());\r\n\r\n if (undefined !== overrides.timePoint)\r\n this.timePoint = overrides.timePoint;\r\n\r\n if (overrides.contextRealityModels) {\r\n this.contextRealityModels.clear();\r\n for (const props of overrides.contextRealityModels)\r\n this.contextRealityModels.add(props);\r\n }\r\n\r\n if (overrides.analysisStyle)\r\n this.analysisStyle = AnalysisStyle.fromJSON(overrides.analysisStyle);\r\n\r\n if (overrides.whiteOnWhiteReversal)\r\n this.whiteOnWhiteReversal = WhiteOnWhiteReversalSettings.fromJSON(overrides.whiteOnWhiteReversal);\r\n\r\n if (undefined !== overrides.analysisFraction)\r\n this.analysisFraction = overrides.analysisFraction;\r\n\r\n if (overrides.scheduleScript)\r\n this.scheduleScriptProps = [...overrides.scheduleScript];\r\n\r\n if (overrides.renderTimeline)\r\n this.renderTimeline = overrides.renderTimeline;\r\n\r\n if (overrides.subCategoryOvr) {\r\n this._json.subCategoryOvr = [...overrides.subCategoryOvr];\r\n this._subCategoryOverrides.populate();\r\n }\r\n\r\n if (overrides.modelOvr) {\r\n this._json.modelOvr = [...overrides.modelOvr];\r\n this._modelAppearanceOverrides.populate();\r\n }\r\n\r\n if (overrides.realityModelDisplay) {\r\n this._json.realityModelDisplay = [...overrides.realityModelDisplay];\r\n this._realityModelDisplaySettings.populate();\r\n }\r\n\r\n if (overrides.excludedElements)\r\n this._excludedElements.reset(\"string\" === typeof overrides.excludedElements ? overrides.excludedElements : [...overrides.excludedElements]);\r\n\r\n this.onOverridesApplied.raiseEvent(overrides);\r\n }\r\n}\r\n\r\n/** Provides access to the settings defined by a [[DisplayStyle3d]] or [[DisplayStyle3dState]], and ensures that\r\n * the style's JSON properties are kept in sync.\r\n * @public\r\n */\r\nexport class DisplayStyle3dSettings extends DisplayStyleSettings {\r\n private _thematic: ThematicDisplay;\r\n private _hline: HiddenLine.Settings;\r\n private _ao: AmbientOcclusion.Settings;\r\n private _solarShadows: SolarShadowSettings;\r\n private _lights: LightSettings;\r\n private _environment: Environment;\r\n private _planProjections?: Map<string, PlanProjectionSettings>;\r\n\r\n private get _json3d(): DisplayStyle3dSettingsProps { return this._json as DisplayStyle3dSettingsProps; }\r\n\r\n public override is3d(): this is DisplayStyle3dSettings {\r\n return true;\r\n }\r\n\r\n public constructor(jsonProperties: { styles?: DisplayStyle3dSettingsProps }, options?: DisplayStyleSettingsOptions) {\r\n super(jsonProperties, options);\r\n this._thematic = ThematicDisplay.fromJSON(this._json3d.thematic);\r\n this._hline = HiddenLine.Settings.fromJSON(this._json3d.hline);\r\n this._ao = AmbientOcclusion.Settings.fromJSON(this._json3d.ao);\r\n this._solarShadows = SolarShadowSettings.fromJSON(this._json3d.solarShadows);\r\n this._environment = Environment.fromJSON(this._json3d.environment);\r\n\r\n // Very long ago we used to stick MicroStation's light settings into json.sceneLights. Later we started adding the sunDir.\r\n // We don't want any of MicroStation's settings. We do want to preserve the sunDir if present.\r\n if (this._json3d.lights) {\r\n this._lights = LightSettings.fromJSON(this._json3d.lights);\r\n } else {\r\n const sunDir = this._json3d.sceneLights?.sunDir;\r\n this._lights = LightSettings.fromJSON(sunDir ? { solar: { direction: sunDir } } : undefined);\r\n }\r\n\r\n this.populatePlanProjectionsFromJSON();\r\n }\r\n\r\n private populatePlanProjectionsFromJSON(): void {\r\n this._planProjections = undefined;\r\n const projections = this._json3d.planProjections;\r\n if (undefined !== projections) {\r\n for (const key of Object.keys(projections)) {\r\n const id = Id64.fromJSON(key);\r\n if (!Id64.isValidId64(id)) {\r\n delete projections[key];\r\n continue;\r\n }\r\n\r\n const settings = PlanProjectionSettings.fromJSON(projections[key]);\r\n if (undefined === settings) {\r\n delete projections[key];\r\n continue;\r\n }\r\n\r\n if (undefined === this._planProjections)\r\n this._planProjections = new Map<string, PlanProjectionSettings>();\r\n\r\n this._planProjections.set(id, settings);\r\n }\r\n }\r\n }\r\n\r\n /** @internal */\r\n public override toJSON(): DisplayStyle3dSettingsProps {\r\n return this._json3d;\r\n }\r\n\r\n /** @internal */\r\n public override toOverrides(options?: DisplayStyleOverridesOptions): DisplayStyle3dSettingsProps {\r\n const props = super.toOverrides(options) as DisplayStyle3dSettingsProps;\r\n if (options?.includeAll)\r\n return props;\r\n\r\n assert(undefined !== props.viewflags);\r\n\r\n props.environment = this.environment.toJSON();\r\n props.hline = this.hiddenLineSettings.toJSON();\r\n props.ao = this.ambientOcclusionSettings.toJSON();\r\n props.solarShadows = this.solarShadows.toJSON();\r\n props.lights = this.lights.toJSON();\r\n\r\n if (options?.includeIModelSpecific) {\r\n props.thematic = this.thematic.toJSON();\r\n if (this._json3d.planProjections)\r\n props.planProjections = { ...this._json3d.planProjections };\r\n } else if (ThematicDisplayMode.InverseDistanceWeightedSensors !== this.thematic.displayMode) {\r\n props.thematic = {\r\n ...this.thematic.toJSON(),\r\n sensorSettings: undefined,\r\n };\r\n\r\n if (ThematicDisplayMode.Height === props.thematic.displayMode) {\r\n // DisplayStyle3dState will compute range based on project extents.\r\n props.thematic.range = undefined;\r\n }\r\n }\r\n\r\n return props;\r\n }\r\n\r\n /** Selectively override some of these settings. Any field that is explicitly defined by the input will be overridden in these settings; any fields left undefined in the input\r\n * will retain their current values in these settings. The input's [[ViewFlags]] are applied individually - only those flags that are explicitly defined will be overridden.\r\n * For example, the following overrides will set the render mode to \"smooth\", change the background color to white, turn shadows off, and leave all other settings intact:\r\n * ```ts\r\n * {\r\n * viewflags: {\r\n * renderMode: RenderMode.SmoothShade,\r\n * shadows: false,\r\n * },\r\n * backgroundColor: ColorByName.white,\r\n * }\r\n * ```\r\n * @see [[toOverrides]] to produce overrides from an existing DisplayStyleSettings.\r\n * @internal override\r\n */\r\n public override applyOverrides(overrides: DisplayStyle3dSettingsProps): void {\r\n super._applyOverrides(overrides);\r\n\r\n if (overrides.environment)\r\n this.environment = Environment.fromJSON(overrides.environment);\r\n\r\n if (overrides.hline)\r\n this.hiddenLineSettings = HiddenLine.Settings.fromJSON(overrides.hline);\r\n\r\n if (overrides.ao)\r\n this.ambientOcclusionSettings = AmbientOcclusion.Settings.fromJSON(overrides.ao);\r\n\r\n if (overrides.solarShadows)\r\n this.solarShadows = SolarShadowSettings.fromJSON(overrides.solarShadows);\r\n\r\n if (overrides.lights)\r\n this.lights = LightSettings.fromJSON(overrides.lights);\r\n\r\n if (overrides.planProjections) {\r\n this._json3d.planProjections = { ...overrides.planProjections };\r\n this.populatePlanProjectionsFromJSON();\r\n }\r\n\r\n if (overrides.thematic)\r\n this.thematic = ThematicDisplay.fromJSON(overrides.thematic);\r\n\r\n this.onOverridesApplied.raiseEvent(overrides);\r\n }\r\n\r\n /** The settings that control thematic display. */\r\n public get thematic(): ThematicDisplay { return this._thematic; }\r\n public set thematic(thematic: ThematicDisplay) {\r\n if (thematic.equals(this.thematic))\r\n return;\r\n\r\n this.onThematicChanged.raiseEvent(thematic);\r\n this._thematic = thematic;\r\n this._json3d.thematic = thematic.toJSON();\r\n }\r\n\r\n /** The settings that control how visible and hidden edges are displayed. */\r\n public get hiddenLineSettings(): HiddenLine.Settings { return this._hline; }\r\n public set hiddenLineSettings(hline: HiddenLine.Settings) {\r\n if (hline.equals(this.hiddenLineSettings))\r\n return;\r\n\r\n this.onHiddenLineSettingsChanged.raiseEvent(hline);\r\n this._hline = hline;\r\n this._json3d.hline = hline.toJSON();\r\n }\r\n\r\n /** The settings that control how ambient occlusion is displayed. */\r\n public get ambientOcclusionSettings(): AmbientOcclusion.Settings { return this._ao; }\r\n public set ambientOcclusionSettings(ao: AmbientOcclusion.Settings) {\r\n this.onAmbientOcclusionSettingsChanged.raiseEvent(ao);\r\n this._ao = ao;\r\n this._json3d.ao = ao.toJSON();\r\n }\r\n\r\n /** The settings that control how solar shadows are displayed. */\r\n public get solarShadows(): SolarShadowSettings {\r\n return this._solarShadows;\r\n }\r\n public set solarShadows(solarShadows: SolarShadowSettings) {\r\n if (solarShadows.equals(this.solarShadows))\r\n return;\r\n\r\n this.onSolarShadowsChanged.raiseEvent(solarShadows);\r\n this._solarShadows = solarShadows;\r\n const json = solarShadows.toJSON();\r\n if (!json)\r\n delete this._json3d.solarShadows;\r\n else\r\n this._json3d.solarShadows = json;\r\n }\r\n\r\n /** Controls the display of a [[SkyBox]] and [[GroundPlane]].\r\n * @public\r\n */\r\n public get environment(): Environment {\r\n return this._environment;\r\n }\r\n public set environment(environment: Environment) {\r\n if (environment !== this.environment) {\r\n this.onEnvironmentChanged.raiseEvent(environment);\r\n this._environment = environment;\r\n this._json3d.environment = environment.toJSON();\r\n }\r\n }\r\n\r\n /** Toggle display of the [[environment]]'s [[SkyBox]].\r\n * @param display Whether to display the skybox, or `undefined` to toggle the current display.\r\n */\r\n public toggleSkyBox(display?: boolean): void {\r\n display = display ?? this.environment.displaySky;\r\n if (display !== this.environment.displaySky)\r\n this.environment = this.environment.withDisplay({ sky: display });\r\n }\r\n\r\n /** Toggle display of the [[environment]]'s [[GroundPlane]].\r\n * @param display Whether to display the ground plane, or `undefined` to toggle the current display.\r\n */\r\n public toggleGroundPlane(display?: boolean): void {\r\n display = display ?? this.environment.displayGround;\r\n if (display !== this.environment.displayGround)\r\n this.environment = this.environment.withDisplay({ ground: display });\r\n }\r\n\r\n public get lights(): LightSettings {\r\n return this._lights;\r\n }\r\n public set lights(lights: LightSettings) {\r\n if (this.lights.equals(lights))\r\n return;\r\n\r\n this.onLightsChanged.raiseEvent(lights);\r\n this._lights = lights;\r\n this._json3d.lights = lights.toJSON();\r\n }\r\n\r\n /** Adjust the solar light direction based on a date and time at a geographic location.\r\n * This replaces `this.lights` with a copy that records the time point and the computed direction.\r\n * @param timePoint The time in UNIX milliseconds.\r\n * @param location The geographic location; or an iModel, in which case the iModel's [[EcefLocation]] is used.\r\n * @see [[sunTime]] to get the current sun time.\r\n * @see [[clearSunTime]] to clear the time point.\r\n * @note If `location` is an iModel lacking an EcefLocation, a location in Exton, Pennsylvania will be used to compute the light direction instead.\r\n */\r\n public setSunTime(timePoint: number, location: IModel | Cartographic): void {\r\n let cartoCenter;\r\n if (location instanceof IModel) {\r\n if (location.ecefLocation)\r\n cartoCenter = Cartographic.fromEcef(location.ecefLocation.origin);\r\n\r\n if (!cartoCenter)\r\n cartoCenter = Cartographic.fromDegrees({ longitude: -75.17035, latitude: 39.954927, height: 0.0 });\r\n } else {\r\n cartoCenter = location;\r\n }\r\n\r\n const direction = calculateSolarDirection(new Date(timePoint), cartoCenter);\r\n this.lights = this.lights.clone({ solar: { direction, timePoint } });\r\n }\r\n\r\n /** Clear the solar time point stored in `this.lights.solarLight`.\r\n * @note This does not affect the solar light direction.\r\n * @see [[sunTime]] to get the current sun time.\r\n * @see [[setSunTime]] to set the time point and the solar light direction derived from it.\r\n */\r\n public clearSunTime(): void {\r\n if (this.lights.solar.timePoint === undefined)\r\n return;\r\n\r\n const solar = this.lights.solar.toJSON() ?? {};\r\n solar.timePoint = undefined;\r\n this.lights = this.lights.clone({ solar });\r\n }\r\n\r\n /** The time point from which the solar light direction was derived, in UNIX milliseconds.\r\n * @see [[setSunTime]] to change the time point and solar direction.\r\n * @see [[clearSunTime]] to reset the time point to `undefined`.\r\n */\r\n public get sunTime(): number | undefined {\r\n return this.lights.solar.timePoint;\r\n }\r\n\r\n /** Get the plan projection settings associated with the specified model, if defined. */\r\n public getPlanProjectionSettings(modelId: Id64String): PlanProjectionSettings | undefined {\r\n return undefined !== this._planProjections ? this._planProjections.get(modelId) : undefined;\r\n }\r\n\r\n /** Set or clear the plan projection settings associated with the specified model. */\r\n public setPlanProjectionSettings(modelId: Id64String, settings: PlanProjectionSettings | undefined): void {\r\n this.onPlanProjectionSettingsChanged.raiseEvent(modelId, settings);\r\n\r\n if (undefined === settings) {\r\n if (undefined !== this._planProjections) {\r\n assert(undefined !== this._json3d.planProjections);\r\n\r\n this._planProjections.delete(modelId);\r\n delete this._json3d.planProjections[modelId];\r\n\r\n if (0 === this._planProjections.size) {\r\n this._planProjections = undefined;\r\n delete this._json3d.planProjections;\r\n }\r\n }\r\n\r\n return;\r\n }\r\n\r\n if (undefined === this._planProjections) {\r\n this._planProjections = new Map<string, PlanProjectionSettings>();\r\n this._json3d.planProjections = {};\r\n }\r\n\r\n this._planProjections.set(modelId, settings);\r\n this._json3d.planProjections![modelId] = settings.toJSON();\r\n }\r\n\r\n /** An iterator over all of the defined plan projection settings. The iterator includes the Id of the model associated with each settings object. */\r\n public get planProjectionSettings(): Iterable<[Id64String, PlanProjectionSettings]> | undefined {\r\n return undefined !== this._planProjections ? this._planProjections.entries() : undefined;\r\n }\r\n}\r\n"]}
@@ -1,40 +1,40 @@
1
- /** @packageDocumentation
2
- * @module ECSQL
3
- */
4
- /** @public */
5
- export interface ECSchemaReferenceProps {
6
- readonly name: string;
7
- readonly version: string;
8
- }
9
- /** @public */
10
- export interface ECSchemaItemProps {
11
- readonly $schema?: string;
12
- readonly schema?: string;
13
- readonly schemaVersion?: string;
14
- readonly name?: string;
15
- readonly schemaItemType?: string;
16
- readonly label?: string;
17
- readonly description?: string;
18
- readonly customAttributes?: Array<{
19
- [value: string]: any;
20
- }>;
21
- }
22
- /** Properties of an ECSchema
23
- * @public
24
- */
25
- export interface ECSchemaProps {
26
- readonly $schema: string;
27
- readonly name: string;
28
- readonly version: string;
29
- readonly alias: string;
30
- readonly label?: string;
31
- readonly description?: string;
32
- readonly references?: ECSchemaReferenceProps[];
33
- readonly items?: {
34
- [name: string]: ECSchemaItemProps;
35
- };
36
- readonly customAttributes?: Array<{
37
- [value: string]: any;
38
- }>;
39
- }
1
+ /** @packageDocumentation
2
+ * @module ECSQL
3
+ */
4
+ /** @public */
5
+ export interface ECSchemaReferenceProps {
6
+ readonly name: string;
7
+ readonly version: string;
8
+ }
9
+ /** @public */
10
+ export interface ECSchemaItemProps {
11
+ readonly $schema?: string;
12
+ readonly schema?: string;
13
+ readonly schemaVersion?: string;
14
+ readonly name?: string;
15
+ readonly schemaItemType?: string;
16
+ readonly label?: string;
17
+ readonly description?: string;
18
+ readonly customAttributes?: Array<{
19
+ [value: string]: any;
20
+ }>;
21
+ }
22
+ /** Properties of an ECSchema
23
+ * @public
24
+ */
25
+ export interface ECSchemaProps {
26
+ readonly $schema: string;
27
+ readonly name: string;
28
+ readonly version: string;
29
+ readonly alias: string;
30
+ readonly label?: string;
31
+ readonly description?: string;
32
+ readonly references?: ECSchemaReferenceProps[];
33
+ readonly items?: {
34
+ [name: string]: ECSchemaItemProps;
35
+ };
36
+ readonly customAttributes?: Array<{
37
+ [value: string]: any;
38
+ }>;
39
+ }
40
40
  //# sourceMappingURL=ECSchemaProps.d.ts.map
@@ -1,10 +1,10 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module ECSQL
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module ECSQL
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  //# sourceMappingURL=ECSchemaProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ECSchemaProps.js","sourceRoot":"","sources":["../../src/ECSchemaProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module ECSQL\n */\n\n/** @public */\nexport interface ECSchemaReferenceProps {\n readonly name: string;\n readonly version: string;\n}\n\n/** @public */\nexport interface ECSchemaItemProps {\n readonly $schema?: string;\n readonly schema?: string;\n readonly schemaVersion?: string;\n readonly name?: string;\n readonly schemaItemType?: string;\n readonly label?: string;\n readonly description?: string;\n readonly customAttributes?: Array<{ [value: string]: any }>;\n}\n\n/** Properties of an ECSchema\n * @public\n */\nexport interface ECSchemaProps {\n readonly $schema: string;\n readonly name: string;\n readonly version: string;\n readonly alias: string;\n readonly label?: string;\n readonly description?: string;\n readonly references?: ECSchemaReferenceProps[];\n readonly items?: { [name: string]: ECSchemaItemProps };\n readonly customAttributes?: Array<{ [value: string]: any }>;\n}\n"]}
1
+ {"version":3,"file":"ECSchemaProps.js","sourceRoot":"","sources":["../../src/ECSchemaProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module ECSQL\r\n */\r\n\r\n/** @public */\r\nexport interface ECSchemaReferenceProps {\r\n readonly name: string;\r\n readonly version: string;\r\n}\r\n\r\n/** @public */\r\nexport interface ECSchemaItemProps {\r\n readonly $schema?: string;\r\n readonly schema?: string;\r\n readonly schemaVersion?: string;\r\n readonly name?: string;\r\n readonly schemaItemType?: string;\r\n readonly label?: string;\r\n readonly description?: string;\r\n readonly customAttributes?: Array<{ [value: string]: any }>;\r\n}\r\n\r\n/** Properties of an ECSchema\r\n * @public\r\n */\r\nexport interface ECSchemaProps {\r\n readonly $schema: string;\r\n readonly name: string;\r\n readonly version: string;\r\n readonly alias: string;\r\n readonly label?: string;\r\n readonly description?: string;\r\n readonly references?: ECSchemaReferenceProps[];\r\n readonly items?: { [name: string]: ECSchemaItemProps };\r\n readonly customAttributes?: Array<{ [value: string]: any }>;\r\n}\r\n"]}