@itwin/core-common 4.0.0-dev.46 → 4.0.0-dev.48

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 (947) hide show
  1. package/lib/cjs/AmbientOcclusion.d.ts +49 -49
  2. package/lib/cjs/AmbientOcclusion.js +55 -55
  3. package/lib/cjs/AmbientOcclusion.js.map +1 -1
  4. package/lib/cjs/AnalysisStyle.d.ts +134 -134
  5. package/lib/cjs/AnalysisStyle.js +165 -165
  6. package/lib/cjs/AnalysisStyle.js.map +1 -1
  7. package/lib/cjs/AuthorizationClient.d.ts +17 -17
  8. package/lib/cjs/AuthorizationClient.js +9 -9
  9. package/lib/cjs/AuthorizationClient.js.map +1 -1
  10. package/lib/cjs/BackendTypes.d.ts +12 -12
  11. package/lib/cjs/BackendTypes.js +9 -9
  12. package/lib/cjs/BackendTypes.js.map +1 -1
  13. package/lib/cjs/BackgroundMapProvider.d.ts +51 -51
  14. package/lib/cjs/BackgroundMapProvider.js +67 -67
  15. package/lib/cjs/BackgroundMapProvider.js.map +1 -1
  16. package/lib/cjs/BackgroundMapSettings.d.ts +136 -136
  17. package/lib/cjs/BackgroundMapSettings.js +154 -154
  18. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  19. package/lib/cjs/Base64EncodedString.d.ts +32 -32
  20. package/lib/cjs/Base64EncodedString.js +66 -66
  21. package/lib/cjs/Base64EncodedString.js.map +1 -1
  22. package/lib/cjs/BlobReader.d.ts +31 -31
  23. package/lib/cjs/BlobReader.js +84 -84
  24. package/lib/cjs/BlobReader.js.map +1 -1
  25. package/lib/cjs/BriefcaseTypes.d.ts +191 -191
  26. package/lib/cjs/BriefcaseTypes.js +95 -95
  27. package/lib/cjs/BriefcaseTypes.js.map +1 -1
  28. package/lib/cjs/Camera.d.ts +42 -42
  29. package/lib/cjs/Camera.js +62 -62
  30. package/lib/cjs/Camera.js.map +1 -1
  31. package/lib/cjs/ChangedElements.d.ts +85 -85
  32. package/lib/cjs/ChangedElements.js +23 -23
  33. package/lib/cjs/ChangedElements.js.map +1 -1
  34. package/lib/cjs/ChangedEntities.d.ts +45 -45
  35. package/lib/cjs/ChangedEntities.js +9 -9
  36. package/lib/cjs/ChangedEntities.js.map +1 -1
  37. package/lib/cjs/ChangesetProps.d.ts +98 -98
  38. package/lib/cjs/ChangesetProps.js +22 -22
  39. package/lib/cjs/ChangesetProps.js.map +1 -1
  40. package/lib/cjs/ClipStyle.d.ts +89 -89
  41. package/lib/cjs/ClipStyle.js +121 -121
  42. package/lib/cjs/ClipStyle.js.map +1 -1
  43. package/lib/cjs/CloudStorage.d.ts +62 -62
  44. package/lib/cjs/CloudStorage.js +113 -113
  45. package/lib/cjs/CloudStorage.js.map +1 -1
  46. package/lib/cjs/CloudStorageTileCache.d.ts +27 -27
  47. package/lib/cjs/CloudStorageTileCache.js +65 -65
  48. package/lib/cjs/CloudStorageTileCache.js.map +1 -1
  49. package/lib/cjs/Code.d.ts +277 -277
  50. package/lib/cjs/Code.js +268 -268
  51. package/lib/cjs/Code.js.map +1 -1
  52. package/lib/cjs/ColorByName.d.ts +161 -161
  53. package/lib/cjs/ColorByName.js +169 -169
  54. package/lib/cjs/ColorByName.js.map +1 -1
  55. package/lib/cjs/ColorDef.d.ts +208 -208
  56. package/lib/cjs/ColorDef.js +570 -570
  57. package/lib/cjs/ColorDef.js.map +1 -1
  58. package/lib/cjs/CommonLoggerCategory.d.ts +18 -18
  59. package/lib/cjs/CommonLoggerCategory.js +26 -26
  60. package/lib/cjs/CommonLoggerCategory.js.map +1 -1
  61. package/lib/cjs/ConcurrentQuery.d.ts +421 -421
  62. package/lib/cjs/ConcurrentQuery.js +552 -552
  63. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  64. package/lib/cjs/ContextRealityModel.d.ts +303 -303
  65. package/lib/cjs/ContextRealityModel.js +371 -371
  66. package/lib/cjs/ContextRealityModel.js.map +1 -1
  67. package/lib/cjs/DisplayStyleSettings.d.ts +588 -588
  68. package/lib/cjs/DisplayStyleSettings.js +981 -981
  69. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  70. package/lib/cjs/ECSchemaProps.d.ts +39 -39
  71. package/lib/cjs/ECSchemaProps.js +9 -9
  72. package/lib/cjs/ECSchemaProps.js.map +1 -1
  73. package/lib/cjs/ECSqlReader.d.ts +70 -70
  74. package/lib/cjs/ECSqlReader.js +280 -280
  75. package/lib/cjs/ECSqlReader.js.map +1 -1
  76. package/lib/cjs/ECSqlTypes.d.ts +128 -128
  77. package/lib/cjs/ECSqlTypes.js +189 -189
  78. package/lib/cjs/ECSqlTypes.js.map +1 -1
  79. package/lib/cjs/ElementMesh.d.ts +39 -39
  80. package/lib/cjs/ElementMesh.js +56 -56
  81. package/lib/cjs/ElementMesh.js.map +1 -1
  82. package/lib/cjs/ElementProps.d.ts +483 -483
  83. package/lib/cjs/ElementProps.js +99 -99
  84. package/lib/cjs/ElementProps.js.map +1 -1
  85. package/lib/cjs/EmphasizeElementsProps.d.ts +55 -55
  86. package/lib/cjs/EmphasizeElementsProps.js +25 -25
  87. package/lib/cjs/EmphasizeElementsProps.js.map +1 -1
  88. package/lib/cjs/EntityProps.d.ts +177 -177
  89. package/lib/cjs/EntityProps.js +113 -113
  90. package/lib/cjs/EntityProps.js.map +1 -1
  91. package/lib/cjs/EntityReference.d.ts +51 -51
  92. package/lib/cjs/EntityReference.js +56 -56
  93. package/lib/cjs/EntityReference.js.map +1 -1
  94. package/lib/cjs/Environment.d.ts +61 -61
  95. package/lib/cjs/Environment.js +70 -70
  96. package/lib/cjs/Environment.js.map +1 -1
  97. package/lib/cjs/FeatureIndex.d.ts +39 -39
  98. package/lib/cjs/FeatureIndex.js +63 -63
  99. package/lib/cjs/FeatureIndex.js.map +1 -1
  100. package/lib/cjs/FeatureSymbology.d.ts +444 -444
  101. package/lib/cjs/FeatureSymbology.js +613 -613
  102. package/lib/cjs/FeatureSymbology.js.map +1 -1
  103. package/lib/cjs/FeatureTable.d.ts +141 -141
  104. package/lib/cjs/FeatureTable.js +278 -278
  105. package/lib/cjs/FeatureTable.js.map +1 -1
  106. package/lib/cjs/Fonts.d.ts +51 -51
  107. package/lib/cjs/Fonts.js +53 -53
  108. package/lib/cjs/Fonts.js.map +1 -1
  109. package/lib/cjs/Frustum.d.ts +114 -114
  110. package/lib/cjs/Frustum.js +292 -292
  111. package/lib/cjs/Frustum.js.map +1 -1
  112. package/lib/cjs/GeoCoordinateServices.d.ts +119 -119
  113. package/lib/cjs/GeoCoordinateServices.js +80 -80
  114. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  115. package/lib/cjs/GeometryContainment.d.ts +28 -28
  116. package/lib/cjs/GeometryContainment.js +9 -9
  117. package/lib/cjs/GeometryContainment.js.map +1 -1
  118. package/lib/cjs/GeometryParams.d.ts +130 -130
  119. package/lib/cjs/GeometryParams.js +174 -174
  120. package/lib/cjs/GeometryParams.js.map +1 -1
  121. package/lib/cjs/GeometrySummary.d.ts +45 -45
  122. package/lib/cjs/GeometrySummary.js +23 -23
  123. package/lib/cjs/GeometrySummary.js.map +1 -1
  124. package/lib/cjs/Gradient.d.ts +139 -139
  125. package/lib/cjs/Gradient.js +453 -453
  126. package/lib/cjs/Gradient.js.map +1 -1
  127. package/lib/cjs/GraphicParams.d.ts +58 -58
  128. package/lib/cjs/GraphicParams.js +85 -85
  129. package/lib/cjs/GraphicParams.js.map +1 -1
  130. package/lib/cjs/GroundPlane.d.ts +52 -52
  131. package/lib/cjs/GroundPlane.js +63 -63
  132. package/lib/cjs/GroundPlane.js.map +1 -1
  133. package/lib/cjs/HSLColor.d.ts +20 -20
  134. package/lib/cjs/HSLColor.js +32 -32
  135. package/lib/cjs/HSLColor.js.map +1 -1
  136. package/lib/cjs/HSVColor.d.ts +30 -30
  137. package/lib/cjs/HSVColor.js +59 -59
  138. package/lib/cjs/HSVColor.js.map +1 -1
  139. package/lib/cjs/HiddenLine.d.ts +97 -97
  140. package/lib/cjs/HiddenLine.js +160 -160
  141. package/lib/cjs/HiddenLine.js.map +1 -1
  142. package/lib/cjs/Hilite.d.ts +50 -50
  143. package/lib/cjs/Hilite.js +64 -64
  144. package/lib/cjs/Hilite.js.map +1 -1
  145. package/lib/cjs/IModel.d.ts +358 -358
  146. package/lib/cjs/IModel.js +347 -347
  147. package/lib/cjs/IModel.js.map +1 -1
  148. package/lib/cjs/IModelError.d.ts +42 -42
  149. package/lib/cjs/IModelError.js +71 -71
  150. package/lib/cjs/IModelError.js.map +1 -1
  151. package/lib/cjs/IModelVersion.d.ts +68 -68
  152. package/lib/cjs/IModelVersion.js +79 -79
  153. package/lib/cjs/IModelVersion.js.map +1 -1
  154. package/lib/cjs/Image.d.ts +86 -86
  155. package/lib/cjs/Image.js +128 -128
  156. package/lib/cjs/Image.js.map +1 -1
  157. package/lib/cjs/IpcAppProps.d.ts +141 -141
  158. package/lib/cjs/IpcAppProps.js +23 -23
  159. package/lib/cjs/IpcAppProps.js.map +1 -1
  160. package/lib/cjs/LightSettings.d.ts +224 -224
  161. package/lib/cjs/LightSettings.js +304 -304
  162. package/lib/cjs/LightSettings.js.map +1 -1
  163. package/lib/cjs/LinePixels.d.ts +34 -34
  164. package/lib/cjs/LinePixels.js +42 -42
  165. package/lib/cjs/LinePixels.js.map +1 -1
  166. package/lib/cjs/Localization.d.ts +113 -113
  167. package/lib/cjs/Localization.js +33 -33
  168. package/lib/cjs/Localization.js.map +1 -1
  169. package/lib/cjs/MapImagerySettings.d.ts +62 -62
  170. package/lib/cjs/MapImagerySettings.js +80 -80
  171. package/lib/cjs/MapImagerySettings.js.map +1 -1
  172. package/lib/cjs/MapLayerSettings.d.ts +272 -272
  173. package/lib/cjs/MapLayerSettings.js +407 -407
  174. package/lib/cjs/MapLayerSettings.js.map +1 -1
  175. package/lib/cjs/MassProperties.d.ts +64 -64
  176. package/lib/cjs/MassProperties.js +23 -23
  177. package/lib/cjs/MassProperties.js.map +1 -1
  178. package/lib/cjs/MaterialProps.d.ts +153 -153
  179. package/lib/cjs/MaterialProps.js +35 -35
  180. package/lib/cjs/MaterialProps.js.map +1 -1
  181. package/lib/cjs/ModelClipGroup.d.ts +67 -67
  182. package/lib/cjs/ModelClipGroup.js +96 -96
  183. package/lib/cjs/ModelClipGroup.js.map +1 -1
  184. package/lib/cjs/ModelGeometryChanges.d.ts +107 -107
  185. package/lib/cjs/ModelGeometryChanges.js +83 -83
  186. package/lib/cjs/ModelGeometryChanges.js.map +1 -1
  187. package/lib/cjs/ModelProps.d.ts +67 -67
  188. package/lib/cjs/ModelProps.js +9 -9
  189. package/lib/cjs/ModelProps.js.map +1 -1
  190. package/lib/cjs/NativeAppProps.d.ts +122 -122
  191. package/lib/cjs/NativeAppProps.js +30 -30
  192. package/lib/cjs/NativeAppProps.js.map +1 -1
  193. package/lib/cjs/OctEncodedNormal.d.ts +33 -33
  194. package/lib/cjs/OctEncodedNormal.js +98 -98
  195. package/lib/cjs/OctEncodedNormal.js.map +1 -1
  196. package/lib/cjs/PlanProjectionSettings.d.ts +47 -47
  197. package/lib/cjs/PlanProjectionSettings.js +63 -63
  198. package/lib/cjs/PlanProjectionSettings.js.map +1 -1
  199. package/lib/cjs/PlanarClipMask.d.ts +177 -177
  200. package/lib/cjs/PlanarClipMask.js +136 -136
  201. package/lib/cjs/PlanarClipMask.js.map +1 -1
  202. package/lib/cjs/QPoint.d.ts +479 -479
  203. package/lib/cjs/QPoint.js +824 -824
  204. package/lib/cjs/QPoint.js.map +1 -1
  205. package/lib/cjs/RealityDataAccessProps.d.ts +41 -41
  206. package/lib/cjs/RealityDataAccessProps.js +19 -19
  207. package/lib/cjs/RealityDataAccessProps.js.map +1 -1
  208. package/lib/cjs/RealityModelDisplaySettings.d.ts +183 -183
  209. package/lib/cjs/RealityModelDisplaySettings.js +141 -141
  210. package/lib/cjs/RealityModelDisplaySettings.js.map +1 -1
  211. package/lib/cjs/Render.d.ts +89 -89
  212. package/lib/cjs/Render.js +177 -177
  213. package/lib/cjs/Render.js.map +1 -1
  214. package/lib/cjs/RenderMaterial.d.ts +58 -58
  215. package/lib/cjs/RenderMaterial.js +75 -75
  216. package/lib/cjs/RenderMaterial.js.map +1 -1
  217. package/lib/cjs/RenderSchedule.d.ts +543 -543
  218. package/lib/cjs/RenderSchedule.js +992 -992
  219. package/lib/cjs/RenderTexture.d.ts +70 -70
  220. package/lib/cjs/RenderTexture.js +59 -59
  221. package/lib/cjs/RenderTexture.js.map +1 -1
  222. package/lib/cjs/RgbColor.d.ts +47 -47
  223. package/lib/cjs/RgbColor.js +77 -77
  224. package/lib/cjs/RgbColor.js.map +1 -1
  225. package/lib/cjs/RpcInterface.d.ts +33 -33
  226. package/lib/cjs/RpcInterface.js +137 -137
  227. package/lib/cjs/RpcInterface.js.map +1 -1
  228. package/lib/cjs/RpcManager.d.ts +40 -40
  229. package/lib/cjs/RpcManager.js +55 -55
  230. package/lib/cjs/RpcManager.js.map +1 -1
  231. package/lib/cjs/SessionProps.d.ts +16 -16
  232. package/lib/cjs/SessionProps.js +9 -9
  233. package/lib/cjs/SessionProps.js.map +1 -1
  234. package/lib/cjs/SkyBox.d.ts +215 -215
  235. package/lib/cjs/SkyBox.js +209 -209
  236. package/lib/cjs/SkyBox.js.map +1 -1
  237. package/lib/cjs/Snapping.d.ts +49 -49
  238. package/lib/cjs/Snapping.js +9 -9
  239. package/lib/cjs/Snapping.js.map +1 -1
  240. package/lib/cjs/SolarCalculate.d.ts +27 -27
  241. package/lib/cjs/SolarCalculate.js +211 -211
  242. package/lib/cjs/SolarCalculate.js.map +1 -1
  243. package/lib/cjs/SolarShadows.d.ts +35 -35
  244. package/lib/cjs/SolarShadows.js +61 -61
  245. package/lib/cjs/SolarShadows.js.map +1 -1
  246. package/lib/cjs/SpatialClassification.d.ts +208 -208
  247. package/lib/cjs/SpatialClassification.js +339 -339
  248. package/lib/cjs/SpatialClassification.js.map +1 -1
  249. package/lib/cjs/SubCategoryAppearance.d.ts +91 -91
  250. package/lib/cjs/SubCategoryAppearance.js +96 -96
  251. package/lib/cjs/SubCategoryAppearance.js.map +1 -1
  252. package/lib/cjs/SubCategoryOverride.d.ts +46 -46
  253. package/lib/cjs/SubCategoryOverride.js +104 -104
  254. package/lib/cjs/SubCategoryOverride.js.map +1 -1
  255. package/lib/cjs/TerrainSettings.d.ts +82 -82
  256. package/lib/cjs/TerrainSettings.js +100 -100
  257. package/lib/cjs/TerrainSettings.js.map +1 -1
  258. package/lib/cjs/TextureMapping.d.ts +118 -118
  259. package/lib/cjs/TextureMapping.js +173 -173
  260. package/lib/cjs/TextureMapping.js.map +1 -1
  261. package/lib/cjs/TextureProps.d.ts +65 -65
  262. package/lib/cjs/TextureProps.js +28 -28
  263. package/lib/cjs/TextureProps.js.map +1 -1
  264. package/lib/cjs/ThematicDisplay.d.ts +230 -230
  265. package/lib/cjs/ThematicDisplay.js +343 -343
  266. package/lib/cjs/ThematicDisplay.js.map +1 -1
  267. package/lib/cjs/Thumbnail.d.ts +26 -26
  268. package/lib/cjs/Thumbnail.js +9 -9
  269. package/lib/cjs/Thumbnail.js.map +1 -1
  270. package/lib/cjs/TileProps.d.ts +82 -82
  271. package/lib/cjs/TileProps.js +29 -29
  272. package/lib/cjs/TileProps.js.map +1 -1
  273. package/lib/cjs/Tween.d.ts +191 -191
  274. package/lib/cjs/Tween.js +570 -570
  275. package/lib/cjs/Tween.js.map +1 -1
  276. package/lib/cjs/TxnAction.d.ts +21 -21
  277. package/lib/cjs/TxnAction.js +29 -29
  278. package/lib/cjs/TxnAction.js.map +1 -1
  279. package/lib/cjs/ViewDetails.d.ts +125 -125
  280. package/lib/cjs/ViewDetails.js +166 -166
  281. package/lib/cjs/ViewDetails.js.map +1 -1
  282. package/lib/cjs/ViewFlags.d.ts +287 -287
  283. package/lib/cjs/ViewFlags.js +367 -367
  284. package/lib/cjs/ViewFlags.js.map +1 -1
  285. package/lib/cjs/ViewProps.d.ts +205 -205
  286. package/lib/cjs/ViewProps.js +9 -9
  287. package/lib/cjs/ViewProps.js.map +1 -1
  288. package/lib/cjs/WhiteOnWhiteReversalSettings.d.ts +36 -36
  289. package/lib/cjs/WhiteOnWhiteReversalSettings.js +37 -37
  290. package/lib/cjs/WhiteOnWhiteReversalSettings.js.map +1 -1
  291. package/lib/cjs/core-common.d.ts +245 -245
  292. package/lib/cjs/core-common.js +261 -261
  293. package/lib/cjs/core-common.js.map +1 -1
  294. package/lib/cjs/domains/FunctionalElementProps.d.ts +11 -11
  295. package/lib/cjs/domains/FunctionalElementProps.js +9 -9
  296. package/lib/cjs/domains/FunctionalElementProps.js.map +1 -1
  297. package/lib/cjs/domains/GenericElementProps.d.ts +18 -18
  298. package/lib/cjs/domains/GenericElementProps.js +9 -9
  299. package/lib/cjs/domains/GenericElementProps.js.map +1 -1
  300. package/lib/cjs/geometry/AdditionalTransform.d.ts +84 -84
  301. package/lib/cjs/geometry/AdditionalTransform.js +85 -85
  302. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  303. package/lib/cjs/geometry/AreaPattern.d.ts +82 -82
  304. package/lib/cjs/geometry/AreaPattern.js +203 -203
  305. package/lib/cjs/geometry/AreaPattern.js.map +1 -1
  306. package/lib/cjs/geometry/BoundingSphere.d.ts +27 -27
  307. package/lib/cjs/geometry/BoundingSphere.js +44 -44
  308. package/lib/cjs/geometry/BoundingSphere.js.map +1 -1
  309. package/lib/cjs/geometry/Cartographic.d.ts +137 -137
  310. package/lib/cjs/geometry/Cartographic.js +345 -345
  311. package/lib/cjs/geometry/Cartographic.js.map +1 -1
  312. package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts +269 -269
  313. package/lib/cjs/geometry/CoordinateReferenceSystem.js +260 -260
  314. package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
  315. package/lib/cjs/geometry/ElementGeometry.d.ts +402 -402
  316. package/lib/cjs/geometry/ElementGeometry.js +1719 -1719
  317. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  318. package/lib/cjs/geometry/ElementGeometryFB.d.ts +2372 -2372
  319. package/lib/cjs/geometry/ElementGeometryFB.js +3814 -3814
  320. package/lib/cjs/geometry/ElementGeometryFB.js.map +1 -1
  321. package/lib/cjs/geometry/FrustumPlanes.d.ts +81 -81
  322. package/lib/cjs/geometry/FrustumPlanes.js +189 -189
  323. package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
  324. package/lib/cjs/geometry/GeodeticDatum.d.ts +409 -409
  325. package/lib/cjs/geometry/GeodeticDatum.js +400 -400
  326. package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
  327. package/lib/cjs/geometry/GeodeticEllipsoid.d.ts +72 -72
  328. package/lib/cjs/geometry/GeodeticEllipsoid.js +71 -71
  329. package/lib/cjs/geometry/GeodeticEllipsoid.js.map +1 -1
  330. package/lib/cjs/geometry/GeometryStream.d.ts +347 -347
  331. package/lib/cjs/geometry/GeometryStream.js +468 -468
  332. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  333. package/lib/cjs/geometry/ImageGraphic.d.ts +74 -74
  334. package/lib/cjs/geometry/ImageGraphic.js +98 -98
  335. package/lib/cjs/geometry/ImageGraphic.js.map +1 -1
  336. package/lib/cjs/geometry/LineStyle.d.ts +71 -71
  337. package/lib/cjs/geometry/LineStyle.js +129 -129
  338. package/lib/cjs/geometry/LineStyle.js.map +1 -1
  339. package/lib/cjs/geometry/Placement.d.ts +95 -95
  340. package/lib/cjs/geometry/Placement.js +131 -131
  341. package/lib/cjs/geometry/Placement.js.map +1 -1
  342. package/lib/cjs/geometry/Projection.d.ts +251 -251
  343. package/lib/cjs/geometry/Projection.js +198 -198
  344. package/lib/cjs/geometry/Projection.js.map +1 -1
  345. package/lib/cjs/geometry/TextString.d.ts +55 -55
  346. package/lib/cjs/geometry/TextString.js +65 -65
  347. package/lib/cjs/geometry/TextString.js.map +1 -1
  348. package/lib/cjs/ipc/IpcSession.d.ts +23 -23
  349. package/lib/cjs/ipc/IpcSession.js +27 -27
  350. package/lib/cjs/ipc/IpcSession.js.map +1 -1
  351. package/lib/cjs/ipc/IpcSocket.d.ts +96 -96
  352. package/lib/cjs/ipc/IpcSocket.js +16 -16
  353. package/lib/cjs/ipc/IpcSocket.js.map +1 -1
  354. package/lib/cjs/ipc/IpcWebSocket.d.ts +61 -61
  355. package/lib/cjs/ipc/IpcWebSocket.js +150 -150
  356. package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
  357. package/lib/cjs/ipc/IpcWebSocketTransport.d.ts +15 -15
  358. package/lib/cjs/ipc/IpcWebSocketTransport.js +160 -160
  359. package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -1
  360. package/lib/cjs/rpc/DevToolsRpcInterface.d.ts +32 -32
  361. package/lib/cjs/rpc/DevToolsRpcInterface.js +52 -52
  362. package/lib/cjs/rpc/DevToolsRpcInterface.js.map +1 -1
  363. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts +99 -99
  364. package/lib/cjs/rpc/IModelReadRpcInterface.js +122 -122
  365. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  366. package/lib/cjs/rpc/IModelTileRpcInterface.d.ts +61 -61
  367. package/lib/cjs/rpc/IModelTileRpcInterface.js +96 -96
  368. package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
  369. package/lib/cjs/rpc/SnapshotIModelRpcInterface.d.ts +23 -23
  370. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js +48 -48
  371. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  372. package/lib/cjs/rpc/TestRpcManager.d.ts +20 -20
  373. package/lib/cjs/rpc/TestRpcManager.js +40 -40
  374. package/lib/cjs/rpc/TestRpcManager.js.map +1 -1
  375. package/lib/cjs/rpc/WipRpcInterface.d.ts +29 -29
  376. package/lib/cjs/rpc/WipRpcInterface.js +40 -40
  377. package/lib/cjs/rpc/WipRpcInterface.js.map +1 -1
  378. package/lib/cjs/rpc/core/RpcConfiguration.d.ts +111 -111
  379. package/lib/cjs/rpc/core/RpcConfiguration.js +191 -191
  380. package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
  381. package/lib/cjs/rpc/core/RpcConstants.d.ts +90 -90
  382. package/lib/cjs/rpc/core/RpcConstants.js +109 -109
  383. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  384. package/lib/cjs/rpc/core/RpcControl.d.ts +54 -54
  385. package/lib/cjs/rpc/core/RpcControl.js +145 -145
  386. package/lib/cjs/rpc/core/RpcControl.js.map +1 -1
  387. package/lib/cjs/rpc/core/RpcInvocation.d.ts +89 -89
  388. package/lib/cjs/rpc/core/RpcInvocation.js +256 -256
  389. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  390. package/lib/cjs/rpc/core/RpcMarshaling.d.ts +35 -35
  391. package/lib/cjs/rpc/core/RpcMarshaling.js +156 -156
  392. package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
  393. package/lib/cjs/rpc/core/RpcOperation.d.ts +67 -67
  394. package/lib/cjs/rpc/core/RpcOperation.js +134 -134
  395. package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
  396. package/lib/cjs/rpc/core/RpcPendingQueue.d.ts +21 -21
  397. package/lib/cjs/rpc/core/RpcPendingQueue.js +94 -94
  398. package/lib/cjs/rpc/core/RpcPendingQueue.js.map +1 -1
  399. package/lib/cjs/rpc/core/RpcProtocol.d.ts +132 -132
  400. package/lib/cjs/rpc/core/RpcProtocol.js +127 -127
  401. package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
  402. package/lib/cjs/rpc/core/RpcPush.d.ts +68 -68
  403. package/lib/cjs/rpc/core/RpcPush.js +127 -127
  404. package/lib/cjs/rpc/core/RpcPush.js.map +1 -1
  405. package/lib/cjs/rpc/core/RpcRegistry.d.ts +48 -48
  406. package/lib/cjs/rpc/core/RpcRegistry.js +198 -198
  407. package/lib/cjs/rpc/core/RpcRegistry.js.map +1 -1
  408. package/lib/cjs/rpc/core/RpcRequest.d.ts +186 -186
  409. package/lib/cjs/rpc/core/RpcRequest.js +478 -478
  410. package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
  411. package/lib/cjs/rpc/core/RpcRequestContext.d.ts +14 -14
  412. package/lib/cjs/rpc/core/RpcRequestContext.js +2 -2
  413. package/lib/cjs/rpc/core/RpcRequestContext.js.map +1 -1
  414. package/lib/cjs/rpc/core/RpcRoutingToken.d.ts +12 -12
  415. package/lib/cjs/rpc/core/RpcRoutingToken.js +24 -24
  416. package/lib/cjs/rpc/core/RpcRoutingToken.js.map +1 -1
  417. package/lib/cjs/rpc/core/RpcSessionInvocation.d.ts +10 -10
  418. package/lib/cjs/rpc/core/RpcSessionInvocation.js +60 -60
  419. package/lib/cjs/rpc/core/RpcSessionInvocation.js.map +1 -1
  420. package/lib/cjs/rpc/web/BentleyCloudRpcManager.d.ts +46 -46
  421. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js +73 -73
  422. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  423. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.d.ts +33 -33
  424. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +141 -141
  425. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  426. package/lib/cjs/rpc/web/OpenAPI.d.ts +140 -140
  427. package/lib/cjs/rpc/web/OpenAPI.js +60 -60
  428. package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
  429. package/lib/cjs/rpc/web/RpcMultipart.d.ts +35 -35
  430. package/lib/cjs/rpc/web/RpcMultipart.js +50 -50
  431. package/lib/cjs/rpc/web/RpcMultipart.js.map +1 -1
  432. package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts +28 -28
  433. package/lib/cjs/rpc/web/WebAppRpcLogging.js +140 -140
  434. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  435. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +89 -89
  436. package/lib/cjs/rpc/web/WebAppRpcProtocol.js +116 -116
  437. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  438. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts +67 -67
  439. package/lib/cjs/rpc/web/WebAppRpcRequest.js +239 -239
  440. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  441. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.d.ts +32 -32
  442. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js +373 -373
  443. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  444. package/lib/cjs/tile/B3dmTileIO.d.ts +19 -19
  445. package/lib/cjs/tile/B3dmTileIO.js +66 -66
  446. package/lib/cjs/tile/B3dmTileIO.js.map +1 -1
  447. package/lib/cjs/tile/CompositeTileIO.d.ts +15 -15
  448. package/lib/cjs/tile/CompositeTileIO.js +26 -26
  449. package/lib/cjs/tile/CompositeTileIO.js.map +1 -1
  450. package/lib/cjs/tile/ElementGraphics.d.ts +145 -145
  451. package/lib/cjs/tile/ElementGraphics.js +9 -9
  452. package/lib/cjs/tile/ElementGraphics.js.map +1 -1
  453. package/lib/cjs/tile/GltfTileIO.d.ts +45 -45
  454. package/lib/cjs/tile/GltfTileIO.js +109 -109
  455. package/lib/cjs/tile/GltfTileIO.js.map +1 -1
  456. package/lib/cjs/tile/I3dmTileIO.d.ts +20 -20
  457. package/lib/cjs/tile/I3dmTileIO.js +40 -40
  458. package/lib/cjs/tile/I3dmTileIO.js.map +1 -1
  459. package/lib/cjs/tile/IModelTileIO.d.ts +75 -75
  460. package/lib/cjs/tile/IModelTileIO.js +95 -95
  461. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  462. package/lib/cjs/tile/PntsTileIO.d.ts +17 -17
  463. package/lib/cjs/tile/PntsTileIO.js +26 -26
  464. package/lib/cjs/tile/PntsTileIO.js.map +1 -1
  465. package/lib/cjs/tile/TileIO.d.ts +66 -66
  466. package/lib/cjs/tile/TileIO.js +118 -118
  467. package/lib/cjs/tile/TileIO.js.map +1 -1
  468. package/lib/cjs/tile/TileMetadata.d.ts +228 -228
  469. package/lib/cjs/tile/TileMetadata.js +675 -675
  470. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  471. package/lib/cjs/tile/Tileset3dSchema.d.ts +96 -96
  472. package/lib/cjs/tile/Tileset3dSchema.js +9 -9
  473. package/lib/cjs/tile/Tileset3dSchema.js.map +1 -1
  474. package/lib/esm/AmbientOcclusion.d.ts +49 -49
  475. package/lib/esm/AmbientOcclusion.js +52 -52
  476. package/lib/esm/AmbientOcclusion.js.map +1 -1
  477. package/lib/esm/AnalysisStyle.d.ts +134 -134
  478. package/lib/esm/AnalysisStyle.js +159 -159
  479. package/lib/esm/AnalysisStyle.js.map +1 -1
  480. package/lib/esm/AuthorizationClient.d.ts +17 -17
  481. package/lib/esm/AuthorizationClient.js +8 -8
  482. package/lib/esm/AuthorizationClient.js.map +1 -1
  483. package/lib/esm/BackendTypes.d.ts +12 -12
  484. package/lib/esm/BackendTypes.js +8 -8
  485. package/lib/esm/BackendTypes.js.map +1 -1
  486. package/lib/esm/BackgroundMapProvider.d.ts +51 -51
  487. package/lib/esm/BackgroundMapProvider.js +63 -63
  488. package/lib/esm/BackgroundMapProvider.js.map +1 -1
  489. package/lib/esm/BackgroundMapSettings.d.ts +136 -136
  490. package/lib/esm/BackgroundMapSettings.js +150 -150
  491. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  492. package/lib/esm/Base64EncodedString.d.ts +32 -32
  493. package/lib/esm/Base64EncodedString.js +63 -63
  494. package/lib/esm/Base64EncodedString.js.map +1 -1
  495. package/lib/esm/BlobReader.d.ts +31 -31
  496. package/lib/esm/BlobReader.js +79 -79
  497. package/lib/esm/BlobReader.js.map +1 -1
  498. package/lib/esm/BriefcaseTypes.d.ts +191 -191
  499. package/lib/esm/BriefcaseTypes.js +92 -92
  500. package/lib/esm/BriefcaseTypes.js.map +1 -1
  501. package/lib/esm/Camera.d.ts +42 -42
  502. package/lib/esm/Camera.js +58 -58
  503. package/lib/esm/Camera.js.map +1 -1
  504. package/lib/esm/ChangedElements.d.ts +85 -85
  505. package/lib/esm/ChangedElements.js +20 -20
  506. package/lib/esm/ChangedElements.js.map +1 -1
  507. package/lib/esm/ChangedEntities.d.ts +45 -45
  508. package/lib/esm/ChangedEntities.js +8 -8
  509. package/lib/esm/ChangedEntities.js.map +1 -1
  510. package/lib/esm/ChangesetProps.d.ts +98 -98
  511. package/lib/esm/ChangesetProps.js +19 -19
  512. package/lib/esm/ChangesetProps.js.map +1 -1
  513. package/lib/esm/ClipStyle.d.ts +89 -89
  514. package/lib/esm/ClipStyle.js +116 -116
  515. package/lib/esm/ClipStyle.js.map +1 -1
  516. package/lib/esm/CloudStorage.d.ts +62 -62
  517. package/lib/esm/CloudStorage.js +109 -109
  518. package/lib/esm/CloudStorage.js.map +1 -1
  519. package/lib/esm/CloudStorageTileCache.d.ts +27 -27
  520. package/lib/esm/CloudStorageTileCache.js +61 -61
  521. package/lib/esm/CloudStorageTileCache.js.map +1 -1
  522. package/lib/esm/Code.d.ts +277 -277
  523. package/lib/esm/Code.js +263 -263
  524. package/lib/esm/Code.js.map +1 -1
  525. package/lib/esm/ColorByName.d.ts +161 -161
  526. package/lib/esm/ColorByName.js +166 -166
  527. package/lib/esm/ColorByName.js.map +1 -1
  528. package/lib/esm/ColorDef.d.ts +208 -208
  529. package/lib/esm/ColorDef.js +566 -566
  530. package/lib/esm/ColorDef.js.map +1 -1
  531. package/lib/esm/CommonLoggerCategory.d.ts +18 -18
  532. package/lib/esm/CommonLoggerCategory.js +23 -23
  533. package/lib/esm/CommonLoggerCategory.js.map +1 -1
  534. package/lib/esm/ConcurrentQuery.d.ts +421 -421
  535. package/lib/esm/ConcurrentQuery.js +545 -545
  536. package/lib/esm/ConcurrentQuery.js.map +1 -1
  537. package/lib/esm/ContextRealityModel.d.ts +303 -303
  538. package/lib/esm/ContextRealityModel.js +366 -366
  539. package/lib/esm/ContextRealityModel.js.map +1 -1
  540. package/lib/esm/DisplayStyleSettings.d.ts +588 -588
  541. package/lib/esm/DisplayStyleSettings.js +976 -976
  542. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  543. package/lib/esm/ECSchemaProps.d.ts +39 -39
  544. package/lib/esm/ECSchemaProps.js +8 -8
  545. package/lib/esm/ECSchemaProps.js.map +1 -1
  546. package/lib/esm/ECSqlReader.d.ts +70 -70
  547. package/lib/esm/ECSqlReader.js +275 -275
  548. package/lib/esm/ECSqlReader.js.map +1 -1
  549. package/lib/esm/ECSqlTypes.d.ts +128 -128
  550. package/lib/esm/ECSqlTypes.js +185 -185
  551. package/lib/esm/ECSqlTypes.js.map +1 -1
  552. package/lib/esm/ElementMesh.d.ts +39 -39
  553. package/lib/esm/ElementMesh.js +52 -52
  554. package/lib/esm/ElementMesh.js.map +1 -1
  555. package/lib/esm/ElementProps.d.ts +483 -483
  556. package/lib/esm/ElementProps.js +92 -92
  557. package/lib/esm/ElementProps.js.map +1 -1
  558. package/lib/esm/EmphasizeElementsProps.d.ts +55 -55
  559. package/lib/esm/EmphasizeElementsProps.js +22 -22
  560. package/lib/esm/EmphasizeElementsProps.js.map +1 -1
  561. package/lib/esm/EntityProps.d.ts +177 -177
  562. package/lib/esm/EntityProps.js +108 -108
  563. package/lib/esm/EntityProps.js.map +1 -1
  564. package/lib/esm/EntityReference.d.ts +51 -51
  565. package/lib/esm/EntityReference.js +52 -52
  566. package/lib/esm/EntityReference.js.map +1 -1
  567. package/lib/esm/Environment.d.ts +61 -61
  568. package/lib/esm/Environment.js +66 -66
  569. package/lib/esm/Environment.js.map +1 -1
  570. package/lib/esm/FeatureIndex.d.ts +39 -39
  571. package/lib/esm/FeatureIndex.js +57 -57
  572. package/lib/esm/FeatureIndex.js.map +1 -1
  573. package/lib/esm/FeatureSymbology.d.ts +444 -444
  574. package/lib/esm/FeatureSymbology.js +608 -608
  575. package/lib/esm/FeatureSymbology.js.map +1 -1
  576. package/lib/esm/FeatureTable.d.ts +141 -141
  577. package/lib/esm/FeatureTable.js +272 -272
  578. package/lib/esm/FeatureTable.js.map +1 -1
  579. package/lib/esm/Fonts.d.ts +51 -51
  580. package/lib/esm/Fonts.js +49 -49
  581. package/lib/esm/Fonts.js.map +1 -1
  582. package/lib/esm/Frustum.d.ts +114 -114
  583. package/lib/esm/Frustum.js +288 -288
  584. package/lib/esm/Frustum.js.map +1 -1
  585. package/lib/esm/GeoCoordinateServices.d.ts +119 -119
  586. package/lib/esm/GeoCoordinateServices.js +76 -76
  587. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  588. package/lib/esm/GeometryContainment.d.ts +28 -28
  589. package/lib/esm/GeometryContainment.js +8 -8
  590. package/lib/esm/GeometryContainment.js.map +1 -1
  591. package/lib/esm/GeometryParams.d.ts +130 -130
  592. package/lib/esm/GeometryParams.js +170 -170
  593. package/lib/esm/GeometryParams.js.map +1 -1
  594. package/lib/esm/GeometrySummary.d.ts +45 -45
  595. package/lib/esm/GeometrySummary.js +20 -20
  596. package/lib/esm/GeometrySummary.js.map +1 -1
  597. package/lib/esm/Gradient.d.ts +139 -139
  598. package/lib/esm/Gradient.js +450 -450
  599. package/lib/esm/Gradient.js.map +1 -1
  600. package/lib/esm/GraphicParams.d.ts +58 -58
  601. package/lib/esm/GraphicParams.js +81 -81
  602. package/lib/esm/GraphicParams.js.map +1 -1
  603. package/lib/esm/GroundPlane.d.ts +52 -52
  604. package/lib/esm/GroundPlane.js +59 -59
  605. package/lib/esm/GroundPlane.js.map +1 -1
  606. package/lib/esm/HSLColor.d.ts +20 -20
  607. package/lib/esm/HSLColor.js +28 -28
  608. package/lib/esm/HSLColor.js.map +1 -1
  609. package/lib/esm/HSVColor.d.ts +30 -30
  610. package/lib/esm/HSVColor.js +55 -55
  611. package/lib/esm/HSVColor.js.map +1 -1
  612. package/lib/esm/HiddenLine.d.ts +97 -97
  613. package/lib/esm/HiddenLine.js +157 -157
  614. package/lib/esm/HiddenLine.js.map +1 -1
  615. package/lib/esm/Hilite.d.ts +50 -50
  616. package/lib/esm/Hilite.js +61 -61
  617. package/lib/esm/Hilite.js.map +1 -1
  618. package/lib/esm/IModel.d.ts +358 -358
  619. package/lib/esm/IModel.js +342 -342
  620. package/lib/esm/IModel.js.map +1 -1
  621. package/lib/esm/IModelError.d.ts +42 -42
  622. package/lib/esm/IModelError.js +56 -56
  623. package/lib/esm/IModelError.js.map +1 -1
  624. package/lib/esm/IModelVersion.d.ts +68 -68
  625. package/lib/esm/IModelVersion.js +75 -75
  626. package/lib/esm/IModelVersion.js.map +1 -1
  627. package/lib/esm/Image.d.ts +86 -86
  628. package/lib/esm/Image.js +120 -120
  629. package/lib/esm/Image.js.map +1 -1
  630. package/lib/esm/IpcAppProps.d.ts +141 -141
  631. package/lib/esm/IpcAppProps.js +19 -19
  632. package/lib/esm/IpcAppProps.js.map +1 -1
  633. package/lib/esm/LightSettings.d.ts +224 -224
  634. package/lib/esm/LightSettings.js +296 -296
  635. package/lib/esm/LightSettings.js.map +1 -1
  636. package/lib/esm/LinePixels.d.ts +34 -34
  637. package/lib/esm/LinePixels.js +39 -39
  638. package/lib/esm/LinePixels.js.map +1 -1
  639. package/lib/esm/Localization.d.ts +113 -113
  640. package/lib/esm/Localization.js +29 -29
  641. package/lib/esm/Localization.js.map +1 -1
  642. package/lib/esm/MapImagerySettings.d.ts +62 -62
  643. package/lib/esm/MapImagerySettings.js +76 -76
  644. package/lib/esm/MapImagerySettings.js.map +1 -1
  645. package/lib/esm/MapLayerSettings.d.ts +272 -272
  646. package/lib/esm/MapLayerSettings.js +399 -399
  647. package/lib/esm/MapLayerSettings.js.map +1 -1
  648. package/lib/esm/MassProperties.d.ts +64 -64
  649. package/lib/esm/MassProperties.js +20 -20
  650. package/lib/esm/MassProperties.js.map +1 -1
  651. package/lib/esm/MaterialProps.d.ts +153 -153
  652. package/lib/esm/MaterialProps.js +32 -32
  653. package/lib/esm/MaterialProps.js.map +1 -1
  654. package/lib/esm/ModelClipGroup.d.ts +67 -67
  655. package/lib/esm/ModelClipGroup.js +91 -91
  656. package/lib/esm/ModelClipGroup.js.map +1 -1
  657. package/lib/esm/ModelGeometryChanges.d.ts +107 -107
  658. package/lib/esm/ModelGeometryChanges.js +80 -80
  659. package/lib/esm/ModelGeometryChanges.js.map +1 -1
  660. package/lib/esm/ModelProps.d.ts +67 -67
  661. package/lib/esm/ModelProps.js +8 -8
  662. package/lib/esm/ModelProps.js.map +1 -1
  663. package/lib/esm/NativeAppProps.d.ts +122 -122
  664. package/lib/esm/NativeAppProps.js +27 -27
  665. package/lib/esm/NativeAppProps.js.map +1 -1
  666. package/lib/esm/OctEncodedNormal.d.ts +33 -33
  667. package/lib/esm/OctEncodedNormal.js +93 -93
  668. package/lib/esm/OctEncodedNormal.js.map +1 -1
  669. package/lib/esm/PlanProjectionSettings.d.ts +47 -47
  670. package/lib/esm/PlanProjectionSettings.js +59 -59
  671. package/lib/esm/PlanProjectionSettings.js.map +1 -1
  672. package/lib/esm/PlanarClipMask.d.ts +177 -177
  673. package/lib/esm/PlanarClipMask.js +132 -132
  674. package/lib/esm/PlanarClipMask.js.map +1 -1
  675. package/lib/esm/QPoint.d.ts +479 -479
  676. package/lib/esm/QPoint.js +813 -813
  677. package/lib/esm/QPoint.js.map +1 -1
  678. package/lib/esm/RealityDataAccessProps.d.ts +41 -41
  679. package/lib/esm/RealityDataAccessProps.js +16 -16
  680. package/lib/esm/RealityDataAccessProps.js.map +1 -1
  681. package/lib/esm/RealityModelDisplaySettings.d.ts +183 -183
  682. package/lib/esm/RealityModelDisplaySettings.js +136 -136
  683. package/lib/esm/RealityModelDisplaySettings.js.map +1 -1
  684. package/lib/esm/Render.d.ts +89 -89
  685. package/lib/esm/Render.js +165 -165
  686. package/lib/esm/Render.js.map +1 -1
  687. package/lib/esm/RenderMaterial.d.ts +58 -58
  688. package/lib/esm/RenderMaterial.js +71 -71
  689. package/lib/esm/RenderMaterial.js.map +1 -1
  690. package/lib/esm/RenderSchedule.d.ts +543 -543
  691. package/lib/esm/RenderSchedule.js +989 -989
  692. package/lib/esm/RenderTexture.d.ts +70 -70
  693. package/lib/esm/RenderTexture.js +55 -55
  694. package/lib/esm/RenderTexture.js.map +1 -1
  695. package/lib/esm/RgbColor.d.ts +47 -47
  696. package/lib/esm/RgbColor.js +73 -73
  697. package/lib/esm/RgbColor.js.map +1 -1
  698. package/lib/esm/RpcInterface.d.ts +33 -33
  699. package/lib/esm/RpcInterface.js +133 -133
  700. package/lib/esm/RpcInterface.js.map +1 -1
  701. package/lib/esm/RpcManager.d.ts +40 -40
  702. package/lib/esm/RpcManager.js +51 -51
  703. package/lib/esm/RpcManager.js.map +1 -1
  704. package/lib/esm/SessionProps.d.ts +16 -16
  705. package/lib/esm/SessionProps.js +8 -8
  706. package/lib/esm/SessionProps.js.map +1 -1
  707. package/lib/esm/SkyBox.d.ts +215 -215
  708. package/lib/esm/SkyBox.js +202 -202
  709. package/lib/esm/SkyBox.js.map +1 -1
  710. package/lib/esm/Snapping.d.ts +49 -49
  711. package/lib/esm/Snapping.js +8 -8
  712. package/lib/esm/Snapping.js.map +1 -1
  713. package/lib/esm/SolarCalculate.d.ts +27 -27
  714. package/lib/esm/SolarCalculate.js +204 -204
  715. package/lib/esm/SolarCalculate.js.map +1 -1
  716. package/lib/esm/SolarShadows.d.ts +35 -35
  717. package/lib/esm/SolarShadows.js +57 -57
  718. package/lib/esm/SolarShadows.js.map +1 -1
  719. package/lib/esm/SpatialClassification.d.ts +208 -208
  720. package/lib/esm/SpatialClassification.js +333 -333
  721. package/lib/esm/SpatialClassification.js.map +1 -1
  722. package/lib/esm/SubCategoryAppearance.d.ts +91 -91
  723. package/lib/esm/SubCategoryAppearance.js +92 -92
  724. package/lib/esm/SubCategoryAppearance.js.map +1 -1
  725. package/lib/esm/SubCategoryOverride.d.ts +46 -46
  726. package/lib/esm/SubCategoryOverride.js +100 -100
  727. package/lib/esm/SubCategoryOverride.js.map +1 -1
  728. package/lib/esm/TerrainSettings.d.ts +82 -82
  729. package/lib/esm/TerrainSettings.js +96 -96
  730. package/lib/esm/TerrainSettings.js.map +1 -1
  731. package/lib/esm/TextureMapping.d.ts +118 -118
  732. package/lib/esm/TextureMapping.js +169 -169
  733. package/lib/esm/TextureMapping.js.map +1 -1
  734. package/lib/esm/TextureProps.d.ts +65 -65
  735. package/lib/esm/TextureProps.js +25 -25
  736. package/lib/esm/TextureProps.js.map +1 -1
  737. package/lib/esm/ThematicDisplay.d.ts +230 -230
  738. package/lib/esm/ThematicDisplay.js +336 -336
  739. package/lib/esm/ThematicDisplay.js.map +1 -1
  740. package/lib/esm/Thumbnail.d.ts +26 -26
  741. package/lib/esm/Thumbnail.js +8 -8
  742. package/lib/esm/Thumbnail.js.map +1 -1
  743. package/lib/esm/TileProps.d.ts +82 -82
  744. package/lib/esm/TileProps.js +25 -25
  745. package/lib/esm/TileProps.js.map +1 -1
  746. package/lib/esm/Tween.d.ts +191 -191
  747. package/lib/esm/Tween.js +565 -565
  748. package/lib/esm/Tween.js.map +1 -1
  749. package/lib/esm/TxnAction.d.ts +21 -21
  750. package/lib/esm/TxnAction.js +26 -26
  751. package/lib/esm/TxnAction.js.map +1 -1
  752. package/lib/esm/ViewDetails.d.ts +125 -125
  753. package/lib/esm/ViewDetails.js +161 -161
  754. package/lib/esm/ViewDetails.js.map +1 -1
  755. package/lib/esm/ViewFlags.d.ts +287 -287
  756. package/lib/esm/ViewFlags.js +363 -363
  757. package/lib/esm/ViewFlags.js.map +1 -1
  758. package/lib/esm/ViewProps.d.ts +205 -205
  759. package/lib/esm/ViewProps.js +8 -8
  760. package/lib/esm/ViewProps.js.map +1 -1
  761. package/lib/esm/WhiteOnWhiteReversalSettings.d.ts +36 -36
  762. package/lib/esm/WhiteOnWhiteReversalSettings.js +33 -33
  763. package/lib/esm/WhiteOnWhiteReversalSettings.js.map +1 -1
  764. package/lib/esm/core-common.d.ts +245 -245
  765. package/lib/esm/core-common.js +249 -249
  766. package/lib/esm/core-common.js.map +1 -1
  767. package/lib/esm/domains/FunctionalElementProps.d.ts +11 -11
  768. package/lib/esm/domains/FunctionalElementProps.js +8 -8
  769. package/lib/esm/domains/FunctionalElementProps.js.map +1 -1
  770. package/lib/esm/domains/GenericElementProps.d.ts +18 -18
  771. package/lib/esm/domains/GenericElementProps.js +8 -8
  772. package/lib/esm/domains/GenericElementProps.js.map +1 -1
  773. package/lib/esm/geometry/AdditionalTransform.d.ts +84 -84
  774. package/lib/esm/geometry/AdditionalTransform.js +80 -80
  775. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  776. package/lib/esm/geometry/AreaPattern.d.ts +82 -82
  777. package/lib/esm/geometry/AreaPattern.js +200 -200
  778. package/lib/esm/geometry/AreaPattern.js.map +1 -1
  779. package/lib/esm/geometry/BoundingSphere.d.ts +27 -27
  780. package/lib/esm/geometry/BoundingSphere.js +40 -40
  781. package/lib/esm/geometry/BoundingSphere.js.map +1 -1
  782. package/lib/esm/geometry/Cartographic.d.ts +137 -137
  783. package/lib/esm/geometry/Cartographic.js +340 -340
  784. package/lib/esm/geometry/Cartographic.js.map +1 -1
  785. package/lib/esm/geometry/CoordinateReferenceSystem.d.ts +269 -269
  786. package/lib/esm/geometry/CoordinateReferenceSystem.js +253 -253
  787. package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
  788. package/lib/esm/geometry/ElementGeometry.d.ts +402 -402
  789. package/lib/esm/geometry/ElementGeometry.js +1716 -1716
  790. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  791. package/lib/esm/geometry/ElementGeometryFB.d.ts +2372 -2372
  792. package/lib/esm/geometry/ElementGeometryFB.js +3811 -3811
  793. package/lib/esm/geometry/ElementGeometryFB.js.map +1 -1
  794. package/lib/esm/geometry/FrustumPlanes.d.ts +81 -81
  795. package/lib/esm/geometry/FrustumPlanes.js +185 -185
  796. package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
  797. package/lib/esm/geometry/GeodeticDatum.d.ts +409 -409
  798. package/lib/esm/geometry/GeodeticDatum.js +389 -389
  799. package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
  800. package/lib/esm/geometry/GeodeticEllipsoid.d.ts +72 -72
  801. package/lib/esm/geometry/GeodeticEllipsoid.js +67 -67
  802. package/lib/esm/geometry/GeodeticEllipsoid.js.map +1 -1
  803. package/lib/esm/geometry/GeometryStream.d.ts +347 -347
  804. package/lib/esm/geometry/GeometryStream.js +463 -463
  805. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  806. package/lib/esm/geometry/ImageGraphic.d.ts +74 -74
  807. package/lib/esm/geometry/ImageGraphic.js +93 -93
  808. package/lib/esm/geometry/ImageGraphic.js.map +1 -1
  809. package/lib/esm/geometry/LineStyle.d.ts +71 -71
  810. package/lib/esm/geometry/LineStyle.js +126 -126
  811. package/lib/esm/geometry/LineStyle.js.map +1 -1
  812. package/lib/esm/geometry/Placement.d.ts +95 -95
  813. package/lib/esm/geometry/Placement.js +126 -126
  814. package/lib/esm/geometry/Placement.js.map +1 -1
  815. package/lib/esm/geometry/Projection.d.ts +251 -251
  816. package/lib/esm/geometry/Projection.js +192 -192
  817. package/lib/esm/geometry/Projection.js.map +1 -1
  818. package/lib/esm/geometry/TextString.d.ts +55 -55
  819. package/lib/esm/geometry/TextString.js +61 -61
  820. package/lib/esm/geometry/TextString.js.map +1 -1
  821. package/lib/esm/ipc/IpcSession.d.ts +23 -23
  822. package/lib/esm/ipc/IpcSession.js +23 -23
  823. package/lib/esm/ipc/IpcSession.js.map +1 -1
  824. package/lib/esm/ipc/IpcSocket.d.ts +96 -96
  825. package/lib/esm/ipc/IpcSocket.js +12 -12
  826. package/lib/esm/ipc/IpcSocket.js.map +1 -1
  827. package/lib/esm/ipc/IpcWebSocket.d.ts +61 -61
  828. package/lib/esm/ipc/IpcWebSocket.js +144 -144
  829. package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
  830. package/lib/esm/ipc/IpcWebSocketTransport.d.ts +15 -15
  831. package/lib/esm/ipc/IpcWebSocketTransport.js +156 -156
  832. package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -1
  833. package/lib/esm/rpc/DevToolsRpcInterface.d.ts +32 -32
  834. package/lib/esm/rpc/DevToolsRpcInterface.js +48 -48
  835. package/lib/esm/rpc/DevToolsRpcInterface.js.map +1 -1
  836. package/lib/esm/rpc/IModelReadRpcInterface.d.ts +99 -99
  837. package/lib/esm/rpc/IModelReadRpcInterface.js +117 -117
  838. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  839. package/lib/esm/rpc/IModelTileRpcInterface.d.ts +61 -61
  840. package/lib/esm/rpc/IModelTileRpcInterface.js +92 -92
  841. package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
  842. package/lib/esm/rpc/SnapshotIModelRpcInterface.d.ts +23 -23
  843. package/lib/esm/rpc/SnapshotIModelRpcInterface.js +44 -44
  844. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  845. package/lib/esm/rpc/TestRpcManager.d.ts +20 -20
  846. package/lib/esm/rpc/TestRpcManager.js +36 -36
  847. package/lib/esm/rpc/TestRpcManager.js.map +1 -1
  848. package/lib/esm/rpc/WipRpcInterface.d.ts +29 -29
  849. package/lib/esm/rpc/WipRpcInterface.js +36 -36
  850. package/lib/esm/rpc/WipRpcInterface.js.map +1 -1
  851. package/lib/esm/rpc/core/RpcConfiguration.d.ts +111 -111
  852. package/lib/esm/rpc/core/RpcConfiguration.js +184 -184
  853. package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
  854. package/lib/esm/rpc/core/RpcConstants.d.ts +90 -90
  855. package/lib/esm/rpc/core/RpcConstants.js +106 -106
  856. package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
  857. package/lib/esm/rpc/core/RpcControl.d.ts +54 -54
  858. package/lib/esm/rpc/core/RpcControl.js +138 -138
  859. package/lib/esm/rpc/core/RpcControl.js.map +1 -1
  860. package/lib/esm/rpc/core/RpcInvocation.d.ts +89 -89
  861. package/lib/esm/rpc/core/RpcInvocation.js +252 -252
  862. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  863. package/lib/esm/rpc/core/RpcMarshaling.d.ts +35 -35
  864. package/lib/esm/rpc/core/RpcMarshaling.js +152 -152
  865. package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
  866. package/lib/esm/rpc/core/RpcOperation.d.ts +67 -67
  867. package/lib/esm/rpc/core/RpcOperation.js +129 -129
  868. package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
  869. package/lib/esm/rpc/core/RpcPendingQueue.d.ts +21 -21
  870. package/lib/esm/rpc/core/RpcPendingQueue.js +90 -90
  871. package/lib/esm/rpc/core/RpcPendingQueue.js.map +1 -1
  872. package/lib/esm/rpc/core/RpcProtocol.d.ts +132 -132
  873. package/lib/esm/rpc/core/RpcProtocol.js +123 -123
  874. package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
  875. package/lib/esm/rpc/core/RpcPush.d.ts +68 -68
  876. package/lib/esm/rpc/core/RpcPush.js +119 -119
  877. package/lib/esm/rpc/core/RpcPush.js.map +1 -1
  878. package/lib/esm/rpc/core/RpcRegistry.d.ts +48 -48
  879. package/lib/esm/rpc/core/RpcRegistry.js +194 -194
  880. package/lib/esm/rpc/core/RpcRegistry.js.map +1 -1
  881. package/lib/esm/rpc/core/RpcRequest.d.ts +186 -186
  882. package/lib/esm/rpc/core/RpcRequest.js +473 -473
  883. package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
  884. package/lib/esm/rpc/core/RpcRequestContext.d.ts +14 -14
  885. package/lib/esm/rpc/core/RpcRequestContext.js +1 -1
  886. package/lib/esm/rpc/core/RpcRequestContext.js.map +1 -1
  887. package/lib/esm/rpc/core/RpcRoutingToken.d.ts +12 -12
  888. package/lib/esm/rpc/core/RpcRoutingToken.js +20 -20
  889. package/lib/esm/rpc/core/RpcRoutingToken.js.map +1 -1
  890. package/lib/esm/rpc/core/RpcSessionInvocation.d.ts +10 -10
  891. package/lib/esm/rpc/core/RpcSessionInvocation.js +56 -56
  892. package/lib/esm/rpc/core/RpcSessionInvocation.js.map +1 -1
  893. package/lib/esm/rpc/web/BentleyCloudRpcManager.d.ts +46 -46
  894. package/lib/esm/rpc/web/BentleyCloudRpcManager.js +68 -68
  895. package/lib/esm/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  896. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.d.ts +33 -33
  897. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +137 -137
  898. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  899. package/lib/esm/rpc/web/OpenAPI.d.ts +140 -140
  900. package/lib/esm/rpc/web/OpenAPI.js +56 -56
  901. package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
  902. package/lib/esm/rpc/web/RpcMultipart.d.ts +35 -35
  903. package/lib/esm/rpc/web/RpcMultipart.js +46 -46
  904. package/lib/esm/rpc/web/RpcMultipart.js.map +1 -1
  905. package/lib/esm/rpc/web/WebAppRpcLogging.d.ts +28 -28
  906. package/lib/esm/rpc/web/WebAppRpcLogging.js +136 -136
  907. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  908. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +89 -89
  909. package/lib/esm/rpc/web/WebAppRpcProtocol.js +112 -112
  910. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  911. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts +67 -67
  912. package/lib/esm/rpc/web/WebAppRpcRequest.js +235 -235
  913. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  914. package/lib/esm/rpc/web/multipart/RpcMultipartParser.d.ts +32 -32
  915. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js +369 -369
  916. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  917. package/lib/esm/tile/B3dmTileIO.d.ts +19 -19
  918. package/lib/esm/tile/B3dmTileIO.js +62 -62
  919. package/lib/esm/tile/B3dmTileIO.js.map +1 -1
  920. package/lib/esm/tile/CompositeTileIO.d.ts +15 -15
  921. package/lib/esm/tile/CompositeTileIO.js +22 -22
  922. package/lib/esm/tile/CompositeTileIO.js.map +1 -1
  923. package/lib/esm/tile/ElementGraphics.d.ts +145 -145
  924. package/lib/esm/tile/ElementGraphics.js +8 -8
  925. package/lib/esm/tile/ElementGraphics.js.map +1 -1
  926. package/lib/esm/tile/GltfTileIO.d.ts +45 -45
  927. package/lib/esm/tile/GltfTileIO.js +105 -105
  928. package/lib/esm/tile/GltfTileIO.js.map +1 -1
  929. package/lib/esm/tile/I3dmTileIO.d.ts +20 -20
  930. package/lib/esm/tile/I3dmTileIO.js +36 -36
  931. package/lib/esm/tile/I3dmTileIO.js.map +1 -1
  932. package/lib/esm/tile/IModelTileIO.d.ts +75 -75
  933. package/lib/esm/tile/IModelTileIO.js +90 -90
  934. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  935. package/lib/esm/tile/PntsTileIO.d.ts +17 -17
  936. package/lib/esm/tile/PntsTileIO.js +22 -22
  937. package/lib/esm/tile/PntsTileIO.js.map +1 -1
  938. package/lib/esm/tile/TileIO.d.ts +66 -66
  939. package/lib/esm/tile/TileIO.js +110 -110
  940. package/lib/esm/tile/TileIO.js.map +1 -1
  941. package/lib/esm/tile/TileMetadata.d.ts +228 -228
  942. package/lib/esm/tile/TileMetadata.js +660 -660
  943. package/lib/esm/tile/TileMetadata.js.map +1 -1
  944. package/lib/esm/tile/Tileset3dSchema.d.ts +96 -96
  945. package/lib/esm/tile/Tileset3dSchema.js +8 -8
  946. package/lib/esm/tile/Tileset3dSchema.js.map +1 -1
  947. package/package.json +6 -6
@@ -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;AAC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CAAC,+BAA+B,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEnE,IAAI,SAAS,KAAK,QAAQ,EAAE;YAC1B,IAAI,SAAS,KAAK,IAAI,CAAC,gBAAgB,EAAE;gBACvC,IAAA,qBAAM,EAAC,SAAS,KAAK,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;gBAEnD,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBACtC,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;gBAE7C,IAAI,CAAC,KAAK,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE;oBACpC,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;oBAClC,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC;iBACrC;aACF;YAED,OAAO;SACR;QAED,IAAI,SAAS,KAAK,IAAI,CAAC,gBAAgB,EAAE;YACvC,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":["/*---------------------------------------------------------------------------------------------\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 /** If true, the caller will populate contextRealityModels after construction.\r\n * @internal used by DisplayStyleState constructor.\r\n */\r\n deferContextRealityModels?: boolean;\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({\r\n container: this._json,\r\n createContextRealityModel: options?.createContextRealityModel,\r\n deferPopulating: options?.deferContextRealityModels,\r\n });\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
+ {"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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AAI,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 /** If true, the caller will populate contextRealityModels after construction.\n * @internal used by DisplayStyleState constructor.\n */\n deferContextRealityModels?: boolean;\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({\n container: this._json,\n createContextRealityModel: options?.createContextRealityModel,\n deferPopulating: options?.deferContextRealityModels,\n });\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,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":["/*---------------------------------------------------------------------------------------------\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"]}
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"]}