@itwin/frontend-devtools 3.4.0-dev.9 → 3.4.1

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 (387) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/lib/cjs/ClipboardUtilities.d.ts +8 -8
  3. package/lib/cjs/ClipboardUtilities.js +26 -26
  4. package/lib/cjs/ClipboardUtilities.js.map +1 -1
  5. package/lib/cjs/FrontEndDevTools.d.ts +19 -19
  6. package/lib/cjs/FrontEndDevTools.js +219 -219
  7. package/lib/cjs/FrontEndDevTools.js.map +1 -1
  8. package/lib/cjs/effects/Convolution.d.ts +68 -68
  9. package/lib/cjs/effects/Convolution.js +165 -165
  10. package/lib/cjs/effects/Convolution.js.map +1 -1
  11. package/lib/cjs/effects/EffectTools.d.ts +33 -33
  12. package/lib/cjs/effects/EffectTools.js +68 -68
  13. package/lib/cjs/effects/EffectTools.js.map +1 -1
  14. package/lib/cjs/effects/Explosion.d.ts +12 -12
  15. package/lib/cjs/effects/Explosion.js +168 -168
  16. package/lib/cjs/effects/Explosion.js.map +1 -1
  17. package/lib/cjs/effects/FlipImage.d.ts +30 -30
  18. package/lib/cjs/effects/FlipImage.js +99 -99
  19. package/lib/cjs/effects/FlipImage.js.map +1 -1
  20. package/lib/cjs/effects/LensDistortion.d.ts +34 -34
  21. package/lib/cjs/effects/LensDistortion.js +109 -109
  22. package/lib/cjs/effects/LensDistortion.js.map +1 -1
  23. package/lib/cjs/effects/Random.d.ts +24 -24
  24. package/lib/cjs/effects/Random.js +49 -49
  25. package/lib/cjs/effects/Random.js.map +1 -1
  26. package/lib/cjs/effects/Saturation.d.ts +30 -30
  27. package/lib/cjs/effects/Saturation.js +85 -85
  28. package/lib/cjs/effects/Saturation.js.map +1 -1
  29. package/lib/cjs/effects/Snow.d.ts +76 -76
  30. package/lib/cjs/effects/Snow.js +187 -187
  31. package/lib/cjs/effects/Snow.js.map +1 -1
  32. package/lib/cjs/effects/Vignette.d.ts +39 -39
  33. package/lib/cjs/effects/Vignette.js +108 -108
  34. package/lib/cjs/effects/Vignette.js.map +1 -1
  35. package/lib/cjs/frontend-devtools.d.ts +82 -82
  36. package/lib/cjs/frontend-devtools.js +98 -98
  37. package/lib/cjs/frontend-devtools.js.map +1 -1
  38. package/lib/cjs/tools/AnimationIntervalTool.d.ts +15 -15
  39. package/lib/cjs/tools/AnimationIntervalTool.js +30 -30
  40. package/lib/cjs/tools/AnimationIntervalTool.js.map +1 -1
  41. package/lib/cjs/tools/ChangeUnitsTool.d.ts +15 -15
  42. package/lib/cjs/tools/ChangeUnitsTool.js +41 -41
  43. package/lib/cjs/tools/ChangeUnitsTool.js.map +1 -1
  44. package/lib/cjs/tools/ClipTools.d.ts +67 -67
  45. package/lib/cjs/tools/ClipTools.js +164 -164
  46. package/lib/cjs/tools/ClipTools.js.map +1 -1
  47. package/lib/cjs/tools/DisplayStyleTools.d.ts +145 -145
  48. package/lib/cjs/tools/DisplayStyleTools.js +370 -370
  49. package/lib/cjs/tools/DisplayStyleTools.js.map +1 -1
  50. package/lib/cjs/tools/EmphasizeElementsTool.d.ts +60 -60
  51. package/lib/cjs/tools/EmphasizeElementsTool.js +154 -154
  52. package/lib/cjs/tools/EmphasizeElementsTool.js.map +1 -1
  53. package/lib/cjs/tools/FrustumDecoration.d.ts +57 -57
  54. package/lib/cjs/tools/FrustumDecoration.d.ts.map +1 -1
  55. package/lib/cjs/tools/FrustumDecoration.js +374 -371
  56. package/lib/cjs/tools/FrustumDecoration.js.map +1 -1
  57. package/lib/cjs/tools/InspectElementTool.d.ts +42 -42
  58. package/lib/cjs/tools/InspectElementTool.js +198 -198
  59. package/lib/cjs/tools/InspectElementTool.js.map +1 -1
  60. package/lib/cjs/tools/MapLayerTool.d.ts +257 -257
  61. package/lib/cjs/tools/MapLayerTool.js +499 -499
  62. package/lib/cjs/tools/MapLayerTool.js.map +1 -1
  63. package/lib/cjs/tools/MeasureTileLoadTime.d.ts +12 -12
  64. package/lib/cjs/tools/MeasureTileLoadTime.d.ts.map +1 -1
  65. package/lib/cjs/tools/MeasureTileLoadTime.js +63 -60
  66. package/lib/cjs/tools/MeasureTileLoadTime.js.map +1 -1
  67. package/lib/cjs/tools/ModelAppearanceTools.d.ts +86 -86
  68. package/lib/cjs/tools/ModelAppearanceTools.js +183 -183
  69. package/lib/cjs/tools/ModelAppearanceTools.js.map +1 -1
  70. package/lib/cjs/tools/PlanProjectionTools.d.ts +40 -40
  71. package/lib/cjs/tools/PlanProjectionTools.js +149 -149
  72. package/lib/cjs/tools/PlanProjectionTools.js.map +1 -1
  73. package/lib/cjs/tools/PlanarMaskTools.d.ts +182 -182
  74. package/lib/cjs/tools/PlanarMaskTools.d.ts.map +1 -1
  75. package/lib/cjs/tools/PlanarMaskTools.js +393 -390
  76. package/lib/cjs/tools/PlanarMaskTools.js.map +1 -1
  77. package/lib/cjs/tools/ProjectExtents.d.ts +41 -41
  78. package/lib/cjs/tools/ProjectExtents.js +110 -110
  79. package/lib/cjs/tools/ProjectExtents.js.map +1 -1
  80. package/lib/cjs/tools/RealityModelTools.d.ts +116 -116
  81. package/lib/cjs/tools/RealityModelTools.js +281 -281
  82. package/lib/cjs/tools/RealityModelTools.js.map +1 -1
  83. package/lib/cjs/tools/RealityTransitionTool.d.ts +25 -25
  84. package/lib/cjs/tools/RealityTransitionTool.js +116 -116
  85. package/lib/cjs/tools/RealityTransitionTool.js.map +1 -1
  86. package/lib/cjs/tools/RenderSystemTools.d.ts +38 -38
  87. package/lib/cjs/tools/RenderSystemTools.js +70 -70
  88. package/lib/cjs/tools/RenderSystemTools.js.map +1 -1
  89. package/lib/cjs/tools/RenderTargetTools.d.ts +100 -100
  90. package/lib/cjs/tools/RenderTargetTools.js +166 -166
  91. package/lib/cjs/tools/RenderTargetTools.js.map +1 -1
  92. package/lib/cjs/tools/ReportWebGLCompatibilityTool.d.ts +11 -11
  93. package/lib/cjs/tools/ReportWebGLCompatibilityTool.js +30 -30
  94. package/lib/cjs/tools/ReportWebGLCompatibilityTool.js.map +1 -1
  95. package/lib/cjs/tools/SavedViews.d.ts +46 -46
  96. package/lib/cjs/tools/SavedViews.js +136 -136
  97. package/lib/cjs/tools/SavedViews.js.map +1 -1
  98. package/lib/cjs/tools/ScheduleScriptTools.d.ts +37 -37
  99. package/lib/cjs/tools/ScheduleScriptTools.js +159 -159
  100. package/lib/cjs/tools/ScheduleScriptTools.js.map +1 -1
  101. package/lib/cjs/tools/SelectionTools.d.ts +28 -28
  102. package/lib/cjs/tools/SelectionTools.d.ts.map +1 -1
  103. package/lib/cjs/tools/SelectionTools.js +87 -87
  104. package/lib/cjs/tools/SelectionTools.js.map +1 -1
  105. package/lib/cjs/tools/SetGpuMemoryLimitTool.d.ts +15 -15
  106. package/lib/cjs/tools/SetGpuMemoryLimitTool.js +33 -33
  107. package/lib/cjs/tools/SetGpuMemoryLimitTool.js.map +1 -1
  108. package/lib/cjs/tools/SourceAspectIdTools.d.ts +40 -40
  109. package/lib/cjs/tools/SourceAspectIdTools.js +86 -86
  110. package/lib/cjs/tools/SourceAspectIdTools.js.map +1 -1
  111. package/lib/cjs/tools/TileRequestDecoration.d.ts +12 -12
  112. package/lib/cjs/tools/TileRequestDecoration.js +83 -83
  113. package/lib/cjs/tools/TileRequestDecoration.js.map +1 -1
  114. package/lib/cjs/tools/TileTreeBoundsDecoration.d.ts +11 -11
  115. package/lib/cjs/tools/TileTreeBoundsDecoration.js +74 -74
  116. package/lib/cjs/tools/TileTreeBoundsDecoration.js.map +1 -1
  117. package/lib/cjs/tools/ToolTipProvider.d.ts +15 -15
  118. package/lib/cjs/tools/ToolTipProvider.js +66 -66
  119. package/lib/cjs/tools/ToolTipProvider.js.map +1 -1
  120. package/lib/cjs/tools/ViewportTools.d.ts +218 -218
  121. package/lib/cjs/tools/ViewportTools.js +516 -516
  122. package/lib/cjs/tools/ViewportTools.js.map +1 -1
  123. package/lib/cjs/tools/parseArgs.d.ts +23 -23
  124. package/lib/cjs/tools/parseArgs.js +51 -51
  125. package/lib/cjs/tools/parseArgs.js.map +1 -1
  126. package/lib/cjs/tools/parseBoolean.d.ts +8 -8
  127. package/lib/cjs/tools/parseBoolean.js +26 -26
  128. package/lib/cjs/tools/parseBoolean.js.map +1 -1
  129. package/lib/cjs/tools/parseToggle.d.ts +8 -8
  130. package/lib/cjs/tools/parseToggle.js +25 -25
  131. package/lib/cjs/tools/parseToggle.js.map +1 -1
  132. package/lib/cjs/ui/Button.d.ts +29 -29
  133. package/lib/cjs/ui/Button.d.ts.map +1 -1
  134. package/lib/cjs/ui/Button.js +26 -26
  135. package/lib/cjs/ui/Button.js.map +1 -1
  136. package/lib/cjs/ui/CheckBox.d.ts +23 -23
  137. package/lib/cjs/ui/CheckBox.js +27 -27
  138. package/lib/cjs/ui/CheckBox.js.map +1 -1
  139. package/lib/cjs/ui/ColorInput.d.ts +27 -27
  140. package/lib/cjs/ui/ColorInput.d.ts.map +1 -1
  141. package/lib/cjs/ui/ColorInput.js +53 -53
  142. package/lib/cjs/ui/ColorInput.js.map +1 -1
  143. package/lib/cjs/ui/ComboBox.d.ts +28 -28
  144. package/lib/cjs/ui/ComboBox.js +42 -42
  145. package/lib/cjs/ui/ComboBox.js.map +1 -1
  146. package/lib/cjs/ui/DataList.d.ts +27 -27
  147. package/lib/cjs/ui/DataList.js +39 -39
  148. package/lib/cjs/ui/DataList.js.map +1 -1
  149. package/lib/cjs/ui/NestedMenu.d.ts +19 -19
  150. package/lib/cjs/ui/NestedMenu.d.ts.map +1 -1
  151. package/lib/cjs/ui/NestedMenu.js +46 -46
  152. package/lib/cjs/ui/NestedMenu.js.map +1 -1
  153. package/lib/cjs/ui/NumericInput.d.ts +34 -34
  154. package/lib/cjs/ui/NumericInput.d.ts.map +1 -1
  155. package/lib/cjs/ui/NumericInput.js +59 -59
  156. package/lib/cjs/ui/NumericInput.js.map +1 -1
  157. package/lib/cjs/ui/RadioBox.d.ts +28 -28
  158. package/lib/cjs/ui/RadioBox.js +76 -76
  159. package/lib/cjs/ui/RadioBox.js.map +1 -1
  160. package/lib/cjs/ui/Slider.d.ts +24 -24
  161. package/lib/cjs/ui/Slider.js +32 -32
  162. package/lib/cjs/ui/Slider.js.map +1 -1
  163. package/lib/cjs/ui/TextBox.d.ts +32 -32
  164. package/lib/cjs/ui/TextBox.js +56 -56
  165. package/lib/cjs/ui/TextBox.js.map +1 -1
  166. package/lib/cjs/widgets/DiagnosticsPanel.d.ts +37 -37
  167. package/lib/cjs/widgets/DiagnosticsPanel.js +81 -81
  168. package/lib/cjs/widgets/DiagnosticsPanel.js.map +1 -1
  169. package/lib/cjs/widgets/FpsTracker.d.ts +19 -19
  170. package/lib/cjs/widgets/FpsTracker.js +56 -56
  171. package/lib/cjs/widgets/FpsTracker.js.map +1 -1
  172. package/lib/cjs/widgets/GpuProfiler.d.ts +16 -16
  173. package/lib/cjs/widgets/GpuProfiler.js +192 -192
  174. package/lib/cjs/widgets/GpuProfiler.js.map +1 -1
  175. package/lib/cjs/widgets/KeyinField.d.ts +61 -61
  176. package/lib/cjs/widgets/KeyinField.js +187 -187
  177. package/lib/cjs/widgets/KeyinField.js.map +1 -1
  178. package/lib/cjs/widgets/MemoryTracker.d.ts +27 -27
  179. package/lib/cjs/widgets/MemoryTracker.js +243 -243
  180. package/lib/cjs/widgets/MemoryTracker.js.map +1 -1
  181. package/lib/cjs/widgets/RenderCommandBreakdown.d.ts +15 -15
  182. package/lib/cjs/widgets/RenderCommandBreakdown.js +68 -68
  183. package/lib/cjs/widgets/RenderCommandBreakdown.js.map +1 -1
  184. package/lib/cjs/widgets/TileMemoryBreakdown.d.ts +30 -30
  185. package/lib/cjs/widgets/TileMemoryBreakdown.js +204 -204
  186. package/lib/cjs/widgets/TileMemoryBreakdown.js.map +1 -1
  187. package/lib/cjs/widgets/TileStatisticsTracker.d.ts +21 -21
  188. package/lib/cjs/widgets/TileStatisticsTracker.js +142 -142
  189. package/lib/cjs/widgets/TileStatisticsTracker.js.map +1 -1
  190. package/lib/cjs/widgets/ToolSettingsTracker.d.ts +9 -9
  191. package/lib/cjs/widgets/ToolSettingsTracker.d.ts.map +1 -1
  192. package/lib/cjs/widgets/ToolSettingsTracker.js +211 -181
  193. package/lib/cjs/widgets/ToolSettingsTracker.js.map +1 -1
  194. package/lib/esm/ClipboardUtilities.d.ts +8 -8
  195. package/lib/esm/ClipboardUtilities.js +22 -22
  196. package/lib/esm/ClipboardUtilities.js.map +1 -1
  197. package/lib/esm/FrontEndDevTools.d.ts +19 -19
  198. package/lib/esm/FrontEndDevTools.js +215 -215
  199. package/lib/esm/FrontEndDevTools.js.map +1 -1
  200. package/lib/esm/effects/Convolution.d.ts +68 -68
  201. package/lib/esm/effects/Convolution.js +155 -155
  202. package/lib/esm/effects/Convolution.js.map +1 -1
  203. package/lib/esm/effects/EffectTools.d.ts +33 -33
  204. package/lib/esm/effects/EffectTools.js +62 -62
  205. package/lib/esm/effects/EffectTools.js.map +1 -1
  206. package/lib/esm/effects/Explosion.d.ts +12 -12
  207. package/lib/esm/effects/Explosion.js +164 -164
  208. package/lib/esm/effects/Explosion.js.map +1 -1
  209. package/lib/esm/effects/FlipImage.d.ts +30 -30
  210. package/lib/esm/effects/FlipImage.js +94 -94
  211. package/lib/esm/effects/FlipImage.js.map +1 -1
  212. package/lib/esm/effects/LensDistortion.d.ts +34 -34
  213. package/lib/esm/effects/LensDistortion.js +104 -104
  214. package/lib/esm/effects/LensDistortion.js.map +1 -1
  215. package/lib/esm/effects/Random.d.ts +24 -24
  216. package/lib/esm/effects/Random.js +41 -41
  217. package/lib/esm/effects/Random.js.map +1 -1
  218. package/lib/esm/effects/Saturation.d.ts +30 -30
  219. package/lib/esm/effects/Saturation.js +80 -80
  220. package/lib/esm/effects/Saturation.js.map +1 -1
  221. package/lib/esm/effects/Snow.d.ts +76 -76
  222. package/lib/esm/effects/Snow.js +182 -182
  223. package/lib/esm/effects/Snow.js.map +1 -1
  224. package/lib/esm/effects/Vignette.d.ts +39 -39
  225. package/lib/esm/effects/Vignette.js +103 -103
  226. package/lib/esm/effects/Vignette.js.map +1 -1
  227. package/lib/esm/frontend-devtools.d.ts +82 -82
  228. package/lib/esm/frontend-devtools.js +86 -86
  229. package/lib/esm/frontend-devtools.js.map +1 -1
  230. package/lib/esm/tools/AnimationIntervalTool.d.ts +15 -15
  231. package/lib/esm/tools/AnimationIntervalTool.js +26 -26
  232. package/lib/esm/tools/AnimationIntervalTool.js.map +1 -1
  233. package/lib/esm/tools/ChangeUnitsTool.d.ts +15 -15
  234. package/lib/esm/tools/ChangeUnitsTool.js +37 -37
  235. package/lib/esm/tools/ChangeUnitsTool.js.map +1 -1
  236. package/lib/esm/tools/ClipTools.d.ts +67 -67
  237. package/lib/esm/tools/ClipTools.js +158 -158
  238. package/lib/esm/tools/ClipTools.js.map +1 -1
  239. package/lib/esm/tools/DisplayStyleTools.d.ts +145 -145
  240. package/lib/esm/tools/DisplayStyleTools.js +356 -356
  241. package/lib/esm/tools/DisplayStyleTools.js.map +1 -1
  242. package/lib/esm/tools/EmphasizeElementsTool.d.ts +60 -60
  243. package/lib/esm/tools/EmphasizeElementsTool.js +145 -145
  244. package/lib/esm/tools/EmphasizeElementsTool.js.map +1 -1
  245. package/lib/esm/tools/FrustumDecoration.d.ts +57 -57
  246. package/lib/esm/tools/FrustumDecoration.d.ts.map +1 -1
  247. package/lib/esm/tools/FrustumDecoration.js +367 -364
  248. package/lib/esm/tools/FrustumDecoration.js.map +1 -1
  249. package/lib/esm/tools/InspectElementTool.d.ts +42 -42
  250. package/lib/esm/tools/InspectElementTool.js +194 -194
  251. package/lib/esm/tools/InspectElementTool.js.map +1 -1
  252. package/lib/esm/tools/MapLayerTool.d.ts +257 -257
  253. package/lib/esm/tools/MapLayerTool.js +478 -478
  254. package/lib/esm/tools/MapLayerTool.js.map +1 -1
  255. package/lib/esm/tools/MeasureTileLoadTime.d.ts +12 -12
  256. package/lib/esm/tools/MeasureTileLoadTime.d.ts.map +1 -1
  257. package/lib/esm/tools/MeasureTileLoadTime.js +59 -56
  258. package/lib/esm/tools/MeasureTileLoadTime.js.map +1 -1
  259. package/lib/esm/tools/ModelAppearanceTools.d.ts +86 -86
  260. package/lib/esm/tools/ModelAppearanceTools.js +172 -172
  261. package/lib/esm/tools/ModelAppearanceTools.js.map +1 -1
  262. package/lib/esm/tools/PlanProjectionTools.d.ts +40 -40
  263. package/lib/esm/tools/PlanProjectionTools.js +143 -143
  264. package/lib/esm/tools/PlanProjectionTools.js.map +1 -1
  265. package/lib/esm/tools/PlanarMaskTools.d.ts +182 -182
  266. package/lib/esm/tools/PlanarMaskTools.d.ts.map +1 -1
  267. package/lib/esm/tools/PlanarMaskTools.js +377 -374
  268. package/lib/esm/tools/PlanarMaskTools.js.map +1 -1
  269. package/lib/esm/tools/ProjectExtents.d.ts +41 -41
  270. package/lib/esm/tools/ProjectExtents.js +104 -104
  271. package/lib/esm/tools/ProjectExtents.js.map +1 -1
  272. package/lib/esm/tools/RealityModelTools.d.ts +116 -116
  273. package/lib/esm/tools/RealityModelTools.js +268 -268
  274. package/lib/esm/tools/RealityModelTools.js.map +1 -1
  275. package/lib/esm/tools/RealityTransitionTool.d.ts +25 -25
  276. package/lib/esm/tools/RealityTransitionTool.js +112 -112
  277. package/lib/esm/tools/RealityTransitionTool.js.map +1 -1
  278. package/lib/esm/tools/RenderSystemTools.d.ts +38 -38
  279. package/lib/esm/tools/RenderSystemTools.js +63 -63
  280. package/lib/esm/tools/RenderSystemTools.js.map +1 -1
  281. package/lib/esm/tools/RenderTargetTools.d.ts +100 -100
  282. package/lib/esm/tools/RenderTargetTools.js +152 -152
  283. package/lib/esm/tools/RenderTargetTools.js.map +1 -1
  284. package/lib/esm/tools/ReportWebGLCompatibilityTool.d.ts +11 -11
  285. package/lib/esm/tools/ReportWebGLCompatibilityTool.js +26 -26
  286. package/lib/esm/tools/ReportWebGLCompatibilityTool.js.map +1 -1
  287. package/lib/esm/tools/SavedViews.d.ts +46 -46
  288. package/lib/esm/tools/SavedViews.js +128 -128
  289. package/lib/esm/tools/SavedViews.js.map +1 -1
  290. package/lib/esm/tools/ScheduleScriptTools.d.ts +37 -37
  291. package/lib/esm/tools/ScheduleScriptTools.js +153 -153
  292. package/lib/esm/tools/ScheduleScriptTools.js.map +1 -1
  293. package/lib/esm/tools/SelectionTools.d.ts +28 -28
  294. package/lib/esm/tools/SelectionTools.d.ts.map +1 -1
  295. package/lib/esm/tools/SelectionTools.js +82 -82
  296. package/lib/esm/tools/SelectionTools.js.map +1 -1
  297. package/lib/esm/tools/SetGpuMemoryLimitTool.d.ts +15 -15
  298. package/lib/esm/tools/SetGpuMemoryLimitTool.js +29 -29
  299. package/lib/esm/tools/SetGpuMemoryLimitTool.js.map +1 -1
  300. package/lib/esm/tools/SourceAspectIdTools.d.ts +40 -40
  301. package/lib/esm/tools/SourceAspectIdTools.js +80 -80
  302. package/lib/esm/tools/SourceAspectIdTools.js.map +1 -1
  303. package/lib/esm/tools/TileRequestDecoration.d.ts +12 -12
  304. package/lib/esm/tools/TileRequestDecoration.js +79 -79
  305. package/lib/esm/tools/TileRequestDecoration.js.map +1 -1
  306. package/lib/esm/tools/TileTreeBoundsDecoration.d.ts +11 -11
  307. package/lib/esm/tools/TileTreeBoundsDecoration.js +70 -70
  308. package/lib/esm/tools/TileTreeBoundsDecoration.js.map +1 -1
  309. package/lib/esm/tools/ToolTipProvider.d.ts +15 -15
  310. package/lib/esm/tools/ToolTipProvider.js +62 -62
  311. package/lib/esm/tools/ToolTipProvider.js.map +1 -1
  312. package/lib/esm/tools/ViewportTools.d.ts +218 -218
  313. package/lib/esm/tools/ViewportTools.js +492 -492
  314. package/lib/esm/tools/ViewportTools.js.map +1 -1
  315. package/lib/esm/tools/parseArgs.d.ts +23 -23
  316. package/lib/esm/tools/parseArgs.js +47 -47
  317. package/lib/esm/tools/parseArgs.js.map +1 -1
  318. package/lib/esm/tools/parseBoolean.d.ts +8 -8
  319. package/lib/esm/tools/parseBoolean.js +22 -22
  320. package/lib/esm/tools/parseBoolean.js.map +1 -1
  321. package/lib/esm/tools/parseToggle.d.ts +8 -8
  322. package/lib/esm/tools/parseToggle.js +21 -21
  323. package/lib/esm/tools/parseToggle.js.map +1 -1
  324. package/lib/esm/ui/Button.d.ts +29 -29
  325. package/lib/esm/ui/Button.d.ts.map +1 -1
  326. package/lib/esm/ui/Button.js +22 -22
  327. package/lib/esm/ui/Button.js.map +1 -1
  328. package/lib/esm/ui/CheckBox.d.ts +23 -23
  329. package/lib/esm/ui/CheckBox.js +23 -23
  330. package/lib/esm/ui/CheckBox.js.map +1 -1
  331. package/lib/esm/ui/ColorInput.d.ts +27 -27
  332. package/lib/esm/ui/ColorInput.d.ts.map +1 -1
  333. package/lib/esm/ui/ColorInput.js +48 -48
  334. package/lib/esm/ui/ColorInput.js.map +1 -1
  335. package/lib/esm/ui/ComboBox.d.ts +28 -28
  336. package/lib/esm/ui/ComboBox.js +38 -38
  337. package/lib/esm/ui/ComboBox.js.map +1 -1
  338. package/lib/esm/ui/DataList.d.ts +27 -27
  339. package/lib/esm/ui/DataList.js +34 -34
  340. package/lib/esm/ui/DataList.js.map +1 -1
  341. package/lib/esm/ui/NestedMenu.d.ts +19 -19
  342. package/lib/esm/ui/NestedMenu.d.ts.map +1 -1
  343. package/lib/esm/ui/NestedMenu.js +42 -42
  344. package/lib/esm/ui/NestedMenu.js.map +1 -1
  345. package/lib/esm/ui/NumericInput.d.ts +34 -34
  346. package/lib/esm/ui/NumericInput.d.ts.map +1 -1
  347. package/lib/esm/ui/NumericInput.js +54 -54
  348. package/lib/esm/ui/NumericInput.js.map +1 -1
  349. package/lib/esm/ui/RadioBox.d.ts +28 -28
  350. package/lib/esm/ui/RadioBox.js +72 -72
  351. package/lib/esm/ui/RadioBox.js.map +1 -1
  352. package/lib/esm/ui/Slider.d.ts +24 -24
  353. package/lib/esm/ui/Slider.js +28 -28
  354. package/lib/esm/ui/Slider.js.map +1 -1
  355. package/lib/esm/ui/TextBox.d.ts +32 -32
  356. package/lib/esm/ui/TextBox.js +52 -52
  357. package/lib/esm/ui/TextBox.js.map +1 -1
  358. package/lib/esm/widgets/DiagnosticsPanel.d.ts +37 -37
  359. package/lib/esm/widgets/DiagnosticsPanel.js +77 -77
  360. package/lib/esm/widgets/DiagnosticsPanel.js.map +1 -1
  361. package/lib/esm/widgets/FpsTracker.d.ts +19 -19
  362. package/lib/esm/widgets/FpsTracker.js +52 -52
  363. package/lib/esm/widgets/FpsTracker.js.map +1 -1
  364. package/lib/esm/widgets/GpuProfiler.d.ts +16 -16
  365. package/lib/esm/widgets/GpuProfiler.js +188 -188
  366. package/lib/esm/widgets/GpuProfiler.js.map +1 -1
  367. package/lib/esm/widgets/KeyinField.d.ts +61 -61
  368. package/lib/esm/widgets/KeyinField.js +183 -183
  369. package/lib/esm/widgets/KeyinField.js.map +1 -1
  370. package/lib/esm/widgets/MemoryTracker.d.ts +27 -27
  371. package/lib/esm/widgets/MemoryTracker.js +238 -238
  372. package/lib/esm/widgets/MemoryTracker.js.map +1 -1
  373. package/lib/esm/widgets/RenderCommandBreakdown.d.ts +15 -15
  374. package/lib/esm/widgets/RenderCommandBreakdown.js +64 -64
  375. package/lib/esm/widgets/RenderCommandBreakdown.js.map +1 -1
  376. package/lib/esm/widgets/TileMemoryBreakdown.d.ts +30 -30
  377. package/lib/esm/widgets/TileMemoryBreakdown.js +200 -200
  378. package/lib/esm/widgets/TileMemoryBreakdown.js.map +1 -1
  379. package/lib/esm/widgets/TileStatisticsTracker.d.ts +21 -21
  380. package/lib/esm/widgets/TileStatisticsTracker.js +138 -138
  381. package/lib/esm/widgets/TileStatisticsTracker.js.map +1 -1
  382. package/lib/esm/widgets/ToolSettingsTracker.d.ts +9 -9
  383. package/lib/esm/widgets/ToolSettingsTracker.d.ts.map +1 -1
  384. package/lib/esm/widgets/ToolSettingsTracker.js +207 -177
  385. package/lib/esm/widgets/ToolSettingsTracker.js.map +1 -1
  386. package/lib/public/locales/en/FrontendDevTools.json +479 -479
  387. package/package.json +8 -8
@@ -1 +1 @@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,SAAS,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,YAAY,CAAC,iBAAiB,YAAY,sBAAQ;YACvG,OAAO,KAAK,CAAC;QAEf,EAAE,CAAC,YAAY,CAAC,iBAAiB,GAAG,EAAE,CAAC,YAAY,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QACzF,EAAE,CAAC,oBAAoB,EAAE,CAAC;QAE1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACa,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,MAAM,OAAO,GAAG,IAAA,2BAAY,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAEtC,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;;AA1BH,sDA2BC;AA1BwB,4BAAM,GAAG,0BAA0B,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 { Id64String } from \"@itwin/core-bentley\";\r\nimport { BaseMapLayerSettings, ColorDef, ModelMapLayerSettings } from \"@itwin/core-common\";\r\nimport { IModelApp, MapLayerSource, MapLayerSources, MapLayerSourceStatus, NotifyMessageDetails, OutputMessagePriority, Tool, WmsUtilities } from \"@itwin/core-frontend\";\r\nimport { parseBoolean } from \"./parseBoolean\";\r\nimport { parseToggle } from \"./parseToggle\";\r\n\r\n/** Base class for attaching map layer tool. */\r\nclass AttachMapLayerBaseTool extends Tool {\r\n constructor(protected _isBackground = true, protected _isBase = false) {\r\n super();\r\n }\r\n\r\n protected doAttach(source?: MapLayerSource) {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (vp === undefined || source === undefined)\r\n return;\r\n\r\n source.validateSource().then((validation) => {\r\n if (validation.status === MapLayerSourceStatus.Valid || validation.status === MapLayerSourceStatus.RequireAuth) {\r\n if (this._isBase) {\r\n vp.displayStyle.backgroundMapBase = BaseMapLayerSettings.fromJSON({ ...source, subLayers: validation.subLayers });\r\n vp.invalidateRenderPlan();\r\n } else {\r\n const settings = source.toLayerSettings(validation.subLayers);\r\n if (settings) {\r\n vp.displayStyle.attachMapLayer({settings, isOverlay: !this._isBackground});\r\n }\r\n }\r\n\r\n if (validation.status === MapLayerSourceStatus.Valid) {\r\n vp.invalidateRenderPlan();\r\n const msg = IModelApp.localization.getLocalizedString(\"FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttached\", { sourceName: source.name, sourceUrl: source.url });\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, msg));\r\n } else if (validation.status === MapLayerSourceStatus.RequireAuth) {\r\n const msg = IModelApp.localization.getLocalizedString(\"FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttachedRequiresAuth\", { sourceName: source.name });\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Warning, msg));\r\n }\r\n\r\n } else {\r\n const msg = IModelApp.localization.getLocalizedString(\"FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerValidationFailed\", { sourceUrl: source.url });\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Error, msg));\r\n }\r\n }).catch((error) => {\r\n const msg = IModelApp.localization.getLocalizedString(\"FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttachError\", { error, sourceUrl: source.url });\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Error, msg));\r\n });\r\n }\r\n}\r\n\r\n/** Attach a map layer from URL base class. A layer is attached for each unique model in the selection\r\n * @beta\r\n */\r\nexport class AttachModelMapLayerTool extends Tool {\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 1; }\r\n public static override toolId = \"AttachModelMapLayerTool\";\r\n constructor(protected _formatId: string) { super(); }\r\n\r\n public override async run(nameIn?: string): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (!vp)\r\n return false;\r\n\r\n const iModel = vp.iModel;\r\n const elements = await iModel.elements.getProps(iModel.selectionSet.elements);\r\n const modelIds = new Set<Id64String>();\r\n\r\n for (const element of elements)\r\n modelIds.add(element.model);\r\n\r\n for (const modelId of modelIds) {\r\n const modelProps = await iModel.models.getProps(modelId);\r\n const modelName = modelProps[0].name ? modelProps[0].name : modelId;\r\n const name = nameIn ? (modelIds.size > 1 ? `${nameIn}: ${modelName}` : nameIn) : modelName;\r\n const settings = ModelMapLayerSettings.fromJSON({ name, modelId });\r\n vp.displayStyle.attachMapLayer({settings, isOverlay:false});\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[0]);\r\n }\r\n public async onRestartTool() {\r\n }\r\n}\r\n/** Attach a map layer from URL base class. */\r\nclass AttachMapLayerByURLBaseTool extends AttachMapLayerBaseTool {\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 4; }\r\n constructor(protected _formatId: string) { super(); }\r\n\r\n public override async run(url: string, name?: string, userName?: string, password?: string): Promise<boolean> {\r\n const source = MapLayerSource.fromJSON({ url, name: (name ? name : url), formatId: this._formatId });\r\n if (source){\r\n source.userName = userName;\r\n source.password = password;\r\n }\r\n\r\n this.doAttach(source);\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n return this.run(args[0], args[1], args[2], args[3]);\r\n }\r\n}\r\n\r\n/** This tool attaches a WMS map layer from a given URL.\r\n * @beta\r\n */\r\nexport class AttachWmsMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {\r\n public static override toolId = \"AttachWmsMapLayerTool\";\r\n constructor() { super(\"WMS\"); }\r\n /** This method runs the tool, attaching a WMS map layer from a given URL.\r\n * @param args contains url, name, userName, password in array order\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n return this.run(WmsUtilities.getBaseUrl(args[0]), args[1], args[2], args[3]);\r\n }\r\n}\r\n\r\n/** This tool attaches a WMTS map layer from a given URL.\r\n * @beta\r\n */\r\nexport class AttachWmtsMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {\r\n public static override toolId = \"AttachWmtsMapLayerTool\";\r\n constructor() { super(\"WMTS\"); }\r\n /** This method runs the tool, attaching a WMTS map layer from a given URL.\r\n * @param args contains url, name, userName, password in array order\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n return this.run(WmsUtilities.getBaseUrl(args[0]), args[1], args[2], args[3]);\r\n }\r\n}\r\n\r\n/** This tool attaches an ArcGIS map layer from a given URL.\r\n * @beta\r\n */\r\nexport class AttachArcGISMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {\r\n public static override toolId = \"AttachArcGISMapLayerTool\";\r\n constructor() { super(\"ArcGIS\"); }\r\n}\r\n\r\n/** This tool attaches a map layer from a given tile URL.\r\n * @beta\r\n */\r\nexport class AttachTileURLMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {\r\n public static override toolId = \"AttachTileURLMapLayerTool\";\r\n constructor() { super(\"TileURL\"); }\r\n}\r\n\r\n/** This tool add a Map Layer from a specified name (look up in MapLayerSources.json).\r\n * @beta\r\n */\r\nexport class AttachMapLayerTool extends AttachMapLayerBaseTool {\r\n public static override toolId = \"AttachMapLayerTool\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n /** This method runs the tool, adding a map layer from a specified name in MayLayerSources.json.\r\n * @param name the name of the map layer to add\r\n */\r\n public override async run(name: string): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (vp === undefined)\r\n return false;\r\n\r\n MapLayerSources.create().then((sources) => {\r\n if (sources !== undefined) {\r\n const source = sources.findByName(name, this._isBase);\r\n if (source !== undefined)\r\n this.doAttach(source);\r\n }\r\n }).catch((_err) => { });\r\n\r\n return true;\r\n }\r\n\r\n /** Executes this tool's run method with args[0] containing `name`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n return this.run(args[0]);\r\n }\r\n}\r\n/** This tool attaches a Overlay map layer.\r\n * @beta\r\n */\r\nexport class AttachMapOverlayTool extends AttachMapLayerTool {\r\n public static override toolId = \"AttachMapOverlayTool\";\r\n constructor() {\r\n super();\r\n this._isBackground = false;\r\n }\r\n}\r\n\r\n/** Sets map layer base tool.\r\n * @beta\r\n */\r\nexport class SetMapBaseTool extends AttachMapLayerTool {\r\n public static override toolId = \"SetMapBaseTool\";\r\n constructor() {\r\n super();\r\n this._isBase = true;\r\n }\r\n}\r\n\r\n/** Detach Map Layers Tool.\r\n * @beta\r\n */\r\nexport class DetachMapLayersTool extends Tool {\r\n public static override toolId = \"DetachMapLayersTool\";\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 0; }\r\n public override async parseAndRun(..._args: string[]): Promise<boolean> {\r\n return this.run();\r\n }\r\n\r\n public override async run(): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (vp === undefined)\r\n return false;\r\n vp.displayStyle.detachMapLayerByIndex(-1, true);\r\n vp.displayStyle.detachMapLayerByIndex(-1, false);\r\n vp.invalidateRenderPlan();\r\n return true;\r\n }\r\n}\r\n\r\nfunction parseLayerIndex(args: string[]) {\r\n const layerIndex = args.length > 1 ? parseInt(args[1], 10) : 0;\r\n return isNaN(layerIndex) ? 0 : layerIndex;\r\n}\r\n\r\n/** This tool sets the visibility of the map layer.\r\n * @beta\r\n */\r\nexport class MapLayerVisibilityTool extends Tool {\r\n public static override toolId = \"SetMapLayerVisibility\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 2; }\r\n\r\n /** This method runs the tool, setting the visibility of a map layer.\r\n * @param layerIndex the index of the layer to change\r\n * @param visible a boolean that should be true if the layer should be visible\r\n */\r\n public override async run(layerIndex: number, enable?: boolean): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView())\r\n return false;\r\n\r\n const mapLayer = vp.displayStyle.mapLayerAtIndex(layerIndex, false);\r\n if (undefined === mapLayer)\r\n return false;\r\n\r\n const visible = (enable === undefined) ? !mapLayer.visible : enable;\r\n\r\n vp.displayStyle.changeMapLayerProps({ visible }, layerIndex, false);\r\n vp.invalidateRenderPlan();\r\n\r\n return true;\r\n }\r\n\r\n /** Executes this tool's run method with args[0] containing `enable` and args[1] containing `layerIndex`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const enable = parseToggle(args[0]);\r\n const layerIndex = parseLayerIndex(args);\r\n if (typeof enable !== \"string\")\r\n await this.run(layerIndex, enable);\r\n\r\n return true;\r\n }\r\n}\r\n/** This tool reorders map layers.\r\n * @beta\r\n */\r\nexport class ReorderMapLayers extends Tool {\r\n public static override toolId = \"ReorderMapLayers\";\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 2; }\r\n /** This method runs the tool, reordering the map layers.\r\n * @param from a numeric value specifying the layer index that is being moved\r\n * @param from a numeric value specifying the layer index to move that layer to\r\n */\r\n public override async run(from: number, to: number): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView())\r\n return false;\r\n\r\n vp.displayStyle.moveMapLayerToIndex(isNaN(from) ? 0 : from, isNaN(to) ? vp.displayStyle.backgroundMapLayers.length : to, false);\r\n vp.invalidateRenderPlan();\r\n return true;\r\n }\r\n /** Executes this tool's run method with args[0] containing `from` and args[1] containing `to`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const from = parseInt(args[0], 10);\r\n const to = parseInt(args[1], 10);\r\n await this.run(from, to);\r\n return true;\r\n }\r\n\r\n}\r\n\r\n/** This tool sets the transparency of a map layer.\r\n * @beta\r\n */\r\nexport class MapLayerTransparencyTool extends Tool {\r\n public static override toolId = \"SetMapLayerTransparency\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 2; }\r\n /** This method runs the tool, setting the transparency of a map layer.\r\n * @param layerIndex the index of the layer to change\r\n * @param transparency a numeric value in the range 0.0 (fully opaque) to 1.0 (fully transparent)\r\n */\r\n public override async run(layerIndex: number, transparency: number): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView())\r\n return false;\r\n\r\n vp.displayStyle.changeMapLayerProps({ transparency }, layerIndex, false);\r\n vp.invalidateRenderPlan();\r\n\r\n return true;\r\n }\r\n /** Executes this tool's run method with args[0] containing `transparency` and args[1] containing `layerIndex`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const transparency = parseFloat(args[0]);\r\n const layerIndex = parseLayerIndex(args);\r\n if (transparency >= 0 && transparency <= 1)\r\n await this.run(layerIndex, transparency);\r\n\r\n return true;\r\n }\r\n}\r\n/** This tool sets the visibility of the map sublayer.\r\n * @beta\r\n */\r\nexport class MapLayerSubLayerVisibilityTool extends Tool {\r\n public static override toolId = \"SetMapSubLayerVisibility\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 2; }\r\n\r\n /** This method runs the tool, setting the visibility of a map sublayer.\r\n * @param layerIndex the index of the layer to change\r\n * @param visible a boolean that should be true if the sublayer should be visible\r\n */\r\n public override async run(layerIndex: number, visible: boolean): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView())\r\n return false;\r\n\r\n vp.displayStyle.changeMapSubLayerProps({ visible }, -1, layerIndex, false);\r\n vp.invalidateRenderPlan();\r\n\r\n return true;\r\n }\r\n\r\n /** Executes this tool's run method with args[0] containing `transparency` and args[1] containing `layerIndex`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const on = args[0] !== \"off\";\r\n const layerIndex = parseLayerIndex(args);\r\n await this.run(layerIndex, on);\r\n\r\n return true;\r\n }\r\n}\r\n\r\n/** This tool changes the viewport so it is zoomed to the range of a map layer.\r\n * @beta\r\n */\r\nexport class MapLayerZoomTool extends Tool {\r\n public static override toolId = \"MapLayerZoom\";\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n /** This method runs the tool, changing the viewport so it is zoomed to the range of a map layer.\r\n * @param layerIndex the index of the layer whose range to zoom to\r\n */\r\n public override async run(layerIndex: number): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView())\r\n return false;\r\n\r\n vp.displayStyle.viewMapLayerRange(layerIndex, false, vp).then(() => { }).catch(() => { });\r\n\r\n return true;\r\n }\r\n\r\n /** Executes this tool's run method with args[0] containing `layerIndex`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const layerIndex = parseLayerIndex(args);\r\n await this.run(layerIndex);\r\n\r\n return true;\r\n }\r\n}\r\n\r\n/** This tool toggles whether to apply terrain heights to the map.\r\n * @beta\r\n */\r\nexport class ToggleTerrainTool extends Tool {\r\n public static override toolId = \"ToggleTerrain\";\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n /** This method runs the tool, changing whether to apply terrain heights to the map.\r\n * @param enable whether or not to enable terrain heights on the map\r\n */\r\n public override async run(enable?: boolean): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView())\r\n return false;\r\n\r\n const applyTerrain = (enable === undefined) ? !vp.displayStyle.backgroundMapSettings.applyTerrain : enable;\r\n vp.displayStyle.changeBackgroundMapProps({ applyTerrain });\r\n vp.invalidateRenderPlan();\r\n\r\n return true;\r\n }\r\n\r\n /** Executes this tool's run method with args[0] containing `enable`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const enable = parseToggle(args[0]);\r\n if (typeof enable !== \"string\")\r\n await this.run(enable);\r\n\r\n return true;\r\n }\r\n}\r\n\r\n/** This tool changes the color of the base map.\r\n * @beta\r\n */\r\nexport class MapBaseColorTool extends Tool {\r\n public static override toolId = \"SetMapBaseColorTool\";\r\n public static override get minArgs() { return 3; }\r\n public static override get maxArgs() { return 3; }\r\n\r\n /** This method runs the tool, changing the color of the base map.\r\n * @param color the color for the base map\r\n */\r\n public override async run(color: ColorDef) {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView())\r\n return false;\r\n\r\n const curTransparency = vp.displayStyle.backgroundMapBase instanceof ColorDef ? vp.displayStyle.backgroundMapBase.getTransparency() : 0;\r\n vp.displayStyle.backgroundMapBase = color.withTransparency(curTransparency);\r\n vp.invalidateRenderPlan();\r\n\r\n return true;\r\n }\r\n\r\n /** Executes this tool's run method with args[0] containing a 0 to 255 red component, args[1] containing a 0 to 255 green component, and args[2] containing a 0 to 255 blue component.\r\n * These rgb values will be used to construct the `color` parameter passed to this tool's run method.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const red = parseFloat(args[0]), green = parseFloat(args[1]), blue = parseFloat(args[2]);\r\n\r\n return (isNaN(red) || red < 0 || red > 255 || isNaN(green) || green < 0 || green > 255 || isNaN(blue) || blue < 0 || blue > 255) ? false : this.run(ColorDef.from(red, green, blue));\r\n }\r\n}\r\n/** This tool changes the transparency of the base map.\r\n * @beta\r\n */\r\nexport class MapBaseTransparencyTool extends Tool {\r\n public static override toolId = \"SetMapBaseTransparencyTool\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n /** This method runs the tool, changing the transparency of the base map.\r\n * @param transparency a numeric value in range 0.0 to 1.0 whether 0.0 means fully opaque and 1.0 means fully transparent\r\n */\r\n public override async run(transparency: number) {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView())\r\n return false;\r\n\r\n vp.displayStyle.changeBaseMapTransparency(transparency);\r\n vp.invalidateRenderPlan();\r\n\r\n return true;\r\n }\r\n\r\n /** Executes this tool's run method with args[0] containing `transparency`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const transparency = parseFloat(args[0]);\r\n\r\n return (isNaN(transparency) || transparency < 0 || transparency > 1) ? false : this.run(transparency);\r\n }\r\n}\r\n\r\n/** This tool changes the visibility of the base map.\r\n * @beta\r\n */\r\nexport class MapBaseVisibilityTool extends Tool {\r\n public static override toolId = \"SetMapBaseVisibilityTool\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n /** This method runs the tool, changing the visibility of the base map.\r\n * @param visible a boolean which specifies whether or not to make the base map visible\r\n */\r\n public override async run(visible: boolean) {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined === vp || !vp.view.isSpatialView() || vp.displayStyle.backgroundMapBase instanceof ColorDef)\r\n return false;\r\n\r\n vp.displayStyle.backgroundMapBase = vp.displayStyle.backgroundMapBase.clone({ visible });\r\n vp.invalidateRenderPlan();\r\n\r\n return true;\r\n }\r\n\r\n /** Executes this tool's run method with args[0] containing `visible`.\r\n * @see [[run]]\r\n */\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const visible = parseBoolean(args[0]);\r\n\r\n return (visible !== undefined ? this.run(visible) : false);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"MapLayerTool.js","sourceRoot":"","sources":["../../../src/tools/MapLayerTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAO/F,oDAA2F;AAC3F,wDAAyK;AACzK,iDAA8C;AAC9C,+CAA4C;AAE5C,+CAA+C;AAC/C,MAAM,sBAAuB,SAAQ,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CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QACzF,EAAE,CAAC,oBAAoB,EAAE,CAAC;QAE1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACa,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,MAAM,OAAO,GAAG,IAAA,2BAAY,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAEtC,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;;AA1BH,sDA2BC;AA1BwB,4BAAM,GAAG,0BAA0B,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module Tools\n */\n\nimport { Id64String } from \"@itwin/core-bentley\";\nimport { BaseMapLayerSettings, ColorDef, ModelMapLayerSettings } from \"@itwin/core-common\";\nimport { IModelApp, MapLayerSource, MapLayerSources, MapLayerSourceStatus, NotifyMessageDetails, OutputMessagePriority, Tool, WmsUtilities } from \"@itwin/core-frontend\";\nimport { parseBoolean } from \"./parseBoolean\";\nimport { parseToggle } from \"./parseToggle\";\n\n/** Base class for attaching map layer tool. */\nclass AttachMapLayerBaseTool extends Tool {\n constructor(protected _isBackground = true, protected _isBase = false) {\n super();\n }\n\n protected doAttach(source?: MapLayerSource) {\n const vp = IModelApp.viewManager.selectedView;\n if (vp === undefined || source === undefined)\n return;\n\n source.validateSource().then((validation) => {\n if (validation.status === MapLayerSourceStatus.Valid || validation.status === MapLayerSourceStatus.RequireAuth) {\n if (this._isBase) {\n vp.displayStyle.backgroundMapBase = BaseMapLayerSettings.fromJSON({ ...source, subLayers: validation.subLayers });\n vp.invalidateRenderPlan();\n } else {\n const settings = source.toLayerSettings(validation.subLayers);\n if (settings) {\n vp.displayStyle.attachMapLayer({settings, isOverlay: !this._isBackground});\n }\n }\n\n if (validation.status === MapLayerSourceStatus.Valid) {\n vp.invalidateRenderPlan();\n const msg = IModelApp.localization.getLocalizedString(\"FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttached\", { sourceName: source.name, sourceUrl: source.url });\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, msg));\n } else if (validation.status === MapLayerSourceStatus.RequireAuth) {\n const msg = IModelApp.localization.getLocalizedString(\"FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttachedRequiresAuth\", { sourceName: source.name });\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Warning, msg));\n }\n\n } else {\n const msg = IModelApp.localization.getLocalizedString(\"FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerValidationFailed\", { sourceUrl: source.url });\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Error, msg));\n }\n }).catch((error) => {\n const msg = IModelApp.localization.getLocalizedString(\"FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttachError\", { error, sourceUrl: source.url });\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Error, msg));\n });\n }\n}\n\n/** Attach a map layer from URL base class. A layer is attached for each unique model in the selection\n * @beta\n */\nexport class AttachModelMapLayerTool extends Tool {\n public static override get minArgs() { return 0; }\n public static override get maxArgs() { return 1; }\n public static override toolId = \"AttachModelMapLayerTool\";\n constructor(protected _formatId: string) { super(); }\n\n public override async run(nameIn?: string): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (!vp)\n return false;\n\n const iModel = vp.iModel;\n const elements = await iModel.elements.getProps(iModel.selectionSet.elements);\n const modelIds = new Set<Id64String>();\n\n for (const element of elements)\n modelIds.add(element.model);\n\n for (const modelId of modelIds) {\n const modelProps = await iModel.models.getProps(modelId);\n const modelName = modelProps[0].name ? modelProps[0].name : modelId;\n const name = nameIn ? (modelIds.size > 1 ? `${nameIn}: ${modelName}` : nameIn) : modelName;\n const settings = ModelMapLayerSettings.fromJSON({ name, modelId });\n vp.displayStyle.attachMapLayer({settings, isOverlay:false});\n }\n return true;\n }\n\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(args[0]);\n }\n public async onRestartTool() {\n }\n}\n/** Attach a map layer from URL base class. */\nclass AttachMapLayerByURLBaseTool extends AttachMapLayerBaseTool {\n public static override get minArgs() { return 1; }\n public static override get maxArgs() { return 4; }\n constructor(protected _formatId: string) { super(); }\n\n public override async run(url: string, name?: string, userName?: string, password?: string): Promise<boolean> {\n const source = MapLayerSource.fromJSON({ url, name: (name ? name : url), formatId: this._formatId });\n if (source){\n source.userName = userName;\n source.password = password;\n }\n\n this.doAttach(source);\n return true;\n }\n\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(args[0], args[1], args[2], args[3]);\n }\n}\n\n/** This tool attaches a WMS map layer from a given URL.\n * @beta\n */\nexport class AttachWmsMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {\n public static override toolId = \"AttachWmsMapLayerTool\";\n constructor() { super(\"WMS\"); }\n /** This method runs the tool, attaching a WMS map layer from a given URL.\n * @param args contains url, name, userName, password in array order\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(WmsUtilities.getBaseUrl(args[0]), args[1], args[2], args[3]);\n }\n}\n\n/** This tool attaches a WMTS map layer from a given URL.\n * @beta\n */\nexport class AttachWmtsMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {\n public static override toolId = \"AttachWmtsMapLayerTool\";\n constructor() { super(\"WMTS\"); }\n /** This method runs the tool, attaching a WMTS map layer from a given URL.\n * @param args contains url, name, userName, password in array order\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(WmsUtilities.getBaseUrl(args[0]), args[1], args[2], args[3]);\n }\n}\n\n/** This tool attaches an ArcGIS map layer from a given URL.\n * @beta\n */\nexport class AttachArcGISMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {\n public static override toolId = \"AttachArcGISMapLayerTool\";\n constructor() { super(\"ArcGIS\"); }\n}\n\n/** This tool attaches a map layer from a given tile URL.\n * @beta\n */\nexport class AttachTileURLMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {\n public static override toolId = \"AttachTileURLMapLayerTool\";\n constructor() { super(\"TileURL\"); }\n}\n\n/** This tool add a Map Layer from a specified name (look up in MapLayerSources.json).\n * @beta\n */\nexport class AttachMapLayerTool extends AttachMapLayerBaseTool {\n public static override toolId = \"AttachMapLayerTool\";\n public static override get minArgs() { return 1; }\n public static override get maxArgs() { return 1; }\n\n /** This method runs the tool, adding a map layer from a specified name in MayLayerSources.json.\n * @param name the name of the map layer to add\n */\n public override async run(name: string): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (vp === undefined)\n return false;\n\n MapLayerSources.create().then((sources) => {\n if (sources !== undefined) {\n const source = sources.findByName(name, this._isBase);\n if (source !== undefined)\n this.doAttach(source);\n }\n }).catch((_err) => { });\n\n return true;\n }\n\n /** Executes this tool's run method with args[0] containing `name`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n return this.run(args[0]);\n }\n}\n/** This tool attaches a Overlay map layer.\n * @beta\n */\nexport class AttachMapOverlayTool extends AttachMapLayerTool {\n public static override toolId = \"AttachMapOverlayTool\";\n constructor() {\n super();\n this._isBackground = false;\n }\n}\n\n/** Sets map layer base tool.\n * @beta\n */\nexport class SetMapBaseTool extends AttachMapLayerTool {\n public static override toolId = \"SetMapBaseTool\";\n constructor() {\n super();\n this._isBase = true;\n }\n}\n\n/** Detach Map Layers Tool.\n * @beta\n */\nexport class DetachMapLayersTool extends Tool {\n public static override toolId = \"DetachMapLayersTool\";\n public static override get minArgs() { return 0; }\n public static override get maxArgs() { return 0; }\n public override async parseAndRun(..._args: string[]): Promise<boolean> {\n return this.run();\n }\n\n public override async run(): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (vp === undefined)\n return false;\n vp.displayStyle.detachMapLayerByIndex(-1, true);\n vp.displayStyle.detachMapLayerByIndex(-1, false);\n vp.invalidateRenderPlan();\n return true;\n }\n}\n\nfunction parseLayerIndex(args: string[]) {\n const layerIndex = args.length > 1 ? parseInt(args[1], 10) : 0;\n return isNaN(layerIndex) ? 0 : layerIndex;\n}\n\n/** This tool sets the visibility of the map layer.\n * @beta\n */\nexport class MapLayerVisibilityTool extends Tool {\n public static override toolId = \"SetMapLayerVisibility\";\n public static override get minArgs() { return 1; }\n public static override get maxArgs() { return 2; }\n\n /** This method runs the tool, setting the visibility of a map layer.\n * @param layerIndex the index of the layer to change\n * @param visible a boolean that should be true if the layer should be visible\n */\n public override async run(layerIndex: number, enable?: boolean): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView())\n return false;\n\n const mapLayer = vp.displayStyle.mapLayerAtIndex(layerIndex, false);\n if (undefined === mapLayer)\n return false;\n\n const visible = (enable === undefined) ? !mapLayer.visible : enable;\n\n vp.displayStyle.changeMapLayerProps({ visible }, layerIndex, false);\n vp.invalidateRenderPlan();\n\n return true;\n }\n\n /** Executes this tool's run method with args[0] containing `enable` and args[1] containing `layerIndex`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const enable = parseToggle(args[0]);\n const layerIndex = parseLayerIndex(args);\n if (typeof enable !== \"string\")\n await this.run(layerIndex, enable);\n\n return true;\n }\n}\n/** This tool reorders map layers.\n * @beta\n */\nexport class ReorderMapLayers extends Tool {\n public static override toolId = \"ReorderMapLayers\";\n public static override get minArgs() { return 0; }\n public static override get maxArgs() { return 2; }\n /** This method runs the tool, reordering the map layers.\n * @param from a numeric value specifying the layer index that is being moved\n * @param from a numeric value specifying the layer index to move that layer to\n */\n public override async run(from: number, to: number): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView())\n return false;\n\n vp.displayStyle.moveMapLayerToIndex(isNaN(from) ? 0 : from, isNaN(to) ? vp.displayStyle.backgroundMapLayers.length : to, false);\n vp.invalidateRenderPlan();\n return true;\n }\n /** Executes this tool's run method with args[0] containing `from` and args[1] containing `to`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const from = parseInt(args[0], 10);\n const to = parseInt(args[1], 10);\n await this.run(from, to);\n return true;\n }\n\n}\n\n/** This tool sets the transparency of a map layer.\n * @beta\n */\nexport class MapLayerTransparencyTool extends Tool {\n public static override toolId = \"SetMapLayerTransparency\";\n public static override get minArgs() { return 1; }\n public static override get maxArgs() { return 2; }\n /** This method runs the tool, setting the transparency of a map layer.\n * @param layerIndex the index of the layer to change\n * @param transparency a numeric value in the range 0.0 (fully opaque) to 1.0 (fully transparent)\n */\n public override async run(layerIndex: number, transparency: number): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView())\n return false;\n\n vp.displayStyle.changeMapLayerProps({ transparency }, layerIndex, false);\n vp.invalidateRenderPlan();\n\n return true;\n }\n /** Executes this tool's run method with args[0] containing `transparency` and args[1] containing `layerIndex`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const transparency = parseFloat(args[0]);\n const layerIndex = parseLayerIndex(args);\n if (transparency >= 0 && transparency <= 1)\n await this.run(layerIndex, transparency);\n\n return true;\n }\n}\n/** This tool sets the visibility of the map sublayer.\n * @beta\n */\nexport class MapLayerSubLayerVisibilityTool extends Tool {\n public static override toolId = \"SetMapSubLayerVisibility\";\n public static override get minArgs() { return 1; }\n public static override get maxArgs() { return 2; }\n\n /** This method runs the tool, setting the visibility of a map sublayer.\n * @param layerIndex the index of the layer to change\n * @param visible a boolean that should be true if the sublayer should be visible\n */\n public override async run(layerIndex: number, visible: boolean): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView())\n return false;\n\n vp.displayStyle.changeMapSubLayerProps({ visible }, -1, layerIndex, false);\n vp.invalidateRenderPlan();\n\n return true;\n }\n\n /** Executes this tool's run method with args[0] containing `transparency` and args[1] containing `layerIndex`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const on = args[0] !== \"off\";\n const layerIndex = parseLayerIndex(args);\n await this.run(layerIndex, on);\n\n return true;\n }\n}\n\n/** This tool changes the viewport so it is zoomed to the range of a map layer.\n * @beta\n */\nexport class MapLayerZoomTool extends Tool {\n public static override toolId = \"MapLayerZoom\";\n public static override get minArgs() { return 0; }\n public static override get maxArgs() { return 1; }\n\n /** This method runs the tool, changing the viewport so it is zoomed to the range of a map layer.\n * @param layerIndex the index of the layer whose range to zoom to\n */\n public override async run(layerIndex: number): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView())\n return false;\n\n vp.displayStyle.viewMapLayerRange(layerIndex, false, vp).then(() => { }).catch(() => { });\n\n return true;\n }\n\n /** Executes this tool's run method with args[0] containing `layerIndex`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const layerIndex = parseLayerIndex(args);\n await this.run(layerIndex);\n\n return true;\n }\n}\n\n/** This tool toggles whether to apply terrain heights to the map.\n * @beta\n */\nexport class ToggleTerrainTool extends Tool {\n public static override toolId = \"ToggleTerrain\";\n public static override get minArgs() { return 0; }\n public static override get maxArgs() { return 1; }\n\n /** This method runs the tool, changing whether to apply terrain heights to the map.\n * @param enable whether or not to enable terrain heights on the map\n */\n public override async run(enable?: boolean): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView())\n return false;\n\n const applyTerrain = (enable === undefined) ? !vp.displayStyle.backgroundMapSettings.applyTerrain : enable;\n vp.displayStyle.changeBackgroundMapProps({ applyTerrain });\n vp.invalidateRenderPlan();\n\n return true;\n }\n\n /** Executes this tool's run method with args[0] containing `enable`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const enable = parseToggle(args[0]);\n if (typeof enable !== \"string\")\n await this.run(enable);\n\n return true;\n }\n}\n\n/** This tool changes the color of the base map.\n * @beta\n */\nexport class MapBaseColorTool extends Tool {\n public static override toolId = \"SetMapBaseColorTool\";\n public static override get minArgs() { return 3; }\n public static override get maxArgs() { return 3; }\n\n /** This method runs the tool, changing the color of the base map.\n * @param color the color for the base map\n */\n public override async run(color: ColorDef) {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView())\n return false;\n\n const curTransparency = vp.displayStyle.backgroundMapBase instanceof ColorDef ? vp.displayStyle.backgroundMapBase.getTransparency() : 0;\n vp.displayStyle.backgroundMapBase = color.withTransparency(curTransparency);\n vp.invalidateRenderPlan();\n\n return true;\n }\n\n /** Executes this tool's run method with args[0] containing a 0 to 255 red component, args[1] containing a 0 to 255 green component, and args[2] containing a 0 to 255 blue component.\n * These rgb values will be used to construct the `color` parameter passed to this tool's run method.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const red = parseFloat(args[0]), green = parseFloat(args[1]), blue = parseFloat(args[2]);\n\n return (isNaN(red) || red < 0 || red > 255 || isNaN(green) || green < 0 || green > 255 || isNaN(blue) || blue < 0 || blue > 255) ? false : this.run(ColorDef.from(red, green, blue));\n }\n}\n/** This tool changes the transparency of the base map.\n * @beta\n */\nexport class MapBaseTransparencyTool extends Tool {\n public static override toolId = \"SetMapBaseTransparencyTool\";\n public static override get minArgs() { return 1; }\n public static override get maxArgs() { return 1; }\n\n /** This method runs the tool, changing the transparency of the base map.\n * @param transparency a numeric value in range 0.0 to 1.0 whether 0.0 means fully opaque and 1.0 means fully transparent\n */\n public override async run(transparency: number) {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView())\n return false;\n\n vp.displayStyle.changeBaseMapTransparency(transparency);\n vp.invalidateRenderPlan();\n\n return true;\n }\n\n /** Executes this tool's run method with args[0] containing `transparency`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const transparency = parseFloat(args[0]);\n\n return (isNaN(transparency) || transparency < 0 || transparency > 1) ? false : this.run(transparency);\n }\n}\n\n/** This tool changes the visibility of the base map.\n * @beta\n */\nexport class MapBaseVisibilityTool extends Tool {\n public static override toolId = \"SetMapBaseVisibilityTool\";\n public static override get minArgs() { return 1; }\n public static override get maxArgs() { return 1; }\n\n /** This method runs the tool, changing the visibility of the base map.\n * @param visible a boolean which specifies whether or not to make the base map visible\n */\n public override async run(visible: boolean) {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined === vp || !vp.view.isSpatialView() || vp.displayStyle.backgroundMapBase instanceof ColorDef)\n return false;\n\n vp.displayStyle.backgroundMapBase = vp.displayStyle.backgroundMapBase.clone({ visible });\n vp.invalidateRenderPlan();\n\n return true;\n }\n\n /** Executes this tool's run method with args[0] containing `visible`.\n * @see [[run]]\n */\n public override async parseAndRun(...args: string[]): Promise<boolean> {\n const visible = parseBoolean(args[0]);\n\n return (visible !== undefined ? this.run(visible) : false);\n }\n}\n"]}
@@ -1,13 +1,13 @@
1
- import { Tool } from "@itwin/core-frontend";
2
- /** Unloads all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready.
3
- * Outputs the elapsed time to notifications manager.
4
- * @beta
5
- */
6
- export declare class MeasureTileLoadTimeTool extends Tool {
7
- static toolId: string;
8
- /** This method runs the tool, unloading all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready. It will then output the elapsed time to notifications manager.
9
- * @param _args this parameter is unused
10
- */
11
- run(_args: any[]): Promise<boolean>;
12
- }
1
+ import { Tool } from "@itwin/core-frontend";
2
+ /** Unloads all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready.
3
+ * Outputs the elapsed time to notifications manager.
4
+ * @beta
5
+ */
6
+ export declare class MeasureTileLoadTimeTool extends Tool {
7
+ static toolId: string;
8
+ /** This method runs the tool, unloading all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready. It will then output the elapsed time to notifications manager.
9
+ * @param _args this parameter is unused
10
+ */
11
+ run(_args: any[]): Promise<boolean>;
12
+ }
13
13
  //# sourceMappingURL=MeasureTileLoadTime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MeasureTileLoadTime.d.ts","sourceRoot":"","sources":["../../../src/tools/MeasureTileLoadTime.ts"],"names":[],"mappings":"AAUA,OAAO,EAA0D,IAAI,EAAY,MAAM,sBAAsB,CAAC;AA8C9G;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,IAAI;IAC/C,OAAuB,MAAM,SAAyB;IAEtD;;OAEG;IACmB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAO1D"}
1
+ {"version":3,"file":"MeasureTileLoadTime.d.ts","sourceRoot":"","sources":["../../../src/tools/MeasureTileLoadTime.ts"],"names":[],"mappings":"AAUA,OAAO,EAA0D,IAAI,EAAY,MAAM,sBAAsB,CAAC;AAiD9G;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,IAAI;IAC/C,OAAuB,MAAM,SAAyB;IAEtD;;OAEG;IACmB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;CAO1D"}
@@ -1,61 +1,64 @@
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.MeasureTileLoadTimeTool = void 0;
8
- /** @packageDocumentation
9
- * @module Tools
10
- */
11
- const core_bentley_1 = require("@itwin/core-bentley");
12
- const core_frontend_1 = require("@itwin/core-frontend");
13
- class TileLoadTimer {
14
- constructor(vp) {
15
- this._vp = vp;
16
- this._stopwatch = new core_bentley_1.StopWatch();
17
- // Purge tile trees for all models.
18
- core_frontend_1.IModelApp.viewManager.refreshForModifiedModels(undefined);
19
- const removeOnRender = vp.onRender.addListener(() => this.onRender());
20
- const removeOnClose = vp.iModel.onClose.addOnce(() => this.cancel());
21
- this._cleanup = () => { removeOnRender(); removeOnClose(); };
22
- core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, "Tile loading timer started."));
23
- this._stopwatch.start();
24
- }
25
- cancel() {
26
- core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, "Tile loading timer canceled."));
27
- this.stop();
28
- }
29
- stop() {
30
- if (undefined !== this._cleanup) {
31
- this._cleanup();
32
- this._cleanup = undefined;
33
- }
34
- }
35
- onRender() {
36
- // ###TODO: May be intermediate frames during which children props have been asynchronously requested but no outstanding tile requests.
37
- if (!this._vp.areAllTileTreesLoaded || 0 < this._vp.numRequestedTiles)
38
- return;
39
- this._stopwatch.stop();
40
- core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, `Tiles loaded in ${this._stopwatch.elapsedSeconds.toFixed(4)} seconds.`));
41
- this.stop();
42
- }
43
- }
44
- /** Unloads all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready.
45
- * Outputs the elapsed time to notifications manager.
46
- * @beta
47
- */
48
- class MeasureTileLoadTimeTool extends core_frontend_1.Tool {
49
- /** This method runs the tool, unloading all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready. It will then output the elapsed time to notifications manager.
50
- * @param _args this parameter is unused
51
- */
52
- async run(_args) {
53
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
54
- if (undefined !== vp)
55
- new TileLoadTimer(vp);
56
- return true;
57
- }
58
- }
59
- exports.MeasureTileLoadTimeTool = MeasureTileLoadTimeTool;
60
- MeasureTileLoadTimeTool.toolId = "MeasureTileLoadTime";
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.MeasureTileLoadTimeTool = void 0;
8
+ /** @packageDocumentation
9
+ * @module Tools
10
+ */
11
+ const core_bentley_1 = require("@itwin/core-bentley");
12
+ const core_frontend_1 = require("@itwin/core-frontend");
13
+ class TileLoadTimer {
14
+ constructor(vp) {
15
+ this._vp = vp;
16
+ this._stopwatch = new core_bentley_1.StopWatch();
17
+ // Purge tile trees for all models.
18
+ core_frontend_1.IModelApp.viewManager.refreshForModifiedModels(undefined);
19
+ const removeOnRender = vp.onRender.addListener(() => this.onRender());
20
+ const removeOnClose = vp.iModel.onClose.addOnce(() => this.cancel());
21
+ this._cleanup = () => {
22
+ removeOnRender();
23
+ removeOnClose();
24
+ };
25
+ core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, "Tile loading timer started."));
26
+ this._stopwatch.start();
27
+ }
28
+ cancel() {
29
+ core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, "Tile loading timer canceled."));
30
+ this.stop();
31
+ }
32
+ stop() {
33
+ if (undefined !== this._cleanup) {
34
+ this._cleanup();
35
+ this._cleanup = undefined;
36
+ }
37
+ }
38
+ onRender() {
39
+ // ###TODO: May be intermediate frames during which children props have been asynchronously requested but no outstanding tile requests.
40
+ if (!this._vp.areAllTileTreesLoaded || 0 < this._vp.numRequestedTiles)
41
+ return;
42
+ this._stopwatch.stop();
43
+ core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, `Tiles loaded in ${this._stopwatch.elapsedSeconds.toFixed(4)} seconds.`));
44
+ this.stop();
45
+ }
46
+ }
47
+ /** Unloads all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready.
48
+ * Outputs the elapsed time to notifications manager.
49
+ * @beta
50
+ */
51
+ class MeasureTileLoadTimeTool extends core_frontend_1.Tool {
52
+ /** This method runs the tool, unloading all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready. It will then output the elapsed time to notifications manager.
53
+ * @param _args this parameter is unused
54
+ */
55
+ async run(_args) {
56
+ const vp = core_frontend_1.IModelApp.viewManager.selectedView;
57
+ if (undefined !== vp)
58
+ new TileLoadTimer(vp);
59
+ return true;
60
+ }
61
+ }
62
+ exports.MeasureTileLoadTimeTool = MeasureTileLoadTimeTool;
63
+ MeasureTileLoadTimeTool.toolId = "MeasureTileLoadTime";
61
64
  //# sourceMappingURL=MeasureTileLoadTime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MeasureTileLoadTime.js","sourceRoot":"","sources":["../../../src/tools/MeasureTileLoadTime.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sDAAgD;AAChD,wDAA8G;AAE9G,MAAM,aAAa;IAKjB,YAAmB,EAAY;QAC7B,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAS,EAAE,CAAC;QAElC,mCAAmC;QACnC,yBAAS,CAAC,WAAW,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;QAE1D,MAAM,cAAc,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtE,MAAM,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACrE,IAAI,CAAC,QAAQ,GAAG,GAAG,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC,a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,CAAC;;AAZH,0DAaC;AAZwB,8BAAM,GAAG,qBAAqB,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 { StopWatch } from \"@itwin/core-bentley\";\r\nimport { IModelApp, NotifyMessageDetails, OutputMessagePriority, Tool, Viewport } from \"@itwin/core-frontend\";\r\n\r\nclass TileLoadTimer {\r\n private readonly _vp: Viewport;\r\n private readonly _stopwatch: StopWatch;\r\n private _cleanup?: () => void;\r\n\r\n public constructor(vp: Viewport) {\r\n this._vp = vp;\r\n this._stopwatch = new StopWatch();\r\n\r\n // Purge tile trees for all models.\r\n IModelApp.viewManager.refreshForModifiedModels(undefined);\r\n\r\n const removeOnRender = vp.onRender.addListener(() => this.onRender());\r\n const removeOnClose = vp.iModel.onClose.addOnce(() => this.cancel());\r\n this._cleanup = () => { removeOnRender(); removeOnClose(); };\r\n\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, \"Tile loading timer started.\"));\r\n this._stopwatch.start();\r\n }\r\n\r\n private cancel(): void {\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, \"Tile loading timer canceled.\"));\r\n this.stop();\r\n }\r\n\r\n private stop(): void {\r\n if (undefined !== this._cleanup) {\r\n this._cleanup();\r\n this._cleanup = undefined;\r\n }\r\n }\r\n\r\n private onRender(): void {\r\n // ###TODO: May be intermediate frames during which children props have been asynchronously requested but no outstanding tile requests.\r\n if (!this._vp.areAllTileTreesLoaded || 0 < this._vp.numRequestedTiles)\r\n return;\r\n\r\n this._stopwatch.stop();\r\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, `Tiles loaded in ${this._stopwatch.elapsedSeconds.toFixed(4)} seconds.`));\r\n\r\n this.stop();\r\n }\r\n}\r\n\r\n/** Unloads all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready.\r\n * Outputs the elapsed time to notifications manager.\r\n * @beta\r\n */\r\nexport class MeasureTileLoadTimeTool extends Tool {\r\n public static override toolId = \"MeasureTileLoadTime\";\r\n\r\n /** This method runs the tool, unloading all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready. It will then output the elapsed time to notifications manager.\r\n * @param _args this parameter is unused\r\n */\r\n public override async run(_args: any[]): Promise<boolean> {\r\n const vp = IModelApp.viewManager.selectedView;\r\n if (undefined !== vp)\r\n new TileLoadTimer(vp);\r\n\r\n return true;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"MeasureTileLoadTime.js","sourceRoot":"","sources":["../../../src/tools/MeasureTileLoadTime.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sDAAgD;AAChD,wDAA8G;AAE9G,MAAM,aAAa;IAKjB,YAAmB,EAAY;QAC7B,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAS,EAAE,CAAC;QAElC,mCAAmC;QACnC,yBAAS,CAAC,WAAW,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;QAE1D,MAAM,cAAc,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACtE,MAAM,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACrE,IAAI,CAAC,QAAQ,GAAG,GAAG,EAAE;YACnB,cAAc,EAAE,CAAC;YACjB,aAAa,EAAE,CAAC;QAClB,CAAC,CAAC;QAEF,yBAAS,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,oCAAoB,CAAC,qCAAqB,CAAC,IAAI,EAAE,6BAA6B,CAAC,CAAC,CAAC;QAC3H,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;IAEO,MAAM;QACZ,yBAAS,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,oCAAoB,CAAC,qCAAqB,CAAC,IAAI,EAAE,8BAA8B,CAAC,CAAC,CAAC;QAC5H,IAAI,CAAC,IAAI,EAAE,CAAC;IACd,CAAC;IAEO,IAAI;QACV,IAAI,SAAS,KAAK,IAAI,CAAC,QAAQ,EAAE;YAC/B,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;SAC3B;IACH,CAAC;IAEO,QAAQ;QACd,uIAAuI;QACvI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qBAAqB,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB;YACnE,OAAO;QAET,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACvB,yBAAS,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,oCAAoB,CAAC,qCAAqB,CAAC,IAAI,EAAE,mBAAmB,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;QAErK,IAAI,CAAC,IAAI,EAAE,CAAC;IACd,CAAC;CACF;AAED;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,oBAAI;IAG/C;;OAEG;IACa,KAAK,CAAC,GAAG,CAAC,KAAY;QACpC,MAAM,EAAE,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,CAAC;QAC9C,IAAI,SAAS,KAAK,EAAE;YAClB,IAAI,aAAa,CAAC,EAAE,CAAC,CAAC;QAExB,OAAO,IAAI,CAAC;IACd,CAAC;;AAZH,0DAaC;AAZwB,8BAAM,GAAG,qBAAqB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/** @packageDocumentation\n * @module Tools\n */\n\nimport { StopWatch } from \"@itwin/core-bentley\";\nimport { IModelApp, NotifyMessageDetails, OutputMessagePriority, Tool, Viewport } from \"@itwin/core-frontend\";\n\nclass TileLoadTimer {\n private readonly _vp: Viewport;\n private readonly _stopwatch: StopWatch;\n private _cleanup?: () => void;\n\n public constructor(vp: Viewport) {\n this._vp = vp;\n this._stopwatch = new StopWatch();\n\n // Purge tile trees for all models.\n IModelApp.viewManager.refreshForModifiedModels(undefined);\n\n const removeOnRender = vp.onRender.addListener(() => this.onRender());\n const removeOnClose = vp.iModel.onClose.addOnce(() => this.cancel());\n this._cleanup = () => {\n removeOnRender();\n removeOnClose();\n };\n\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, \"Tile loading timer started.\"));\n this._stopwatch.start();\n }\n\n private cancel(): void {\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, \"Tile loading timer canceled.\"));\n this.stop();\n }\n\n private stop(): void {\n if (undefined !== this._cleanup) {\n this._cleanup();\n this._cleanup = undefined;\n }\n }\n\n private onRender(): void {\n // ###TODO: May be intermediate frames during which children props have been asynchronously requested but no outstanding tile requests.\n if (!this._vp.areAllTileTreesLoaded || 0 < this._vp.numRequestedTiles)\n return;\n\n this._stopwatch.stop();\n IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, `Tiles loaded in ${this._stopwatch.elapsedSeconds.toFixed(4)} seconds.`));\n\n this.stop();\n }\n}\n\n/** Unloads all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready.\n * Outputs the elapsed time to notifications manager.\n * @beta\n */\nexport class MeasureTileLoadTimeTool extends Tool {\n public static override toolId = \"MeasureTileLoadTime\";\n\n /** This method runs the tool, unloading all tile trees, then starts a timer that stops when all tile trees and tiles required for the view are ready. It will then output the elapsed time to notifications manager.\n * @param _args this parameter is unused\n */\n public override async run(_args: any[]): Promise<boolean> {\n const vp = IModelApp.viewManager.selectedView;\n if (undefined !== vp)\n new TileLoadTimer(vp);\n\n return true;\n }\n}\n"]}
@@ -1,87 +1,87 @@
1
- /** @packageDocumentation
2
- * @module Tools
3
- */
4
- import { LinePixels, RgbColorProps } from "@itwin/core-common";
5
- import { Tool } from "@itwin/core-frontend";
6
- /** Set model appearance override for transparency in display style.
7
- * @beta
8
- */
9
- export declare class SetModelTransparencyTool extends Tool {
10
- static toolId: string;
11
- static get minArgs(): number;
12
- static get maxArgs(): number;
13
- run(transparency: number, name: string): Promise<boolean>;
14
- parseAndRun(...args: string[]): Promise<boolean>;
15
- }
16
- /** Set model appearance override for line weight in display style.
17
- * @beta
18
- */
19
- export declare class SetModelLineWeightTool extends Tool {
20
- static toolId: string;
21
- static get minArgs(): number;
22
- static get maxArgs(): number;
23
- run(weight: number, name: string): Promise<boolean>;
24
- parseAndRun(...args: string[]): Promise<boolean>;
25
- }
26
- /** Set model appearance override for line code in display style.
27
- * @beta
28
- */
29
- export declare class SetModelLineCodeTool extends Tool {
30
- static toolId: string;
31
- static get minArgs(): number;
32
- static get maxArgs(): number;
33
- static linePixels: LinePixels[];
34
- run(lineCode: number, name: string): Promise<boolean>;
35
- parseAndRun(...args: string[]): Promise<boolean>;
36
- }
37
- /** Set model appearance override for nonLocatable in display style.
38
- * @beta
39
- */
40
- export declare class SetModelLocateTool extends Tool {
41
- static toolId: string;
42
- static get minArgs(): number;
43
- static get maxArgs(): number;
44
- run(locate: boolean, name: string): Promise<boolean>;
45
- parseAndRun(...args: string[]): Promise<boolean>;
46
- }
47
- /** Set model appearance override for emphasized in display style.
48
- * @beta
49
- */
50
- export declare class SetModelEmphasizedTool extends Tool {
51
- static toolId: string;
52
- static get minArgs(): number;
53
- static get maxArgs(): number;
54
- run(emphasized: true | undefined, name: string): Promise<boolean>;
55
- parseAndRun(...args: string[]): Promise<boolean>;
56
- }
57
- /** Set model appearance override for ignoreMaterials in display style.
58
- * @beta
59
- */
60
- export declare class SetModelIgnoresMaterialsTool extends Tool {
61
- static toolId: string;
62
- static get minArgs(): number;
63
- static get maxArgs(): number;
64
- run(ignoresMaterial: true | undefined, name: string): Promise<boolean>;
65
- parseAndRun(...args: string[]): Promise<boolean>;
66
- }
67
- /** Set model appearance override for color in display style.
68
- * @beta
69
- */
70
- export declare class SetModelColorTool extends Tool {
71
- static toolId: string;
72
- static get minArgs(): number;
73
- static get maxArgs(): number;
74
- run(rgb: RgbColorProps, name: string): Promise<boolean>;
75
- parseAndRun(...args: string[]): Promise<boolean>;
76
- }
77
- /** clear model appearance overrides in display style.
78
- * @beta
79
- */
80
- export declare class ClearModelAppearanceOverrides extends Tool {
81
- static toolId: string;
82
- static get minArgs(): number;
83
- static get maxArgs(): number;
84
- run(name?: string): Promise<boolean>;
85
- parseAndRun(...args: string[]): Promise<boolean>;
86
- }
1
+ /** @packageDocumentation
2
+ * @module Tools
3
+ */
4
+ import { LinePixels, RgbColorProps } from "@itwin/core-common";
5
+ import { Tool } from "@itwin/core-frontend";
6
+ /** Set model appearance override for transparency in display style.
7
+ * @beta
8
+ */
9
+ export declare class SetModelTransparencyTool extends Tool {
10
+ static toolId: string;
11
+ static get minArgs(): number;
12
+ static get maxArgs(): number;
13
+ run(transparency: number, name: string): Promise<boolean>;
14
+ parseAndRun(...args: string[]): Promise<boolean>;
15
+ }
16
+ /** Set model appearance override for line weight in display style.
17
+ * @beta
18
+ */
19
+ export declare class SetModelLineWeightTool extends Tool {
20
+ static toolId: string;
21
+ static get minArgs(): number;
22
+ static get maxArgs(): number;
23
+ run(weight: number, name: string): Promise<boolean>;
24
+ parseAndRun(...args: string[]): Promise<boolean>;
25
+ }
26
+ /** Set model appearance override for line code in display style.
27
+ * @beta
28
+ */
29
+ export declare class SetModelLineCodeTool extends Tool {
30
+ static toolId: string;
31
+ static get minArgs(): number;
32
+ static get maxArgs(): number;
33
+ static linePixels: LinePixels[];
34
+ run(lineCode: number, name: string): Promise<boolean>;
35
+ parseAndRun(...args: string[]): Promise<boolean>;
36
+ }
37
+ /** Set model appearance override for nonLocatable in display style.
38
+ * @beta
39
+ */
40
+ export declare class SetModelLocateTool extends Tool {
41
+ static toolId: string;
42
+ static get minArgs(): number;
43
+ static get maxArgs(): number;
44
+ run(locate: boolean, name: string): Promise<boolean>;
45
+ parseAndRun(...args: string[]): Promise<boolean>;
46
+ }
47
+ /** Set model appearance override for emphasized in display style.
48
+ * @beta
49
+ */
50
+ export declare class SetModelEmphasizedTool extends Tool {
51
+ static toolId: string;
52
+ static get minArgs(): number;
53
+ static get maxArgs(): number;
54
+ run(emphasized: true | undefined, name: string): Promise<boolean>;
55
+ parseAndRun(...args: string[]): Promise<boolean>;
56
+ }
57
+ /** Set model appearance override for ignoreMaterials in display style.
58
+ * @beta
59
+ */
60
+ export declare class SetModelIgnoresMaterialsTool extends Tool {
61
+ static toolId: string;
62
+ static get minArgs(): number;
63
+ static get maxArgs(): number;
64
+ run(ignoresMaterial: true | undefined, name: string): Promise<boolean>;
65
+ parseAndRun(...args: string[]): Promise<boolean>;
66
+ }
67
+ /** Set model appearance override for color in display style.
68
+ * @beta
69
+ */
70
+ export declare class SetModelColorTool extends Tool {
71
+ static toolId: string;
72
+ static get minArgs(): number;
73
+ static get maxArgs(): number;
74
+ run(rgb: RgbColorProps, name: string): Promise<boolean>;
75
+ parseAndRun(...args: string[]): Promise<boolean>;
76
+ }
77
+ /** clear model appearance overrides in display style.
78
+ * @beta
79
+ */
80
+ export declare class ClearModelAppearanceOverrides extends Tool {
81
+ static toolId: string;
82
+ static get minArgs(): number;
83
+ static get maxArgs(): number;
84
+ run(name?: string): Promise<boolean>;
85
+ parseAndRun(...args: string[]): Promise<boolean>;
86
+ }
87
87
  //# sourceMappingURL=ModelAppearanceTools.d.ts.map