@itwin/core-common 4.10.0-dev.31 → 4.10.0-dev.33

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 (221) hide show
  1. package/lib/cjs/BackendTypes.d.ts +0 -2
  2. package/lib/cjs/BackendTypes.d.ts.map +1 -1
  3. package/lib/cjs/BackgroundMapProvider.js +1 -1
  4. package/lib/cjs/BackgroundMapProvider.js.map +1 -1
  5. package/lib/cjs/BackgroundMapSettings.js +2 -2
  6. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  7. package/lib/cjs/BriefcaseTypes.js.map +1 -1
  8. package/lib/cjs/ColorDef.d.ts.map +1 -1
  9. package/lib/cjs/ColorDef.js +0 -3
  10. package/lib/cjs/ColorDef.js.map +1 -1
  11. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  12. package/lib/cjs/DisplayStyleSettings.d.ts.map +1 -1
  13. package/lib/cjs/ECSqlReader.js.map +1 -1
  14. package/lib/cjs/ElementMesh.js +2 -3
  15. package/lib/cjs/ElementMesh.js.map +1 -1
  16. package/lib/cjs/ElementProps.js +3 -3
  17. package/lib/cjs/ElementProps.js.map +1 -1
  18. package/lib/cjs/GeoCoordinateServices.js +2 -2
  19. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  20. package/lib/cjs/IModel.js.map +1 -1
  21. package/lib/cjs/Image.js +4 -4
  22. package/lib/cjs/Image.js.map +1 -1
  23. package/lib/cjs/MapLayerSettings.d.ts.map +1 -1
  24. package/lib/cjs/MapLayerSettings.js +0 -1
  25. package/lib/cjs/MapLayerSettings.js.map +1 -1
  26. package/lib/cjs/QPoint.d.ts +1 -1
  27. package/lib/cjs/RenderMaterial.js +4 -4
  28. package/lib/cjs/RenderMaterial.js.map +1 -1
  29. package/lib/cjs/RenderTexture.js.map +1 -1
  30. package/lib/cjs/RpcInterface.js +1 -1
  31. package/lib/cjs/RpcInterface.js.map +1 -1
  32. package/lib/cjs/RpcManager.d.ts.map +1 -1
  33. package/lib/cjs/RpcManager.js.map +1 -1
  34. package/lib/cjs/SolarCalculate.js +4 -5
  35. package/lib/cjs/SolarCalculate.js.map +1 -1
  36. package/lib/cjs/SpatialClassification.js.map +1 -1
  37. package/lib/cjs/SubCategoryAppearance.js.map +1 -1
  38. package/lib/cjs/TextureMapping.js.map +1 -1
  39. package/lib/cjs/TileProps.js +2 -2
  40. package/lib/cjs/TileProps.js.map +1 -1
  41. package/lib/cjs/Tween.d.ts.map +1 -1
  42. package/lib/cjs/Tween.js +0 -1
  43. package/lib/cjs/Tween.js.map +1 -1
  44. package/lib/cjs/ViewProps.d.ts +1 -1
  45. package/lib/cjs/ViewProps.d.ts.map +1 -1
  46. package/lib/cjs/ViewProps.js.map +1 -1
  47. package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
  48. package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
  49. package/lib/cjs/rpc/DevToolsRpcInterface.js.map +1 -1
  50. package/lib/cjs/rpc/IModelReadRpcInterface.js +12 -12
  51. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  52. package/lib/cjs/rpc/IModelTileRpcInterface.js +1 -1
  53. package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
  54. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  55. package/lib/cjs/rpc/TestRpcManager.d.ts.map +1 -1
  56. package/lib/cjs/rpc/TestRpcManager.js +0 -1
  57. package/lib/cjs/rpc/TestRpcManager.js.map +1 -1
  58. package/lib/cjs/rpc/WipRpcInterface.js +1 -1
  59. package/lib/cjs/rpc/WipRpcInterface.js.map +1 -1
  60. package/lib/cjs/rpc/core/RpcConfiguration.d.ts.map +1 -1
  61. package/lib/cjs/rpc/core/RpcConfiguration.js +1 -1
  62. package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
  63. package/lib/cjs/rpc/core/RpcConstants.d.ts +1 -1
  64. package/lib/cjs/rpc/core/RpcConstants.d.ts.map +1 -1
  65. package/lib/cjs/rpc/core/RpcConstants.js +1 -1
  66. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  67. package/lib/cjs/rpc/core/RpcControl.d.ts.map +1 -1
  68. package/lib/cjs/rpc/core/RpcControl.js +0 -1
  69. package/lib/cjs/rpc/core/RpcControl.js.map +1 -1
  70. package/lib/cjs/rpc/core/RpcInvocation.js +1 -1
  71. package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
  72. package/lib/cjs/rpc/core/RpcMarshaling.js +1 -1
  73. package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
  74. package/lib/cjs/rpc/core/RpcOperation.d.ts.map +1 -1
  75. package/lib/cjs/rpc/core/RpcOperation.js +0 -1
  76. package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
  77. package/lib/cjs/rpc/core/RpcPendingQueue.js +1 -1
  78. package/lib/cjs/rpc/core/RpcPendingQueue.js.map +1 -1
  79. package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
  80. package/lib/cjs/rpc/core/RpcPush.d.ts.map +1 -1
  81. package/lib/cjs/rpc/core/RpcPush.js.map +1 -1
  82. package/lib/cjs/rpc/core/RpcRegistry.d.ts.map +1 -1
  83. package/lib/cjs/rpc/core/RpcRegistry.js +0 -2
  84. package/lib/cjs/rpc/core/RpcRegistry.js.map +1 -1
  85. package/lib/cjs/rpc/core/RpcRequest.d.ts.map +1 -1
  86. package/lib/cjs/rpc/core/RpcRequest.js +1 -2
  87. package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
  88. package/lib/cjs/rpc/core/RpcRequestContext.d.ts.map +1 -1
  89. package/lib/cjs/rpc/core/RpcRequestContext.js.map +1 -1
  90. package/lib/cjs/rpc/core/RpcRoutingToken.d.ts.map +1 -1
  91. package/lib/cjs/rpc/core/RpcRoutingToken.js +0 -1
  92. package/lib/cjs/rpc/core/RpcRoutingToken.js.map +1 -1
  93. package/lib/cjs/rpc/core/RpcSessionInvocation.js +1 -1
  94. package/lib/cjs/rpc/core/RpcSessionInvocation.js.map +1 -1
  95. package/lib/cjs/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  96. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.d.ts.map +1 -1
  97. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +0 -1
  98. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  99. package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
  100. package/lib/cjs/rpc/web/RpcMultipart.d.ts.map +1 -1
  101. package/lib/cjs/rpc/web/RpcMultipart.js.map +1 -1
  102. package/lib/cjs/rpc/web/WebAppRpcLogging.js +1 -1
  103. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  104. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +0 -2
  105. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  106. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  107. package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  108. package/lib/cjs/rpc/web/WebAppRpcRequest.js +1 -1
  109. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  110. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.d.ts.map +1 -1
  111. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js +0 -1
  112. package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  113. package/lib/cjs/tile/TileIO.js +4 -4
  114. package/lib/cjs/tile/TileIO.js.map +1 -1
  115. package/lib/cjs/tile/TileMetadata.js +13 -13
  116. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  117. package/lib/esm/BackendTypes.d.ts +0 -2
  118. package/lib/esm/BackendTypes.d.ts.map +1 -1
  119. package/lib/esm/BackgroundMapProvider.js +1 -1
  120. package/lib/esm/BackgroundMapProvider.js.map +1 -1
  121. package/lib/esm/BackgroundMapSettings.js +2 -2
  122. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  123. package/lib/esm/BriefcaseTypes.js.map +1 -1
  124. package/lib/esm/ColorDef.d.ts.map +1 -1
  125. package/lib/esm/ColorDef.js +0 -3
  126. package/lib/esm/ColorDef.js.map +1 -1
  127. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  128. package/lib/esm/DisplayStyleSettings.d.ts.map +1 -1
  129. package/lib/esm/ECSqlReader.js.map +1 -1
  130. package/lib/esm/ElementMesh.js +1 -1
  131. package/lib/esm/ElementMesh.js.map +1 -1
  132. package/lib/esm/IModel.js.map +1 -1
  133. package/lib/esm/MapLayerSettings.d.ts.map +1 -1
  134. package/lib/esm/MapLayerSettings.js +0 -1
  135. package/lib/esm/MapLayerSettings.js.map +1 -1
  136. package/lib/esm/QPoint.d.ts +1 -1
  137. package/lib/esm/RenderMaterial.js +4 -4
  138. package/lib/esm/RenderMaterial.js.map +1 -1
  139. package/lib/esm/RenderTexture.js.map +1 -1
  140. package/lib/esm/RpcInterface.js +1 -1
  141. package/lib/esm/RpcInterface.js.map +1 -1
  142. package/lib/esm/RpcManager.d.ts.map +1 -1
  143. package/lib/esm/RpcManager.js.map +1 -1
  144. package/lib/esm/SpatialClassification.js.map +1 -1
  145. package/lib/esm/SubCategoryAppearance.js.map +1 -1
  146. package/lib/esm/TextureMapping.js.map +1 -1
  147. package/lib/esm/Tween.d.ts.map +1 -1
  148. package/lib/esm/Tween.js +0 -1
  149. package/lib/esm/Tween.js.map +1 -1
  150. package/lib/esm/ViewProps.d.ts +1 -1
  151. package/lib/esm/ViewProps.d.ts.map +1 -1
  152. package/lib/esm/ViewProps.js.map +1 -1
  153. package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
  154. package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
  155. package/lib/esm/rpc/DevToolsRpcInterface.js.map +1 -1
  156. package/lib/esm/rpc/IModelReadRpcInterface.js +12 -12
  157. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  158. package/lib/esm/rpc/IModelTileRpcInterface.js +1 -1
  159. package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
  160. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  161. package/lib/esm/rpc/TestRpcManager.d.ts.map +1 -1
  162. package/lib/esm/rpc/TestRpcManager.js +0 -1
  163. package/lib/esm/rpc/TestRpcManager.js.map +1 -1
  164. package/lib/esm/rpc/WipRpcInterface.js +1 -1
  165. package/lib/esm/rpc/WipRpcInterface.js.map +1 -1
  166. package/lib/esm/rpc/core/RpcConfiguration.d.ts.map +1 -1
  167. package/lib/esm/rpc/core/RpcConfiguration.js +1 -1
  168. package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
  169. package/lib/esm/rpc/core/RpcConstants.d.ts +1 -1
  170. package/lib/esm/rpc/core/RpcConstants.d.ts.map +1 -1
  171. package/lib/esm/rpc/core/RpcConstants.js +1 -1
  172. package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
  173. package/lib/esm/rpc/core/RpcControl.d.ts.map +1 -1
  174. package/lib/esm/rpc/core/RpcControl.js +0 -1
  175. package/lib/esm/rpc/core/RpcControl.js.map +1 -1
  176. package/lib/esm/rpc/core/RpcInvocation.js +1 -1
  177. package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
  178. package/lib/esm/rpc/core/RpcMarshaling.js +1 -1
  179. package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
  180. package/lib/esm/rpc/core/RpcOperation.d.ts.map +1 -1
  181. package/lib/esm/rpc/core/RpcOperation.js +0 -1
  182. package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
  183. package/lib/esm/rpc/core/RpcPendingQueue.js +1 -1
  184. package/lib/esm/rpc/core/RpcPendingQueue.js.map +1 -1
  185. package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
  186. package/lib/esm/rpc/core/RpcPush.d.ts.map +1 -1
  187. package/lib/esm/rpc/core/RpcPush.js.map +1 -1
  188. package/lib/esm/rpc/core/RpcRegistry.d.ts.map +1 -1
  189. package/lib/esm/rpc/core/RpcRegistry.js +0 -2
  190. package/lib/esm/rpc/core/RpcRegistry.js.map +1 -1
  191. package/lib/esm/rpc/core/RpcRequest.d.ts.map +1 -1
  192. package/lib/esm/rpc/core/RpcRequest.js +1 -2
  193. package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
  194. package/lib/esm/rpc/core/RpcRequestContext.d.ts.map +1 -1
  195. package/lib/esm/rpc/core/RpcRequestContext.js.map +1 -1
  196. package/lib/esm/rpc/core/RpcRoutingToken.d.ts.map +1 -1
  197. package/lib/esm/rpc/core/RpcRoutingToken.js +0 -1
  198. package/lib/esm/rpc/core/RpcRoutingToken.js.map +1 -1
  199. package/lib/esm/rpc/core/RpcSessionInvocation.js +1 -1
  200. package/lib/esm/rpc/core/RpcSessionInvocation.js.map +1 -1
  201. package/lib/esm/rpc/web/BentleyCloudRpcManager.js.map +1 -1
  202. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.d.ts.map +1 -1
  203. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +0 -1
  204. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  205. package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
  206. package/lib/esm/rpc/web/RpcMultipart.d.ts.map +1 -1
  207. package/lib/esm/rpc/web/RpcMultipart.js.map +1 -1
  208. package/lib/esm/rpc/web/WebAppRpcLogging.js +1 -1
  209. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  210. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +0 -2
  211. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
  212. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  213. package/lib/esm/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
  214. package/lib/esm/rpc/web/WebAppRpcRequest.js +1 -1
  215. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  216. package/lib/esm/rpc/web/multipart/RpcMultipartParser.d.ts.map +1 -1
  217. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js +0 -1
  218. package/lib/esm/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
  219. package/lib/esm/tile/TileMetadata.js +1 -1
  220. package/lib/esm/tile/TileMetadata.js.map +1 -1
  221. package/package.json +10 -10
@@ -1,8 +1,6 @@
1
1
  /** @packageDocumentation
2
2
  * @module Utils
3
3
  */
4
- /// <reference types="node" />
5
- /// <reference types="node" />
6
4
  import type { Readable, Writable } from "stream";
7
5
  import type { Buffer } from "buffer";
8
6
  /** @public @deprecated in 3.x. This type was mistakenly made public in the common scope. */
@@ -1 +1 @@
1
- {"version":3,"file":"BackendTypes.d.ts","sourceRoot":"","sources":["../../src/BackendTypes.ts"],"names":[],"mappings":"AAIA;;GAEG;;;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC,8FAA8F;AAC9F,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"BackendTypes.d.ts","sourceRoot":"","sources":["../../src/BackendTypes.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC,8FAA8F;AAC9F,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC"}
@@ -47,7 +47,7 @@ class BackgroundMapProvider {
47
47
  }
48
48
  /** @internal */
49
49
  static fromBackgroundMapProps(props) {
50
- // eslint-disable-next-line deprecation/deprecation
50
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
51
51
  return this.fromJSON({ name: props.providerName, type: props.providerData?.mapType });
52
52
  }
53
53
  /** Return true if this provider is equivalent to `other`. */
@@ -1 +1 @@
1
- {"version":3,"file":"BackgroundMapProvider.js","sourceRoot":"","sources":["../../src/BackgroundMapProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAIH;;;GAGG;AACH,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,6DAAU,CAAA;IACV,6DAAU,CAAA;IACV,6DAAU,CAAA;AACZ,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAoBD;;GAEG;AACH,MAAa,qBAAqB;IAMhC,YAAoB,IAA+B,EAAE,IAAuB;QAC1E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,sDAAsD;IAC/C,MAAM,CAAC,QAAQ,CAAC,KAAiC;QACtD,MAAM,IAAI,GAA8B,KAAK,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC;QACtG,IAAI,IAAI,CAAC;QACT,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,iBAAiB,CAAC,MAAM,CAAC;YAC9B,KAAK,iBAAiB,CAAC,MAAM;gBAC3B,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;gBAClB,MAAM;YACR;gBACE,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC;gBAChC,MAAM;QACV,CAAC;QAED,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,wDAAwD;IACjD,MAAM;QACX,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAC9C,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,sBAAsB,CAAC,KAAmC;QACtE,mDAAmD;QACnD,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,YAAyC,EAAE,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC,CAAC;IACrH,CAAC;IAED,6DAA6D;IACtD,MAAM,CAAC,KAA4B;QACxC,OAAO,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC;IAC9D,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,YAAwC;QACnD,OAAO,qBAAqB,CAAC,QAAQ,CAAC;YACpC,GAAG,IAAI,CAAC,MAAM,EAAE;YAChB,GAAG,YAAY;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AArDD,sDAqDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { DeprecatedBackgroundMapProps } from \"./BackgroundMapSettings\";\r\n\r\n/** Enumerates the types of map imagery that can be supplied by a [[BackgroundMapProvider]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum BackgroundMapType {\r\n Street = 1,\r\n Aerial = 2,\r\n Hybrid = 3,\r\n}\r\n\r\n/** Enumerates a set of supported [[BackgroundMapProvider]]s that can provide map imagery.\r\n * @note To access imagery from such a provider, an API key must be supplied via [IModelAppOptions.mapLayerOptions]($frontend).\r\n * @public\r\n * @extensions\r\n */\r\nexport type BackgroundMapProviderName = \"BingProvider\" | \"MapBoxProvider\";\r\n\r\n/** JSON representation of a [[BackgroundMapProvider]].\r\n * @see [[BaseMapLayerProps.provider]].\r\n * @public\r\n */\r\nexport interface BackgroundMapProviderProps {\r\n /** The name of the provider. Default: \"BingProvider\" */\r\n name?: BackgroundMapProviderName;\r\n /** The type of imagery to display. Default: Hybrid. */\r\n type?: BackgroundMapType;\r\n}\r\n\r\n/** Describes one of a small set of standard, known suppliers of background map imagery as part of a [[BaseMapLayerSettings]].\r\n * @public\r\n */\r\nexport class BackgroundMapProvider {\r\n /** The name of the provider. */\r\n public readonly name: BackgroundMapProviderName;\r\n /** The type of map imagery provided. */\r\n public readonly type: BackgroundMapType;\r\n\r\n private constructor(name: BackgroundMapProviderName, type: BackgroundMapType) {\r\n this.name = name;\r\n this.type = type;\r\n }\r\n\r\n /** Create a provider from its JSON representation. */\r\n public static fromJSON(props: BackgroundMapProviderProps): BackgroundMapProvider {\r\n const name: BackgroundMapProviderName = props.name === \"MapBoxProvider\" ? props.name : \"BingProvider\";\r\n let type;\r\n switch (props.type) {\r\n case BackgroundMapType.Street:\r\n case BackgroundMapType.Aerial:\r\n type = props.type;\r\n break;\r\n default:\r\n type = BackgroundMapType.Hybrid;\r\n break;\r\n }\r\n\r\n return new BackgroundMapProvider(name, type);\r\n }\r\n\r\n /** Convert this provider to its JSON representation. */\r\n public toJSON(): BackgroundMapProviderProps {\r\n return { name: this.name, type: this.type };\r\n }\r\n\r\n /** @internal */\r\n public static fromBackgroundMapProps(props: DeprecatedBackgroundMapProps): BackgroundMapProvider {\r\n // eslint-disable-next-line deprecation/deprecation\r\n return this.fromJSON({ name: props.providerName as BackgroundMapProviderName, type: props.providerData?.mapType });\r\n }\r\n\r\n /** Return true if this provider is equivalent to `other`. */\r\n public equals(other: BackgroundMapProvider): boolean {\r\n return this.name === other.name && this.type === other.type;\r\n }\r\n\r\n /** Produce a copy of this provider with identical properties except for those explicitly specified by `changedProps`.\r\n * Any properties explicitly set to `undefined` in `changedProps` will be reset to their default values.\r\n */\r\n public clone(changedProps: BackgroundMapProviderProps): BackgroundMapProvider {\r\n return BackgroundMapProvider.fromJSON({\r\n ...this.toJSON(),\r\n ...changedProps,\r\n });\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"BackgroundMapProvider.js","sourceRoot":"","sources":["../../src/BackgroundMapProvider.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAIH;;;GAGG;AACH,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,6DAAU,CAAA;IACV,6DAAU,CAAA;IACV,6DAAU,CAAA;AACZ,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAoBD;;GAEG;AACH,MAAa,qBAAqB;IAMhC,YAAoB,IAA+B,EAAE,IAAuB;QAC1E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,sDAAsD;IAC/C,MAAM,CAAC,QAAQ,CAAC,KAAiC;QACtD,MAAM,IAAI,GAA8B,KAAK,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC;QACtG,IAAI,IAAI,CAAC;QACT,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,iBAAiB,CAAC,MAAM,CAAC;YAC9B,KAAK,iBAAiB,CAAC,MAAM;gBAC3B,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;gBAClB,MAAM;YACR;gBACE,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC;gBAChC,MAAM;QACV,CAAC;QAED,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,wDAAwD;IACjD,MAAM;QACX,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAC9C,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,sBAAsB,CAAC,KAAmC;QACtE,4DAA4D;QAC5D,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,YAAyC,EAAE,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC,CAAC;IACrH,CAAC;IAED,6DAA6D;IACtD,MAAM,CAAC,KAA4B;QACxC,OAAO,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC;IAC9D,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,YAAwC;QACnD,OAAO,qBAAqB,CAAC,QAAQ,CAAC;YACpC,GAAG,IAAI,CAAC,MAAM,EAAE;YAChB,GAAG,YAAY;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AArDD,sDAqDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { DeprecatedBackgroundMapProps } from \"./BackgroundMapSettings\";\r\n\r\n/** Enumerates the types of map imagery that can be supplied by a [[BackgroundMapProvider]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum BackgroundMapType {\r\n Street = 1,\r\n Aerial = 2,\r\n Hybrid = 3,\r\n}\r\n\r\n/** Enumerates a set of supported [[BackgroundMapProvider]]s that can provide map imagery.\r\n * @note To access imagery from such a provider, an API key must be supplied via [IModelAppOptions.mapLayerOptions]($frontend).\r\n * @public\r\n * @extensions\r\n */\r\nexport type BackgroundMapProviderName = \"BingProvider\" | \"MapBoxProvider\";\r\n\r\n/** JSON representation of a [[BackgroundMapProvider]].\r\n * @see [[BaseMapLayerProps.provider]].\r\n * @public\r\n */\r\nexport interface BackgroundMapProviderProps {\r\n /** The name of the provider. Default: \"BingProvider\" */\r\n name?: BackgroundMapProviderName;\r\n /** The type of imagery to display. Default: Hybrid. */\r\n type?: BackgroundMapType;\r\n}\r\n\r\n/** Describes one of a small set of standard, known suppliers of background map imagery as part of a [[BaseMapLayerSettings]].\r\n * @public\r\n */\r\nexport class BackgroundMapProvider {\r\n /** The name of the provider. */\r\n public readonly name: BackgroundMapProviderName;\r\n /** The type of map imagery provided. */\r\n public readonly type: BackgroundMapType;\r\n\r\n private constructor(name: BackgroundMapProviderName, type: BackgroundMapType) {\r\n this.name = name;\r\n this.type = type;\r\n }\r\n\r\n /** Create a provider from its JSON representation. */\r\n public static fromJSON(props: BackgroundMapProviderProps): BackgroundMapProvider {\r\n const name: BackgroundMapProviderName = props.name === \"MapBoxProvider\" ? props.name : \"BingProvider\";\r\n let type;\r\n switch (props.type) {\r\n case BackgroundMapType.Street:\r\n case BackgroundMapType.Aerial:\r\n type = props.type;\r\n break;\r\n default:\r\n type = BackgroundMapType.Hybrid;\r\n break;\r\n }\r\n\r\n return new BackgroundMapProvider(name, type);\r\n }\r\n\r\n /** Convert this provider to its JSON representation. */\r\n public toJSON(): BackgroundMapProviderProps {\r\n return { name: this.name, type: this.type };\r\n }\r\n\r\n /** @internal */\r\n public static fromBackgroundMapProps(props: DeprecatedBackgroundMapProps): BackgroundMapProvider {\r\n // eslint-disable-next-line @typescript-eslint/no-deprecated\r\n return this.fromJSON({ name: props.providerName as BackgroundMapProviderName, type: props.providerData?.mapType });\r\n }\r\n\r\n /** Return true if this provider is equivalent to `other`. */\r\n public equals(other: BackgroundMapProvider): boolean {\r\n return this.name === other.name && this.type === other.type;\r\n }\r\n\r\n /** Produce a copy of this provider with identical properties except for those explicitly specified by `changedProps`.\r\n * Any properties explicitly set to `undefined` in `changedProps` will be reset to their default values.\r\n */\r\n public clone(changedProps: BackgroundMapProviderProps): BackgroundMapProvider {\r\n return BackgroundMapProvider.fromJSON({\r\n ...this.toJSON(),\r\n ...changedProps,\r\n });\r\n }\r\n}\r\n"]}
@@ -109,9 +109,9 @@ class BackgroundMapSettings {
109
109
  const props = this.toJSON();
110
110
  // Preserve deprecated imagery provider properties.
111
111
  if ("BingProvider" !== this._provider.name)
112
- props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation
112
+ props.providerName = this._provider.name; // eslint-disable-line @typescript-eslint/no-deprecated
113
113
  if (BackgroundMapProvider_1.BackgroundMapType.Hybrid !== this._provider.type)
114
- props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation
114
+ props.providerData = { mapType: this._provider.type }; // eslint-disable-line @typescript-eslint/no-deprecated
115
115
  return props;
116
116
  }
117
117
  /** Returns true if these settings are equivalent to the supplied JSON settings. */
@@ -1 +1 @@
1
- {"version":3,"file":"BackgroundMapSettings.js","sourceRoot":"","sources":["../../src/BackgroundMapSettings.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,mEAAmF;AACnF,qDAA+E;AAC/E,uDAAkE;AAElE;;;;;GAKG;AACH,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAoC;IACpC,mDAAa,CAAA;IACb,8BAA8B;IAC9B,2CAAS,CAAA;AACX,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAgED,SAAS,kBAAkB,CAAC,IAAgB;IAC1C,OAAO,SAAS,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC;AAC/D,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAsB;IACnD,IAAI,QAAQ,KAAK,OAAO,KAAK;QAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzC,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,MAAa,qBAAqB;IAqBhC;;OAEG;IACH,IAAW,SAAS;QAClB,2CAA2C;QAC3C,mFAAmF;QACnF,oDAAoD;QACpD,IAAI,IAAI,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,GAAG;YACZ,UAAU,EAAE,YAAY,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU;YACtD,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,cAAc,EAAE,YAAY,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc;YAClE,SAAS,EAAE,YAAY,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS;YACnD,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,UAAU;YAC3D,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,eAAe,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;YACjJ,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;YAC5I,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;YACjC,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;SAC/C,CAAC;QAEF,OAAO,qBAAqB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;CACF;AAvJD,sDAuJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProvider, BackgroundMapType } from \"./BackgroundMapProvider\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { TerrainProps, TerrainSettings } from \"./TerrainSettings\";\r\n\r\n/** Describes the projection of the background map\r\n * @see [[BackgroundMapProps]]\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport enum GlobeMode {\r\n /** Display Earth as 3d ellipsoid */\r\n Ellipsoid = 0,\r\n /** Display Earth as plane. */\r\n Plane = 1,\r\n}\r\n\r\n/** In-memory JSON representation of a [[BackgroundMapSettings]].\r\n * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface BackgroundMapProps {\r\n /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */\r\n groundBias?: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.\r\n * Default value: false.\r\n */\r\n transparency?: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n useDepthBuffer?: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n applyTerrain?: boolean;\r\n /** Properties associated with terrain display. */\r\n terrainSettings?: TerrainProps;\r\n /** Globe Mode. Default value: GlobeMode.Ellipsoid */\r\n globeMode?: GlobeMode;\r\n /** If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n nonLocatable?: boolean;\r\n /** A planar mask applied to the map geometry\r\n * @beta\r\n */\r\n planarClipMask?: PlanarClipMaskProps;\r\n\r\n /** See [[DeprecatedBackgroundMapProps.providerName]]. */\r\n providerName?: never;\r\n /** See [[DeprecatedBackgroundMapProps.providerData]]. */\r\n providerData?: never;\r\n}\r\n\r\n/** Properties of [[PersistentBackgroundMapProps]] that have been deprecated, but are retained for backwards compatibility.\r\n * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in\r\n * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DeprecatedBackgroundMapProps {\r\n /** Identifies the source of the map tiles. Currently supported providers are \"BingProvider\" and \"MapBoxProvider\".\r\n * Default value: \"BingProvider\"\r\n * @deprecated in 3.x. use MapImageryProps.backgroundBase.\r\n */\r\n providerName?: string;\r\n /** Options for customizing the tiles supplied by the provider. If undefined, default values of all members are used.\r\n * @deprecated in 3.x. use MapImageryProps.backgroundBase\r\n */\r\n providerData?: {\r\n /** The type of map graphics to request. Default value: BackgroundMapType.Hybrid. */\r\n mapType?: BackgroundMapType;\r\n };\r\n}\r\n\r\n/** Persistent JSON representation of a [[BackgroundMapSettings]].\r\n * @public\r\n * @extensions\r\n */\r\nexport type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;\r\n\r\nfunction normalizeGlobeMode(mode?: GlobeMode): GlobeMode {\r\n return GlobeMode.Plane === mode ? mode : GlobeMode.Ellipsoid;\r\n}\r\n\r\nfunction normalizeTransparency(trans?: number | false): number | false {\r\n if (\"number\" === typeof trans)\r\n return Math.min(1, Math.max(0, trans));\r\n\r\n return false;\r\n}\r\n\r\n/** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.\r\n * @see [[DisplayStyleSettings.backgroundMap]] to query or change these settings for a display style.\r\n * @see [[MapImagerySettings]] to control the type of imagery applied to the background map.\r\n * @public\r\n */\r\nexport class BackgroundMapSettings {\r\n /** Retained strictly for persistence. */\r\n private readonly _provider: BackgroundMapProvider;\r\n\r\n /** Elevation in meters, relative to WGS84 Ellipsoid.. */\r\n public readonly groundBias: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\r\n public readonly transparency: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n public readonly useDepthBuffer: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n public readonly applyTerrain: boolean;\r\n /** Settings associated with terrain display. */\r\n public readonly terrainSettings: TerrainSettings;\r\n /** Globe display mode. */\r\n public readonly globeMode: GlobeMode;\r\n /** Planar Mask - used to mask the background map to avoid overlapping with other geometry\r\n * @beta\r\n */\r\n public readonly planarClipMask: PlanarClipMaskSettings;\r\n private readonly _locatable: boolean;\r\n /** If false, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n public get locatable(): boolean {\r\n // Handle legacy TerrainProps.nonLocatable:\r\n // - If TerrainProps.nonLocatable=true and terrain is on, terrain is not locatable.\r\n // - Otherwise, use BackgroundMapProps.nonLocatable.\r\n if (this.applyTerrain && this.terrainSettings.nonLocatable)\r\n return false;\r\n\r\n return this._locatable;\r\n }\r\n\r\n /** If transparency is overridden, the transparency to apply; otherwise, undefined. */\r\n public get transparencyOverride(): number | undefined { return false !== this.transparency ? this.transparency : undefined; }\r\n\r\n private constructor(props: BackgroundMapProps | PersistentBackgroundMapProps) {\r\n this.groundBias = props.groundBias ?? 0;\r\n this.transparency = normalizeTransparency(props.transparency);\r\n this.useDepthBuffer = props.useDepthBuffer ?? false;\r\n this.applyTerrain = props.applyTerrain ?? false;\r\n this.terrainSettings = TerrainSettings.fromJSON(props.terrainSettings);\r\n this.globeMode = normalizeGlobeMode(props.globeMode);\r\n this._locatable = true !== props.nonLocatable;\r\n this.planarClipMask = PlanarClipMaskSettings.fromJSON(props.planarClipMask);\r\n this._provider = BackgroundMapProvider.fromBackgroundMapProps(props);\r\n }\r\n\r\n /** Create settings from their persistent representation. In general, this method should only be used when reading the settings directly from\r\n * the iModel - otherwise, prefer [[fromJSON]].\r\n */\r\n public static fromPersistentJSON(json?: PersistentBackgroundMapProps): BackgroundMapSettings {\r\n return new this(json ?? {});\r\n }\r\n\r\n /** Construct from JSON, performing validation and applying default values for undefined fields.\r\n * @see [[fromPersistentJSON]] if you are reading the settings directly from the iModel.\r\n */\r\n public static fromJSON(json?: BackgroundMapProps): BackgroundMapSettings {\r\n return new BackgroundMapSettings(json ?? {});\r\n }\r\n\r\n /** Convert these settings to their in-memory JSON representation.\r\n * @see [[toPersistentJSON]] if you intend to write the JSON directly to an iModel.\r\n */\r\n public toJSON(): BackgroundMapProps {\r\n const props: BackgroundMapProps = {};\r\n if (0 !== this.groundBias)\r\n props.groundBias = this.groundBias;\r\n if (this.applyTerrain)\r\n props.applyTerrain = true;\r\n if (false !== this.transparency)\r\n props.transparency = this.transparency;\r\n if (GlobeMode.Ellipsoid !== this.globeMode)\r\n props.globeMode = this.globeMode;\r\n if (this.useDepthBuffer)\r\n props.useDepthBuffer = true;\r\n if (!this._locatable)\r\n props.nonLocatable = true;\r\n\r\n const terrainSettings = this.terrainSettings.toJSON();\r\n for (const prop of Object.values(terrainSettings)) {\r\n if (undefined !== prop) {\r\n props.terrainSettings = terrainSettings;\r\n break;\r\n }\r\n }\r\n\r\n if (this.planarClipMask.isValid)\r\n props.planarClipMask = this.planarClipMask.toJSON();\r\n\r\n return props;\r\n }\r\n\r\n /** Convert these settings to their persistent representation. In general, this method should only be used when writing the settings directly to\r\n * the iModel - otherwise, prefer [[toJSON]].\r\n */\r\n public toPersistentJSON(): PersistentBackgroundMapProps {\r\n const props = this.toJSON() as PersistentBackgroundMapProps;\r\n\r\n // Preserve deprecated imagery provider properties.\r\n if (\"BingProvider\" !== this._provider.name)\r\n props.providerName = this._provider.name; // eslint-disable-line deprecation/deprecation\r\n if (BackgroundMapType.Hybrid !== this._provider.type)\r\n props.providerData = { mapType: this._provider.type }; // eslint-disable-line deprecation/deprecation\r\n\r\n return props;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromJSON(json));\r\n }\r\n\r\n /** Returns true if the persistent representation of these settings is equivalent to `json`. */\r\n public equalsPersistentJSON(json?: PersistentBackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromPersistentJSON(json));\r\n }\r\n\r\n /** Returns true if these settings are equivalent to `other`. */\r\n public equals(other: BackgroundMapSettings): boolean {\r\n return this.groundBias === other.groundBias && this.useDepthBuffer === other.useDepthBuffer && this.transparency === other.transparency\r\n && this.globeMode === other.globeMode && this._locatable === other._locatable && this.applyTerrain === other.applyTerrain\r\n && this.terrainSettings.equals(other.terrainSettings) && this.planarClipMask.equals(other.planarClipMask)\r\n && this._provider.name === other._provider.name && this._provider.type === other._provider.type;\r\n }\r\n\r\n /** Create a copy of this BackgroundMapSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A BackgroundMapSettings with all of its properties set to match those of `this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: BackgroundMapProps): BackgroundMapSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n groundBias: changedProps.groundBias ?? this.groundBias,\r\n transparency: changedProps.transparency ?? this.transparency,\r\n useDepthBuffer: changedProps.useDepthBuffer ?? this.useDepthBuffer,\r\n globeMode: changedProps.globeMode ?? this.globeMode,\r\n nonLocatable: changedProps.nonLocatable ?? !this._locatable,\r\n applyTerrain: changedProps.applyTerrain ?? this.applyTerrain,\r\n terrainSettings: changedProps.terrainSettings ? this.terrainSettings.clone(changedProps.terrainSettings).toJSON() : this.terrainSettings.toJSON(),\r\n planarClipMask: changedProps.planarClipMask ? this.planarClipMask.clone(changedProps.planarClipMask).toJSON() : this.planarClipMask.toJSON(),\r\n providerName: this._provider.name,\r\n providerData: { mapType: this._provider.type },\r\n };\r\n\r\n return BackgroundMapSettings.fromPersistentJSON(props);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"BackgroundMapSettings.js","sourceRoot":"","sources":["../../src/BackgroundMap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Y,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;YACjJ,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;YAC5I,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;YACjC,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;SAC/C,CAAC;QAEF,OAAO,qBAAqB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;CACF;AAvJD,sDAuJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProvider, BackgroundMapType } from \"./BackgroundMapProvider\";\r\nimport { PlanarClipMaskProps, PlanarClipMaskSettings } from \"./PlanarClipMask\";\r\nimport { TerrainProps, TerrainSettings } from \"./TerrainSettings\";\r\n\r\n/** Describes the projection of the background map\r\n * @see [[BackgroundMapProps]]\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport enum GlobeMode {\r\n /** Display Earth as 3d ellipsoid */\r\n Ellipsoid = 0,\r\n /** Display Earth as plane. */\r\n Plane = 1,\r\n}\r\n\r\n/** In-memory JSON representation of a [[BackgroundMapSettings]].\r\n * @see [[PersistentBackgroundMapProps]] for the persistent JSON representation.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface BackgroundMapProps {\r\n /** The elevation of the map in meters relative the WGS84 ellipsoid. Default value: 0. */\r\n groundBias?: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.\r\n * Default value: false.\r\n */\r\n transparency?: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n useDepthBuffer?: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n applyTerrain?: boolean;\r\n /** Properties associated with terrain display. */\r\n terrainSettings?: TerrainProps;\r\n /** Globe Mode. Default value: GlobeMode.Ellipsoid */\r\n globeMode?: GlobeMode;\r\n /** If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n nonLocatable?: boolean;\r\n /** A planar mask applied to the map geometry\r\n * @beta\r\n */\r\n planarClipMask?: PlanarClipMaskProps;\r\n\r\n /** See [[DeprecatedBackgroundMapProps.providerName]]. */\r\n providerName?: never;\r\n /** See [[DeprecatedBackgroundMapProps.providerData]]. */\r\n providerData?: never;\r\n}\r\n\r\n/** Properties of [[PersistentBackgroundMapProps]] that have been deprecated, but are retained for backwards compatibility.\r\n * These properties are omitted from [[BackgroundMapProps]] as they are no longer part of the API, but are included in\r\n * [[PersistentBackgroundMapProps]] because they remain part of the persistence format.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DeprecatedBackgroundMapProps {\r\n /** Identifies the source of the map tiles. Currently supported providers are \"BingProvider\" and \"MapBoxProvider\".\r\n * Default value: \"BingProvider\"\r\n * @deprecated in 3.x. use MapImageryProps.backgroundBase.\r\n */\r\n providerName?: string;\r\n /** Options for customizing the tiles supplied by the provider. If undefined, default values of all members are used.\r\n * @deprecated in 3.x. use MapImageryProps.backgroundBase\r\n */\r\n providerData?: {\r\n /** The type of map graphics to request. Default value: BackgroundMapType.Hybrid. */\r\n mapType?: BackgroundMapType;\r\n };\r\n}\r\n\r\n/** Persistent JSON representation of a [[BackgroundMapSettings]].\r\n * @public\r\n * @extensions\r\n */\r\nexport type PersistentBackgroundMapProps = Omit<BackgroundMapProps, keyof DeprecatedBackgroundMapProps> & DeprecatedBackgroundMapProps;\r\n\r\nfunction normalizeGlobeMode(mode?: GlobeMode): GlobeMode {\r\n return GlobeMode.Plane === mode ? mode : GlobeMode.Ellipsoid;\r\n}\r\n\r\nfunction normalizeTransparency(trans?: number | false): number | false {\r\n if (\"number\" === typeof trans)\r\n return Math.min(1, Math.max(0, trans));\r\n\r\n return false;\r\n}\r\n\r\n/** As part of a [[DisplayStyleSettings]], controls aspects of how the background map is displayed.\r\n * @see [[DisplayStyleSettings.backgroundMap]] to query or change these settings for a display style.\r\n * @see [[MapImagerySettings]] to control the type of imagery applied to the background map.\r\n * @public\r\n */\r\nexport class BackgroundMapSettings {\r\n /** Retained strictly for persistence. */\r\n private readonly _provider: BackgroundMapProvider;\r\n\r\n /** Elevation in meters, relative to WGS84 Ellipsoid.. */\r\n public readonly groundBias: number;\r\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\r\n public readonly transparency: number | false;\r\n /** If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry. Default value: false. */\r\n public readonly useDepthBuffer: boolean;\r\n /** If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane. */\r\n public readonly applyTerrain: boolean;\r\n /** Settings associated with terrain display. */\r\n public readonly terrainSettings: TerrainSettings;\r\n /** Globe display mode. */\r\n public readonly globeMode: GlobeMode;\r\n /** Planar Mask - used to mask the background map to avoid overlapping with other geometry\r\n * @beta\r\n */\r\n public readonly planarClipMask: PlanarClipMaskSettings;\r\n private readonly _locatable: boolean;\r\n /** If false, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it\r\n * allows the user to select elements that are behind the map.\r\n */\r\n public get locatable(): boolean {\r\n // Handle legacy TerrainProps.nonLocatable:\r\n // - If TerrainProps.nonLocatable=true and terrain is on, terrain is not locatable.\r\n // - Otherwise, use BackgroundMapProps.nonLocatable.\r\n if (this.applyTerrain && this.terrainSettings.nonLocatable)\r\n return false;\r\n\r\n return this._locatable;\r\n }\r\n\r\n /** If transparency is overridden, the transparency to apply; otherwise, undefined. */\r\n public get transparencyOverride(): number | undefined { return false !== this.transparency ? this.transparency : undefined; }\r\n\r\n private constructor(props: BackgroundMapProps | PersistentBackgroundMapProps) {\r\n this.groundBias = props.groundBias ?? 0;\r\n this.transparency = normalizeTransparency(props.transparency);\r\n this.useDepthBuffer = props.useDepthBuffer ?? false;\r\n this.applyTerrain = props.applyTerrain ?? false;\r\n this.terrainSettings = TerrainSettings.fromJSON(props.terrainSettings);\r\n this.globeMode = normalizeGlobeMode(props.globeMode);\r\n this._locatable = true !== props.nonLocatable;\r\n this.planarClipMask = PlanarClipMaskSettings.fromJSON(props.planarClipMask);\r\n this._provider = BackgroundMapProvider.fromBackgroundMapProps(props);\r\n }\r\n\r\n /** Create settings from their persistent representation. In general, this method should only be used when reading the settings directly from\r\n * the iModel - otherwise, prefer [[fromJSON]].\r\n */\r\n public static fromPersistentJSON(json?: PersistentBackgroundMapProps): BackgroundMapSettings {\r\n return new this(json ?? {});\r\n }\r\n\r\n /** Construct from JSON, performing validation and applying default values for undefined fields.\r\n * @see [[fromPersistentJSON]] if you are reading the settings directly from the iModel.\r\n */\r\n public static fromJSON(json?: BackgroundMapProps): BackgroundMapSettings {\r\n return new BackgroundMapSettings(json ?? {});\r\n }\r\n\r\n /** Convert these settings to their in-memory JSON representation.\r\n * @see [[toPersistentJSON]] if you intend to write the JSON directly to an iModel.\r\n */\r\n public toJSON(): BackgroundMapProps {\r\n const props: BackgroundMapProps = {};\r\n if (0 !== this.groundBias)\r\n props.groundBias = this.groundBias;\r\n if (this.applyTerrain)\r\n props.applyTerrain = true;\r\n if (false !== this.transparency)\r\n props.transparency = this.transparency;\r\n if (GlobeMode.Ellipsoid !== this.globeMode)\r\n props.globeMode = this.globeMode;\r\n if (this.useDepthBuffer)\r\n props.useDepthBuffer = true;\r\n if (!this._locatable)\r\n props.nonLocatable = true;\r\n\r\n const terrainSettings = this.terrainSettings.toJSON();\r\n for (const prop of Object.values(terrainSettings)) {\r\n if (undefined !== prop) {\r\n props.terrainSettings = terrainSettings;\r\n break;\r\n }\r\n }\r\n\r\n if (this.planarClipMask.isValid)\r\n props.planarClipMask = this.planarClipMask.toJSON();\r\n\r\n return props;\r\n }\r\n\r\n /** Convert these settings to their persistent representation. In general, this method should only be used when writing the settings directly to\r\n * the iModel - otherwise, prefer [[toJSON]].\r\n */\r\n public toPersistentJSON(): PersistentBackgroundMapProps {\r\n const props = this.toJSON() as PersistentBackgroundMapProps;\r\n\r\n // Preserve deprecated imagery provider properties.\r\n if (\"BingProvider\" !== this._provider.name)\r\n props.providerName = this._provider.name; // eslint-disable-line @typescript-eslint/no-deprecated\r\n if (BackgroundMapType.Hybrid !== this._provider.type)\r\n props.providerData = { mapType: this._provider.type }; // eslint-disable-line @typescript-eslint/no-deprecated\r\n\r\n return props;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromJSON(json));\r\n }\r\n\r\n /** Returns true if the persistent representation of these settings is equivalent to `json`. */\r\n public equalsPersistentJSON(json?: PersistentBackgroundMapProps): boolean {\r\n return this.equals(BackgroundMapSettings.fromPersistentJSON(json));\r\n }\r\n\r\n /** Returns true if these settings are equivalent to `other`. */\r\n public equals(other: BackgroundMapSettings): boolean {\r\n return this.groundBias === other.groundBias && this.useDepthBuffer === other.useDepthBuffer && this.transparency === other.transparency\r\n && this.globeMode === other.globeMode && this._locatable === other._locatable && this.applyTerrain === other.applyTerrain\r\n && this.terrainSettings.equals(other.terrainSettings) && this.planarClipMask.equals(other.planarClipMask)\r\n && this._provider.name === other._provider.name && this._provider.type === other._provider.type;\r\n }\r\n\r\n /** Create a copy of this BackgroundMapSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A BackgroundMapSettings with all of its properties set to match those of `this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: BackgroundMapProps): BackgroundMapSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n groundBias: changedProps.groundBias ?? this.groundBias,\r\n transparency: changedProps.transparency ?? this.transparency,\r\n useDepthBuffer: changedProps.useDepthBuffer ?? this.useDepthBuffer,\r\n globeMode: changedProps.globeMode ?? this.globeMode,\r\n nonLocatable: changedProps.nonLocatable ?? !this._locatable,\r\n applyTerrain: changedProps.applyTerrain ?? this.applyTerrain,\r\n terrainSettings: changedProps.terrainSettings ? this.terrainSettings.clone(changedProps.terrainSettings).toJSON() : this.terrainSettings.toJSON(),\r\n planarClipMask: changedProps.planarClipMask ? this.planarClipMask.clone(changedProps.planarClipMask).toJSON() : this.planarClipMask.toJSON(),\r\n providerName: this._provider.name,\r\n providerData: { mapType: this._provider.type },\r\n };\r\n\r\n return BackgroundMapSettings.fromPersistentJSON(props);\r\n }\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"BriefcaseTypes.js","sourceRoot":"","sources":["../../src/BriefcaseTypes.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAaH;;;GAGG;AACH,IAAY,gBAyBX;AAzBD,WAAY,gBAAgB;IAC1B,+CAA+C;IAC/C,sEAAoB,CAAA;IAEpB,gDAAgD;IAChD,4DAAa,CAAA;IAEb,gFAAgF;IAChF,mEAAc,CAAA;IAEd,+EAA+E;IAC/E,wEAAqC,CAAA;IAErC;;;;;;;;;;OAUG;IACH,mEAAc,CAAA;AAChB,CAAC,EAzBW,gBAAgB,gCAAhB,gBAAgB,QAyB3B;AAED;;;GAGG;AACH,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,mIAAmI;IACnI,uDAAgB,CAAA;IAChB,0FAA0F;IAC1F,qDAAe,CAAA;IACf,qJAAqJ;IACrJ,+CAAY,CAAA;AACd,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAwID;;GAEG;AACH,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,qJAAqJ;IACrJ,mFAAyB,CAAA;IAEzB,iKAAiK;IACjK,yFAA4B,CAAA;IAE5B,sMAAsM;IACtM,uDAAW,CAAA;IAEX,qFAAqF;IACrF,2DAAa,CAAA;AACf,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB;AAED;;GAEG;AACH,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,0GAA0G;IAC1G,mDAAQ,CAAA;IAER,qDAAqD;IACrD,yDAAW,CAAA;AACb,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAgBD;;;;GAIG;AACH,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACrB,sIAAsI;IACtI,qDAAQ,CAAA;IAER;;;OAGG;IACH,mEAAe,CAAA;IAEf,4IAA4I;IAC5I,yEAAkB,CAAA;IAElB,oIAAoI;IACpI,iDAAM,CAAA;IAEN,4FAA4F;IAC5F,iDAAM,CAAA;AACR,CAAC,EAlBW,WAAW,2BAAX,WAAW,QAkBtB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\nimport { GuidString } from \"@itwin/core-bentley\";\r\nimport { ChangesetIdWithIndex, ChangesetIndexOrId, LocalFileName } from \"./ChangesetProps\";\r\nimport { IModelEncryptionProps, OpenDbKey } from \"./IModel\";\r\nimport { IModelVersionProps } from \"./IModelVersion\";\r\n\r\n/** The Id assigned to a briefcase by iModelHub, or [[BriefcaseIdValue.Unassigned]] .\r\n * @public\r\n * @extensions\r\n */\r\nexport type BriefcaseId = number;\r\n\r\n/** Values of [[BriefcaseId]] that have special meaning.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum BriefcaseIdValue {\r\n /** Indicates an invalid/illegal BriefcaseId */\r\n Illegal = 0xffffffff,\r\n\r\n /** BriefcaseIds must be less than this value */\r\n Max = 1 << 24,\r\n\r\n /** All valid iModelHub issued BriefcaseIds will be equal or higher than this */\r\n FirstValid = 2,\r\n\r\n /** All valid iModelHub issued BriefcaseIds will be equal or lower than this */\r\n LastValid = BriefcaseIdValue.Max - 11,\r\n\r\n /**\r\n * The briefcase has not been assigned a unique Id by iModelHub. Only briefcases that have been assigned a unique BriefcaseId may create changesets,\r\n * because BriefcaseId is used to create unique ElementIds for new elements.\r\n *\r\n * The `Unassigned` briefcaseId is used for several purposes:\r\n * - **Snapshots**. Snapshot files are immutable copies of an iModel for archival or data exchange purposes. They can neither generate nor accept new changesets.\r\n * - **Checkpoints**. Checkpoints are Snapshots that represent a specific version on an iModel's timeline.\r\n * - **PullOnly**. A local briefcase file that may be used to \"slide\" along a timeline by applying incoming changesets.\r\n * They are always opened readonly except to apply changesets.\r\n * - **Standalone**. Standalone iModels are local files that are not connected to iModelHub, and therefore cannot accept or create changesets.\r\n */\r\n Unassigned = 0,\r\n}\r\n\r\n/** Whether a briefcase is editable or may only accept incoming changesets from iModelHub\r\n * @public\r\n * @extensions\r\n */\r\nexport enum SyncMode {\r\n /** Use a fixed version (i.e. a checkpoint). See [CheckpointManager]($backend) for preferred approach to using checkpoint files. */\r\n FixedVersion = 1,\r\n /** A briefcase that can be edited. A unique briefcaseId must be assigned by iModelHub. */\r\n PullAndPush = 2,\r\n /** use [BriefcaseIdValue.Unassigned](%backend). This makes a briefcase that can accept changesets from iModelHub but can never create changesets. */\r\n PullOnly = 3,\r\n}\r\n\r\n/**\r\n * Options to open a previously downloaded briefcase\r\n * @public\r\n */\r\nexport interface OpenBriefcaseOptions {\r\n /** open briefcase Readonly */\r\n readonly openAsReadOnly?: boolean;\r\n}\r\n\r\n/**\r\n * Properties that specify a briefcase within the local briefcase cache.\r\n * @see BriefcaseManager.getFileName\r\n * @public\r\n */\r\nexport interface BriefcaseProps {\r\n /** Id of the iModel */\r\n readonly iModelId: GuidString;\r\n\r\n /** BriefcaseId of the briefcase */\r\n readonly briefcaseId: BriefcaseId;\r\n}\r\n\r\n/** Properties for opening a local briefcase file via [BriefcaseDb.open]($backend)\r\n * @public\r\n */\r\nexport interface OpenBriefcaseProps extends IModelEncryptionProps, OpenDbKey { // eslint-disable-line deprecation/deprecation\r\n /** the full path to the briefcase file */\r\n readonly fileName: LocalFileName;\r\n /**\r\n * If true, open the briefcase readonly.\r\n * @note Readonly connections always hold a read transaction against the briefcase. That can cause the WAL file size to grow\r\n * unbounded if changes happen while they're open (see [Checkpoint starvation](https://www.sqlite.org/wal.html#avoiding_excessively_large_wal_files))\r\n * It is a good idea to close the readonly connection *before* closing the writeable connection so the WAL file will be deleted.\r\n */\r\n readonly readonly?: boolean;\r\n /** If true, open the briefcase readonly and monitor it for changes originating from another connection.\r\n * When such changes are detected, the default txn will be restarted.\r\n * The restart occurs only after the next iteration of the backend event loop, and will generate events that reflect the changes from the other connection.\r\n * This can be useful in contexts where the read-only connection is displaying a view of the contents of the briefcase while another, non-interactive program\r\n * is adding txns to the briefcase. It may not be reliable if the writable connection is undoing or redoing txns.\r\n * @note This cannot be used with cloud-based briefcases.\r\n */\r\n readonly watchForChanges?: boolean;\r\n}\r\n\r\n/** Properties of a local briefcase file, returned by [BriefcaseManager.getCachedBriefcases]($backend) and [BriefcaseManager.downloadBriefcase]($backend)\r\n * @public\r\n * @extensions\r\n */\r\nexport interface LocalBriefcaseProps {\r\n /** Full path of local file. */\r\n readonly fileName: LocalFileName;\r\n\r\n /** The iTwin containing the iModel. */\r\n readonly iTwinId: GuidString;\r\n\r\n /** The iModelId. */\r\n readonly iModelId: GuidString;\r\n\r\n /** The briefcaseId. */\r\n readonly briefcaseId: BriefcaseId;\r\n\r\n /** The current changesetId.\r\n * @note ChangeSet Ids are string hash values based on the ChangeSet's content and parent.\r\n */\r\n readonly changeset: ChangesetIdWithIndex;\r\n\r\n /** Size of the briefcase file in bytes */\r\n readonly fileSize: number;\r\n}\r\n\r\n/** Properties for downloading a briefcase to a local file, from iModelHub.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface RequestNewBriefcaseProps {\r\n /** iTwin that the iModel belongs to. */\r\n readonly iTwinId: GuidString;\r\n\r\n /** The iModelId for the new briefcase. */\r\n readonly iModelId: GuidString;\r\n\r\n /** Full path of local file to store the briefcase. If undefined, a file will be created in the briefcase cache, and this member will be filled with the full path to the file.\r\n * Callers can use this to open the briefcase after the download completes.\r\n * @note this member is both an input and an output.\r\n */\r\n readonly fileName?: LocalFileName;\r\n\r\n /**\r\n * The BriefcaseId for the new briefcase. If undefined, a new BriefcaseId will be acquired from iModelHub before the download, and is returned in this member.\r\n * @note To download a briefcase that can accept but not create new changesets (sometimes referred to as \"pull only\" briefcases), set this value to [[BriefcaseIdValue.Unassigned]].\r\n * After downloading, you can merely delete unassigned briefcase files when they are no longer needed. Assigned BriefcaseIds should be released (via [BriefcaseManager.releaseBriefcase]($backend) )\r\n * when you are done with them.\r\n * @note this member is both an input and an output.\r\n *\r\n */\r\n briefcaseId?: BriefcaseId;\r\n\r\n /** Id of the change set of the new briefcase. If undefined, use latest. */\r\n asOf?: IModelVersionProps;\r\n}\r\n\r\n/**\r\n * Arguments to open a Checkpoint directly from its cloud container\r\n * @beta\r\n */\r\nexport interface OpenCheckpointArgs {\r\n readonly iTwinId: GuidString;\r\n\r\n /** Id of the iModel */\r\n readonly iModelId: GuidString;\r\n\r\n /** changeset for the checkpoint. If undefined, attempt to open the checkpoint for the latest changeset. */\r\n readonly changeset?: ChangesetIndexOrId;\r\n}\r\n\r\n/**\r\n * Manages the download of a briefcase\r\n * @public\r\n */\r\nexport interface BriefcaseDownloader {\r\n /** Id of the briefcase being downloaded */\r\n readonly briefcaseId: BriefcaseId;\r\n\r\n /** the name of the local file for the briefcase */\r\n readonly fileName: LocalFileName;\r\n\r\n /** Promise that resolves when the download completes. await this to complete the download */\r\n readonly downloadPromise: Promise<void>;\r\n\r\n /** Request cancellation of the download */\r\n readonly requestCancel: () => Promise<boolean>;\r\n}\r\n\r\n/** Option to control the validation and upgrade of domain schemas in the Db\r\n * @beta\r\n */\r\nexport enum DomainOptions {\r\n /** Domain schemas will be validated for any required upgrades. Any errors will be reported back, and cause the application to fail opening the Db */\r\n CheckRequiredUpgrades = 0,\r\n\r\n /** Domain schemas will be validated for any required or optional upgrades. Any errors will be reported back, and cause the application to fail opening the Db */\r\n CheckRecommendedUpgrades = 1,\r\n\r\n /** Domain schemas will be upgraded if necessary. However, only compatible schema upgrades will be allowed - these are typically additions of classes, properties, and changes to custom attributes */\r\n Upgrade = 2,\r\n\r\n /** Domain schemas will neither be validated nor be upgraded. Used only internally */\r\n SkipCheck = 3,\r\n}\r\n\r\n/** Options that control whether a profile upgrade should be performed when opening a Db\r\n * @beta\r\n */\r\nexport enum ProfileOptions {\r\n /** No profile upgrade will be performed. If a profile upgrade was required, opening the file will fail */\r\n None = 0,\r\n\r\n /** Profile upgrade will be performed if necessary */\r\n Upgrade = 1,\r\n}\r\n\r\n/** Arguments to validate and update the profile and domain schemas when opening a Db\r\n * @beta\r\n */\r\nexport interface UpgradeOptions {\r\n /** Option to control the validation and upgrade of domain schemas in the Db */\r\n readonly domain?: DomainOptions;\r\n\r\n /** Options that control whether a profile upgrade should be performed when opening a file */\r\n readonly profile?: ProfileOptions;\r\n\r\n /** Options that will allow data transform during Profile/Domain schema upgrade */\r\n readonly schemaLockHeld?: boolean;\r\n}\r\n\r\n/**\r\n * The state of the schemas in the Db compared with what the current version of the software expects\r\n * Note: The state may vary depending on whether the Db is to be opened ReadOnly or ReadWrite.\r\n * @public\r\n */\r\nexport enum SchemaState {\r\n /** The schemas in the Db are up-to-date, and do not need to be upgraded before opening it with the current version of the software */\r\n UpToDate,\r\n\r\n /** It's required that the schemas in the Db be upgraded before it can be opened with the current version of the software.\r\n * This may happen in read-write scenarios where the application requires a newer version of the schemas to be in place before\r\n * it can write data based on that new schema.\r\n */\r\n UpgradeRequired,\r\n\r\n /** It's recommended, but not necessary that the schemas in the Db be upgraded before opening it with the current version of the software */\r\n UpgradeRecommended,\r\n\r\n /** The schemas in the Db are too old to be opened by the current version of the software. Upgrade using the API is not possible. */\r\n TooOld,\r\n\r\n /** The schemas in the Db are too new to be opened by the current version of the software */\r\n TooNew,\r\n}\r\n"]}
1
+ {"version":3,"file":"BriefcaseTypes.js","sourceRoot":"","sources":["../../src/BriefcaseTypes.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAaH;;;GAGG;AACH,IAAY,gBAyBX;AAzBD,WAAY,gBAAgB;IAC1B,+CAA+C;IAC/C,sEAAoB,CAAA;IAEpB,gDAAgD;IAChD,4DAAa,CAAA;IAEb,gFAAgF;IAChF,mEAAc,CAAA;IAEd,+EAA+E;IAC/E,wEAAqC,CAAA;IAErC;;;;;;;;;;OAUG;IACH,mEAAc,CAAA;AAChB,CAAC,EAzBW,gBAAgB,gCAAhB,gBAAgB,QAyB3B;AAED;;;GAGG;AACH,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,mIAAmI;IACnI,uDAAgB,CAAA;IAChB,0FAA0F;IAC1F,qDAAe,CAAA;IACf,qJAAqJ;IACrJ,+CAAY,CAAA;AACd,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAwID;;GAEG;AACH,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,qJAAqJ;IACrJ,mFAAyB,CAAA;IAEzB,iKAAiK;IACjK,yFAA4B,CAAA;IAE5B,sMAAsM;IACtM,uDAAW,CAAA;IAEX,qFAAqF;IACrF,2DAAa,CAAA;AACf,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB;AAED;;GAEG;AACH,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,0GAA0G;IAC1G,mDAAQ,CAAA;IAER,qDAAqD;IACrD,yDAAW,CAAA;AACb,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAgBD;;;;GAIG;AACH,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACrB,sIAAsI;IACtI,qDAAQ,CAAA;IAER;;;OAGG;IACH,mEAAe,CAAA;IAEf,4IAA4I;IAC5I,yEAAkB,CAAA;IAElB,oIAAoI;IACpI,iDAAM,CAAA;IAEN,4FAA4F;IAC5F,iDAAM,CAAA;AACR,CAAC,EAlBW,WAAW,2BAAX,WAAW,QAkBtB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module iModels\r\n */\r\n\r\nimport { GuidString } from \"@itwin/core-bentley\";\r\nimport { ChangesetIdWithIndex, ChangesetIndexOrId, LocalFileName } from \"./ChangesetProps\";\r\nimport { IModelEncryptionProps, OpenDbKey } from \"./IModel\";\r\nimport { IModelVersionProps } from \"./IModelVersion\";\r\n\r\n/** The Id assigned to a briefcase by iModelHub, or [[BriefcaseIdValue.Unassigned]] .\r\n * @public\r\n * @extensions\r\n */\r\nexport type BriefcaseId = number;\r\n\r\n/** Values of [[BriefcaseId]] that have special meaning.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum BriefcaseIdValue {\r\n /** Indicates an invalid/illegal BriefcaseId */\r\n Illegal = 0xffffffff,\r\n\r\n /** BriefcaseIds must be less than this value */\r\n Max = 1 << 24,\r\n\r\n /** All valid iModelHub issued BriefcaseIds will be equal or higher than this */\r\n FirstValid = 2,\r\n\r\n /** All valid iModelHub issued BriefcaseIds will be equal or lower than this */\r\n LastValid = BriefcaseIdValue.Max - 11,\r\n\r\n /**\r\n * The briefcase has not been assigned a unique Id by iModelHub. Only briefcases that have been assigned a unique BriefcaseId may create changesets,\r\n * because BriefcaseId is used to create unique ElementIds for new elements.\r\n *\r\n * The `Unassigned` briefcaseId is used for several purposes:\r\n * - **Snapshots**. Snapshot files are immutable copies of an iModel for archival or data exchange purposes. They can neither generate nor accept new changesets.\r\n * - **Checkpoints**. Checkpoints are Snapshots that represent a specific version on an iModel's timeline.\r\n * - **PullOnly**. A local briefcase file that may be used to \"slide\" along a timeline by applying incoming changesets.\r\n * They are always opened readonly except to apply changesets.\r\n * - **Standalone**. Standalone iModels are local files that are not connected to iModelHub, and therefore cannot accept or create changesets.\r\n */\r\n Unassigned = 0,\r\n}\r\n\r\n/** Whether a briefcase is editable or may only accept incoming changesets from iModelHub\r\n * @public\r\n * @extensions\r\n */\r\nexport enum SyncMode {\r\n /** Use a fixed version (i.e. a checkpoint). See [CheckpointManager]($backend) for preferred approach to using checkpoint files. */\r\n FixedVersion = 1,\r\n /** A briefcase that can be edited. A unique briefcaseId must be assigned by iModelHub. */\r\n PullAndPush = 2,\r\n /** use [BriefcaseIdValue.Unassigned](%backend). This makes a briefcase that can accept changesets from iModelHub but can never create changesets. */\r\n PullOnly = 3,\r\n}\r\n\r\n/**\r\n * Options to open a previously downloaded briefcase\r\n * @public\r\n */\r\nexport interface OpenBriefcaseOptions {\r\n /** open briefcase Readonly */\r\n readonly openAsReadOnly?: boolean;\r\n}\r\n\r\n/**\r\n * Properties that specify a briefcase within the local briefcase cache.\r\n * @see BriefcaseManager.getFileName\r\n * @public\r\n */\r\nexport interface BriefcaseProps {\r\n /** Id of the iModel */\r\n readonly iModelId: GuidString;\r\n\r\n /** BriefcaseId of the briefcase */\r\n readonly briefcaseId: BriefcaseId;\r\n}\r\n\r\n/** Properties for opening a local briefcase file via [BriefcaseDb.open]($backend)\r\n * @public\r\n */\r\nexport interface OpenBriefcaseProps extends IModelEncryptionProps, OpenDbKey { // eslint-disable-line @typescript-eslint/no-deprecated\r\n /** the full path to the briefcase file */\r\n readonly fileName: LocalFileName;\r\n /**\r\n * If true, open the briefcase readonly.\r\n * @note Readonly connections always hold a read transaction against the briefcase. That can cause the WAL file size to grow\r\n * unbounded if changes happen while they're open (see [Checkpoint starvation](https://www.sqlite.org/wal.html#avoiding_excessively_large_wal_files))\r\n * It is a good idea to close the readonly connection *before* closing the writeable connection so the WAL file will be deleted.\r\n */\r\n readonly readonly?: boolean;\r\n /** If true, open the briefcase readonly and monitor it for changes originating from another connection.\r\n * When such changes are detected, the default txn will be restarted.\r\n * The restart occurs only after the next iteration of the backend event loop, and will generate events that reflect the changes from the other connection.\r\n * This can be useful in contexts where the read-only connection is displaying a view of the contents of the briefcase while another, non-interactive program\r\n * is adding txns to the briefcase. It may not be reliable if the writable connection is undoing or redoing txns.\r\n * @note This cannot be used with cloud-based briefcases.\r\n */\r\n readonly watchForChanges?: boolean;\r\n}\r\n\r\n/** Properties of a local briefcase file, returned by [BriefcaseManager.getCachedBriefcases]($backend) and [BriefcaseManager.downloadBriefcase]($backend)\r\n * @public\r\n * @extensions\r\n */\r\nexport interface LocalBriefcaseProps {\r\n /** Full path of local file. */\r\n readonly fileName: LocalFileName;\r\n\r\n /** The iTwin containing the iModel. */\r\n readonly iTwinId: GuidString;\r\n\r\n /** The iModelId. */\r\n readonly iModelId: GuidString;\r\n\r\n /** The briefcaseId. */\r\n readonly briefcaseId: BriefcaseId;\r\n\r\n /** The current changesetId.\r\n * @note ChangeSet Ids are string hash values based on the ChangeSet's content and parent.\r\n */\r\n readonly changeset: ChangesetIdWithIndex;\r\n\r\n /** Size of the briefcase file in bytes */\r\n readonly fileSize: number;\r\n}\r\n\r\n/** Properties for downloading a briefcase to a local file, from iModelHub.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface RequestNewBriefcaseProps {\r\n /** iTwin that the iModel belongs to. */\r\n readonly iTwinId: GuidString;\r\n\r\n /** The iModelId for the new briefcase. */\r\n readonly iModelId: GuidString;\r\n\r\n /** Full path of local file to store the briefcase. If undefined, a file will be created in the briefcase cache, and this member will be filled with the full path to the file.\r\n * Callers can use this to open the briefcase after the download completes.\r\n * @note this member is both an input and an output.\r\n */\r\n readonly fileName?: LocalFileName;\r\n\r\n /**\r\n * The BriefcaseId for the new briefcase. If undefined, a new BriefcaseId will be acquired from iModelHub before the download, and is returned in this member.\r\n * @note To download a briefcase that can accept but not create new changesets (sometimes referred to as \"pull only\" briefcases), set this value to [[BriefcaseIdValue.Unassigned]].\r\n * After downloading, you can merely delete unassigned briefcase files when they are no longer needed. Assigned BriefcaseIds should be released (via [BriefcaseManager.releaseBriefcase]($backend) )\r\n * when you are done with them.\r\n * @note this member is both an input and an output.\r\n *\r\n */\r\n briefcaseId?: BriefcaseId;\r\n\r\n /** Id of the change set of the new briefcase. If undefined, use latest. */\r\n asOf?: IModelVersionProps;\r\n}\r\n\r\n/**\r\n * Arguments to open a Checkpoint directly from its cloud container\r\n * @beta\r\n */\r\nexport interface OpenCheckpointArgs {\r\n readonly iTwinId: GuidString;\r\n\r\n /** Id of the iModel */\r\n readonly iModelId: GuidString;\r\n\r\n /** changeset for the checkpoint. If undefined, attempt to open the checkpoint for the latest changeset. */\r\n readonly changeset?: ChangesetIndexOrId;\r\n}\r\n\r\n/**\r\n * Manages the download of a briefcase\r\n * @public\r\n */\r\nexport interface BriefcaseDownloader {\r\n /** Id of the briefcase being downloaded */\r\n readonly briefcaseId: BriefcaseId;\r\n\r\n /** the name of the local file for the briefcase */\r\n readonly fileName: LocalFileName;\r\n\r\n /** Promise that resolves when the download completes. await this to complete the download */\r\n readonly downloadPromise: Promise<void>;\r\n\r\n /** Request cancellation of the download */\r\n readonly requestCancel: () => Promise<boolean>;\r\n}\r\n\r\n/** Option to control the validation and upgrade of domain schemas in the Db\r\n * @beta\r\n */\r\nexport enum DomainOptions {\r\n /** Domain schemas will be validated for any required upgrades. Any errors will be reported back, and cause the application to fail opening the Db */\r\n CheckRequiredUpgrades = 0,\r\n\r\n /** Domain schemas will be validated for any required or optional upgrades. Any errors will be reported back, and cause the application to fail opening the Db */\r\n CheckRecommendedUpgrades = 1,\r\n\r\n /** Domain schemas will be upgraded if necessary. However, only compatible schema upgrades will be allowed - these are typically additions of classes, properties, and changes to custom attributes */\r\n Upgrade = 2,\r\n\r\n /** Domain schemas will neither be validated nor be upgraded. Used only internally */\r\n SkipCheck = 3,\r\n}\r\n\r\n/** Options that control whether a profile upgrade should be performed when opening a Db\r\n * @beta\r\n */\r\nexport enum ProfileOptions {\r\n /** No profile upgrade will be performed. If a profile upgrade was required, opening the file will fail */\r\n None = 0,\r\n\r\n /** Profile upgrade will be performed if necessary */\r\n Upgrade = 1,\r\n}\r\n\r\n/** Arguments to validate and update the profile and domain schemas when opening a Db\r\n * @beta\r\n */\r\nexport interface UpgradeOptions {\r\n /** Option to control the validation and upgrade of domain schemas in the Db */\r\n readonly domain?: DomainOptions;\r\n\r\n /** Options that control whether a profile upgrade should be performed when opening a file */\r\n readonly profile?: ProfileOptions;\r\n\r\n /** Options that will allow data transform during Profile/Domain schema upgrade */\r\n readonly schemaLockHeld?: boolean;\r\n}\r\n\r\n/**\r\n * The state of the schemas in the Db compared with what the current version of the software expects\r\n * Note: The state may vary depending on whether the Db is to be opened ReadOnly or ReadWrite.\r\n * @public\r\n */\r\nexport enum SchemaState {\r\n /** The schemas in the Db are up-to-date, and do not need to be upgraded before opening it with the current version of the software */\r\n UpToDate,\r\n\r\n /** It's required that the schemas in the Db be upgraded before it can be opened with the current version of the software.\r\n * This may happen in read-write scenarios where the application requires a newer version of the schemas to be in place before\r\n * it can write data based on that new schema.\r\n */\r\n UpgradeRequired,\r\n\r\n /** It's recommended, but not necessary that the schemas in the Db be upgraded before opening it with the current version of the software */\r\n UpgradeRecommended,\r\n\r\n /** The schemas in the Db are too old to be opened by the current version of the software. Upgrade using the API is not possible. */\r\n TooOld,\r\n\r\n /** The schemas in the Db are too new to be opened by the current version of the software */\r\n TooNew,\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ColorDef.d.ts","sourceRoot":"","sources":["../../src/ColorDef.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC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CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,SAAI,GAAG,aAAa;IAuClG,gDAAgD;IACzC,KAAK,IAAI,QAAQ;IAoCxB,gDAAgD;IACzC,KAAK,IAAI,QAAQ;IA8CxB,yCAAyC;WAC3B,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,YAAY,SAAI,GAAG,QAAQ;IAoChE,OAAO,CAAC,eAAe;IAUvB;;;;;OAKG;IACI,mBAAmB,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ;IA6BrE,0EAA0E;IACnE,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO;IAIvC,iBAAiB;IACjB,gBAAuB,KAAK,WAAmC;IAC/D,iBAAiB;IACjB,gBAAuB,KAAK,WAAmC;IAC/D,eAAe;IACf,gBAAuB,GAAG,WAAiC;IAC3D,iBAAiB;IACjB,gBAAuB,KAAK,WAAmC;IAC/D,gBAAgB;IAChB,gBAAuB,IAAI,WAAkC;CAC9D"}
@@ -178,7 +178,6 @@ class ColorDef {
178
178
  }
179
179
  break;
180
180
  }
181
- // eslint-disable-next-line no-cond-assign
182
181
  }
183
182
  else if (m = /^\#([a-f0-9]+)$/.exec(val)) { // hex color
184
183
  const hex = m[1];
@@ -488,7 +487,6 @@ class ColorDef {
488
487
  const v = 0xff & Math.floor(dvalue * 255 + 0.5);
489
488
  let r = 0, b = 0, g = 0;
490
489
  switch (hueIntpart) {
491
- /* eslint-disable max-statements-per-line */
492
490
  case 0:
493
491
  r = v;
494
492
  g = t;
@@ -514,7 +512,6 @@ class ColorDef {
514
512
  r = v, g = p;
515
513
  b = q;
516
514
  break; // magenta-ish
517
- /* eslint-enable max-statements-per-line */
518
515
  }
519
516
  return ColorDef.from(r, g, b, transparency);
520
517
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ColorDef.js","sourceRoot":"","sources":["../../src/ColorDef.ts"],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AAM,CAAC,MAAM,EAAE,KAAK,KAAK,CAAC,MAAM,EAAE,EAAE,8BAA8B;YACpE,OAAO,MAAM,CAAC;QAEhB,IAAI,MAAM,CAAC,MAAM,EAAE,KAAK,KAAK,CAAC,MAAM,EAAE,EAAE,4BAA4B;YAClE,OAAO,MAAM,CAAC;QAEhB,uEAAuE;QACvE,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5F,CAAC;IAED,0EAA0E;IACnE,MAAM,CAAC,KAAe;QAC3B,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC;IACpC,CAAC;;AA3lBH,4BAumBC;AAVC,iBAAiB;AACM,cAAK,GAAG,IAAI,QAAQ,CAAC,yBAAW,CAAC,KAAK,CAAC,CAAC;AAC/D,iBAAiB;AACM,cAAK,GAAG,IAAI,QAAQ,CAAC,yBAAW,CAAC,KAAK,CAAC,CAAC;AAC/D,eAAe;AACQ,YAAG,GAAG,IAAI,QAAQ,CAAC,yBAAW,CAAC,GAAG,CAAC,CAAC;AAC3D,iBAAiB;AACM,cAAK,GAAG,IAAI,QAAQ,CAAC,yBAAW,CAAC,KAAK,CAAC,CAAC;AAC/D,gBAAgB;AACO,aAAI,GAAG,IAAI,QAAQ,CAAC,yBAAW,CAAC,IAAI,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Symbology\r\n */\r\n\r\nimport { Geometry } from \"@itwin/core-geometry\";\r\nimport { ColorByName } from \"./ColorByName\";\r\nimport { HSLColor } from \"./HSLColor\";\r\nimport { HSVColor, HSVConstants } from \"./HSVColor\";\r\n\r\n// cspell: ignore ttbbggrr bbggrr rrggbb aabbggrr abgr rrggbb hsla lerp torgb dhue dsaturation dvalue intpart fractpart cyanish\r\n\r\n// portions adapted from Three.js Copyright © 2010-2024 three.js authors\r\n\r\nconst scratchBytes = new Uint8Array(4);\r\nconst scratchUInt32 = new Uint32Array(scratchBytes.buffer);\r\n\r\n/** The JSON representation of a [[ColorDef]] - an unsigned 32-bit integer in 0xTTBBGGRR format.\r\n * @public\r\n * @extensions\r\n */\r\nexport type ColorDefProps = number;\r\n\r\n/** An immutable integer representation of a color.\r\n *\r\n * A color consists of 4 components: Red, Blue, Green, and Transparency. Each component is an 8-bit unsigned integer in the range [0..255]. A value of zero means that component contributes nothing\r\n * to the color: e.g., a color with Red=0 contains no shade of red, and a color with Transparency=0 is fully opaque. A value of 255 means that component contributes its maximum\r\n * value to the color: e.g., a color with Red=255 is as red as it is possible to be, and a color with Transparency=255 is fully transparent.\r\n *\r\n * Internally, these 4 components are combined into a single 32-bit unsigned integer as represented by [[ColorDefProps]]. This representation can result in some confusion regarding:\r\n * 1. The ordering of the individual components; and\r\n * 2. Whether to specify transparency or opacity (sometimes referred to as \"alpha\").\r\n *\r\n * ColorDef uses `0xTTBBGGRR` internally, which uses Transparency and puts Red in the low byte and Transparency in the high byte. It can be converted to `0xRRGGBB` format (blue in the low byte)\r\n * using [[getRgb]] and `0xAABBGGRRx format (red in the low byte, using opacity instead of transparency) using [[getAbgr]].\r\n *\r\n * A ColorDef can be created from a numeric [[ColorDefProps]], from a string in one of the common HTML formats (e.g., [[fromString]]), or by specifying values for the individual components\r\n * (e.g., [[from]]).\r\n *\r\n * ColorDef is **immutable**. To obtain a modified copy of a ColorDef, use methods like [[adjustedForContrast]], [[inverse]], or [[withTransparency]]. For example:\r\n * ```ts\r\n * const semiTransparentBlue = ColorDef.blue.withTransparency(100);\r\n * ```\r\n * @public\r\n * @extensions\r\n */\r\nexport class ColorDef {\r\n private readonly _tbgr: number;\r\n\r\n private constructor(tbgr: number) {\r\n scratchUInt32[0] = tbgr; // Force to be a 32-bit unsigned integer\r\n this._tbgr = scratchUInt32[0];\r\n }\r\n\r\n /**\r\n * Create a new ColorDef.\r\n * @param val value to use.\r\n * If a number, it is interpreted as a 0xTTBBGGRR (Red in the low byte, high byte is transparency 0==fully opaque) value.\r\n * If a string, it must be in one of the forms supported by [[fromString]] - any unrecognized string will produce [[black]].\r\n */\r\n public static create(val?: string | ColorDefProps) {\r\n return this.fromTbgr(this.computeTbgr(val));\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR value corresponding to the specified representation of a color.\r\n * @see [[fromString]] for a description of valid string representations.\r\n */\r\n public static computeTbgr(val?: string | ColorDefProps): ColorDefProps {\r\n switch (typeof val) {\r\n case \"number\":\r\n return val;\r\n case \"string\":\r\n return this.computeTbgrFromString(val);\r\n default:\r\n return 0;\r\n }\r\n }\r\n\r\n /** Convert this ColorDef to a 32 bit number representing the 0xTTBBGGRR value */\r\n public toJSON(): ColorDefProps { return this._tbgr; }\r\n\r\n /** Create a new ColorDef from a json object. If the json object is a number, it is assumed to be a 0xTTBBGGRR value. */\r\n public static fromJSON(json?: ColorDefProps): ColorDef {\r\n return this.create(json);\r\n }\r\n\r\n /** Create a ColorDef from Red, Green, Blue, Transparency values. All inputs should be integers between 0-255. */\r\n public static from(red: number, green: number, blue: number, transparency?: number): ColorDef {\r\n return this.fromTbgr(this.computeTbgrFromComponents(red, green, blue, transparency));\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR value corresponding to the specified Red, Green, Blue, Transparency components. All inputs should be integers between 0-255. */\r\n public static computeTbgrFromComponents(red: number, green: number, blue: number, transparency?: number): ColorDefProps {\r\n scratchBytes[0] = red;\r\n scratchBytes[1] = green;\r\n scratchBytes[2] = blue;\r\n scratchBytes[3] = transparency || 0;\r\n return scratchUInt32[0];\r\n }\r\n\r\n /** Create a ColorDef from its 0xTTBBGGRR representation. */\r\n public static fromTbgr(tbgr: ColorDefProps): ColorDef {\r\n switch (tbgr) {\r\n case ColorByName.black:\r\n return this.black;\r\n case ColorByName.white:\r\n return this.white;\r\n case ColorByName.red:\r\n return this.red;\r\n case ColorByName.green:\r\n return this.green;\r\n case ColorByName.blue:\r\n return this.blue;\r\n default:\r\n return new ColorDef(tbgr);\r\n }\r\n }\r\n\r\n /** Create a ColorDef from its 0xAABBGGRR representation. */\r\n public static fromAbgr(abgr: number): ColorDef {\r\n return this.fromTbgr(this.getAbgr(abgr));\r\n }\r\n\r\n /** Create a ColorDef from a string representation. The following representations are supported:\r\n * *\"rgb(255,0,0)\"*\r\n * *\"rgba(255,0,0,.2)\"*\r\n * *\"rgb(100%,0%,0%)\"*\r\n * *\"hsl(120,50%,50%)\"*\r\n * *\"#rrbbgg\"*\r\n * *\"blanchedAlmond\"* (see possible values from [[ColorByName]]). Case-insensitive.\r\n *\r\n * If `val` is not a valid color string, this function returns [[black]].\r\n * @see [[isValidColor]] to determine if `val` is a valid color string.\r\n */\r\n public static fromString(val: string): ColorDef {\r\n return this.fromTbgr(this.computeTbgrFromString(val));\r\n }\r\n\r\n /** Determine whether the input is a valid representation of a ColorDef.\r\n * @see [[fromString]] for the definition of a valid string representation.\r\n * @see [[ColorDefProps]] for the definition of a valid numeric representation.\r\n */\r\n public static isValidColor(val: string | number): boolean {\r\n if (typeof val === \"number\")\r\n return val >= 0 && val <= 0xffffffff && Math.floor(val) === val;\r\n\r\n return undefined !== this.tryComputeTbgrFromString(val);\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR value corresponding to a string representation of a color.\r\n * If `val` is not a valid color string, this function returns 0 (black).\r\n * @see [[fromString]] for the definition of a valid color string.\r\n * @see [[tryComputeTbgrFromString]] to determine if `val` is a valid color string.\r\n */\r\n public static computeTbgrFromString(val: string): ColorDefProps {\r\n return this.tryComputeTbgrFromString(val) ?? 0;\r\n }\r\n\r\n /** Try to compute the 0xTTBBGGRR value corresponding to a string representation of a ColorDef.\r\n * @returns the corresponding numeric representation, or `undefined` if the input does not represent a color.\r\n * @see [[fromString]] for the definition of a valid color string.\r\n */\r\n public static tryComputeTbgrFromString(val: string): ColorDefProps | undefined {\r\n if (typeof val !== \"string\")\r\n return undefined;\r\n\r\n val = val.toLowerCase();\r\n let m = /^((?:rgb|hsl)a?)\\(\\s*([^\\)]*)\\)/.exec(val);\r\n if (m) { // rgb / hsl\r\n let color;\r\n const name = m[1];\r\n const components = m[2];\r\n\r\n const hasPercent = (str: string) => str[str.length - 1] === \"%\";\r\n const floatOrPercent = (str: string) => {\r\n const v = parseFloat(str);\r\n return 255 * Geometry.clamp(hasPercent(str) ? v / 100 : v, 0, 1);\r\n };\r\n const intOrPercent = (str: string) => {\r\n const v = hasPercent(str) ? (parseFloat(str) / 100) * 255 : parseInt(str, 10);\r\n return Geometry.clamp(v, 0, 255);\r\n };\r\n\r\n switch (name) {\r\n case \"rgb\":\r\n case \"rgba\":\r\n color = /^(\\d+%*)\\s*[, ]\\s*(\\d+%*)\\s*[, ]\\s*(\\d+%*)\\s*([,\\/]\\s*([0-9]*\\.?[0-9]+%*)\\s*)?$/.exec(components);\r\n if (color) { // rgb(255,0,0) rgba(255,0,0,0.5)\r\n return this.computeTbgrFromComponents(\r\n intOrPercent(color[1]),\r\n intOrPercent(color[2]),\r\n intOrPercent(color[3]),\r\n typeof color[5] === \"string\" ? 255 - floatOrPercent(color[5]) : 0);\r\n }\r\n\r\n break;\r\n case \"hsl\":\r\n case \"hsla\":\r\n color = /^([0-9]*\\.?[0-9]+)\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(components);\r\n if (color) { // hsl(120,50%,50%) hsla(120,50%,50%,0.5)\r\n const h = parseFloat(color[1]) / 360;\r\n const s = parseInt(color[2], 10) / 100;\r\n const l = parseInt(color[3], 10) / 100;\r\n const t = typeof color[5] === \"string\" ? 255 - floatOrPercent(color[5]) : 0;\r\n return this.computeTbgrFromHSL(h, s, l, t);\r\n }\r\n\r\n break;\r\n }\r\n // eslint-disable-next-line no-cond-assign\r\n } else if (m = /^\\#([a-f0-9]+)$/.exec(val)) { // hex color\r\n const hex = m[1];\r\n const size = hex.length;\r\n\r\n if (size === 3) { // #ff0\r\n return this.computeTbgrFromComponents(\r\n parseInt(hex.charAt(0) + hex.charAt(0), 16),\r\n parseInt(hex.charAt(1) + hex.charAt(1), 16),\r\n parseInt(hex.charAt(2) + hex.charAt(2), 16), 0);\r\n }\r\n if (size === 6) { // #ff0000\r\n return this.computeTbgrFromComponents(\r\n parseInt(hex.charAt(0) + hex.charAt(1), 16),\r\n parseInt(hex.charAt(2) + hex.charAt(3), 16),\r\n parseInt(hex.charAt(4) + hex.charAt(5), 16), 0);\r\n }\r\n }\r\n\r\n if (val && val.length > 0) { // ColorRgb value\r\n for (const [key, value] of Object.entries(ColorByName))\r\n if (key.toLowerCase() === val)\r\n return value;\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /** Get the red, green, blue, and transparency values from this ColorDef. Values will be integers between 0-255. */\r\n public get colors(): { r: number, g: number, b: number, t: number } {\r\n return ColorDef.getColors(this._tbgr);\r\n }\r\n\r\n /** Get the r,g,b,t values encoded in an 0xTTBBGGRR value. Values will be integers between 0-255. */\r\n public static getColors(tbgr: ColorDefProps) {\r\n scratchUInt32[0] = tbgr;\r\n return {\r\n b: scratchBytes[2],\r\n g: scratchBytes[1],\r\n r: scratchBytes[0],\r\n t: scratchBytes[3],\r\n };\r\n }\r\n\r\n /** The color value of this ColorDef as an integer in the form 0xTTBBGGRR (red in the low byte) */\r\n public get tbgr(): ColorDefProps { return this._tbgr; }\r\n\r\n /** Get the value of the color as a number in 0xAABBGGRR format (i.e. red is in low byte). Transparency (0==fully opaque) converted to alpha (0==fully transparent). */\r\n public getAbgr(): number {\r\n return ColorDef.getAbgr(this._tbgr);\r\n }\r\n\r\n /** Get the value of a 0xTTBBGGRR color as a number in 0xAABBGGRR format (i.e. red is in low byte). Transparency (0==fully opaque) converted to alpha (0==fully transparent). */\r\n public static getAbgr(tbgr: ColorDefProps): number {\r\n scratchUInt32[0] = tbgr;\r\n scratchBytes[3] = 255 - scratchBytes[3];\r\n return scratchUInt32[0];\r\n }\r\n\r\n /** Get the RGB value of the color as a number in 0xRRGGBB format (i.e blue is in the low byte). Transparency is ignored. Value will be from 0 to 2^24 */\r\n public getRgb(): number {\r\n return ColorDef.getRgb(this._tbgr);\r\n }\r\n\r\n /** Get the RGB value of the 0xTTBBGGRR color as a number in 0xRRGGBB format (i.e blue is in the low byte). Transparency is ignored. Value will be from 0 to 2^24 */\r\n public static getRgb(tbgr: ColorDefProps): number {\r\n scratchUInt32[0] = tbgr;\r\n return (scratchBytes[0] << 16) + (scratchBytes[1] << 8) + scratchBytes[2];\r\n }\r\n\r\n /** Return a copy of this ColorDef with the specified alpha component.\r\n * @param alpha the new alpha value as an integer between 0-255.\r\n * @returns A ColorDef with equivalent red, green, and blue components to this one but with the specified alpha.\r\n */\r\n public withAlpha(alpha: number): ColorDef {\r\n const tbgr = ColorDef.withAlpha(this._tbgr, alpha);\r\n return tbgr === this._tbgr ? this : ColorDef.fromTbgr(tbgr);\r\n }\r\n\r\n /** Return a color equivalent to the specified 0xTTBBGGRR but with modified alpha component.\r\n * @param alpha the new alpha value as an integer between 0-255.\r\n * @returns The 0xTTBBGGRR value equivalent to `tbgr` but with the specified alpha.\r\n */\r\n public static withAlpha(tbgr: ColorDefProps, alpha: number): number {\r\n scratchUInt32[0] = tbgr;\r\n scratchBytes[3] = 255 - (alpha | 0);\r\n return scratchUInt32[0];\r\n }\r\n\r\n /** Get the alpha value for this ColorDef. Will be between 0-255 */\r\n public getAlpha(): number {\r\n return ColorDef.getAlpha(this._tbgr);\r\n }\r\n\r\n /** Extract the alpha value from a 0xTTBBGGRR color. */\r\n public static getAlpha(tbgr: ColorDefProps): number {\r\n scratchUInt32[0] = tbgr;\r\n return 255 - scratchBytes[3];\r\n }\r\n\r\n /** True if this ColorDef is fully opaque. */\r\n public get isOpaque(): boolean {\r\n return ColorDef.isOpaque(this._tbgr);\r\n }\r\n\r\n /** True if the specified 0xTTBBGGRR color is fully opaque. */\r\n public static isOpaque(tbgr: ColorDefProps): boolean {\r\n return 255 === this.getAlpha(tbgr);\r\n }\r\n\r\n /** Get the transparency value for this ColorDef (inverse of alpha). Will be between 0-255. */\r\n public getTransparency(): number {\r\n return ColorDef.getTransparency(this._tbgr);\r\n }\r\n\r\n /** Extract the transparency component from a 0xTTBBGGRR color as an integer between 0-255.. */\r\n public static getTransparency(tbgr: ColorDefProps): number {\r\n scratchUInt32[0] = tbgr;\r\n return scratchBytes[3];\r\n }\r\n\r\n /** Create a copy of this ColorDef with the specified transparency.\r\n * @param transparency the new transparency value. Must be between 0-255, where 0 means 'fully opaque' and 255 means 'fully transparent'.\r\n * @returns a new ColorDef with the same color as this one and the specified transparency.\r\n */\r\n public withTransparency(transparency: number): ColorDef {\r\n const tbgr = ColorDef.withTransparency(this._tbgr, transparency);\r\n return tbgr === this._tbgr ? this : ColorDef.fromTbgr(tbgr);\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR value of the specified color and transparency.\r\n * @param transparency the new transparency as an integer between 0-255.\r\n * @returns The 0xTTBBGGRR value equivalent to `tbgr` but with the specified transparency.\r\n */\r\n public static withTransparency(tbgr: ColorDefProps, transparency: number): ColorDefProps {\r\n return this.withAlpha(tbgr, 255 - transparency);\r\n }\r\n\r\n /** The \"known name\" for this ColorDef. Will be undefined if color value is not in [[ColorByName]] list */\r\n public get name(): string | undefined {\r\n return ColorDef.getName(this.tbgr);\r\n }\r\n\r\n /** Obtain the name of the color in the [[ColorByName]] list associated with the specified 0xTTBBGGRR value, or undefined if no such named color exists.\r\n * @note A handful of colors (like \"aqua\" and \"cyan\") have identical tbgr values; in such cases the first match will be returned.\r\n */\r\n public static getName(tbgr: ColorDefProps): string | undefined {\r\n for (const [key, value] of Object.entries(ColorByName))\r\n if (value === tbgr)\r\n return key;\r\n\r\n return undefined;\r\n }\r\n\r\n /** Convert this ColorDef to a string in the form \"#rrggbb\" where values are hex digits of the respective colors */\r\n public toHexString(): string {\r\n return ColorDef.toHexString(this.tbgr);\r\n }\r\n\r\n /** Convert the 0xTTBBGGRR value to a string in the form \"#rrggbb\". */\r\n public static toHexString(tbgr: ColorDefProps): string {\r\n return `#${(`000000${this.getRgb(tbgr).toString(16)}`).slice(-6)}`;\r\n }\r\n\r\n private static getColorsString(tbgr: ColorDefProps) {\r\n const c = this.getColors(tbgr);\r\n return `${c.r},${c.g},${c.b}`;\r\n }\r\n\r\n /** Convert this ColorDef to a string in the form \"rgb(r,g,b)\" where values are decimal digits of the respective colors. */\r\n public toRgbString(): string {\r\n return ColorDef.toRgbString(this.tbgr);\r\n }\r\n\r\n /** Convert the 0xTTBBGGRR color to a string in the form \"rgb(r,g,b)\" where each component is specified in decimal. */\r\n public static toRgbString(tbgr: ColorDefProps): string {\r\n return `rgb(${this.getColorsString(tbgr)})`;\r\n }\r\n\r\n /** Convert this ColorDef to a string in the form \"rgba(r,g,b,a)\" where color values are decimal digits and a is a fraction */\r\n public toRgbaString(): string {\r\n return ColorDef.toRgbaString(this.tbgr);\r\n }\r\n\r\n /** Convert the 0xTTBBGGRR color to a string of the form \"rgba(r,g,b,a)\" where the color components are specified in decimal and the alpha component is a fraction. */\r\n public static toRgbaString(tbgr: ColorDefProps): string {\r\n return `rgba(${this.getColorsString(tbgr)},${this.getAlpha(tbgr) / 255.})`;\r\n }\r\n\r\n /** Create a ColorDef that is the linear interpolation of this ColorDef and another ColorDef, using a weighting factor.\r\n * @param color2 The other color\r\n * @param weight The weighting factor for color2. 0.0 = this color, 1.0 = color2.\r\n * @param result Optional ColorDef to hold result. If undefined, a new ColorDef is created.\r\n */\r\n public lerp(color2: ColorDef, weight: number): ColorDef {\r\n return ColorDef.fromTbgr(ColorDef.lerp(this.tbgr, color2.tbgr, weight));\r\n }\r\n\r\n /** Interpolate between two 0xTTBBGGRR colors using a weighting factor.\r\n * @param tbgr1 The first color\r\n * @param tbgr2 The other color\r\n * @param weight The weighting factor in [0..1]. A value of 0.0 selects `tbgr1`; 1.0 selects `tbgr2`; 0.5 mixes them evenly; etc.\r\n * @returns The linear interpolation between `tbgr1` and `tbgr2` using the specified weight.\r\n */\r\n public static lerp(tbgr1: ColorDefProps, tbgr2: ColorDefProps, weight: number): ColorDefProps {\r\n const c = this.getColors(tbgr1);\r\n const color = this.getColors(tbgr2);\r\n c.r += (color.r - c.r) * weight;\r\n c.g += (color.g - c.g) * weight;\r\n c.b += (color.b - c.b) * weight;\r\n return this.computeTbgrFromComponents(c.r, c.g, c.b, c.t);\r\n }\r\n\r\n /** Create a new ColorDef that is the inverse (all colors set to 255 - this) of this color. Ignores transparency - result has 0 transparency. */\r\n public inverse(): ColorDef {\r\n return ColorDef.fromTbgr(ColorDef.inverse(this.tbgr));\r\n }\r\n\r\n /** Return a 0xTTBBGGRR color whose color components are the inverse of the input color. The result has 0 transparency. */\r\n public static inverse(tbgr: ColorDefProps): ColorDefProps {\r\n const colors = this.getColors(tbgr);\r\n return this.computeTbgrFromComponents(255 - colors.r, 255 - colors.g, 255 - colors.b);\r\n }\r\n\r\n /** Create a ColorDef from hue, saturation, lightness values */\r\n public static fromHSL(h: number, s: number, l: number, transparency = 0): ColorDef {\r\n return this.fromTbgr(this.computeTbgrFromHSL(h, s, l, transparency));\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR color corresponding to the specified hue, saturation, lightness values. */\r\n public static computeTbgrFromHSL(h: number, s: number, l: number, transparency = 0): ColorDefProps {\r\n const torgb = (p1: number, q1: number, t: number) => {\r\n if (t < 0)\r\n t += 1;\r\n if (t > 1)\r\n t -= 1;\r\n\r\n if (t < 1 / 6)\r\n return p1 + (q1 - p1) * 6 * t;\r\n if (t < 1 / 2)\r\n return q1;\r\n if (t < 2 / 3)\r\n return p1 + (q1 - p1) * 6 * (2 / 3 - t);\r\n\r\n return p1;\r\n };\r\n\r\n const hue2rgb = (p1: number, q1: number, t: number) => Math.round(torgb(p1, q1, t) * 255);\r\n const modulo = (n: number, m: number) => ((n % m) + m) % m;\r\n\r\n // h,s,l ranges are in 0.0 - 1.0\r\n h = modulo(h, 1);\r\n s = Geometry.clamp(s, 0, 1);\r\n l = Geometry.clamp(l, 0, 1);\r\n\r\n if (s === 0) {\r\n l *= 255;\r\n return this.computeTbgrFromComponents(l, l, l, transparency);\r\n }\r\n\r\n const p = l <= 0.5 ? l * (1 + s) : l + s - (l * s);\r\n const q = (2 * l) - p;\r\n return this.computeTbgrFromComponents(\r\n hue2rgb(q, p, h + 1 / 3),\r\n hue2rgb(q, p, h),\r\n hue2rgb(q, p, h - 1 / 3),\r\n transparency);\r\n }\r\n\r\n /** Create an [[HSLColor]] from this ColorDef */\r\n public toHSL(): HSLColor {\r\n // h,s,l ranges are in 0.0 - 1.0\r\n const col = this.colors;\r\n col.r /= 255;\r\n col.g /= 255;\r\n col.b /= 255;\r\n const max = Math.max(col.r, col.g, col.b);\r\n const min = Math.min(col.r, col.g, col.b);\r\n\r\n let hue = 0;\r\n let saturation;\r\n const lightness = (min + max) / 2.0;\r\n\r\n if (min === max) {\r\n saturation = 0;\r\n } else {\r\n const delta = max - min;\r\n saturation = lightness <= 0.5 ? delta / (max + min) : delta / (2 - max - min);\r\n switch (max) {\r\n case col.r:\r\n hue = (col.g - col.b) / delta + (col.g < col.b ? 6 : 0);\r\n break;\r\n case col.g:\r\n hue = (col.b - col.r) / delta + 2;\r\n break;\r\n case col.b:\r\n hue = (col.r - col.g) / delta + 4;\r\n break;\r\n }\r\n\r\n hue /= 6;\r\n }\r\n\r\n return new HSLColor(hue, saturation, lightness);\r\n }\r\n\r\n /** Create an [[HSVColor]] from this ColorDef */\r\n public toHSV(): HSVColor {\r\n const { r, g, b } = this.colors;\r\n let min = (r < g) ? r : g;\r\n if (b < min)\r\n min = b;\r\n\r\n let max = (r > g) ? r : g;\r\n if (b > max)\r\n max = b;\r\n\r\n /* amount of \"blackness\" present */\r\n const v = Math.floor((max / 255.0 * 100) + 0.5);\r\n const deltaRgb = max - min;\r\n const s = (max !== 0.0) ? Math.floor((deltaRgb / max * 100) + 0.5) : 0;\r\n let h = 0;\r\n\r\n if (s) {\r\n const redDistance = (max - r) / deltaRgb;\r\n const greenDistance = (max - g) / deltaRgb;\r\n const blueDistance = (max - b) / deltaRgb;\r\n\r\n let intermediateHue: number;\r\n if (r === max) /* color between yellow & magenta */\r\n intermediateHue = blueDistance - greenDistance;\r\n else if (g === max) /* color between cyan & yellow */\r\n intermediateHue = 2.0 + redDistance - blueDistance;\r\n else /* color between magenta & cyan */\r\n intermediateHue = 4.0 + greenDistance - redDistance;\r\n\r\n /* intermediate hue is [0..6] */\r\n intermediateHue *= 60;\r\n\r\n if (intermediateHue < 0.0)\r\n intermediateHue += 360;\r\n\r\n h = Math.floor(intermediateHue + 0.5);\r\n\r\n if (h >= 360)\r\n h = 0;\r\n } else {\r\n h = 0;\r\n }\r\n\r\n return new HSVColor(h, s, v);\r\n }\r\n\r\n /** Create a ColorDef from an HSVColor */\r\n public static fromHSV(hsv: HSVColor, transparency = 0): ColorDef {\r\n // Check for simple case first.\r\n if ((!hsv.s) || (hsv.h === -1)) {\r\n // hue must be undefined, have no color only white\r\n const white = 0xff & Math.floor(((255.0 * hsv.v) / 100.0) + 0.5 + 3.0e-14);\r\n return ColorDef.from(white, white, white, 0);\r\n }\r\n\r\n let dhue = hsv.h, dsaturation = hsv.s, dvalue = hsv.v;\r\n if (dhue === 360)\r\n dhue = 0.0;\r\n\r\n dhue /= 60; // hue is now [0..6]\r\n const hueIntpart = Math.floor(dhue); // convert double -> int\r\n const hueFractpart = dhue - hueIntpart;\r\n dvalue /= 100;\r\n dsaturation /= 100;\r\n\r\n const p = 0xff & Math.floor((dvalue * (1.0 - dsaturation) * 255.0) + 0.5);\r\n const q = 0xff & Math.floor((dvalue * (1.0 - (dsaturation * hueFractpart)) * 255.0) + 0.5);\r\n const t = 0xff & Math.floor((dvalue * (1.0 - (dsaturation * (1.0 - hueFractpart))) * 255.0) + 0.5);\r\n const v = 0xff & Math.floor(dvalue * 255 + 0.5);\r\n\r\n let r = 0, b = 0, g = 0;\r\n switch (hueIntpart) {\r\n /* eslint-disable max-statements-per-line */\r\n case 0: r = v; g = t; b = p; break; // reddish\r\n case 1: r = q, g = v; b = p; break; // yellowish\r\n case 2: r = p, g = v; b = t; break; // greenish\r\n case 3: r = p, g = q; b = v; break; // cyanish\r\n case 4: r = t, g = p; b = v; break; // bluish\r\n case 5: r = v, g = p; b = q; break; // magenta-ish\r\n /* eslint-enable max-statements-per-line */\r\n }\r\n\r\n return ColorDef.from(r, g, b, transparency);\r\n }\r\n\r\n private visibilityCheck(other: ColorDef): number {\r\n const fg = this.colors;\r\n const bg = other.colors;\r\n // Compute luminosity\r\n const red = Math.abs(fg.r - bg.r);\r\n const green = Math.abs(fg.g - bg.g);\r\n const blue = Math.abs(fg.b - bg.b);\r\n return (0.30 * red) + (0.59 * green) + (0.11 * blue);\r\n }\r\n\r\n /**\r\n * Create a new ColorDef that is adjusted from this ColorDef for maximum contrast against another color. The color will either be lighter\r\n * or darker, depending on which has more visibility against the other color.\r\n * @param other the color to contrast with\r\n * @param alpha optional alpha value for the adjusted color. If not supplied alpha from this color is used.\r\n */\r\n public adjustedForContrast(other: ColorDef, alpha?: number): ColorDef {\r\n const visibility = this.visibilityCheck(other);\r\n if (HSVConstants.VISIBILITY_GOAL <= visibility) {\r\n return undefined !== alpha ? this.withAlpha(alpha) : this;\r\n }\r\n\r\n const adjPercent = Math.floor(((HSVConstants.VISIBILITY_GOAL - visibility) / 255.0) * 100.0);\r\n let darkerHSV = this.toHSV();\r\n let brightHSV = darkerHSV.clone();\r\n\r\n darkerHSV = darkerHSV.adjusted(true, adjPercent);\r\n brightHSV = brightHSV.adjusted(false, adjPercent);\r\n\r\n if (undefined === alpha)\r\n alpha = this.getAlpha();\r\n\r\n const darker = ColorDef.fromHSV(darkerHSV).withAlpha(alpha);\r\n const bright = ColorDef.fromHSV(brightHSV).withAlpha(alpha);\r\n\r\n if (bright.getRgb() === other.getRgb()) // Couldn't adjust brighter...\r\n return darker;\r\n\r\n if (darker.getRgb() === other.getRgb()) // Couldn't adjust darker...\r\n return bright;\r\n\r\n // NOTE: Best choice is the one most visible against the other color...\r\n return (bright.visibilityCheck(other) >= darker.visibilityCheck(other)) ? bright : darker;\r\n }\r\n\r\n /** True if the value of this ColorDef is the same as another ColorDef. */\r\n public equals(other: ColorDef): boolean {\r\n return this._tbgr === other._tbgr;\r\n }\r\n\r\n /** pure black */\r\n public static readonly black = new ColorDef(ColorByName.black);\r\n /** pure white */\r\n public static readonly white = new ColorDef(ColorByName.white);\r\n /** pure red */\r\n public static readonly red = new ColorDef(ColorByName.red);\r\n /** pure green */\r\n public static readonly green = new ColorDef(ColorByName.green);\r\n /** pure blue */\r\n public static readonly blue = new ColorDef(ColorByName.blue);\r\n}\r\n"]}
1
+ {"version":3,"file":"ColorDef.js","sourceRoot":"","sources":["../../src/ColorDef.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAAgD;AAChD,+CAA4C;AAC5C,yCAAsC;AACtC,yCAAoD;AAEpD,+HAA+H;AAE/H,wEAAwE;AAExE,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AACvC,MAAM,aAAa,GAAG,IAAI,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AAQ3D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,QAAQ;IAGnB,YAAoB,IAAY;QAC9B,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAG,wCAAwC;QACnE,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,MAAM,CAAC,GAA4B;QAC/C,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACI,MAAM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G,IAAI,QAAQ,CAAC,yBAAW,CAAC,GAAG,CAAC,CAAC;AAC3D,iBAAiB;AACM,cAAK,GAAG,IAAI,QAAQ,CAAC,yBAAW,CAAC,KAAK,CAAC,CAAC;AAC/D,gBAAgB;AACO,aAAI,GAAG,IAAI,QAAQ,CAAC,yBAAW,CAAC,IAAI,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Symbology\r\n */\r\n\r\nimport { Geometry } from \"@itwin/core-geometry\";\r\nimport { ColorByName } from \"./ColorByName\";\r\nimport { HSLColor } from \"./HSLColor\";\r\nimport { HSVColor, HSVConstants } from \"./HSVColor\";\r\n\r\n// cspell: ignore ttbbggrr bbggrr rrggbb aabbggrr abgr rrggbb hsla lerp torgb dhue dsaturation dvalue intpart fractpart cyanish\r\n\r\n// portions adapted from Three.js Copyright © 2010-2024 three.js authors\r\n\r\nconst scratchBytes = new Uint8Array(4);\r\nconst scratchUInt32 = new Uint32Array(scratchBytes.buffer);\r\n\r\n/** The JSON representation of a [[ColorDef]] - an unsigned 32-bit integer in 0xTTBBGGRR format.\r\n * @public\r\n * @extensions\r\n */\r\nexport type ColorDefProps = number;\r\n\r\n/** An immutable integer representation of a color.\r\n *\r\n * A color consists of 4 components: Red, Blue, Green, and Transparency. Each component is an 8-bit unsigned integer in the range [0..255]. A value of zero means that component contributes nothing\r\n * to the color: e.g., a color with Red=0 contains no shade of red, and a color with Transparency=0 is fully opaque. A value of 255 means that component contributes its maximum\r\n * value to the color: e.g., a color with Red=255 is as red as it is possible to be, and a color with Transparency=255 is fully transparent.\r\n *\r\n * Internally, these 4 components are combined into a single 32-bit unsigned integer as represented by [[ColorDefProps]]. This representation can result in some confusion regarding:\r\n * 1. The ordering of the individual components; and\r\n * 2. Whether to specify transparency or opacity (sometimes referred to as \"alpha\").\r\n *\r\n * ColorDef uses `0xTTBBGGRR` internally, which uses Transparency and puts Red in the low byte and Transparency in the high byte. It can be converted to `0xRRGGBB` format (blue in the low byte)\r\n * using [[getRgb]] and `0xAABBGGRRx format (red in the low byte, using opacity instead of transparency) using [[getAbgr]].\r\n *\r\n * A ColorDef can be created from a numeric [[ColorDefProps]], from a string in one of the common HTML formats (e.g., [[fromString]]), or by specifying values for the individual components\r\n * (e.g., [[from]]).\r\n *\r\n * ColorDef is **immutable**. To obtain a modified copy of a ColorDef, use methods like [[adjustedForContrast]], [[inverse]], or [[withTransparency]]. For example:\r\n * ```ts\r\n * const semiTransparentBlue = ColorDef.blue.withTransparency(100);\r\n * ```\r\n * @public\r\n * @extensions\r\n */\r\nexport class ColorDef {\r\n private readonly _tbgr: number;\r\n\r\n private constructor(tbgr: number) {\r\n scratchUInt32[0] = tbgr; // Force to be a 32-bit unsigned integer\r\n this._tbgr = scratchUInt32[0];\r\n }\r\n\r\n /**\r\n * Create a new ColorDef.\r\n * @param val value to use.\r\n * If a number, it is interpreted as a 0xTTBBGGRR (Red in the low byte, high byte is transparency 0==fully opaque) value.\r\n * If a string, it must be in one of the forms supported by [[fromString]] - any unrecognized string will produce [[black]].\r\n */\r\n public static create(val?: string | ColorDefProps) {\r\n return this.fromTbgr(this.computeTbgr(val));\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR value corresponding to the specified representation of a color.\r\n * @see [[fromString]] for a description of valid string representations.\r\n */\r\n public static computeTbgr(val?: string | ColorDefProps): ColorDefProps {\r\n switch (typeof val) {\r\n case \"number\":\r\n return val;\r\n case \"string\":\r\n return this.computeTbgrFromString(val);\r\n default:\r\n return 0;\r\n }\r\n }\r\n\r\n /** Convert this ColorDef to a 32 bit number representing the 0xTTBBGGRR value */\r\n public toJSON(): ColorDefProps { return this._tbgr; }\r\n\r\n /** Create a new ColorDef from a json object. If the json object is a number, it is assumed to be a 0xTTBBGGRR value. */\r\n public static fromJSON(json?: ColorDefProps): ColorDef {\r\n return this.create(json);\r\n }\r\n\r\n /** Create a ColorDef from Red, Green, Blue, Transparency values. All inputs should be integers between 0-255. */\r\n public static from(red: number, green: number, blue: number, transparency?: number): ColorDef {\r\n return this.fromTbgr(this.computeTbgrFromComponents(red, green, blue, transparency));\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR value corresponding to the specified Red, Green, Blue, Transparency components. All inputs should be integers between 0-255. */\r\n public static computeTbgrFromComponents(red: number, green: number, blue: number, transparency?: number): ColorDefProps {\r\n scratchBytes[0] = red;\r\n scratchBytes[1] = green;\r\n scratchBytes[2] = blue;\r\n scratchBytes[3] = transparency || 0;\r\n return scratchUInt32[0];\r\n }\r\n\r\n /** Create a ColorDef from its 0xTTBBGGRR representation. */\r\n public static fromTbgr(tbgr: ColorDefProps): ColorDef {\r\n switch (tbgr) {\r\n case ColorByName.black:\r\n return this.black;\r\n case ColorByName.white:\r\n return this.white;\r\n case ColorByName.red:\r\n return this.red;\r\n case ColorByName.green:\r\n return this.green;\r\n case ColorByName.blue:\r\n return this.blue;\r\n default:\r\n return new ColorDef(tbgr);\r\n }\r\n }\r\n\r\n /** Create a ColorDef from its 0xAABBGGRR representation. */\r\n public static fromAbgr(abgr: number): ColorDef {\r\n return this.fromTbgr(this.getAbgr(abgr));\r\n }\r\n\r\n /** Create a ColorDef from a string representation. The following representations are supported:\r\n * *\"rgb(255,0,0)\"*\r\n * *\"rgba(255,0,0,.2)\"*\r\n * *\"rgb(100%,0%,0%)\"*\r\n * *\"hsl(120,50%,50%)\"*\r\n * *\"#rrbbgg\"*\r\n * *\"blanchedAlmond\"* (see possible values from [[ColorByName]]). Case-insensitive.\r\n *\r\n * If `val` is not a valid color string, this function returns [[black]].\r\n * @see [[isValidColor]] to determine if `val` is a valid color string.\r\n */\r\n public static fromString(val: string): ColorDef {\r\n return this.fromTbgr(this.computeTbgrFromString(val));\r\n }\r\n\r\n /** Determine whether the input is a valid representation of a ColorDef.\r\n * @see [[fromString]] for the definition of a valid string representation.\r\n * @see [[ColorDefProps]] for the definition of a valid numeric representation.\r\n */\r\n public static isValidColor(val: string | number): boolean {\r\n if (typeof val === \"number\")\r\n return val >= 0 && val <= 0xffffffff && Math.floor(val) === val;\r\n\r\n return undefined !== this.tryComputeTbgrFromString(val);\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR value corresponding to a string representation of a color.\r\n * If `val` is not a valid color string, this function returns 0 (black).\r\n * @see [[fromString]] for the definition of a valid color string.\r\n * @see [[tryComputeTbgrFromString]] to determine if `val` is a valid color string.\r\n */\r\n public static computeTbgrFromString(val: string): ColorDefProps {\r\n return this.tryComputeTbgrFromString(val) ?? 0;\r\n }\r\n\r\n /** Try to compute the 0xTTBBGGRR value corresponding to a string representation of a ColorDef.\r\n * @returns the corresponding numeric representation, or `undefined` if the input does not represent a color.\r\n * @see [[fromString]] for the definition of a valid color string.\r\n */\r\n public static tryComputeTbgrFromString(val: string): ColorDefProps | undefined {\r\n if (typeof val !== \"string\")\r\n return undefined;\r\n\r\n val = val.toLowerCase();\r\n let m = /^((?:rgb|hsl)a?)\\(\\s*([^\\)]*)\\)/.exec(val);\r\n if (m) { // rgb / hsl\r\n let color;\r\n const name = m[1];\r\n const components = m[2];\r\n\r\n const hasPercent = (str: string) => str[str.length - 1] === \"%\";\r\n const floatOrPercent = (str: string) => {\r\n const v = parseFloat(str);\r\n return 255 * Geometry.clamp(hasPercent(str) ? v / 100 : v, 0, 1);\r\n };\r\n const intOrPercent = (str: string) => {\r\n const v = hasPercent(str) ? (parseFloat(str) / 100) * 255 : parseInt(str, 10);\r\n return Geometry.clamp(v, 0, 255);\r\n };\r\n\r\n switch (name) {\r\n case \"rgb\":\r\n case \"rgba\":\r\n color = /^(\\d+%*)\\s*[, ]\\s*(\\d+%*)\\s*[, ]\\s*(\\d+%*)\\s*([,\\/]\\s*([0-9]*\\.?[0-9]+%*)\\s*)?$/.exec(components);\r\n if (color) { // rgb(255,0,0) rgba(255,0,0,0.5)\r\n return this.computeTbgrFromComponents(\r\n intOrPercent(color[1]),\r\n intOrPercent(color[2]),\r\n intOrPercent(color[3]),\r\n typeof color[5] === \"string\" ? 255 - floatOrPercent(color[5]) : 0);\r\n }\r\n\r\n break;\r\n case \"hsl\":\r\n case \"hsla\":\r\n color = /^([0-9]*\\.?[0-9]+)\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(components);\r\n if (color) { // hsl(120,50%,50%) hsla(120,50%,50%,0.5)\r\n const h = parseFloat(color[1]) / 360;\r\n const s = parseInt(color[2], 10) / 100;\r\n const l = parseInt(color[3], 10) / 100;\r\n const t = typeof color[5] === \"string\" ? 255 - floatOrPercent(color[5]) : 0;\r\n return this.computeTbgrFromHSL(h, s, l, t);\r\n }\r\n\r\n break;\r\n }\r\n } else if (m = /^\\#([a-f0-9]+)$/.exec(val)) { // hex color\r\n const hex = m[1];\r\n const size = hex.length;\r\n\r\n if (size === 3) { // #ff0\r\n return this.computeTbgrFromComponents(\r\n parseInt(hex.charAt(0) + hex.charAt(0), 16),\r\n parseInt(hex.charAt(1) + hex.charAt(1), 16),\r\n parseInt(hex.charAt(2) + hex.charAt(2), 16), 0);\r\n }\r\n if (size === 6) { // #ff0000\r\n return this.computeTbgrFromComponents(\r\n parseInt(hex.charAt(0) + hex.charAt(1), 16),\r\n parseInt(hex.charAt(2) + hex.charAt(3), 16),\r\n parseInt(hex.charAt(4) + hex.charAt(5), 16), 0);\r\n }\r\n }\r\n\r\n if (val && val.length > 0) { // ColorRgb value\r\n for (const [key, value] of Object.entries(ColorByName))\r\n if (key.toLowerCase() === val)\r\n return value;\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n /** Get the red, green, blue, and transparency values from this ColorDef. Values will be integers between 0-255. */\r\n public get colors(): { r: number, g: number, b: number, t: number } {\r\n return ColorDef.getColors(this._tbgr);\r\n }\r\n\r\n /** Get the r,g,b,t values encoded in an 0xTTBBGGRR value. Values will be integers between 0-255. */\r\n public static getColors(tbgr: ColorDefProps) {\r\n scratchUInt32[0] = tbgr;\r\n return {\r\n b: scratchBytes[2],\r\n g: scratchBytes[1],\r\n r: scratchBytes[0],\r\n t: scratchBytes[3],\r\n };\r\n }\r\n\r\n /** The color value of this ColorDef as an integer in the form 0xTTBBGGRR (red in the low byte) */\r\n public get tbgr(): ColorDefProps { return this._tbgr; }\r\n\r\n /** Get the value of the color as a number in 0xAABBGGRR format (i.e. red is in low byte). Transparency (0==fully opaque) converted to alpha (0==fully transparent). */\r\n public getAbgr(): number {\r\n return ColorDef.getAbgr(this._tbgr);\r\n }\r\n\r\n /** Get the value of a 0xTTBBGGRR color as a number in 0xAABBGGRR format (i.e. red is in low byte). Transparency (0==fully opaque) converted to alpha (0==fully transparent). */\r\n public static getAbgr(tbgr: ColorDefProps): number {\r\n scratchUInt32[0] = tbgr;\r\n scratchBytes[3] = 255 - scratchBytes[3];\r\n return scratchUInt32[0];\r\n }\r\n\r\n /** Get the RGB value of the color as a number in 0xRRGGBB format (i.e blue is in the low byte). Transparency is ignored. Value will be from 0 to 2^24 */\r\n public getRgb(): number {\r\n return ColorDef.getRgb(this._tbgr);\r\n }\r\n\r\n /** Get the RGB value of the 0xTTBBGGRR color as a number in 0xRRGGBB format (i.e blue is in the low byte). Transparency is ignored. Value will be from 0 to 2^24 */\r\n public static getRgb(tbgr: ColorDefProps): number {\r\n scratchUInt32[0] = tbgr;\r\n return (scratchBytes[0] << 16) + (scratchBytes[1] << 8) + scratchBytes[2];\r\n }\r\n\r\n /** Return a copy of this ColorDef with the specified alpha component.\r\n * @param alpha the new alpha value as an integer between 0-255.\r\n * @returns A ColorDef with equivalent red, green, and blue components to this one but with the specified alpha.\r\n */\r\n public withAlpha(alpha: number): ColorDef {\r\n const tbgr = ColorDef.withAlpha(this._tbgr, alpha);\r\n return tbgr === this._tbgr ? this : ColorDef.fromTbgr(tbgr);\r\n }\r\n\r\n /** Return a color equivalent to the specified 0xTTBBGGRR but with modified alpha component.\r\n * @param alpha the new alpha value as an integer between 0-255.\r\n * @returns The 0xTTBBGGRR value equivalent to `tbgr` but with the specified alpha.\r\n */\r\n public static withAlpha(tbgr: ColorDefProps, alpha: number): number {\r\n scratchUInt32[0] = tbgr;\r\n scratchBytes[3] = 255 - (alpha | 0);\r\n return scratchUInt32[0];\r\n }\r\n\r\n /** Get the alpha value for this ColorDef. Will be between 0-255 */\r\n public getAlpha(): number {\r\n return ColorDef.getAlpha(this._tbgr);\r\n }\r\n\r\n /** Extract the alpha value from a 0xTTBBGGRR color. */\r\n public static getAlpha(tbgr: ColorDefProps): number {\r\n scratchUInt32[0] = tbgr;\r\n return 255 - scratchBytes[3];\r\n }\r\n\r\n /** True if this ColorDef is fully opaque. */\r\n public get isOpaque(): boolean {\r\n return ColorDef.isOpaque(this._tbgr);\r\n }\r\n\r\n /** True if the specified 0xTTBBGGRR color is fully opaque. */\r\n public static isOpaque(tbgr: ColorDefProps): boolean {\r\n return 255 === this.getAlpha(tbgr);\r\n }\r\n\r\n /** Get the transparency value for this ColorDef (inverse of alpha). Will be between 0-255. */\r\n public getTransparency(): number {\r\n return ColorDef.getTransparency(this._tbgr);\r\n }\r\n\r\n /** Extract the transparency component from a 0xTTBBGGRR color as an integer between 0-255.. */\r\n public static getTransparency(tbgr: ColorDefProps): number {\r\n scratchUInt32[0] = tbgr;\r\n return scratchBytes[3];\r\n }\r\n\r\n /** Create a copy of this ColorDef with the specified transparency.\r\n * @param transparency the new transparency value. Must be between 0-255, where 0 means 'fully opaque' and 255 means 'fully transparent'.\r\n * @returns a new ColorDef with the same color as this one and the specified transparency.\r\n */\r\n public withTransparency(transparency: number): ColorDef {\r\n const tbgr = ColorDef.withTransparency(this._tbgr, transparency);\r\n return tbgr === this._tbgr ? this : ColorDef.fromTbgr(tbgr);\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR value of the specified color and transparency.\r\n * @param transparency the new transparency as an integer between 0-255.\r\n * @returns The 0xTTBBGGRR value equivalent to `tbgr` but with the specified transparency.\r\n */\r\n public static withTransparency(tbgr: ColorDefProps, transparency: number): ColorDefProps {\r\n return this.withAlpha(tbgr, 255 - transparency);\r\n }\r\n\r\n /** The \"known name\" for this ColorDef. Will be undefined if color value is not in [[ColorByName]] list */\r\n public get name(): string | undefined {\r\n return ColorDef.getName(this.tbgr);\r\n }\r\n\r\n /** Obtain the name of the color in the [[ColorByName]] list associated with the specified 0xTTBBGGRR value, or undefined if no such named color exists.\r\n * @note A handful of colors (like \"aqua\" and \"cyan\") have identical tbgr values; in such cases the first match will be returned.\r\n */\r\n public static getName(tbgr: ColorDefProps): string | undefined {\r\n for (const [key, value] of Object.entries(ColorByName))\r\n if (value === tbgr)\r\n return key;\r\n\r\n return undefined;\r\n }\r\n\r\n /** Convert this ColorDef to a string in the form \"#rrggbb\" where values are hex digits of the respective colors */\r\n public toHexString(): string {\r\n return ColorDef.toHexString(this.tbgr);\r\n }\r\n\r\n /** Convert the 0xTTBBGGRR value to a string in the form \"#rrggbb\". */\r\n public static toHexString(tbgr: ColorDefProps): string {\r\n return `#${(`000000${this.getRgb(tbgr).toString(16)}`).slice(-6)}`;\r\n }\r\n\r\n private static getColorsString(tbgr: ColorDefProps) {\r\n const c = this.getColors(tbgr);\r\n return `${c.r},${c.g},${c.b}`;\r\n }\r\n\r\n /** Convert this ColorDef to a string in the form \"rgb(r,g,b)\" where values are decimal digits of the respective colors. */\r\n public toRgbString(): string {\r\n return ColorDef.toRgbString(this.tbgr);\r\n }\r\n\r\n /** Convert the 0xTTBBGGRR color to a string in the form \"rgb(r,g,b)\" where each component is specified in decimal. */\r\n public static toRgbString(tbgr: ColorDefProps): string {\r\n return `rgb(${this.getColorsString(tbgr)})`;\r\n }\r\n\r\n /** Convert this ColorDef to a string in the form \"rgba(r,g,b,a)\" where color values are decimal digits and a is a fraction */\r\n public toRgbaString(): string {\r\n return ColorDef.toRgbaString(this.tbgr);\r\n }\r\n\r\n /** Convert the 0xTTBBGGRR color to a string of the form \"rgba(r,g,b,a)\" where the color components are specified in decimal and the alpha component is a fraction. */\r\n public static toRgbaString(tbgr: ColorDefProps): string {\r\n return `rgba(${this.getColorsString(tbgr)},${this.getAlpha(tbgr) / 255.})`;\r\n }\r\n\r\n /** Create a ColorDef that is the linear interpolation of this ColorDef and another ColorDef, using a weighting factor.\r\n * @param color2 The other color\r\n * @param weight The weighting factor for color2. 0.0 = this color, 1.0 = color2.\r\n * @param result Optional ColorDef to hold result. If undefined, a new ColorDef is created.\r\n */\r\n public lerp(color2: ColorDef, weight: number): ColorDef {\r\n return ColorDef.fromTbgr(ColorDef.lerp(this.tbgr, color2.tbgr, weight));\r\n }\r\n\r\n /** Interpolate between two 0xTTBBGGRR colors using a weighting factor.\r\n * @param tbgr1 The first color\r\n * @param tbgr2 The other color\r\n * @param weight The weighting factor in [0..1]. A value of 0.0 selects `tbgr1`; 1.0 selects `tbgr2`; 0.5 mixes them evenly; etc.\r\n * @returns The linear interpolation between `tbgr1` and `tbgr2` using the specified weight.\r\n */\r\n public static lerp(tbgr1: ColorDefProps, tbgr2: ColorDefProps, weight: number): ColorDefProps {\r\n const c = this.getColors(tbgr1);\r\n const color = this.getColors(tbgr2);\r\n c.r += (color.r - c.r) * weight;\r\n c.g += (color.g - c.g) * weight;\r\n c.b += (color.b - c.b) * weight;\r\n return this.computeTbgrFromComponents(c.r, c.g, c.b, c.t);\r\n }\r\n\r\n /** Create a new ColorDef that is the inverse (all colors set to 255 - this) of this color. Ignores transparency - result has 0 transparency. */\r\n public inverse(): ColorDef {\r\n return ColorDef.fromTbgr(ColorDef.inverse(this.tbgr));\r\n }\r\n\r\n /** Return a 0xTTBBGGRR color whose color components are the inverse of the input color. The result has 0 transparency. */\r\n public static inverse(tbgr: ColorDefProps): ColorDefProps {\r\n const colors = this.getColors(tbgr);\r\n return this.computeTbgrFromComponents(255 - colors.r, 255 - colors.g, 255 - colors.b);\r\n }\r\n\r\n /** Create a ColorDef from hue, saturation, lightness values */\r\n public static fromHSL(h: number, s: number, l: number, transparency = 0): ColorDef {\r\n return this.fromTbgr(this.computeTbgrFromHSL(h, s, l, transparency));\r\n }\r\n\r\n /** Compute the 0xTTBBGGRR color corresponding to the specified hue, saturation, lightness values. */\r\n public static computeTbgrFromHSL(h: number, s: number, l: number, transparency = 0): ColorDefProps {\r\n const torgb = (p1: number, q1: number, t: number) => {\r\n if (t < 0)\r\n t += 1;\r\n if (t > 1)\r\n t -= 1;\r\n\r\n if (t < 1 / 6)\r\n return p1 + (q1 - p1) * 6 * t;\r\n if (t < 1 / 2)\r\n return q1;\r\n if (t < 2 / 3)\r\n return p1 + (q1 - p1) * 6 * (2 / 3 - t);\r\n\r\n return p1;\r\n };\r\n\r\n const hue2rgb = (p1: number, q1: number, t: number) => Math.round(torgb(p1, q1, t) * 255);\r\n const modulo = (n: number, m: number) => ((n % m) + m) % m;\r\n\r\n // h,s,l ranges are in 0.0 - 1.0\r\n h = modulo(h, 1);\r\n s = Geometry.clamp(s, 0, 1);\r\n l = Geometry.clamp(l, 0, 1);\r\n\r\n if (s === 0) {\r\n l *= 255;\r\n return this.computeTbgrFromComponents(l, l, l, transparency);\r\n }\r\n\r\n const p = l <= 0.5 ? l * (1 + s) : l + s - (l * s);\r\n const q = (2 * l) - p;\r\n return this.computeTbgrFromComponents(\r\n hue2rgb(q, p, h + 1 / 3),\r\n hue2rgb(q, p, h),\r\n hue2rgb(q, p, h - 1 / 3),\r\n transparency);\r\n }\r\n\r\n /** Create an [[HSLColor]] from this ColorDef */\r\n public toHSL(): HSLColor {\r\n // h,s,l ranges are in 0.0 - 1.0\r\n const col = this.colors;\r\n col.r /= 255;\r\n col.g /= 255;\r\n col.b /= 255;\r\n const max = Math.max(col.r, col.g, col.b);\r\n const min = Math.min(col.r, col.g, col.b);\r\n\r\n let hue = 0;\r\n let saturation;\r\n const lightness = (min + max) / 2.0;\r\n\r\n if (min === max) {\r\n saturation = 0;\r\n } else {\r\n const delta = max - min;\r\n saturation = lightness <= 0.5 ? delta / (max + min) : delta / (2 - max - min);\r\n switch (max) {\r\n case col.r:\r\n hue = (col.g - col.b) / delta + (col.g < col.b ? 6 : 0);\r\n break;\r\n case col.g:\r\n hue = (col.b - col.r) / delta + 2;\r\n break;\r\n case col.b:\r\n hue = (col.r - col.g) / delta + 4;\r\n break;\r\n }\r\n\r\n hue /= 6;\r\n }\r\n\r\n return new HSLColor(hue, saturation, lightness);\r\n }\r\n\r\n /** Create an [[HSVColor]] from this ColorDef */\r\n public toHSV(): HSVColor {\r\n const { r, g, b } = this.colors;\r\n let min = (r < g) ? r : g;\r\n if (b < min)\r\n min = b;\r\n\r\n let max = (r > g) ? r : g;\r\n if (b > max)\r\n max = b;\r\n\r\n /* amount of \"blackness\" present */\r\n const v = Math.floor((max / 255.0 * 100) + 0.5);\r\n const deltaRgb = max - min;\r\n const s = (max !== 0.0) ? Math.floor((deltaRgb / max * 100) + 0.5) : 0;\r\n let h = 0;\r\n\r\n if (s) {\r\n const redDistance = (max - r) / deltaRgb;\r\n const greenDistance = (max - g) / deltaRgb;\r\n const blueDistance = (max - b) / deltaRgb;\r\n\r\n let intermediateHue: number;\r\n if (r === max) /* color between yellow & magenta */\r\n intermediateHue = blueDistance - greenDistance;\r\n else if (g === max) /* color between cyan & yellow */\r\n intermediateHue = 2.0 + redDistance - blueDistance;\r\n else /* color between magenta & cyan */\r\n intermediateHue = 4.0 + greenDistance - redDistance;\r\n\r\n /* intermediate hue is [0..6] */\r\n intermediateHue *= 60;\r\n\r\n if (intermediateHue < 0.0)\r\n intermediateHue += 360;\r\n\r\n h = Math.floor(intermediateHue + 0.5);\r\n\r\n if (h >= 360)\r\n h = 0;\r\n } else {\r\n h = 0;\r\n }\r\n\r\n return new HSVColor(h, s, v);\r\n }\r\n\r\n /** Create a ColorDef from an HSVColor */\r\n public static fromHSV(hsv: HSVColor, transparency = 0): ColorDef {\r\n // Check for simple case first.\r\n if ((!hsv.s) || (hsv.h === -1)) {\r\n // hue must be undefined, have no color only white\r\n const white = 0xff & Math.floor(((255.0 * hsv.v) / 100.0) + 0.5 + 3.0e-14);\r\n return ColorDef.from(white, white, white, 0);\r\n }\r\n\r\n let dhue = hsv.h, dsaturation = hsv.s, dvalue = hsv.v;\r\n if (dhue === 360)\r\n dhue = 0.0;\r\n\r\n dhue /= 60; // hue is now [0..6]\r\n const hueIntpart = Math.floor(dhue); // convert double -> int\r\n const hueFractpart = dhue - hueIntpart;\r\n dvalue /= 100;\r\n dsaturation /= 100;\r\n\r\n const p = 0xff & Math.floor((dvalue * (1.0 - dsaturation) * 255.0) + 0.5);\r\n const q = 0xff & Math.floor((dvalue * (1.0 - (dsaturation * hueFractpart)) * 255.0) + 0.5);\r\n const t = 0xff & Math.floor((dvalue * (1.0 - (dsaturation * (1.0 - hueFractpart))) * 255.0) + 0.5);\r\n const v = 0xff & Math.floor(dvalue * 255 + 0.5);\r\n\r\n let r = 0, b = 0, g = 0;\r\n switch (hueIntpart) {\r\n case 0: r = v; g = t; b = p; break; // reddish\r\n case 1: r = q, g = v; b = p; break; // yellowish\r\n case 2: r = p, g = v; b = t; break; // greenish\r\n case 3: r = p, g = q; b = v; break; // cyanish\r\n case 4: r = t, g = p; b = v; break; // bluish\r\n case 5: r = v, g = p; b = q; break; // magenta-ish\r\n }\r\n\r\n return ColorDef.from(r, g, b, transparency);\r\n }\r\n\r\n private visibilityCheck(other: ColorDef): number {\r\n const fg = this.colors;\r\n const bg = other.colors;\r\n // Compute luminosity\r\n const red = Math.abs(fg.r - bg.r);\r\n const green = Math.abs(fg.g - bg.g);\r\n const blue = Math.abs(fg.b - bg.b);\r\n return (0.30 * red) + (0.59 * green) + (0.11 * blue);\r\n }\r\n\r\n /**\r\n * Create a new ColorDef that is adjusted from this ColorDef for maximum contrast against another color. The color will either be lighter\r\n * or darker, depending on which has more visibility against the other color.\r\n * @param other the color to contrast with\r\n * @param alpha optional alpha value for the adjusted color. If not supplied alpha from this color is used.\r\n */\r\n public adjustedForContrast(other: ColorDef, alpha?: number): ColorDef {\r\n const visibility = this.visibilityCheck(other);\r\n if (HSVConstants.VISIBILITY_GOAL <= visibility) {\r\n return undefined !== alpha ? this.withAlpha(alpha) : this;\r\n }\r\n\r\n const adjPercent = Math.floor(((HSVConstants.VISIBILITY_GOAL - visibility) / 255.0) * 100.0);\r\n let darkerHSV = this.toHSV();\r\n let brightHSV = darkerHSV.clone();\r\n\r\n darkerHSV = darkerHSV.adjusted(true, adjPercent);\r\n brightHSV = brightHSV.adjusted(false, adjPercent);\r\n\r\n if (undefined === alpha)\r\n alpha = this.getAlpha();\r\n\r\n const darker = ColorDef.fromHSV(darkerHSV).withAlpha(alpha);\r\n const bright = ColorDef.fromHSV(brightHSV).withAlpha(alpha);\r\n\r\n if (bright.getRgb() === other.getRgb()) // Couldn't adjust brighter...\r\n return darker;\r\n\r\n if (darker.getRgb() === other.getRgb()) // Couldn't adjust darker...\r\n return bright;\r\n\r\n // NOTE: Best choice is the one most visible against the other color...\r\n return (bright.visibilityCheck(other) >= darker.visibilityCheck(other)) ? bright : darker;\r\n }\r\n\r\n /** True if the value of this ColorDef is the same as another ColorDef. */\r\n public equals(other: ColorDef): boolean {\r\n return this._tbgr === other._tbgr;\r\n }\r\n\r\n /** pure black */\r\n public static readonly black = new ColorDef(ColorByName.black);\r\n /** pure white */\r\n public static readonly white = new ColorDef(ColorByName.white);\r\n /** pure red */\r\n public static readonly red = new ColorDef(ColorByName.red);\r\n /** pure green */\r\n public static readonly green = new ColorDef(ColorByName.green);\r\n /** pure blue */\r\n public static readonly blue = new ColorDef(ColorByName.blue);\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ConcurrentQuery.d.ts","sourceRoot":"","sources":["../../src/ConcurrentQuery.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAqB,QAAQ,EAAQ,UAAU,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACvH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;A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