@itwin/frontend-devtools 4.0.0-dev.52 → 4.0.0-dev.55

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 (344) hide show
  1. package/lib/cjs/ClipboardUtilities.d.ts +8 -8
  2. package/lib/cjs/ClipboardUtilities.js +26 -26
  3. package/lib/cjs/FrontEndDevTools.d.ts +19 -19
  4. package/lib/cjs/FrontEndDevTools.js +221 -221
  5. package/lib/cjs/FrontEndDevTools.js.map +1 -1
  6. package/lib/cjs/effects/Convolution.d.ts +68 -68
  7. package/lib/cjs/effects/Convolution.js +148 -148
  8. package/lib/cjs/effects/Convolution.js.map +1 -1
  9. package/lib/cjs/effects/EffectTools.d.ts +33 -33
  10. package/lib/cjs/effects/EffectTools.js +67 -67
  11. package/lib/cjs/effects/EffectTools.js.map +1 -1
  12. package/lib/cjs/effects/Explosion.d.ts +12 -12
  13. package/lib/cjs/effects/Explosion.js +168 -168
  14. package/lib/cjs/effects/Explosion.js.map +1 -1
  15. package/lib/cjs/effects/FlipImage.d.ts +30 -30
  16. package/lib/cjs/effects/FlipImage.js +79 -79
  17. package/lib/cjs/effects/FlipImage.js.map +1 -1
  18. package/lib/cjs/effects/LensDistortion.d.ts +34 -34
  19. package/lib/cjs/effects/LensDistortion.js +88 -88
  20. package/lib/cjs/effects/LensDistortion.js.map +1 -1
  21. package/lib/cjs/effects/Random.d.ts +24 -24
  22. package/lib/cjs/effects/Random.js +49 -49
  23. package/lib/cjs/effects/Saturation.d.ts +30 -30
  24. package/lib/cjs/effects/Saturation.js +59 -59
  25. package/lib/cjs/effects/Saturation.js.map +1 -1
  26. package/lib/cjs/effects/Snow.d.ts +76 -76
  27. package/lib/cjs/effects/Snow.js +187 -187
  28. package/lib/cjs/effects/Snow.js.map +1 -1
  29. package/lib/cjs/effects/Vignette.d.ts +39 -39
  30. package/lib/cjs/effects/Vignette.js +79 -79
  31. package/lib/cjs/effects/Vignette.js.map +1 -1
  32. package/lib/cjs/frontend-devtools.d.ts +82 -82
  33. package/lib/cjs/frontend-devtools.js +102 -98
  34. package/lib/cjs/frontend-devtools.js.map +1 -1
  35. package/lib/cjs/tools/AnimationIntervalTool.d.ts +15 -15
  36. package/lib/cjs/tools/AnimationIntervalTool.js +30 -30
  37. package/lib/cjs/tools/AnimationIntervalTool.js.map +1 -1
  38. package/lib/cjs/tools/ChangeUnitsTool.d.ts +15 -15
  39. package/lib/cjs/tools/ChangeUnitsTool.js +41 -41
  40. package/lib/cjs/tools/ChangeUnitsTool.js.map +1 -1
  41. package/lib/cjs/tools/ClipTools.d.ts +67 -67
  42. package/lib/cjs/tools/ClipTools.js +161 -161
  43. package/lib/cjs/tools/ClipTools.js.map +1 -1
  44. package/lib/cjs/tools/DisplayStyleTools.d.ts +145 -145
  45. package/lib/cjs/tools/DisplayStyleTools.js +368 -368
  46. package/lib/cjs/tools/DisplayStyleTools.js.map +1 -1
  47. package/lib/cjs/tools/EmphasizeElementsTool.d.ts +60 -60
  48. package/lib/cjs/tools/EmphasizeElementsTool.js +154 -154
  49. package/lib/cjs/tools/EmphasizeElementsTool.js.map +1 -1
  50. package/lib/cjs/tools/FrustumDecoration.d.ts +57 -57
  51. package/lib/cjs/tools/FrustumDecoration.js +374 -374
  52. package/lib/cjs/tools/FrustumDecoration.js.map +1 -1
  53. package/lib/cjs/tools/InspectElementTool.d.ts +42 -42
  54. package/lib/cjs/tools/InspectElementTool.js +198 -198
  55. package/lib/cjs/tools/InspectElementTool.js.map +1 -1
  56. package/lib/cjs/tools/MapLayerTool.d.ts +264 -264
  57. package/lib/cjs/tools/MapLayerTool.js +507 -507
  58. package/lib/cjs/tools/MapLayerTool.js.map +1 -1
  59. package/lib/cjs/tools/MeasureTileLoadTime.d.ts +12 -12
  60. package/lib/cjs/tools/MeasureTileLoadTime.js +63 -63
  61. package/lib/cjs/tools/MeasureTileLoadTime.js.map +1 -1
  62. package/lib/cjs/tools/ModelAppearanceTools.d.ts +86 -86
  63. package/lib/cjs/tools/ModelAppearanceTools.js +183 -183
  64. package/lib/cjs/tools/ModelAppearanceTools.js.map +1 -1
  65. package/lib/cjs/tools/PlanProjectionTools.d.ts +40 -40
  66. package/lib/cjs/tools/PlanProjectionTools.js +149 -149
  67. package/lib/cjs/tools/PlanProjectionTools.js.map +1 -1
  68. package/lib/cjs/tools/PlanarMaskTools.d.ts +182 -182
  69. package/lib/cjs/tools/PlanarMaskTools.js +391 -391
  70. package/lib/cjs/tools/PlanarMaskTools.js.map +1 -1
  71. package/lib/cjs/tools/ProjectExtents.d.ts +41 -41
  72. package/lib/cjs/tools/ProjectExtents.js +110 -110
  73. package/lib/cjs/tools/ProjectExtents.js.map +1 -1
  74. package/lib/cjs/tools/RealityModelTools.d.ts +116 -116
  75. package/lib/cjs/tools/RealityModelTools.js +281 -281
  76. package/lib/cjs/tools/RealityModelTools.js.map +1 -1
  77. package/lib/cjs/tools/RealityTransitionTool.d.ts +25 -25
  78. package/lib/cjs/tools/RealityTransitionTool.js +115 -115
  79. package/lib/cjs/tools/RealityTransitionTool.js.map +1 -1
  80. package/lib/cjs/tools/RenderSystemTools.d.ts +38 -38
  81. package/lib/cjs/tools/RenderSystemTools.js +69 -69
  82. package/lib/cjs/tools/RenderSystemTools.js.map +1 -1
  83. package/lib/cjs/tools/RenderTargetTools.d.ts +107 -107
  84. package/lib/cjs/tools/RenderTargetTools.d.ts.map +1 -1
  85. package/lib/cjs/tools/RenderTargetTools.js +174 -174
  86. package/lib/cjs/tools/RenderTargetTools.js.map +1 -1
  87. package/lib/cjs/tools/ReportWebGLCompatibilityTool.d.ts +11 -11
  88. package/lib/cjs/tools/ReportWebGLCompatibilityTool.js +30 -30
  89. package/lib/cjs/tools/ReportWebGLCompatibilityTool.js.map +1 -1
  90. package/lib/cjs/tools/SavedViews.d.ts +46 -46
  91. package/lib/cjs/tools/SavedViews.js +136 -136
  92. package/lib/cjs/tools/SavedViews.js.map +1 -1
  93. package/lib/cjs/tools/ScheduleScriptTools.d.ts +37 -37
  94. package/lib/cjs/tools/ScheduleScriptTools.js +157 -157
  95. package/lib/cjs/tools/ScheduleScriptTools.js.map +1 -1
  96. package/lib/cjs/tools/SelectionTools.d.ts +28 -28
  97. package/lib/cjs/tools/SelectionTools.js +87 -87
  98. package/lib/cjs/tools/SelectionTools.js.map +1 -1
  99. package/lib/cjs/tools/SetGpuMemoryLimitTool.d.ts +15 -15
  100. package/lib/cjs/tools/SetGpuMemoryLimitTool.js +33 -33
  101. package/lib/cjs/tools/SetGpuMemoryLimitTool.js.map +1 -1
  102. package/lib/cjs/tools/SourceAspectIdTools.d.ts +40 -40
  103. package/lib/cjs/tools/SourceAspectIdTools.js +86 -86
  104. package/lib/cjs/tools/SourceAspectIdTools.js.map +1 -1
  105. package/lib/cjs/tools/TileRequestDecoration.d.ts +12 -12
  106. package/lib/cjs/tools/TileRequestDecoration.js +83 -83
  107. package/lib/cjs/tools/TileRequestDecoration.js.map +1 -1
  108. package/lib/cjs/tools/TileTreeBoundsDecoration.d.ts +11 -11
  109. package/lib/cjs/tools/TileTreeBoundsDecoration.js +74 -74
  110. package/lib/cjs/tools/TileTreeBoundsDecoration.js.map +1 -1
  111. package/lib/cjs/tools/ToolTipProvider.d.ts +15 -15
  112. package/lib/cjs/tools/ToolTipProvider.js +66 -66
  113. package/lib/cjs/tools/ToolTipProvider.js.map +1 -1
  114. package/lib/cjs/tools/ViewportTools.d.ts +218 -218
  115. package/lib/cjs/tools/ViewportTools.js +516 -516
  116. package/lib/cjs/tools/ViewportTools.js.map +1 -1
  117. package/lib/cjs/tools/parseArgs.d.ts +23 -23
  118. package/lib/cjs/tools/parseArgs.js +51 -51
  119. package/lib/cjs/tools/parseBoolean.d.ts +8 -8
  120. package/lib/cjs/tools/parseBoolean.js +26 -26
  121. package/lib/cjs/tools/parseToggle.d.ts +8 -8
  122. package/lib/cjs/tools/parseToggle.js +25 -25
  123. package/lib/cjs/ui/Button.d.ts +29 -29
  124. package/lib/cjs/ui/Button.d.ts.map +1 -1
  125. package/lib/cjs/ui/Button.js +26 -26
  126. package/lib/cjs/ui/CheckBox.d.ts +23 -23
  127. package/lib/cjs/ui/CheckBox.d.ts.map +1 -1
  128. package/lib/cjs/ui/CheckBox.js +27 -27
  129. package/lib/cjs/ui/ColorInput.d.ts +27 -27
  130. package/lib/cjs/ui/ColorInput.d.ts.map +1 -1
  131. package/lib/cjs/ui/ColorInput.js +53 -53
  132. package/lib/cjs/ui/ComboBox.d.ts +28 -28
  133. package/lib/cjs/ui/ComboBox.d.ts.map +1 -1
  134. package/lib/cjs/ui/ComboBox.js +42 -42
  135. package/lib/cjs/ui/DataList.d.ts +27 -27
  136. package/lib/cjs/ui/DataList.d.ts.map +1 -1
  137. package/lib/cjs/ui/DataList.js +39 -39
  138. package/lib/cjs/ui/NestedMenu.d.ts +19 -19
  139. package/lib/cjs/ui/NestedMenu.d.ts.map +1 -1
  140. package/lib/cjs/ui/NestedMenu.js +46 -46
  141. package/lib/cjs/ui/NumericInput.d.ts +35 -35
  142. package/lib/cjs/ui/NumericInput.d.ts.map +1 -1
  143. package/lib/cjs/ui/NumericInput.js +61 -61
  144. package/lib/cjs/ui/RadioBox.d.ts +29 -29
  145. package/lib/cjs/ui/RadioBox.d.ts.map +1 -1
  146. package/lib/cjs/ui/RadioBox.js +76 -76
  147. package/lib/cjs/ui/Slider.d.ts +28 -28
  148. package/lib/cjs/ui/Slider.d.ts.map +1 -1
  149. package/lib/cjs/ui/Slider.js +42 -42
  150. package/lib/cjs/ui/TextBox.d.ts +32 -32
  151. package/lib/cjs/ui/TextBox.d.ts.map +1 -1
  152. package/lib/cjs/ui/TextBox.js +56 -56
  153. package/lib/cjs/widgets/DiagnosticsPanel.d.ts +37 -37
  154. package/lib/cjs/widgets/DiagnosticsPanel.js +81 -81
  155. package/lib/cjs/widgets/FpsTracker.d.ts +19 -19
  156. package/lib/cjs/widgets/FpsTracker.js +56 -56
  157. package/lib/cjs/widgets/GpuProfiler.d.ts +16 -16
  158. package/lib/cjs/widgets/GpuProfiler.js +192 -192
  159. package/lib/cjs/widgets/KeyinField.d.ts +61 -61
  160. package/lib/cjs/widgets/KeyinField.js +186 -186
  161. package/lib/cjs/widgets/MemoryTracker.d.ts +27 -27
  162. package/lib/cjs/widgets/MemoryTracker.js +242 -242
  163. package/lib/cjs/widgets/MemoryTracker.js.map +1 -1
  164. package/lib/cjs/widgets/RenderCommandBreakdown.d.ts +15 -15
  165. package/lib/cjs/widgets/RenderCommandBreakdown.js +67 -67
  166. package/lib/cjs/widgets/TileMemoryBreakdown.d.ts +30 -30
  167. package/lib/cjs/widgets/TileMemoryBreakdown.js +203 -203
  168. package/lib/cjs/widgets/TileStatisticsTracker.d.ts +21 -21
  169. package/lib/cjs/widgets/TileStatisticsTracker.js +144 -144
  170. package/lib/cjs/widgets/ToolSettingsTracker.d.ts +9 -9
  171. package/lib/cjs/widgets/ToolSettingsTracker.js +211 -211
  172. package/lib/cjs/widgets/ToolSettingsTracker.js.map +1 -1
  173. package/lib/esm/ClipboardUtilities.d.ts +8 -8
  174. package/lib/esm/ClipboardUtilities.js +22 -22
  175. package/lib/esm/FrontEndDevTools.d.ts +19 -19
  176. package/lib/esm/FrontEndDevTools.js +218 -217
  177. package/lib/esm/FrontEndDevTools.js.map +1 -1
  178. package/lib/esm/effects/Convolution.d.ts +68 -68
  179. package/lib/esm/effects/Convolution.js +144 -138
  180. package/lib/esm/effects/Convolution.js.map +1 -1
  181. package/lib/esm/effects/EffectTools.d.ts +33 -33
  182. package/lib/esm/effects/EffectTools.js +63 -61
  183. package/lib/esm/effects/EffectTools.js.map +1 -1
  184. package/lib/esm/effects/Explosion.d.ts +12 -12
  185. package/lib/esm/effects/Explosion.js +165 -164
  186. package/lib/esm/effects/Explosion.js.map +1 -1
  187. package/lib/esm/effects/FlipImage.d.ts +30 -30
  188. package/lib/esm/effects/FlipImage.js +76 -74
  189. package/lib/esm/effects/FlipImage.js.map +1 -1
  190. package/lib/esm/effects/LensDistortion.d.ts +34 -34
  191. package/lib/esm/effects/LensDistortion.js +85 -83
  192. package/lib/esm/effects/LensDistortion.js.map +1 -1
  193. package/lib/esm/effects/Random.d.ts +24 -24
  194. package/lib/esm/effects/Random.js +41 -41
  195. package/lib/esm/effects/Saturation.d.ts +30 -30
  196. package/lib/esm/effects/Saturation.js +56 -54
  197. package/lib/esm/effects/Saturation.js.map +1 -1
  198. package/lib/esm/effects/Snow.d.ts +76 -76
  199. package/lib/esm/effects/Snow.js +184 -182
  200. package/lib/esm/effects/Snow.js.map +1 -1
  201. package/lib/esm/effects/Vignette.d.ts +39 -39
  202. package/lib/esm/effects/Vignette.js +76 -74
  203. package/lib/esm/effects/Vignette.js.map +1 -1
  204. package/lib/esm/frontend-devtools.d.ts +82 -82
  205. package/lib/esm/frontend-devtools.js +86 -86
  206. package/lib/esm/tools/AnimationIntervalTool.d.ts +15 -15
  207. package/lib/esm/tools/AnimationIntervalTool.js +27 -26
  208. package/lib/esm/tools/AnimationIntervalTool.js.map +1 -1
  209. package/lib/esm/tools/ChangeUnitsTool.d.ts +15 -15
  210. package/lib/esm/tools/ChangeUnitsTool.js +38 -37
  211. package/lib/esm/tools/ChangeUnitsTool.js.map +1 -1
  212. package/lib/esm/tools/ClipTools.d.ts +67 -67
  213. package/lib/esm/tools/ClipTools.js +158 -155
  214. package/lib/esm/tools/ClipTools.js.map +1 -1
  215. package/lib/esm/tools/DisplayStyleTools.d.ts +145 -145
  216. package/lib/esm/tools/DisplayStyleTools.js +364 -354
  217. package/lib/esm/tools/DisplayStyleTools.js.map +1 -1
  218. package/lib/esm/tools/EmphasizeElementsTool.d.ts +60 -60
  219. package/lib/esm/tools/EmphasizeElementsTool.js +150 -145
  220. package/lib/esm/tools/EmphasizeElementsTool.js.map +1 -1
  221. package/lib/esm/tools/FrustumDecoration.d.ts +57 -57
  222. package/lib/esm/tools/FrustumDecoration.js +370 -367
  223. package/lib/esm/tools/FrustumDecoration.js.map +1 -1
  224. package/lib/esm/tools/InspectElementTool.d.ts +42 -42
  225. package/lib/esm/tools/InspectElementTool.js +195 -194
  226. package/lib/esm/tools/InspectElementTool.js.map +1 -1
  227. package/lib/esm/tools/MapLayerTool.d.ts +264 -264
  228. package/lib/esm/tools/MapLayerTool.js +504 -485
  229. package/lib/esm/tools/MapLayerTool.js.map +1 -1
  230. package/lib/esm/tools/MeasureTileLoadTime.d.ts +12 -12
  231. package/lib/esm/tools/MeasureTileLoadTime.js +60 -59
  232. package/lib/esm/tools/MeasureTileLoadTime.js.map +1 -1
  233. package/lib/esm/tools/ModelAppearanceTools.d.ts +86 -86
  234. package/lib/esm/tools/ModelAppearanceTools.js +180 -172
  235. package/lib/esm/tools/ModelAppearanceTools.js.map +1 -1
  236. package/lib/esm/tools/PlanProjectionTools.d.ts +40 -40
  237. package/lib/esm/tools/PlanProjectionTools.js +146 -143
  238. package/lib/esm/tools/PlanProjectionTools.js.map +1 -1
  239. package/lib/esm/tools/PlanarMaskTools.d.ts +182 -182
  240. package/lib/esm/tools/PlanarMaskTools.js +387 -375
  241. package/lib/esm/tools/PlanarMaskTools.js.map +1 -1
  242. package/lib/esm/tools/ProjectExtents.d.ts +41 -41
  243. package/lib/esm/tools/ProjectExtents.js +105 -104
  244. package/lib/esm/tools/ProjectExtents.js.map +1 -1
  245. package/lib/esm/tools/RealityModelTools.d.ts +116 -116
  246. package/lib/esm/tools/RealityModelTools.js +278 -268
  247. package/lib/esm/tools/RealityModelTools.js.map +1 -1
  248. package/lib/esm/tools/RealityTransitionTool.d.ts +25 -25
  249. package/lib/esm/tools/RealityTransitionTool.js +112 -111
  250. package/lib/esm/tools/RealityTransitionTool.js.map +1 -1
  251. package/lib/esm/tools/RenderSystemTools.d.ts +38 -38
  252. package/lib/esm/tools/RenderSystemTools.js +65 -62
  253. package/lib/esm/tools/RenderSystemTools.js.map +1 -1
  254. package/lib/esm/tools/RenderTargetTools.d.ts +107 -107
  255. package/lib/esm/tools/RenderTargetTools.d.ts.map +1 -1
  256. package/lib/esm/tools/RenderTargetTools.js +169 -159
  257. package/lib/esm/tools/RenderTargetTools.js.map +1 -1
  258. package/lib/esm/tools/ReportWebGLCompatibilityTool.d.ts +11 -11
  259. package/lib/esm/tools/ReportWebGLCompatibilityTool.js +27 -26
  260. package/lib/esm/tools/ReportWebGLCompatibilityTool.js.map +1 -1
  261. package/lib/esm/tools/SavedViews.d.ts +46 -46
  262. package/lib/esm/tools/SavedViews.js +131 -128
  263. package/lib/esm/tools/SavedViews.js.map +1 -1
  264. package/lib/esm/tools/ScheduleScriptTools.d.ts +37 -37
  265. package/lib/esm/tools/ScheduleScriptTools.js +154 -151
  266. package/lib/esm/tools/ScheduleScriptTools.js.map +1 -1
  267. package/lib/esm/tools/SelectionTools.d.ts +28 -28
  268. package/lib/esm/tools/SelectionTools.js +84 -82
  269. package/lib/esm/tools/SelectionTools.js.map +1 -1
  270. package/lib/esm/tools/SetGpuMemoryLimitTool.d.ts +15 -15
  271. package/lib/esm/tools/SetGpuMemoryLimitTool.js +30 -29
  272. package/lib/esm/tools/SetGpuMemoryLimitTool.js.map +1 -1
  273. package/lib/esm/tools/SourceAspectIdTools.d.ts +40 -40
  274. package/lib/esm/tools/SourceAspectIdTools.js +82 -80
  275. package/lib/esm/tools/SourceAspectIdTools.js.map +1 -1
  276. package/lib/esm/tools/TileRequestDecoration.d.ts +12 -12
  277. package/lib/esm/tools/TileRequestDecoration.js +80 -79
  278. package/lib/esm/tools/TileRequestDecoration.js.map +1 -1
  279. package/lib/esm/tools/TileTreeBoundsDecoration.d.ts +11 -11
  280. package/lib/esm/tools/TileTreeBoundsDecoration.js +71 -70
  281. package/lib/esm/tools/TileTreeBoundsDecoration.js.map +1 -1
  282. package/lib/esm/tools/ToolTipProvider.d.ts +15 -15
  283. package/lib/esm/tools/ToolTipProvider.js +63 -62
  284. package/lib/esm/tools/ToolTipProvider.js.map +1 -1
  285. package/lib/esm/tools/ViewportTools.d.ts +218 -218
  286. package/lib/esm/tools/ViewportTools.js +511 -492
  287. package/lib/esm/tools/ViewportTools.js.map +1 -1
  288. package/lib/esm/tools/parseArgs.d.ts +23 -23
  289. package/lib/esm/tools/parseArgs.js +47 -47
  290. package/lib/esm/tools/parseBoolean.d.ts +8 -8
  291. package/lib/esm/tools/parseBoolean.js +22 -22
  292. package/lib/esm/tools/parseToggle.d.ts +8 -8
  293. package/lib/esm/tools/parseToggle.js +21 -21
  294. package/lib/esm/ui/Button.d.ts +29 -29
  295. package/lib/esm/ui/Button.d.ts.map +1 -1
  296. package/lib/esm/ui/Button.js +22 -22
  297. package/lib/esm/ui/CheckBox.d.ts +23 -23
  298. package/lib/esm/ui/CheckBox.d.ts.map +1 -1
  299. package/lib/esm/ui/CheckBox.js +23 -23
  300. package/lib/esm/ui/ColorInput.d.ts +27 -27
  301. package/lib/esm/ui/ColorInput.d.ts.map +1 -1
  302. package/lib/esm/ui/ColorInput.js +48 -48
  303. package/lib/esm/ui/ComboBox.d.ts +28 -28
  304. package/lib/esm/ui/ComboBox.d.ts.map +1 -1
  305. package/lib/esm/ui/ComboBox.js +38 -38
  306. package/lib/esm/ui/DataList.d.ts +27 -27
  307. package/lib/esm/ui/DataList.d.ts.map +1 -1
  308. package/lib/esm/ui/DataList.js +34 -34
  309. package/lib/esm/ui/NestedMenu.d.ts +19 -19
  310. package/lib/esm/ui/NestedMenu.d.ts.map +1 -1
  311. package/lib/esm/ui/NestedMenu.js +42 -42
  312. package/lib/esm/ui/NumericInput.d.ts +35 -35
  313. package/lib/esm/ui/NumericInput.d.ts.map +1 -1
  314. package/lib/esm/ui/NumericInput.js +56 -56
  315. package/lib/esm/ui/RadioBox.d.ts +29 -29
  316. package/lib/esm/ui/RadioBox.d.ts.map +1 -1
  317. package/lib/esm/ui/RadioBox.js +72 -72
  318. package/lib/esm/ui/Slider.d.ts +28 -28
  319. package/lib/esm/ui/Slider.d.ts.map +1 -1
  320. package/lib/esm/ui/Slider.js +38 -38
  321. package/lib/esm/ui/TextBox.d.ts +32 -32
  322. package/lib/esm/ui/TextBox.d.ts.map +1 -1
  323. package/lib/esm/ui/TextBox.js +52 -52
  324. package/lib/esm/widgets/DiagnosticsPanel.d.ts +37 -37
  325. package/lib/esm/widgets/DiagnosticsPanel.js +77 -77
  326. package/lib/esm/widgets/FpsTracker.d.ts +19 -19
  327. package/lib/esm/widgets/FpsTracker.js +52 -52
  328. package/lib/esm/widgets/GpuProfiler.d.ts +16 -16
  329. package/lib/esm/widgets/GpuProfiler.js +188 -188
  330. package/lib/esm/widgets/KeyinField.d.ts +61 -61
  331. package/lib/esm/widgets/KeyinField.js +182 -182
  332. package/lib/esm/widgets/MemoryTracker.d.ts +27 -27
  333. package/lib/esm/widgets/MemoryTracker.js +237 -237
  334. package/lib/esm/widgets/MemoryTracker.js.map +1 -1
  335. package/lib/esm/widgets/RenderCommandBreakdown.d.ts +15 -15
  336. package/lib/esm/widgets/RenderCommandBreakdown.js +63 -63
  337. package/lib/esm/widgets/TileMemoryBreakdown.d.ts +30 -30
  338. package/lib/esm/widgets/TileMemoryBreakdown.js +199 -199
  339. package/lib/esm/widgets/TileStatisticsTracker.d.ts +21 -21
  340. package/lib/esm/widgets/TileStatisticsTracker.js +140 -140
  341. package/lib/esm/widgets/ToolSettingsTracker.d.ts +9 -9
  342. package/lib/esm/widgets/ToolSettingsTracker.js +208 -207
  343. package/lib/esm/widgets/ToolSettingsTracker.js.map +1 -1
  344. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionTools.js","sourceRoot":"","sources":["../../../src/tools/SelectionTools.ts"],"names":[],"mappings":"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","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\r\n/** @packageDocumentation\r\n * @module Tools\r\n */\r\n\r\nimport { CompressedId64Set, Id64Arg, OrderedId64Iterable } from \"@itwin/core-bentley\";\r\nimport { IModelApp, NotifyMessageDetails, OutputMessagePriority, Tool } from \"@itwin/core-frontend\";\r\nimport { copyStringToClipboard } from \"../ClipboardUtilities\";\r\nimport { parseArgs } from \"./parseArgs\";\r\n\r\n/** Replaces the contents of the selection set with the set of element Ids specified.\r\n * Element Ids are separated by whitespace.\r\n * @beta\r\n */\r\nexport class SelectElementsByIdTool extends Tool {\r\n public static override toolId = \"SelectElementsById\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return undefined; }\r\n\r\n public override async run(ids?: Id64Arg): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined !== vp && undefined !== ids)\r\n vp.iModel.selectionSet.replace(ids);\r\n\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n return this.run(args);\r\n }\r\n}\r\n\r\n/** A tool that outputs the Ids of the elements in the [SelectionSet]($frontend) of the [IModelConnection]($frontend) associated with the selected [Viewport]($frontend).\r\n * @beta\r\n */\r\nexport class DumpSelectionSetTool extends Tool {\r\n public static override toolId = \"DumpSelectionSet\";\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 2; }\r\n\r\n private _format: \"json\" | \"compressed\" | \"list\" = \"list\";\r\n private _copy?: boolean;\r\n\r\n public override async run(): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (!vp)\r\n return false;\r\n\r\n const elems = Array.from(vp.iModel.selectionSet.elements);\r\n OrderedId64Iterable.sortArray(elems);\r\n\r\n let output;\r\n switch (this._format) {\r\n case \"compressed\":\r\n output = CompressedId64Set.compressArray(elems);\r\n break;\r\n case \"json\":\r\n output = JSON.stringify(elems);\r\n break;\r\n default:\r\n output = elems.join(\" \");\r\n break;\r\n }\r\n\r\n if (this._copy)\r\n copyStringToClipboard(output);\r\n\r\n const brief = `Selection set dumped${this._copy ? \" to clipboard\" : \"\"}.`;\r\n const details = new NotifyMessageDetails(OutputMessagePriority.Info, brief, output);\r\n IModelApp.notifications.outputMessage(details);\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...input: string[]): Promise<boolean> {\r\n const args = parseArgs(input);\r\n this._copy = args.getBoolean(\"c\");\r\n const formatArg = args.get(\"f\");\r\n if (formatArg) {\r\n switch (formatArg[0].toLowerCase()) {\r\n case \"j\":\r\n this._format = \"json\";\r\n break;\r\n case \"c\":\r\n this._format = \"compressed\";\r\n break;\r\n }\r\n }\r\n\r\n return this.run();\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"SelectionTools.js","sourceRoot":"","sources":["../../../src/tools/SelectionTools.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sDAAsF;AACtF,wDAAoG;AACpG,8DAA8D;AAC9D,2CAAwC;AAExC;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,oBAAI;IAEvC,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,SAAS,CAAC,CAAC,CAAC;IAE1C,KAAK,CAAC,GAAG,CAAC,GAAa;QACrC,MAAM,EAAE,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,CAAC;QAC9C,IAAI,SAAS,KAAK,EAAE,IAAI,SAAS,KAAK,GAAG;YACvC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEtC,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;;AAdsB,6BAAM,GAAG,oBAAoB,CAAC;AAD1C,wDAAsB;AAkBnC;;GAEG;AACH,MAAa,oBAAqB,SAAQ,oBAAI;IAA9C;;QAKU,YAAO,GAAmC,MAAM,CAAC;IAkD3D,CAAC;IArDQ,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAKlC,KAAK,CAAC,GAAG;QACvB,MAAM,EAAE,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,CAAC;QAC9C,IAAI,CAAC,EAAE;YACL,OAAO,KAAK,CAAC;QAEf,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC1D,kCAAmB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAErC,IAAI,MAAM,CAAC;QACX,QAAQ,IAAI,CAAC,OAAO,EAAE;YACpB,KAAK,YAAY;gBACf,MAAM,GAAG,gCAAiB,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;gBAChD,MAAM;YACR,KAAK,MAAM;gBACT,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;gBAC/B,MAAM;YACR;gBACE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACzB,MAAM;SACT;QAED,IAAI,IAAI,CAAC,KAAK;YACZ,IAAA,0CAAqB,EAAC,MAAM,CAAC,CAAC;QAEhC,MAAM,KAAK,GAAG,uBAAuB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;QAC1E,MAAM,OAAO,GAAG,IAAI,oCAAoB,CAAC,qCAAqB,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QACpF,yBAAS,CAAC,aAAa,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,KAAe;QAClD,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAClC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,SAAS,EAAE;YACb,QAAQ,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE;gBAClC,KAAK,GAAG;oBACN,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;oBACtB,MAAM;gBACR,KAAK,GAAG;oBACN,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC;oBAC5B,MAAM;aACT;SACF;QAED,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC;IACpB,CAAC;;AArDsB,2BAAM,GAAG,kBAAkB,AAArB,CAAsB;AADxC,oDAAoB","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\r\n/** @packageDocumentation\r\n * @module Tools\r\n */\r\n\r\nimport { CompressedId64Set, Id64Arg, OrderedId64Iterable } from \"@itwin/core-bentley\";\r\nimport { IModelApp, NotifyMessageDetails, OutputMessagePriority, Tool } from \"@itwin/core-frontend\";\r\nimport { copyStringToClipboard } from \"../ClipboardUtilities\";\r\nimport { parseArgs } from \"./parseArgs\";\r\n\r\n/** Replaces the contents of the selection set with the set of element Ids specified.\r\n * Element Ids are separated by whitespace.\r\n * @beta\r\n */\r\nexport class SelectElementsByIdTool extends Tool {\r\n public static override toolId = \"SelectElementsById\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return undefined; }\r\n\r\n public override async run(ids?: Id64Arg): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined !== vp && undefined !== ids)\r\n vp.iModel.selectionSet.replace(ids);\r\n\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n return this.run(args);\r\n }\r\n}\r\n\r\n/** A tool that outputs the Ids of the elements in the [SelectionSet]($frontend) of the [IModelConnection]($frontend) associated with the selected [Viewport]($frontend).\r\n * @beta\r\n */\r\nexport class DumpSelectionSetTool extends Tool {\r\n public static override toolId = \"DumpSelectionSet\";\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 2; }\r\n\r\n private _format: \"json\" | \"compressed\" | \"list\" = \"list\";\r\n private _copy?: boolean;\r\n\r\n public override async run(): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (!vp)\r\n return false;\r\n\r\n const elems = Array.from(vp.iModel.selectionSet.elements);\r\n OrderedId64Iterable.sortArray(elems);\r\n\r\n let output;\r\n switch (this._format) {\r\n case \"compressed\":\r\n output = CompressedId64Set.compressArray(elems);\r\n break;\r\n case \"json\":\r\n output = JSON.stringify(elems);\r\n break;\r\n default:\r\n output = elems.join(\" \");\r\n break;\r\n }\r\n\r\n if (this._copy)\r\n copyStringToClipboard(output);\r\n\r\n const brief = `Selection set dumped${this._copy ? \" to clipboard\" : \"\"}.`;\r\n const details = new NotifyMessageDetails(OutputMessagePriority.Info, brief, output);\r\n IModelApp.notifications.outputMessage(details);\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...input: string[]): Promise<boolean> {\r\n const args = parseArgs(input);\r\n this._copy = args.getBoolean(\"c\");\r\n const formatArg = args.get(\"f\");\r\n if (formatArg) {\r\n switch (formatArg[0].toLowerCase()) {\r\n case \"j\":\r\n this._format = \"json\";\r\n break;\r\n case \"c\":\r\n this._format = \"compressed\";\r\n break;\r\n }\r\n }\r\n\r\n return this.run();\r\n }\r\n}\r\n"]}
@@ -1,16 +1,16 @@
1
- /** @packageDocumentation
2
- * @module Tools
3
- */
4
- import { GpuMemoryLimit, Tool } from "@itwin/core-frontend";
5
- /** Adjust the value of [TileAdmin.gpuMemoryLimit]($frontend). This controls how much GPU memory is allowed to be consumed
6
- * by tile graphics before the system starts discarding the graphics for the least recently drawn tiles.
7
- * @beta
8
- */
9
- export declare class SetGpuMemoryLimitTool extends Tool {
10
- static toolId: string;
11
- static get minArgs(): number;
12
- static get maxArgs(): number;
13
- run(limit?: GpuMemoryLimit): Promise<boolean>;
14
- parseAndRun(...args: string[]): Promise<boolean>;
15
- }
1
+ /** @packageDocumentation
2
+ * @module Tools
3
+ */
4
+ import { GpuMemoryLimit, Tool } from "@itwin/core-frontend";
5
+ /** Adjust the value of [TileAdmin.gpuMemoryLimit]($frontend). This controls how much GPU memory is allowed to be consumed
6
+ * by tile graphics before the system starts discarding the graphics for the least recently drawn tiles.
7
+ * @beta
8
+ */
9
+ export declare class SetGpuMemoryLimitTool extends Tool {
10
+ static toolId: string;
11
+ static get minArgs(): number;
12
+ static get maxArgs(): number;
13
+ run(limit?: GpuMemoryLimit): Promise<boolean>;
14
+ parseAndRun(...args: string[]): Promise<boolean>;
15
+ }
16
16
  //# sourceMappingURL=SetGpuMemoryLimitTool.d.ts.map
@@ -1,34 +1,34 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module Tools
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.SetGpuMemoryLimitTool = void 0;
11
- const core_frontend_1 = require("@itwin/core-frontend");
12
- /** Adjust the value of [TileAdmin.gpuMemoryLimit]($frontend). This controls how much GPU memory is allowed to be consumed
13
- * by tile graphics before the system starts discarding the graphics for the least recently drawn tiles.
14
- * @beta
15
- */
16
- class SetGpuMemoryLimitTool extends core_frontend_1.Tool {
17
- static get minArgs() { return 1; }
18
- static get maxArgs() { return 1; }
19
- async run(limit) {
20
- if (undefined !== limit) {
21
- core_frontend_1.IModelApp.tileAdmin.gpuMemoryLimit = limit;
22
- core_frontend_1.IModelApp.requestNextAnimation();
23
- }
24
- return true;
25
- }
26
- async parseAndRun(...args) {
27
- const maxBytes = Number.parseInt(args[0], 10);
28
- const limit = Number.isNaN(maxBytes) ? args[0] : maxBytes;
29
- return this.run(limit);
30
- }
31
- }
32
- exports.SetGpuMemoryLimitTool = SetGpuMemoryLimitTool;
33
- SetGpuMemoryLimitTool.toolId = "SetGpuMemoryLimit";
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Tools
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.SetGpuMemoryLimitTool = void 0;
11
+ const core_frontend_1 = require("@itwin/core-frontend");
12
+ /** Adjust the value of [TileAdmin.gpuMemoryLimit]($frontend). This controls how much GPU memory is allowed to be consumed
13
+ * by tile graphics before the system starts discarding the graphics for the least recently drawn tiles.
14
+ * @beta
15
+ */
16
+ class SetGpuMemoryLimitTool extends core_frontend_1.Tool {
17
+ static get minArgs() { return 1; }
18
+ static get maxArgs() { return 1; }
19
+ async run(limit) {
20
+ if (undefined !== limit) {
21
+ core_frontend_1.IModelApp.tileAdmin.gpuMemoryLimit = limit;
22
+ core_frontend_1.IModelApp.requestNextAnimation();
23
+ }
24
+ return true;
25
+ }
26
+ async parseAndRun(...args) {
27
+ const maxBytes = Number.parseInt(args[0], 10);
28
+ const limit = Number.isNaN(maxBytes) ? args[0] : maxBytes;
29
+ return this.run(limit);
30
+ }
31
+ }
32
+ SetGpuMemoryLimitTool.toolId = "SetGpuMemoryLimit";
33
+ exports.SetGpuMemoryLimitTool = SetGpuMemoryLimitTool;
34
34
  //# sourceMappingURL=SetGpuMemoryLimitTool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SetGpuMemoryLimitTool.js","sourceRoot":"","sources":["../../../src/tools/SetGpuMemoryLimitTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAAuE;AAEvE;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,oBAAI;IAEtC,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAElC,KAAK,CAAC,GAAG,CAAC,KAAsB;QAC9C,IAAI,SAAS,KAAK,KAAK,EAAE;YACvB,yBAAS,CAAC,SAAS,CAAC,cAAc,GAAG,KAAK,CAAC;YAC3C,yBAAS,CAAC,oBAAoB,EAAE,CAAC;SAClC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC5E,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;;AAlBH,sDAmBC;AAlBwB,4BAAM,GAAG,mBAAmB,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 Tools\r\n */\r\n\r\nimport { GpuMemoryLimit, IModelApp, Tool } from \"@itwin/core-frontend\";\r\n\r\n/** Adjust the value of [TileAdmin.gpuMemoryLimit]($frontend). This controls how much GPU memory is allowed to be consumed\r\n * by tile graphics before the system starts discarding the graphics for the least recently drawn tiles.\r\n * @beta\r\n */\r\nexport class SetGpuMemoryLimitTool extends Tool {\r\n public static override toolId = \"SetGpuMemoryLimit\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n public override async run(limit?: GpuMemoryLimit): Promise<boolean> {\r\n if (undefined !== limit) {\r\n IModelApp.tileAdmin.gpuMemoryLimit = limit;\r\n IModelApp.requestNextAnimation();\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const maxBytes = Number.parseInt(args[0], 10);\r\n const limit = Number.isNaN(maxBytes) ? args[0] as GpuMemoryLimit : maxBytes;\r\n return this.run(limit);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"SetGpuMemoryLimitTool.js","sourceRoot":"","sources":["../../../src/tools/SetGpuMemoryLimitTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAAuE;AAEvE;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,oBAAI;IAEtC,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAElC,KAAK,CAAC,GAAG,CAAC,KAAsB;QAC9C,IAAI,SAAS,KAAK,KAAK,EAAE;YACvB,yBAAS,CAAC,SAAS,CAAC,cAAc,GAAG,KAAK,CAAC;YAC3C,yBAAS,CAAC,oBAAoB,EAAE,CAAC;SAClC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC5E,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;;AAjBsB,4BAAM,GAAG,mBAAmB,CAAC;AADzC,sDAAqB","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 Tools\r\n */\r\n\r\nimport { GpuMemoryLimit, IModelApp, Tool } from \"@itwin/core-frontend\";\r\n\r\n/** Adjust the value of [TileAdmin.gpuMemoryLimit]($frontend). This controls how much GPU memory is allowed to be consumed\r\n * by tile graphics before the system starts discarding the graphics for the least recently drawn tiles.\r\n * @beta\r\n */\r\nexport class SetGpuMemoryLimitTool extends Tool {\r\n public static override toolId = \"SetGpuMemoryLimit\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n public override async run(limit?: GpuMemoryLimit): Promise<boolean> {\r\n if (undefined !== limit) {\r\n IModelApp.tileAdmin.gpuMemoryLimit = limit;\r\n IModelApp.requestNextAnimation();\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const maxBytes = Number.parseInt(args[0], 10);\r\n const limit = Number.isNaN(maxBytes) ? args[0] as GpuMemoryLimit : maxBytes;\r\n return this.run(limit);\r\n }\r\n}\r\n"]}
@@ -1,41 +1,41 @@
1
- import { Tool } from "@itwin/core-frontend";
2
- /** Base class for a tool that can convert between source aspect Ids and element Ids.
3
- * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
4
- * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
5
- * @beta
6
- */
7
- export declare abstract class SourceAspectIdTool extends Tool {
8
- static get minArgs(): number;
9
- static get maxArgs(): number;
10
- protected abstract getECSql(queryId: string): string;
11
- run(idToQuery?: string, copyToClipboard?: boolean): Promise<boolean>;
12
- parseAndRun(...keyinArgs: string[]): Promise<boolean>;
13
- private doQuery;
14
- }
15
- /** Given a source aspect Id, output the Id of the corresponding element in the iModel.
16
- * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
17
- * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
18
- * Arguments:
19
- * - `id=elementId` where `elementId` is the numeric Id of the element of interest (e.g., `0x13a6c`; decimal notation is also permitted).
20
- * - `copy=0|1` where `1` indicates the source aspect Id should be copied to the clipboard.
21
- * The command outputs to the IModelApp.notifications the corresponding source aspect Id, or "NOT FOUND".
22
- * @beta
23
- */
24
- export declare class SourceAspectIdFromElementIdTool extends SourceAspectIdTool {
25
- static toolId: string;
26
- protected getECSql(queryId: string): string;
27
- }
28
- /** Given the Id of an element in the iModel, output the source aspect Id of the object in the source document from which the element originated.
29
- * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
30
- * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
31
- * Arguments:
32
- * - `id=sourceAspectId` where `sourceAspectId` is the string identifier of the object of interest.
33
- * - `copy=0|1` where `1` indicates the element Id should be copied to the clipboard.
34
- * The command outputs to the IModelApp.notifications the corresponding element Id, or "NOT FOUND".
35
- * @beta
36
- */
37
- export declare class ElementIdFromSourceAspectIdTool extends SourceAspectIdTool {
38
- static toolId: string;
39
- protected getECSql(queryId: string): string;
40
- }
1
+ import { Tool } from "@itwin/core-frontend";
2
+ /** Base class for a tool that can convert between source aspect Ids and element Ids.
3
+ * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
4
+ * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
5
+ * @beta
6
+ */
7
+ export declare abstract class SourceAspectIdTool extends Tool {
8
+ static get minArgs(): number;
9
+ static get maxArgs(): number;
10
+ protected abstract getECSql(queryId: string): string;
11
+ run(idToQuery?: string, copyToClipboard?: boolean): Promise<boolean>;
12
+ parseAndRun(...keyinArgs: string[]): Promise<boolean>;
13
+ private doQuery;
14
+ }
15
+ /** Given a source aspect Id, output the Id of the corresponding element in the iModel.
16
+ * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
17
+ * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
18
+ * Arguments:
19
+ * - `id=elementId` where `elementId` is the numeric Id of the element of interest (e.g., `0x13a6c`; decimal notation is also permitted).
20
+ * - `copy=0|1` where `1` indicates the source aspect Id should be copied to the clipboard.
21
+ * The command outputs to the IModelApp.notifications the corresponding source aspect Id, or "NOT FOUND".
22
+ * @beta
23
+ */
24
+ export declare class SourceAspectIdFromElementIdTool extends SourceAspectIdTool {
25
+ static toolId: string;
26
+ protected getECSql(queryId: string): string;
27
+ }
28
+ /** Given the Id of an element in the iModel, output the source aspect Id of the object in the source document from which the element originated.
29
+ * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
30
+ * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
31
+ * Arguments:
32
+ * - `id=sourceAspectId` where `sourceAspectId` is the string identifier of the object of interest.
33
+ * - `copy=0|1` where `1` indicates the element Id should be copied to the clipboard.
34
+ * The command outputs to the IModelApp.notifications the corresponding element Id, or "NOT FOUND".
35
+ * @beta
36
+ */
37
+ export declare class ElementIdFromSourceAspectIdTool extends SourceAspectIdTool {
38
+ static toolId: string;
39
+ protected getECSql(queryId: string): string;
40
+ }
41
41
  //# sourceMappingURL=SourceAspectIdTools.d.ts.map
@@ -1,87 +1,87 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ElementIdFromSourceAspectIdTool = exports.SourceAspectIdFromElementIdTool = exports.SourceAspectIdTool = void 0;
8
- /** @packageDocumentation
9
- * @module Tools
10
- */
11
- const core_bentley_1 = require("@itwin/core-bentley");
12
- const core_common_1 = require("@itwin/core-common");
13
- const core_frontend_1 = require("@itwin/core-frontend");
14
- const ClipboardUtilities_1 = require("../ClipboardUtilities");
15
- const parseArgs_1 = require("./parseArgs");
16
- /** Base class for a tool that can convert between source aspect Ids and element Ids.
17
- * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
18
- * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
19
- * @beta
20
- */
21
- class SourceAspectIdTool extends core_frontend_1.Tool {
22
- static get minArgs() { return 1; }
23
- static get maxArgs() { return 2; }
24
- async run(idToQuery, copyToClipboard) {
25
- if (typeof idToQuery === "string")
26
- await this.doQuery(idToQuery, true === copyToClipboard);
27
- return true;
28
- }
29
- async parseAndRun(...keyinArgs) {
30
- const args = (0, parseArgs_1.parseArgs)(keyinArgs);
31
- return this.run(args.get("i"), args.getBoolean("c"));
32
- }
33
- async doQuery(queryId, copyToClipboard) {
34
- const imodel = core_frontend_1.IModelApp.viewManager.selectedView?.iModel;
35
- if (undefined === imodel)
36
- return;
37
- let resultId;
38
- try {
39
- // eslint-disable-next-line deprecation/deprecation
40
- for await (const row of imodel.query(this.getECSql(queryId), undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames, limit: { count: 1 } }))
41
- resultId = row.resultId;
42
- }
43
- catch (ex) {
44
- resultId = core_bentley_1.BentleyError.getErrorMessage(ex);
45
- }
46
- if (typeof resultId !== "string")
47
- resultId = "NOT FOUND";
48
- if (copyToClipboard)
49
- (0, ClipboardUtilities_1.copyStringToClipboard)(resultId);
50
- const message = `${queryId} => ${resultId}`;
51
- core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, message));
52
- }
53
- }
54
- exports.SourceAspectIdTool = SourceAspectIdTool;
55
- /** Given a source aspect Id, output the Id of the corresponding element in the iModel.
56
- * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
57
- * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
58
- * Arguments:
59
- * - `id=elementId` where `elementId` is the numeric Id of the element of interest (e.g., `0x13a6c`; decimal notation is also permitted).
60
- * - `copy=0|1` where `1` indicates the source aspect Id should be copied to the clipboard.
61
- * The command outputs to the IModelApp.notifications the corresponding source aspect Id, or "NOT FOUND".
62
- * @beta
63
- */
64
- class SourceAspectIdFromElementIdTool extends SourceAspectIdTool {
65
- getECSql(queryId) {
66
- return `SELECT Identifier as resultId FROM BisCore.ExternalSourceAspect WHERE Element.Id=${queryId} AND [Kind]='Element'`;
67
- }
68
- }
69
- exports.SourceAspectIdFromElementIdTool = SourceAspectIdFromElementIdTool;
70
- SourceAspectIdFromElementIdTool.toolId = "SourceAspectIdFromElementId";
71
- /** Given the Id of an element in the iModel, output the source aspect Id of the object in the source document from which the element originated.
72
- * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
73
- * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
74
- * Arguments:
75
- * - `id=sourceAspectId` where `sourceAspectId` is the string identifier of the object of interest.
76
- * - `copy=0|1` where `1` indicates the element Id should be copied to the clipboard.
77
- * The command outputs to the IModelApp.notifications the corresponding element Id, or "NOT FOUND".
78
- * @beta
79
- */
80
- class ElementIdFromSourceAspectIdTool extends SourceAspectIdTool {
81
- getECSql(queryId) {
82
- return `SELECT Element.Id as resultId FROM BisCore.ExternalSourceAspect WHERE Identifier='${queryId}' AND [Kind]='Element'`;
83
- }
84
- }
85
- exports.ElementIdFromSourceAspectIdTool = ElementIdFromSourceAspectIdTool;
86
- ElementIdFromSourceAspectIdTool.toolId = "ElementIdFromSourceAspectId";
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ElementIdFromSourceAspectIdTool = exports.SourceAspectIdFromElementIdTool = exports.SourceAspectIdTool = void 0;
8
+ /** @packageDocumentation
9
+ * @module Tools
10
+ */
11
+ const core_bentley_1 = require("@itwin/core-bentley");
12
+ const core_common_1 = require("@itwin/core-common");
13
+ const core_frontend_1 = require("@itwin/core-frontend");
14
+ const ClipboardUtilities_1 = require("../ClipboardUtilities");
15
+ const parseArgs_1 = require("./parseArgs");
16
+ /** Base class for a tool that can convert between source aspect Ids and element Ids.
17
+ * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
18
+ * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
19
+ * @beta
20
+ */
21
+ class SourceAspectIdTool extends core_frontend_1.Tool {
22
+ static get minArgs() { return 1; }
23
+ static get maxArgs() { return 2; }
24
+ async run(idToQuery, copyToClipboard) {
25
+ if (typeof idToQuery === "string")
26
+ await this.doQuery(idToQuery, true === copyToClipboard);
27
+ return true;
28
+ }
29
+ async parseAndRun(...keyinArgs) {
30
+ const args = (0, parseArgs_1.parseArgs)(keyinArgs);
31
+ return this.run(args.get("i"), args.getBoolean("c"));
32
+ }
33
+ async doQuery(queryId, copyToClipboard) {
34
+ const imodel = core_frontend_1.IModelApp.viewManager.selectedView?.iModel;
35
+ if (undefined === imodel)
36
+ return;
37
+ let resultId;
38
+ try {
39
+ // eslint-disable-next-line deprecation/deprecation
40
+ for await (const row of imodel.query(this.getECSql(queryId), undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames, limit: { count: 1 } }))
41
+ resultId = row.resultId;
42
+ }
43
+ catch (ex) {
44
+ resultId = core_bentley_1.BentleyError.getErrorMessage(ex);
45
+ }
46
+ if (typeof resultId !== "string")
47
+ resultId = "NOT FOUND";
48
+ if (copyToClipboard)
49
+ (0, ClipboardUtilities_1.copyStringToClipboard)(resultId);
50
+ const message = `${queryId} => ${resultId}`;
51
+ core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, message));
52
+ }
53
+ }
54
+ exports.SourceAspectIdTool = SourceAspectIdTool;
55
+ /** Given a source aspect Id, output the Id of the corresponding element in the iModel.
56
+ * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
57
+ * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
58
+ * Arguments:
59
+ * - `id=elementId` where `elementId` is the numeric Id of the element of interest (e.g., `0x13a6c`; decimal notation is also permitted).
60
+ * - `copy=0|1` where `1` indicates the source aspect Id should be copied to the clipboard.
61
+ * The command outputs to the IModelApp.notifications the corresponding source aspect Id, or "NOT FOUND".
62
+ * @beta
63
+ */
64
+ class SourceAspectIdFromElementIdTool extends SourceAspectIdTool {
65
+ getECSql(queryId) {
66
+ return `SELECT Identifier as resultId FROM BisCore.ExternalSourceAspect WHERE Element.Id=${queryId} AND [Kind]='Element'`;
67
+ }
68
+ }
69
+ SourceAspectIdFromElementIdTool.toolId = "SourceAspectIdFromElementId";
70
+ exports.SourceAspectIdFromElementIdTool = SourceAspectIdFromElementIdTool;
71
+ /** Given the Id of an element in the iModel, output the source aspect Id of the object in the source document from which the element originated.
72
+ * A "source aspect Id" is a string that identifies an object (such as an element) in the source document from which the iModel originated.
73
+ * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.
74
+ * Arguments:
75
+ * - `id=sourceAspectId` where `sourceAspectId` is the string identifier of the object of interest.
76
+ * - `copy=0|1` where `1` indicates the element Id should be copied to the clipboard.
77
+ * The command outputs to the IModelApp.notifications the corresponding element Id, or "NOT FOUND".
78
+ * @beta
79
+ */
80
+ class ElementIdFromSourceAspectIdTool extends SourceAspectIdTool {
81
+ getECSql(queryId) {
82
+ return `SELECT Element.Id as resultId FROM BisCore.ExternalSourceAspect WHERE Identifier='${queryId}' AND [Kind]='Element'`;
83
+ }
84
+ }
85
+ ElementIdFromSourceAspectIdTool.toolId = "ElementIdFromSourceAspectId";
86
+ exports.ElementIdFromSourceAspectIdTool = ElementIdFromSourceAspectIdTool;
87
87
  //# sourceMappingURL=SourceAspectIdTools.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SourceAspectIdTools.js","sourceRoot":"","sources":["../../../src/tools/SourceAspectIdTools.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sDAAmD;AACnD,oDAAoD;AACpD,wDAAoG;AACpG,8DAA8D;AAC9D,2CAAwC;AAExC;;;;GAIG;AACH,MAAsB,kBAAmB,SAAQ,oBAAI;IAC5C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAIlC,KAAK,CAAC,GAAG,CAAC,SAAkB,EAAE,eAAyB;QACrE,IAAI,OAAO,SAAS,KAAK,QAAQ;YAC/B,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,KAAK,eAAe,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,SAAmB;QACtD,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAC,SAAS,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,CAAC;IAEO,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,eAAwB;QAC7D,MAAM,MAAM,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC;QAC1D,IAAI,SAAS,KAAK,MAAM;YACtB,OAAO;QAET,IAAI,QAAQ,CAAC;QACb,IAAI;YACF,mDAAmD;YACnD,IAAI,KAAK,EAAE,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,4BAAc,CAAC,kBAAkB,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5I,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;SAC3B;QAAC,OAAO,EAAE,EAAE;YACX,QAAQ,GAAG,2BAAY,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;SAC7C;QAED,IAAI,OAAO,QAAQ,KAAK,QAAQ;YAC9B,QAAQ,GAAG,WAAW,CAAC;QAEzB,IAAI,eAAe;YACjB,IAAA,0CAAqB,EAAC,QAAQ,CAAC,CAAC;QAElC,MAAM,OAAO,GAAG,GAAG,OAAO,OAAO,QAAQ,EAAE,CAAC;QAC5C,yBAAS,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,oCAAoB,CAAC,qCAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACvG,CAAC;CACF;AAzCD,gDAyCC;AAED;;;;;;;;GAQG;AACH,MAAa,+BAAgC,SAAQ,kBAAkB;IAG3D,QAAQ,CAAC,OAAe;QAChC,OAAO,oFAAoF,OAAO,uBAAuB,CAAC;IAC5H,CAAC;;AALH,0EAMC;AALwB,sCAAM,GAAG,6BAA6B,CAAC;AAOhE;;;;;;;;GAQG;AACH,MAAa,+BAAgC,SAAQ,kBAAkB;IAG3D,QAAQ,CAAC,OAAe;QAChC,OAAO,qFAAqF,OAAO,wBAAwB,CAAC;IAC9H,CAAC;;AALH,0EAMC;AALwB,sCAAM,GAAG,6BAA6B,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\r\n/** @packageDocumentation\r\n * @module Tools\r\n */\r\n\r\nimport { BentleyError } from \"@itwin/core-bentley\";\r\nimport { QueryRowFormat } from \"@itwin/core-common\";\r\nimport { IModelApp, NotifyMessageDetails, OutputMessagePriority, Tool } from \"@itwin/core-frontend\";\r\nimport { copyStringToClipboard } from \"../ClipboardUtilities\";\r\nimport { parseArgs } from \"./parseArgs\";\r\n\r\n/** Base class for a tool that can convert between source aspect Ids and element Ids.\r\n * A \"source aspect Id\" is a string that identifies an object (such as an element) in the source document from which the iModel originated.\r\n * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.\r\n * @beta\r\n */\r\nexport abstract class SourceAspectIdTool extends Tool {\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 2; }\r\n\r\n protected abstract getECSql(queryId: string): string;\r\n\r\n public override async run(idToQuery?: string, copyToClipboard?: boolean): Promise<boolean> {\r\n if (typeof idToQuery === \"string\")\r\n await this.doQuery(idToQuery, true === copyToClipboard);\r\n\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...keyinArgs: string[]): Promise<boolean> {\r\n const args = parseArgs(keyinArgs);\r\n return this.run(args.get(\"i\"), args.getBoolean(\"c\"));\r\n }\r\n\r\n private async doQuery(queryId: string, copyToClipboard: boolean): Promise<void> {\r\n const imodel = IModelApp.viewManager.selectedView?.iModel;\r\n if (undefined === imodel)\r\n return;\r\n\r\n let resultId;\r\n try {\r\n // eslint-disable-next-line deprecation/deprecation\r\n for await (const row of imodel.query(this.getECSql(queryId), undefined, { rowFormat: QueryRowFormat.UseJsPropertyNames, limit: { count: 1 } }))\r\n resultId = row.resultId;\r\n } catch (ex) {\r\n resultId = BentleyError.getErrorMessage(ex);\r\n }\r\n\r\n if (typeof resultId !== \"string\")\r\n resultId = \"NOT FOUND\";\r\n\r\n if (copyToClipboard)\r\n copyStringToClipboard(resultId);\r\n\r\n const message = `${queryId} => ${resultId}`;\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, message));\r\n }\r\n}\r\n\r\n/** Given a source aspect Id, output the Id of the corresponding element in the iModel.\r\n * A \"source aspect Id\" is a string that identifies an object (such as an element) in the source document from which the iModel originated.\r\n * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.\r\n * Arguments:\r\n * - `id=elementId` where `elementId` is the numeric Id of the element of interest (e.g., `0x13a6c`; decimal notation is also permitted).\r\n * - `copy=0|1` where `1` indicates the source aspect Id should be copied to the clipboard.\r\n * The command outputs to the IModelApp.notifications the corresponding source aspect Id, or \"NOT FOUND\".\r\n * @beta\r\n */\r\nexport class SourceAspectIdFromElementIdTool extends SourceAspectIdTool {\r\n public static override toolId = \"SourceAspectIdFromElementId\";\r\n\r\n protected getECSql(queryId: string): string {\r\n return `SELECT Identifier as resultId FROM BisCore.ExternalSourceAspect WHERE Element.Id=${queryId} AND [Kind]='Element'`;\r\n }\r\n}\r\n\r\n/** Given the Id of an element in the iModel, output the source aspect Id of the object in the source document from which the element originated.\r\n * A \"source aspect Id\" is a string that identifies an object (such as an element) in the source document from which the iModel originated.\r\n * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.\r\n * Arguments:\r\n * - `id=sourceAspectId` where `sourceAspectId` is the string identifier of the object of interest.\r\n * - `copy=0|1` where `1` indicates the element Id should be copied to the clipboard.\r\n * The command outputs to the IModelApp.notifications the corresponding element Id, or \"NOT FOUND\".\r\n * @beta\r\n */\r\nexport class ElementIdFromSourceAspectIdTool extends SourceAspectIdTool {\r\n public static override toolId = \"ElementIdFromSourceAspectId\";\r\n\r\n protected getECSql(queryId: string): string {\r\n return `SELECT Element.Id as resultId FROM BisCore.ExternalSourceAspect WHERE Identifier='${queryId}' AND [Kind]='Element'`;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"SourceAspectIdTools.js","sourceRoot":"","sources":["../../../src/tools/SourceAspectIdTools.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sDAAmD;AACnD,oDAAoD;AACpD,wDAAoG;AACpG,8DAA8D;AAC9D,2CAAwC;AAExC;;;;GAIG;AACH,MAAsB,kBAAmB,SAAQ,oBAAI;IAC5C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAIlC,KAAK,CAAC,GAAG,CAAC,SAAkB,EAAE,eAAyB;QACrE,IAAI,OAAO,SAAS,KAAK,QAAQ;YAC/B,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,KAAK,eAAe,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,SAAmB;QACtD,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAC,SAAS,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,CAAC;IAEO,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,eAAwB;QAC7D,MAAM,MAAM,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,EAAE,MAAM,CAAC;QAC1D,IAAI,SAAS,KAAK,MAAM;YACtB,OAAO;QAET,IAAI,QAAQ,CAAC;QACb,IAAI;YACF,mDAAmD;YACnD,IAAI,KAAK,EAAE,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,4BAAc,CAAC,kBAAkB,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5I,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;SAC3B;QAAC,OAAO,EAAE,EAAE;YACX,QAAQ,GAAG,2BAAY,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;SAC7C;QAED,IAAI,OAAO,QAAQ,KAAK,QAAQ;YAC9B,QAAQ,GAAG,WAAW,CAAC;QAEzB,IAAI,eAAe;YACjB,IAAA,0CAAqB,EAAC,QAAQ,CAAC,CAAC;QAElC,MAAM,OAAO,GAAG,GAAG,OAAO,OAAO,QAAQ,EAAE,CAAC;QAC5C,yBAAS,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,oCAAoB,CAAC,qCAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACvG,CAAC;CACF;AAzCD,gDAyCC;AAED;;;;;;;;GAQG;AACH,MAAa,+BAAgC,SAAQ,kBAAkB;IAG3D,QAAQ,CAAC,OAAe;QAChC,OAAO,oFAAoF,OAAO,uBAAuB,CAAC;IAC5H,CAAC;;AAJsB,sCAAM,GAAG,6BAA6B,CAAC;AADnD,0EAA+B;AAQ5C;;;;;;;;GAQG;AACH,MAAa,+BAAgC,SAAQ,kBAAkB;IAG3D,QAAQ,CAAC,OAAe;QAChC,OAAO,qFAAqF,OAAO,wBAAwB,CAAC;IAC9H,CAAC;;AAJsB,sCAAM,GAAG,6BAA6B,CAAC;AADnD,0EAA+B","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\r\n/** @packageDocumentation\r\n * @module Tools\r\n */\r\n\r\nimport { BentleyError } from \"@itwin/core-bentley\";\r\nimport { QueryRowFormat } from \"@itwin/core-common\";\r\nimport { IModelApp, NotifyMessageDetails, OutputMessagePriority, Tool } from \"@itwin/core-frontend\";\r\nimport { copyStringToClipboard } from \"../ClipboardUtilities\";\r\nimport { parseArgs } from \"./parseArgs\";\r\n\r\n/** Base class for a tool that can convert between source aspect Ids and element Ids.\r\n * A \"source aspect Id\" is a string that identifies an object (such as an element) in the source document from which the iModel originated.\r\n * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.\r\n * @beta\r\n */\r\nexport abstract class SourceAspectIdTool extends Tool {\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 2; }\r\n\r\n protected abstract getECSql(queryId: string): string;\r\n\r\n public override async run(idToQuery?: string, copyToClipboard?: boolean): Promise<boolean> {\r\n if (typeof idToQuery === \"string\")\r\n await this.doQuery(idToQuery, true === copyToClipboard);\r\n\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...keyinArgs: string[]): Promise<boolean> {\r\n const args = parseArgs(keyinArgs);\r\n return this.run(args.get(\"i\"), args.getBoolean(\"c\"));\r\n }\r\n\r\n private async doQuery(queryId: string, copyToClipboard: boolean): Promise<void> {\r\n const imodel = IModelApp.viewManager.selectedView?.iModel;\r\n if (undefined === imodel)\r\n return;\r\n\r\n let resultId;\r\n try {\r\n // eslint-disable-next-line deprecation/deprecation\r\n for await (const row of imodel.query(this.getECSql(queryId), undefined, { rowFormat: QueryRowFormat.UseJsPropertyNames, limit: { count: 1 } }))\r\n resultId = row.resultId;\r\n } catch (ex) {\r\n resultId = BentleyError.getErrorMessage(ex);\r\n }\r\n\r\n if (typeof resultId !== \"string\")\r\n resultId = \"NOT FOUND\";\r\n\r\n if (copyToClipboard)\r\n copyStringToClipboard(resultId);\r\n\r\n const message = `${queryId} => ${resultId}`;\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, message));\r\n }\r\n}\r\n\r\n/** Given a source aspect Id, output the Id of the corresponding element in the iModel.\r\n * A \"source aspect Id\" is a string that identifies an object (such as an element) in the source document from which the iModel originated.\r\n * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.\r\n * Arguments:\r\n * - `id=elementId` where `elementId` is the numeric Id of the element of interest (e.g., `0x13a6c`; decimal notation is also permitted).\r\n * - `copy=0|1` where `1` indicates the source aspect Id should be copied to the clipboard.\r\n * The command outputs to the IModelApp.notifications the corresponding source aspect Id, or \"NOT FOUND\".\r\n * @beta\r\n */\r\nexport class SourceAspectIdFromElementIdTool extends SourceAspectIdTool {\r\n public static override toolId = \"SourceAspectIdFromElementId\";\r\n\r\n protected getECSql(queryId: string): string {\r\n return `SELECT Identifier as resultId FROM BisCore.ExternalSourceAspect WHERE Element.Id=${queryId} AND [Kind]='Element'`;\r\n }\r\n}\r\n\r\n/** Given the Id of an element in the iModel, output the source aspect Id of the object in the source document from which the element originated.\r\n * A \"source aspect Id\" is a string that identifies an object (such as an element) in the source document from which the iModel originated.\r\n * For example, if the iModel was produced by the MicroStation bridge, the source aspect Id is usually a V8 element Id.\r\n * Arguments:\r\n * - `id=sourceAspectId` where `sourceAspectId` is the string identifier of the object of interest.\r\n * - `copy=0|1` where `1` indicates the element Id should be copied to the clipboard.\r\n * The command outputs to the IModelApp.notifications the corresponding element Id, or \"NOT FOUND\".\r\n * @beta\r\n */\r\nexport class ElementIdFromSourceAspectIdTool extends SourceAspectIdTool {\r\n public static override toolId = \"ElementIdFromSourceAspectId\";\r\n\r\n protected getECSql(queryId: string): string {\r\n return `SELECT Element.Id as resultId FROM BisCore.ExternalSourceAspect WHERE Identifier='${queryId}' AND [Kind]='Element'`;\r\n }\r\n}\r\n"]}
@@ -1,13 +1,13 @@
1
- import { Tool } from "@itwin/core-frontend";
2
- /** Display in every viewport a range graphic for every tile currently being requested for the viewport that was initially selected when the decorator was installed.
3
- * Green indicates queued (http request not yet sent), red indicates active (http request sent). White indicates unexpected state.
4
- * @beta
5
- */
6
- export declare class ToggleTileRequestDecorationTool extends Tool {
7
- static toolId: string;
8
- static get minArgs(): number;
9
- static get maxArgs(): number;
10
- run(enable?: boolean): Promise<boolean>;
11
- parseAndRun(...args: string[]): Promise<boolean>;
12
- }
1
+ import { Tool } from "@itwin/core-frontend";
2
+ /** Display in every viewport a range graphic for every tile currently being requested for the viewport that was initially selected when the decorator was installed.
3
+ * Green indicates queued (http request not yet sent), red indicates active (http request sent). White indicates unexpected state.
4
+ * @beta
5
+ */
6
+ export declare class ToggleTileRequestDecorationTool extends Tool {
7
+ static toolId: string;
8
+ static get minArgs(): number;
9
+ static get maxArgs(): number;
10
+ run(enable?: boolean): Promise<boolean>;
11
+ parseAndRun(...args: string[]): Promise<boolean>;
12
+ }
13
13
  //# sourceMappingURL=TileRequestDecoration.d.ts.map