@itwin/frontend-devtools 4.0.0-dev.8 → 4.0.0-dev.80
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.
- package/CHANGELOG.md +41 -1
- package/README.md +1 -1
- package/lib/cjs/ClipboardUtilities.d.ts +8 -8
- package/lib/cjs/ClipboardUtilities.js +26 -26
- package/lib/cjs/FrontEndDevTools.d.ts +19 -19
- package/lib/cjs/FrontEndDevTools.js +221 -221
- package/lib/cjs/FrontEndDevTools.js.map +1 -1
- package/lib/cjs/effects/Convolution.d.ts +68 -68
- package/lib/cjs/effects/Convolution.js +148 -148
- package/lib/cjs/effects/Convolution.js.map +1 -1
- package/lib/cjs/effects/EffectTools.d.ts +33 -33
- package/lib/cjs/effects/EffectTools.js +67 -68
- package/lib/cjs/effects/EffectTools.js.map +1 -1
- package/lib/cjs/effects/Explosion.d.ts +12 -12
- package/lib/cjs/effects/Explosion.js +168 -168
- package/lib/cjs/effects/Explosion.js.map +1 -1
- package/lib/cjs/effects/FlipImage.d.ts +30 -30
- package/lib/cjs/effects/FlipImage.js +79 -79
- package/lib/cjs/effects/FlipImage.js.map +1 -1
- package/lib/cjs/effects/LensDistortion.d.ts +34 -34
- package/lib/cjs/effects/LensDistortion.js +88 -88
- package/lib/cjs/effects/LensDistortion.js.map +1 -1
- package/lib/cjs/effects/Random.d.ts +24 -24
- package/lib/cjs/effects/Random.js +49 -49
- package/lib/cjs/effects/Saturation.d.ts +30 -30
- package/lib/cjs/effects/Saturation.js +59 -59
- package/lib/cjs/effects/Saturation.js.map +1 -1
- package/lib/cjs/effects/Snow.d.ts +76 -76
- package/lib/cjs/effects/Snow.js +187 -187
- package/lib/cjs/effects/Snow.js.map +1 -1
- package/lib/cjs/effects/Vignette.d.ts +39 -39
- package/lib/cjs/effects/Vignette.js +79 -79
- package/lib/cjs/effects/Vignette.js.map +1 -1
- package/lib/cjs/frontend-devtools.d.ts +82 -82
- package/lib/cjs/frontend-devtools.js +102 -98
- package/lib/cjs/frontend-devtools.js.map +1 -1
- package/lib/cjs/tools/AnimationIntervalTool.d.ts +15 -15
- package/lib/cjs/tools/AnimationIntervalTool.js +30 -30
- package/lib/cjs/tools/AnimationIntervalTool.js.map +1 -1
- package/lib/cjs/tools/ChangeUnitsTool.d.ts +15 -15
- package/lib/cjs/tools/ChangeUnitsTool.js +41 -41
- package/lib/cjs/tools/ChangeUnitsTool.js.map +1 -1
- package/lib/cjs/tools/ClipTools.d.ts +67 -67
- package/lib/cjs/tools/ClipTools.js +161 -164
- package/lib/cjs/tools/ClipTools.js.map +1 -1
- package/lib/cjs/tools/DisplayStyleTools.d.ts +145 -145
- package/lib/cjs/tools/DisplayStyleTools.js +368 -370
- package/lib/cjs/tools/DisplayStyleTools.js.map +1 -1
- package/lib/cjs/tools/EmphasizeElementsTool.d.ts +60 -60
- package/lib/cjs/tools/EmphasizeElementsTool.js +154 -154
- package/lib/cjs/tools/EmphasizeElementsTool.js.map +1 -1
- package/lib/cjs/tools/FrustumDecoration.d.ts +57 -57
- package/lib/cjs/tools/FrustumDecoration.js +374 -374
- package/lib/cjs/tools/FrustumDecoration.js.map +1 -1
- package/lib/cjs/tools/InspectElementTool.d.ts +42 -42
- package/lib/cjs/tools/InspectElementTool.js +198 -198
- package/lib/cjs/tools/InspectElementTool.js.map +1 -1
- package/lib/cjs/tools/MapLayerTool.d.ts +264 -264
- package/lib/cjs/tools/MapLayerTool.d.ts.map +1 -1
- package/lib/cjs/tools/MapLayerTool.js +509 -507
- package/lib/cjs/tools/MapLayerTool.js.map +1 -1
- package/lib/cjs/tools/MeasureTileLoadTime.d.ts +12 -12
- package/lib/cjs/tools/MeasureTileLoadTime.js +63 -63
- package/lib/cjs/tools/MeasureTileLoadTime.js.map +1 -1
- package/lib/cjs/tools/ModelAppearanceTools.d.ts +86 -86
- package/lib/cjs/tools/ModelAppearanceTools.js +183 -183
- package/lib/cjs/tools/ModelAppearanceTools.js.map +1 -1
- package/lib/cjs/tools/PlanProjectionTools.d.ts +40 -40
- package/lib/cjs/tools/PlanProjectionTools.js +149 -149
- package/lib/cjs/tools/PlanProjectionTools.js.map +1 -1
- package/lib/cjs/tools/PlanarMaskTools.d.ts +182 -182
- package/lib/cjs/tools/PlanarMaskTools.js +391 -393
- package/lib/cjs/tools/PlanarMaskTools.js.map +1 -1
- package/lib/cjs/tools/ProjectExtents.d.ts +41 -41
- package/lib/cjs/tools/ProjectExtents.js +110 -110
- package/lib/cjs/tools/ProjectExtents.js.map +1 -1
- package/lib/cjs/tools/RealityModelTools.d.ts +116 -116
- package/lib/cjs/tools/RealityModelTools.js +281 -281
- package/lib/cjs/tools/RealityModelTools.js.map +1 -1
- package/lib/cjs/tools/RealityTransitionTool.d.ts +25 -25
- package/lib/cjs/tools/RealityTransitionTool.js +115 -116
- package/lib/cjs/tools/RealityTransitionTool.js.map +1 -1
- package/lib/cjs/tools/RenderSystemTools.d.ts +38 -38
- package/lib/cjs/tools/RenderSystemTools.js +69 -70
- package/lib/cjs/tools/RenderSystemTools.js.map +1 -1
- package/lib/cjs/tools/RenderTargetTools.d.ts +107 -107
- package/lib/cjs/tools/RenderTargetTools.d.ts.map +1 -1
- package/lib/cjs/tools/RenderTargetTools.js +174 -174
- package/lib/cjs/tools/RenderTargetTools.js.map +1 -1
- package/lib/cjs/tools/ReportWebGLCompatibilityTool.d.ts +11 -11
- package/lib/cjs/tools/ReportWebGLCompatibilityTool.js +30 -30
- package/lib/cjs/tools/ReportWebGLCompatibilityTool.js.map +1 -1
- package/lib/cjs/tools/SavedViews.d.ts +46 -46
- package/lib/cjs/tools/SavedViews.js +136 -136
- package/lib/cjs/tools/SavedViews.js.map +1 -1
- package/lib/cjs/tools/ScheduleScriptTools.d.ts +37 -37
- package/lib/cjs/tools/ScheduleScriptTools.js +157 -159
- package/lib/cjs/tools/ScheduleScriptTools.js.map +1 -1
- package/lib/cjs/tools/SelectionTools.d.ts +28 -28
- package/lib/cjs/tools/SelectionTools.js +87 -87
- package/lib/cjs/tools/SelectionTools.js.map +1 -1
- package/lib/cjs/tools/SetGpuMemoryLimitTool.d.ts +15 -15
- package/lib/cjs/tools/SetGpuMemoryLimitTool.js +33 -33
- package/lib/cjs/tools/SetGpuMemoryLimitTool.js.map +1 -1
- package/lib/cjs/tools/SourceAspectIdTools.d.ts +40 -40
- package/lib/cjs/tools/SourceAspectIdTools.js +85 -86
- package/lib/cjs/tools/SourceAspectIdTools.js.map +1 -1
- package/lib/cjs/tools/TileRequestDecoration.d.ts +12 -12
- package/lib/cjs/tools/TileRequestDecoration.js +83 -83
- package/lib/cjs/tools/TileRequestDecoration.js.map +1 -1
- package/lib/cjs/tools/TileTreeBoundsDecoration.d.ts +11 -11
- package/lib/cjs/tools/TileTreeBoundsDecoration.js +74 -74
- package/lib/cjs/tools/TileTreeBoundsDecoration.js.map +1 -1
- package/lib/cjs/tools/ToolTipProvider.d.ts +15 -15
- package/lib/cjs/tools/ToolTipProvider.js +66 -66
- package/lib/cjs/tools/ToolTipProvider.js.map +1 -1
- package/lib/cjs/tools/ViewportTools.d.ts +218 -218
- package/lib/cjs/tools/ViewportTools.d.ts.map +1 -1
- package/lib/cjs/tools/ViewportTools.js +516 -516
- package/lib/cjs/tools/ViewportTools.js.map +1 -1
- package/lib/cjs/tools/parseArgs.d.ts +23 -23
- package/lib/cjs/tools/parseArgs.js +51 -51
- package/lib/cjs/tools/parseBoolean.d.ts +8 -8
- package/lib/cjs/tools/parseBoolean.js +26 -26
- package/lib/cjs/tools/parseToggle.d.ts +8 -8
- package/lib/cjs/tools/parseToggle.js +25 -25
- package/lib/cjs/ui/Button.d.ts +29 -29
- package/lib/cjs/ui/Button.d.ts.map +1 -1
- package/lib/cjs/ui/Button.js +26 -26
- package/lib/cjs/ui/CheckBox.d.ts +23 -23
- package/lib/cjs/ui/CheckBox.d.ts.map +1 -1
- package/lib/cjs/ui/CheckBox.js +27 -27
- package/lib/cjs/ui/ColorInput.d.ts +27 -27
- package/lib/cjs/ui/ColorInput.d.ts.map +1 -1
- package/lib/cjs/ui/ColorInput.js +53 -53
- package/lib/cjs/ui/ComboBox.d.ts +28 -28
- package/lib/cjs/ui/ComboBox.d.ts.map +1 -1
- package/lib/cjs/ui/ComboBox.js +42 -42
- package/lib/cjs/ui/DataList.d.ts +27 -27
- package/lib/cjs/ui/DataList.d.ts.map +1 -1
- package/lib/cjs/ui/DataList.js +39 -39
- package/lib/cjs/ui/NestedMenu.d.ts +19 -19
- package/lib/cjs/ui/NestedMenu.d.ts.map +1 -1
- package/lib/cjs/ui/NestedMenu.js +46 -46
- package/lib/cjs/ui/NumericInput.d.ts +35 -35
- package/lib/cjs/ui/NumericInput.d.ts.map +1 -1
- package/lib/cjs/ui/NumericInput.js +61 -61
- package/lib/cjs/ui/RadioBox.d.ts +29 -29
- package/lib/cjs/ui/RadioBox.d.ts.map +1 -1
- package/lib/cjs/ui/RadioBox.js +76 -76
- package/lib/cjs/ui/Slider.d.ts +28 -28
- package/lib/cjs/ui/Slider.d.ts.map +1 -1
- package/lib/cjs/ui/Slider.js +42 -42
- package/lib/cjs/ui/TextBox.d.ts +32 -32
- package/lib/cjs/ui/TextBox.d.ts.map +1 -1
- package/lib/cjs/ui/TextBox.js +56 -56
- package/lib/cjs/widgets/DiagnosticsPanel.d.ts +37 -37
- package/lib/cjs/widgets/DiagnosticsPanel.js +81 -81
- package/lib/cjs/widgets/FpsTracker.d.ts +19 -19
- package/lib/cjs/widgets/FpsTracker.js +56 -56
- package/lib/cjs/widgets/GpuProfiler.d.ts +16 -16
- package/lib/cjs/widgets/GpuProfiler.js +192 -192
- package/lib/cjs/widgets/KeyinField.d.ts +61 -61
- package/lib/cjs/widgets/KeyinField.js +186 -187
- package/lib/cjs/widgets/KeyinField.js.map +1 -1
- package/lib/cjs/widgets/MemoryTracker.d.ts +27 -27
- package/lib/cjs/widgets/MemoryTracker.js +242 -243
- package/lib/cjs/widgets/MemoryTracker.js.map +1 -1
- package/lib/cjs/widgets/RenderCommandBreakdown.d.ts +15 -15
- package/lib/cjs/widgets/RenderCommandBreakdown.js +67 -68
- package/lib/cjs/widgets/RenderCommandBreakdown.js.map +1 -1
- package/lib/cjs/widgets/TileMemoryBreakdown.d.ts +30 -30
- package/lib/cjs/widgets/TileMemoryBreakdown.js +203 -204
- package/lib/cjs/widgets/TileMemoryBreakdown.js.map +1 -1
- package/lib/cjs/widgets/TileStatisticsTracker.d.ts +21 -21
- package/lib/cjs/widgets/TileStatisticsTracker.d.ts.map +1 -1
- package/lib/cjs/widgets/TileStatisticsTracker.js +144 -142
- package/lib/cjs/widgets/TileStatisticsTracker.js.map +1 -1
- package/lib/cjs/widgets/ToolSettingsTracker.d.ts +9 -9
- package/lib/cjs/widgets/ToolSettingsTracker.js +211 -211
- package/lib/cjs/widgets/ToolSettingsTracker.js.map +1 -1
- package/lib/esm/ClipboardUtilities.d.ts +8 -8
- package/lib/esm/ClipboardUtilities.js +22 -22
- package/lib/esm/FrontEndDevTools.d.ts +19 -19
- package/lib/esm/FrontEndDevTools.js +218 -217
- package/lib/esm/FrontEndDevTools.js.map +1 -1
- package/lib/esm/effects/Convolution.d.ts +68 -68
- package/lib/esm/effects/Convolution.js +144 -138
- package/lib/esm/effects/Convolution.js.map +1 -1
- package/lib/esm/effects/EffectTools.d.ts +33 -33
- package/lib/esm/effects/EffectTools.js +63 -62
- package/lib/esm/effects/EffectTools.js.map +1 -1
- package/lib/esm/effects/Explosion.d.ts +12 -12
- package/lib/esm/effects/Explosion.js +165 -164
- package/lib/esm/effects/Explosion.js.map +1 -1
- package/lib/esm/effects/FlipImage.d.ts +30 -30
- package/lib/esm/effects/FlipImage.js +76 -74
- package/lib/esm/effects/FlipImage.js.map +1 -1
- package/lib/esm/effects/LensDistortion.d.ts +34 -34
- package/lib/esm/effects/LensDistortion.js +85 -83
- package/lib/esm/effects/LensDistortion.js.map +1 -1
- package/lib/esm/effects/Random.d.ts +24 -24
- package/lib/esm/effects/Random.js +41 -41
- package/lib/esm/effects/Saturation.d.ts +30 -30
- package/lib/esm/effects/Saturation.js +56 -54
- package/lib/esm/effects/Saturation.js.map +1 -1
- package/lib/esm/effects/Snow.d.ts +76 -76
- package/lib/esm/effects/Snow.js +184 -182
- package/lib/esm/effects/Snow.js.map +1 -1
- package/lib/esm/effects/Vignette.d.ts +39 -39
- package/lib/esm/effects/Vignette.js +76 -74
- package/lib/esm/effects/Vignette.js.map +1 -1
- package/lib/esm/frontend-devtools.d.ts +82 -82
- package/lib/esm/frontend-devtools.js +86 -86
- package/lib/esm/tools/AnimationIntervalTool.d.ts +15 -15
- package/lib/esm/tools/AnimationIntervalTool.js +27 -26
- package/lib/esm/tools/AnimationIntervalTool.js.map +1 -1
- package/lib/esm/tools/ChangeUnitsTool.d.ts +15 -15
- package/lib/esm/tools/ChangeUnitsTool.js +38 -37
- package/lib/esm/tools/ChangeUnitsTool.js.map +1 -1
- package/lib/esm/tools/ClipTools.d.ts +67 -67
- package/lib/esm/tools/ClipTools.js +158 -158
- package/lib/esm/tools/ClipTools.js.map +1 -1
- package/lib/esm/tools/DisplayStyleTools.d.ts +145 -145
- package/lib/esm/tools/DisplayStyleTools.js +364 -356
- package/lib/esm/tools/DisplayStyleTools.js.map +1 -1
- package/lib/esm/tools/EmphasizeElementsTool.d.ts +60 -60
- package/lib/esm/tools/EmphasizeElementsTool.js +150 -145
- package/lib/esm/tools/EmphasizeElementsTool.js.map +1 -1
- package/lib/esm/tools/FrustumDecoration.d.ts +57 -57
- package/lib/esm/tools/FrustumDecoration.js +370 -367
- package/lib/esm/tools/FrustumDecoration.js.map +1 -1
- package/lib/esm/tools/InspectElementTool.d.ts +42 -42
- package/lib/esm/tools/InspectElementTool.js +195 -194
- package/lib/esm/tools/InspectElementTool.js.map +1 -1
- package/lib/esm/tools/MapLayerTool.d.ts +264 -264
- package/lib/esm/tools/MapLayerTool.d.ts.map +1 -1
- package/lib/esm/tools/MapLayerTool.js +506 -485
- package/lib/esm/tools/MapLayerTool.js.map +1 -1
- package/lib/esm/tools/MeasureTileLoadTime.d.ts +12 -12
- package/lib/esm/tools/MeasureTileLoadTime.js +60 -59
- package/lib/esm/tools/MeasureTileLoadTime.js.map +1 -1
- package/lib/esm/tools/ModelAppearanceTools.d.ts +86 -86
- package/lib/esm/tools/ModelAppearanceTools.js +180 -172
- package/lib/esm/tools/ModelAppearanceTools.js.map +1 -1
- package/lib/esm/tools/PlanProjectionTools.d.ts +40 -40
- package/lib/esm/tools/PlanProjectionTools.js +146 -143
- package/lib/esm/tools/PlanProjectionTools.js.map +1 -1
- package/lib/esm/tools/PlanarMaskTools.d.ts +182 -182
- package/lib/esm/tools/PlanarMaskTools.js +387 -377
- package/lib/esm/tools/PlanarMaskTools.js.map +1 -1
- package/lib/esm/tools/ProjectExtents.d.ts +41 -41
- package/lib/esm/tools/ProjectExtents.js +105 -104
- package/lib/esm/tools/ProjectExtents.js.map +1 -1
- package/lib/esm/tools/RealityModelTools.d.ts +116 -116
- package/lib/esm/tools/RealityModelTools.js +278 -268
- package/lib/esm/tools/RealityModelTools.js.map +1 -1
- package/lib/esm/tools/RealityTransitionTool.d.ts +25 -25
- package/lib/esm/tools/RealityTransitionTool.js +112 -112
- package/lib/esm/tools/RealityTransitionTool.js.map +1 -1
- package/lib/esm/tools/RenderSystemTools.d.ts +38 -38
- package/lib/esm/tools/RenderSystemTools.js +65 -63
- package/lib/esm/tools/RenderSystemTools.js.map +1 -1
- package/lib/esm/tools/RenderTargetTools.d.ts +107 -107
- package/lib/esm/tools/RenderTargetTools.d.ts.map +1 -1
- package/lib/esm/tools/RenderTargetTools.js +169 -159
- package/lib/esm/tools/RenderTargetTools.js.map +1 -1
- package/lib/esm/tools/ReportWebGLCompatibilityTool.d.ts +11 -11
- package/lib/esm/tools/ReportWebGLCompatibilityTool.js +27 -26
- package/lib/esm/tools/ReportWebGLCompatibilityTool.js.map +1 -1
- package/lib/esm/tools/SavedViews.d.ts +46 -46
- package/lib/esm/tools/SavedViews.js +131 -128
- package/lib/esm/tools/SavedViews.js.map +1 -1
- package/lib/esm/tools/ScheduleScriptTools.d.ts +37 -37
- package/lib/esm/tools/ScheduleScriptTools.js +154 -153
- package/lib/esm/tools/ScheduleScriptTools.js.map +1 -1
- package/lib/esm/tools/SelectionTools.d.ts +28 -28
- package/lib/esm/tools/SelectionTools.js +84 -82
- package/lib/esm/tools/SelectionTools.js.map +1 -1
- package/lib/esm/tools/SetGpuMemoryLimitTool.d.ts +15 -15
- package/lib/esm/tools/SetGpuMemoryLimitTool.js +30 -29
- package/lib/esm/tools/SetGpuMemoryLimitTool.js.map +1 -1
- package/lib/esm/tools/SourceAspectIdTools.d.ts +40 -40
- package/lib/esm/tools/SourceAspectIdTools.js +81 -80
- package/lib/esm/tools/SourceAspectIdTools.js.map +1 -1
- package/lib/esm/tools/TileRequestDecoration.d.ts +12 -12
- package/lib/esm/tools/TileRequestDecoration.js +80 -79
- package/lib/esm/tools/TileRequestDecoration.js.map +1 -1
- package/lib/esm/tools/TileTreeBoundsDecoration.d.ts +11 -11
- package/lib/esm/tools/TileTreeBoundsDecoration.js +71 -70
- package/lib/esm/tools/TileTreeBoundsDecoration.js.map +1 -1
- package/lib/esm/tools/ToolTipProvider.d.ts +15 -15
- package/lib/esm/tools/ToolTipProvider.js +63 -62
- package/lib/esm/tools/ToolTipProvider.js.map +1 -1
- package/lib/esm/tools/ViewportTools.d.ts +218 -218
- package/lib/esm/tools/ViewportTools.d.ts.map +1 -1
- package/lib/esm/tools/ViewportTools.js +511 -492
- package/lib/esm/tools/ViewportTools.js.map +1 -1
- package/lib/esm/tools/parseArgs.d.ts +23 -23
- package/lib/esm/tools/parseArgs.js +47 -47
- package/lib/esm/tools/parseBoolean.d.ts +8 -8
- package/lib/esm/tools/parseBoolean.js +22 -22
- package/lib/esm/tools/parseToggle.d.ts +8 -8
- package/lib/esm/tools/parseToggle.js +21 -21
- package/lib/esm/ui/Button.d.ts +29 -29
- package/lib/esm/ui/Button.d.ts.map +1 -1
- package/lib/esm/ui/Button.js +22 -22
- package/lib/esm/ui/CheckBox.d.ts +23 -23
- package/lib/esm/ui/CheckBox.d.ts.map +1 -1
- package/lib/esm/ui/CheckBox.js +23 -23
- package/lib/esm/ui/ColorInput.d.ts +27 -27
- package/lib/esm/ui/ColorInput.d.ts.map +1 -1
- package/lib/esm/ui/ColorInput.js +48 -48
- package/lib/esm/ui/ComboBox.d.ts +28 -28
- package/lib/esm/ui/ComboBox.d.ts.map +1 -1
- package/lib/esm/ui/ComboBox.js +38 -38
- package/lib/esm/ui/DataList.d.ts +27 -27
- package/lib/esm/ui/DataList.d.ts.map +1 -1
- package/lib/esm/ui/DataList.js +34 -34
- package/lib/esm/ui/NestedMenu.d.ts +19 -19
- package/lib/esm/ui/NestedMenu.d.ts.map +1 -1
- package/lib/esm/ui/NestedMenu.js +42 -42
- package/lib/esm/ui/NumericInput.d.ts +35 -35
- package/lib/esm/ui/NumericInput.d.ts.map +1 -1
- package/lib/esm/ui/NumericInput.js +56 -56
- package/lib/esm/ui/RadioBox.d.ts +29 -29
- package/lib/esm/ui/RadioBox.d.ts.map +1 -1
- package/lib/esm/ui/RadioBox.js +72 -72
- package/lib/esm/ui/Slider.d.ts +28 -28
- package/lib/esm/ui/Slider.d.ts.map +1 -1
- package/lib/esm/ui/Slider.js +38 -38
- package/lib/esm/ui/TextBox.d.ts +32 -32
- package/lib/esm/ui/TextBox.d.ts.map +1 -1
- package/lib/esm/ui/TextBox.js +52 -52
- package/lib/esm/widgets/DiagnosticsPanel.d.ts +37 -37
- package/lib/esm/widgets/DiagnosticsPanel.js +77 -77
- package/lib/esm/widgets/FpsTracker.d.ts +19 -19
- package/lib/esm/widgets/FpsTracker.js +52 -52
- package/lib/esm/widgets/GpuProfiler.d.ts +16 -16
- package/lib/esm/widgets/GpuProfiler.js +188 -188
- package/lib/esm/widgets/KeyinField.d.ts +61 -61
- package/lib/esm/widgets/KeyinField.js +182 -183
- package/lib/esm/widgets/KeyinField.js.map +1 -1
- package/lib/esm/widgets/MemoryTracker.d.ts +27 -27
- package/lib/esm/widgets/MemoryTracker.js +237 -238
- package/lib/esm/widgets/MemoryTracker.js.map +1 -1
- package/lib/esm/widgets/RenderCommandBreakdown.d.ts +15 -15
- package/lib/esm/widgets/RenderCommandBreakdown.js +63 -64
- package/lib/esm/widgets/RenderCommandBreakdown.js.map +1 -1
- package/lib/esm/widgets/TileMemoryBreakdown.d.ts +30 -30
- package/lib/esm/widgets/TileMemoryBreakdown.js +199 -200
- package/lib/esm/widgets/TileMemoryBreakdown.js.map +1 -1
- package/lib/esm/widgets/TileStatisticsTracker.d.ts +21 -21
- package/lib/esm/widgets/TileStatisticsTracker.d.ts.map +1 -1
- package/lib/esm/widgets/TileStatisticsTracker.js +140 -138
- package/lib/esm/widgets/TileStatisticsTracker.js.map +1 -1
- package/lib/esm/widgets/ToolSettingsTracker.d.ts +9 -9
- package/lib/esm/widgets/ToolSettingsTracker.js +208 -207
- package/lib/esm/widgets/ToolSettingsTracker.js.map +1 -1
- package/package.json +14 -14
|
@@ -1,508 +1,510 @@
|
|
|
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.MapBaseVisibilityTool = exports.MapBaseTransparencyTool = exports.MapBaseColorTool = exports.ToggleTerrainTool = exports.MapLayerZoomTool = exports.MapLayerSubLayerVisibilityTool = exports.MapLayerTransparencyTool = exports.ReorderMapLayers = exports.MapLayerVisibilityTool = exports.DetachMapLayersTool = exports.SetMapBaseTool = exports.AttachMapOverlayTool = exports.AttachMapLayerTool = exports.AttachTileURLMapLayerByUrlTool = exports.AttachArcGISFeatureMapLayerByUrlTool = exports.AttachArcGISMapLayerByUrlTool = exports.AttachWmtsMapLayerByUrlTool = exports.AttachWmsMapLayerByUrlTool = exports.AttachModelMapLayerTool = void 0;
|
|
8
|
-
const core_common_1 = require("@itwin/core-common");
|
|
9
|
-
const core_frontend_1 = require("@itwin/core-frontend");
|
|
10
|
-
const parseBoolean_1 = require("./parseBoolean");
|
|
11
|
-
const parseToggle_1 = require("./parseToggle");
|
|
12
|
-
/** Base class for attaching map layer tool. */
|
|
13
|
-
class AttachMapLayerBaseTool extends core_frontend_1.Tool {
|
|
14
|
-
constructor(_isBackground = true, _isBase = false) {
|
|
15
|
-
super();
|
|
16
|
-
this._isBackground = _isBackground;
|
|
17
|
-
this._isBase = _isBase;
|
|
18
|
-
}
|
|
19
|
-
doAttach(source) {
|
|
20
|
-
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
21
|
-
if (vp === undefined || source === undefined)
|
|
22
|
-
return;
|
|
23
|
-
source.validateSource().then((validation) => {
|
|
24
|
-
if (validation.status === core_frontend_1.MapLayerSourceStatus.Valid || validation.status === core_frontend_1.MapLayerSourceStatus.RequireAuth) {
|
|
25
|
-
if (this._isBase) {
|
|
26
|
-
vp.displayStyle.backgroundMapBase = core_common_1.BaseMapLayerSettings.fromJSON({ ...source, subLayers: validation.subLayers });
|
|
27
|
-
vp.invalidateRenderPlan();
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
const settings = source.toLayerSettings(validation.subLayers);
|
|
31
|
-
if (settings) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
vp
|
|
231
|
-
|
|
232
|
-
vp.
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
vp.
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
vp.
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
vp.
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
vp.
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
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.MapBaseVisibilityTool = exports.MapBaseTransparencyTool = exports.MapBaseColorTool = exports.ToggleTerrainTool = exports.MapLayerZoomTool = exports.MapLayerSubLayerVisibilityTool = exports.MapLayerTransparencyTool = exports.ReorderMapLayers = exports.MapLayerVisibilityTool = exports.DetachMapLayersTool = exports.SetMapBaseTool = exports.AttachMapOverlayTool = exports.AttachMapLayerTool = exports.AttachTileURLMapLayerByUrlTool = exports.AttachArcGISFeatureMapLayerByUrlTool = exports.AttachArcGISMapLayerByUrlTool = exports.AttachWmtsMapLayerByUrlTool = exports.AttachWmsMapLayerByUrlTool = exports.AttachModelMapLayerTool = void 0;
|
|
8
|
+
const core_common_1 = require("@itwin/core-common");
|
|
9
|
+
const core_frontend_1 = require("@itwin/core-frontend");
|
|
10
|
+
const parseBoolean_1 = require("./parseBoolean");
|
|
11
|
+
const parseToggle_1 = require("./parseToggle");
|
|
12
|
+
/** Base class for attaching map layer tool. */
|
|
13
|
+
class AttachMapLayerBaseTool extends core_frontend_1.Tool {
|
|
14
|
+
constructor(_isBackground = true, _isBase = false) {
|
|
15
|
+
super();
|
|
16
|
+
this._isBackground = _isBackground;
|
|
17
|
+
this._isBase = _isBase;
|
|
18
|
+
}
|
|
19
|
+
doAttach(source) {
|
|
20
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
21
|
+
if (vp === undefined || source === undefined)
|
|
22
|
+
return;
|
|
23
|
+
source.validateSource().then((validation) => {
|
|
24
|
+
if (validation.status === core_frontend_1.MapLayerSourceStatus.Valid || validation.status === core_frontend_1.MapLayerSourceStatus.RequireAuth) {
|
|
25
|
+
if (this._isBase) {
|
|
26
|
+
vp.displayStyle.backgroundMapBase = core_common_1.BaseMapLayerSettings.fromJSON({ ...source, subLayers: validation.subLayers });
|
|
27
|
+
vp.invalidateRenderPlan();
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
const settings = source.toLayerSettings(validation.subLayers);
|
|
31
|
+
if (settings) {
|
|
32
|
+
// Need to specify index in mapLayerIndex, so just use -1 to attach layer at the bottom
|
|
33
|
+
// Previously, this was done within attachMapLayer if index was undefined.
|
|
34
|
+
vp.displayStyle.attachMapLayer({ settings, mapLayerIndex: { isOverlay: !this._isBackground, index: -1 } });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (validation.status === core_frontend_1.MapLayerSourceStatus.Valid) {
|
|
38
|
+
vp.invalidateRenderPlan();
|
|
39
|
+
const msg = core_frontend_1.IModelApp.localization.getLocalizedString("FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttached", { sourceName: source.name, sourceUrl: source.url });
|
|
40
|
+
core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Info, msg));
|
|
41
|
+
}
|
|
42
|
+
else if (validation.status === core_frontend_1.MapLayerSourceStatus.RequireAuth) {
|
|
43
|
+
const msg = core_frontend_1.IModelApp.localization.getLocalizedString("FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttachedRequiresAuth", { sourceName: source.name });
|
|
44
|
+
core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Warning, msg));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const msg = core_frontend_1.IModelApp.localization.getLocalizedString("FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerValidationFailed", { sourceUrl: source.url });
|
|
49
|
+
core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Error, msg));
|
|
50
|
+
}
|
|
51
|
+
}).catch((error) => {
|
|
52
|
+
const msg = core_frontend_1.IModelApp.localization.getLocalizedString("FrontendDevTools:tools.AttachMapLayerTool.Messages.MapLayerAttachError", { error, sourceUrl: source.url });
|
|
53
|
+
core_frontend_1.IModelApp.notifications.outputMessage(new core_frontend_1.NotifyMessageDetails(core_frontend_1.OutputMessagePriority.Error, msg));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/** Attach a map layer from URL base class. A layer is attached for each unique model in the selection
|
|
58
|
+
* @beta
|
|
59
|
+
*/
|
|
60
|
+
class AttachModelMapLayerTool extends core_frontend_1.Tool {
|
|
61
|
+
static get minArgs() { return 0; }
|
|
62
|
+
static get maxArgs() { return 1; }
|
|
63
|
+
constructor(_formatId) {
|
|
64
|
+
super();
|
|
65
|
+
this._formatId = _formatId;
|
|
66
|
+
}
|
|
67
|
+
async run(nameIn) {
|
|
68
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
69
|
+
if (!vp)
|
|
70
|
+
return false;
|
|
71
|
+
const iModel = vp.iModel;
|
|
72
|
+
const elements = await iModel.elements.getProps(iModel.selectionSet.elements);
|
|
73
|
+
const modelIds = new Set();
|
|
74
|
+
for (const element of elements)
|
|
75
|
+
modelIds.add(element.model);
|
|
76
|
+
for (const modelId of modelIds) {
|
|
77
|
+
const modelProps = await iModel.models.getProps(modelId);
|
|
78
|
+
const modelName = modelProps[0].name ? modelProps[0].name : modelId;
|
|
79
|
+
const name = nameIn ? (modelIds.size > 1 ? `${nameIn}: ${modelName}` : nameIn) : modelName;
|
|
80
|
+
const settings = core_common_1.ModelMapLayerSettings.fromJSON({ name, modelId });
|
|
81
|
+
vp.displayStyle.attachMapLayer({ settings, mapLayerIndex: { isOverlay: false, index: -1 } });
|
|
82
|
+
}
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
async parseAndRun(...args) {
|
|
86
|
+
return this.run(args[0]);
|
|
87
|
+
}
|
|
88
|
+
async onRestartTool() {
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
AttachModelMapLayerTool.toolId = "AttachModelMapLayerTool";
|
|
92
|
+
exports.AttachModelMapLayerTool = AttachModelMapLayerTool;
|
|
93
|
+
/** Attach a map layer from URL base class. */
|
|
94
|
+
class AttachMapLayerByURLBaseTool extends AttachMapLayerBaseTool {
|
|
95
|
+
static get minArgs() { return 1; }
|
|
96
|
+
static get maxArgs() { return 4; }
|
|
97
|
+
constructor(_formatId) {
|
|
98
|
+
super();
|
|
99
|
+
this._formatId = _formatId;
|
|
100
|
+
}
|
|
101
|
+
async run(url, name, userName, password) {
|
|
102
|
+
const source = core_frontend_1.MapLayerSource.fromJSON({ url, name: (name ? name : url), formatId: this._formatId });
|
|
103
|
+
if (source) {
|
|
104
|
+
source.userName = userName;
|
|
105
|
+
source.password = password;
|
|
106
|
+
}
|
|
107
|
+
this.doAttach(source);
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
async parseAndRun(...args) {
|
|
111
|
+
return this.run(args[0], args[1], args[2], args[3]);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/** This tool attaches a WMS map layer from a given URL.
|
|
115
|
+
* @beta
|
|
116
|
+
*/
|
|
117
|
+
class AttachWmsMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {
|
|
118
|
+
constructor() { super("WMS"); }
|
|
119
|
+
/** This method runs the tool, attaching a WMS map layer from a given URL.
|
|
120
|
+
* @param args contains url, name, userName, password in array order
|
|
121
|
+
*/
|
|
122
|
+
async parseAndRun(...args) {
|
|
123
|
+
return this.run(core_frontend_1.WmsUtilities.getBaseUrl(args[0]), args[1], args[2], args[3]);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
AttachWmsMapLayerByUrlTool.toolId = "AttachWmsMapLayerTool";
|
|
127
|
+
exports.AttachWmsMapLayerByUrlTool = AttachWmsMapLayerByUrlTool;
|
|
128
|
+
/** This tool attaches a WMTS map layer from a given URL.
|
|
129
|
+
* @beta
|
|
130
|
+
*/
|
|
131
|
+
class AttachWmtsMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {
|
|
132
|
+
constructor() { super("WMTS"); }
|
|
133
|
+
/** This method runs the tool, attaching a WMTS map layer from a given URL.
|
|
134
|
+
* @param args contains url, name, userName, password in array order
|
|
135
|
+
*/
|
|
136
|
+
async parseAndRun(...args) {
|
|
137
|
+
return this.run(core_frontend_1.WmsUtilities.getBaseUrl(args[0]), args[1], args[2], args[3]);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
AttachWmtsMapLayerByUrlTool.toolId = "AttachWmtsMapLayerTool";
|
|
141
|
+
exports.AttachWmtsMapLayerByUrlTool = AttachWmtsMapLayerByUrlTool;
|
|
142
|
+
/** This tool attaches an ArcGIS map layer from a given URL.
|
|
143
|
+
* @beta
|
|
144
|
+
*/
|
|
145
|
+
class AttachArcGISMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {
|
|
146
|
+
constructor() { super("ArcGIS"); }
|
|
147
|
+
}
|
|
148
|
+
AttachArcGISMapLayerByUrlTool.toolId = "AttachArcGISMapLayerTool";
|
|
149
|
+
exports.AttachArcGISMapLayerByUrlTool = AttachArcGISMapLayerByUrlTool;
|
|
150
|
+
/** This tool attaches an ArcGIS map layer from a given URL.
|
|
151
|
+
* @beta
|
|
152
|
+
*/
|
|
153
|
+
class AttachArcGISFeatureMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {
|
|
154
|
+
constructor() { super("ArcGISFeature"); }
|
|
155
|
+
}
|
|
156
|
+
AttachArcGISFeatureMapLayerByUrlTool.toolId = "AttachArcGISFeatureMapLayerTool";
|
|
157
|
+
exports.AttachArcGISFeatureMapLayerByUrlTool = AttachArcGISFeatureMapLayerByUrlTool;
|
|
158
|
+
/** This tool attaches a map layer from a given tile URL.
|
|
159
|
+
* @beta
|
|
160
|
+
*/
|
|
161
|
+
class AttachTileURLMapLayerByUrlTool extends AttachMapLayerByURLBaseTool {
|
|
162
|
+
constructor() { super("TileURL"); }
|
|
163
|
+
}
|
|
164
|
+
AttachTileURLMapLayerByUrlTool.toolId = "AttachTileURLMapLayerTool";
|
|
165
|
+
exports.AttachTileURLMapLayerByUrlTool = AttachTileURLMapLayerByUrlTool;
|
|
166
|
+
/** This tool add a Map Layer from a specified name (look up in MapLayerSources.json).
|
|
167
|
+
* @beta
|
|
168
|
+
*/
|
|
169
|
+
class AttachMapLayerTool extends AttachMapLayerBaseTool {
|
|
170
|
+
static get minArgs() { return 1; }
|
|
171
|
+
static get maxArgs() { return 1; }
|
|
172
|
+
/** This method runs the tool, adding a map layer from a specified name in MayLayerSources.json.
|
|
173
|
+
* @param name the name of the map layer to add
|
|
174
|
+
*/
|
|
175
|
+
async run(name) {
|
|
176
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
177
|
+
if (vp === undefined)
|
|
178
|
+
return false;
|
|
179
|
+
core_frontend_1.MapLayerSources.create().then((sources) => {
|
|
180
|
+
if (sources !== undefined) {
|
|
181
|
+
const source = sources.findByName(name, this._isBase);
|
|
182
|
+
if (source !== undefined)
|
|
183
|
+
this.doAttach(source);
|
|
184
|
+
}
|
|
185
|
+
}).catch((_err) => { });
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
188
|
+
/** Executes this tool's run method with args[0] containing `name`.
|
|
189
|
+
* @see [[run]]
|
|
190
|
+
*/
|
|
191
|
+
async parseAndRun(...args) {
|
|
192
|
+
return this.run(args[0]);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
AttachMapLayerTool.toolId = "AttachMapLayerTool";
|
|
196
|
+
exports.AttachMapLayerTool = AttachMapLayerTool;
|
|
197
|
+
/** This tool attaches a Overlay map layer.
|
|
198
|
+
* @beta
|
|
199
|
+
*/
|
|
200
|
+
class AttachMapOverlayTool extends AttachMapLayerTool {
|
|
201
|
+
constructor() {
|
|
202
|
+
super();
|
|
203
|
+
this._isBackground = false;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
AttachMapOverlayTool.toolId = "AttachMapOverlayTool";
|
|
207
|
+
exports.AttachMapOverlayTool = AttachMapOverlayTool;
|
|
208
|
+
/** Sets map layer base tool.
|
|
209
|
+
* @beta
|
|
210
|
+
*/
|
|
211
|
+
class SetMapBaseTool extends AttachMapLayerTool {
|
|
212
|
+
constructor() {
|
|
213
|
+
super();
|
|
214
|
+
this._isBase = true;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
SetMapBaseTool.toolId = "SetMapBaseTool";
|
|
218
|
+
exports.SetMapBaseTool = SetMapBaseTool;
|
|
219
|
+
/** Detach Map Layers Tool.
|
|
220
|
+
* @beta
|
|
221
|
+
*/
|
|
222
|
+
class DetachMapLayersTool extends core_frontend_1.Tool {
|
|
223
|
+
static get minArgs() { return 0; }
|
|
224
|
+
static get maxArgs() { return 0; }
|
|
225
|
+
async parseAndRun(..._args) {
|
|
226
|
+
return this.run();
|
|
227
|
+
}
|
|
228
|
+
async run() {
|
|
229
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
230
|
+
if (vp === undefined)
|
|
231
|
+
return false;
|
|
232
|
+
vp.displayStyle.detachMapLayerByIndex({ index: -1, isOverlay: true });
|
|
233
|
+
vp.displayStyle.detachMapLayerByIndex({ index: -1, isOverlay: false });
|
|
234
|
+
vp.invalidateRenderPlan();
|
|
235
|
+
return true;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
DetachMapLayersTool.toolId = "DetachMapLayersTool";
|
|
239
|
+
exports.DetachMapLayersTool = DetachMapLayersTool;
|
|
240
|
+
function parseLayerIndex(args) {
|
|
241
|
+
const layerIndex = args.length > 1 ? parseInt(args[1], 10) : 0;
|
|
242
|
+
return isNaN(layerIndex) ? 0 : layerIndex;
|
|
243
|
+
}
|
|
244
|
+
/** This tool sets the visibility of the map layer.
|
|
245
|
+
* @beta
|
|
246
|
+
*/
|
|
247
|
+
class MapLayerVisibilityTool extends core_frontend_1.Tool {
|
|
248
|
+
static get minArgs() { return 1; }
|
|
249
|
+
static get maxArgs() { return 2; }
|
|
250
|
+
/** This method runs the tool, setting the visibility of a map layer.
|
|
251
|
+
* @param layerIndex the index of the layer to change
|
|
252
|
+
* @param visible a boolean that should be true if the layer should be visible
|
|
253
|
+
*/
|
|
254
|
+
async run(layerIndex, enable) {
|
|
255
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
256
|
+
if (undefined === vp || !vp.view.isSpatialView())
|
|
257
|
+
return false;
|
|
258
|
+
const mapLayer = vp.displayStyle.mapLayerAtIndex({ index: layerIndex, isOverlay: false });
|
|
259
|
+
if (undefined === mapLayer)
|
|
260
|
+
return false;
|
|
261
|
+
const visible = (enable === undefined) ? !mapLayer.visible : enable;
|
|
262
|
+
vp.displayStyle.changeMapLayerProps({ visible }, { index: layerIndex, isOverlay: false });
|
|
263
|
+
vp.invalidateRenderPlan();
|
|
264
|
+
return true;
|
|
265
|
+
}
|
|
266
|
+
/** Executes this tool's run method with args[0] containing `enable` and args[1] containing `layerIndex`.
|
|
267
|
+
* @see [[run]]
|
|
268
|
+
*/
|
|
269
|
+
async parseAndRun(...args) {
|
|
270
|
+
const enable = (0, parseToggle_1.parseToggle)(args[0]);
|
|
271
|
+
const layerIndex = parseLayerIndex(args);
|
|
272
|
+
if (typeof enable !== "string")
|
|
273
|
+
await this.run(layerIndex, enable);
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
MapLayerVisibilityTool.toolId = "SetMapLayerVisibility";
|
|
278
|
+
exports.MapLayerVisibilityTool = MapLayerVisibilityTool;
|
|
279
|
+
/** This tool reorders map layers.
|
|
280
|
+
* @beta
|
|
281
|
+
*/
|
|
282
|
+
class ReorderMapLayers extends core_frontend_1.Tool {
|
|
283
|
+
static get minArgs() { return 0; }
|
|
284
|
+
static get maxArgs() { return 2; }
|
|
285
|
+
/** This method runs the tool, reordering the map layers.
|
|
286
|
+
* @param from a numeric value specifying the layer index that is being moved
|
|
287
|
+
* @param from a numeric value specifying the layer index to move that layer to
|
|
288
|
+
*/
|
|
289
|
+
async run(from, to) {
|
|
290
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
291
|
+
if (undefined === vp || !vp.view.isSpatialView())
|
|
292
|
+
return false;
|
|
293
|
+
vp.displayStyle.moveMapLayerToIndex(isNaN(from) ? 0 : from, isNaN(to) ? vp.displayStyle.settings.mapImagery.backgroundLayers.length : to, false);
|
|
294
|
+
vp.invalidateRenderPlan();
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
/** Executes this tool's run method with args[0] containing `from` and args[1] containing `to`.
|
|
298
|
+
* @see [[run]]
|
|
299
|
+
*/
|
|
300
|
+
async parseAndRun(...args) {
|
|
301
|
+
const from = parseInt(args[0], 10);
|
|
302
|
+
const to = parseInt(args[1], 10);
|
|
303
|
+
await this.run(from, to);
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
ReorderMapLayers.toolId = "ReorderMapLayers";
|
|
308
|
+
exports.ReorderMapLayers = ReorderMapLayers;
|
|
309
|
+
/** This tool sets the transparency of a map layer.
|
|
310
|
+
* @beta
|
|
311
|
+
*/
|
|
312
|
+
class MapLayerTransparencyTool extends core_frontend_1.Tool {
|
|
313
|
+
static get minArgs() { return 1; }
|
|
314
|
+
static get maxArgs() { return 2; }
|
|
315
|
+
/** This method runs the tool, setting the transparency of a map layer.
|
|
316
|
+
* @param layerIndex the index of the layer to change
|
|
317
|
+
* @param transparency a numeric value in the range 0.0 (fully opaque) to 1.0 (fully transparent)
|
|
318
|
+
*/
|
|
319
|
+
async run(layerIndex, transparency) {
|
|
320
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
321
|
+
if (undefined === vp || !vp.view.isSpatialView())
|
|
322
|
+
return false;
|
|
323
|
+
vp.displayStyle.changeMapLayerProps({ transparency }, { index: layerIndex, isOverlay: false });
|
|
324
|
+
vp.invalidateRenderPlan();
|
|
325
|
+
return true;
|
|
326
|
+
}
|
|
327
|
+
/** Executes this tool's run method with args[0] containing `transparency` and args[1] containing `layerIndex`.
|
|
328
|
+
* @see [[run]]
|
|
329
|
+
*/
|
|
330
|
+
async parseAndRun(...args) {
|
|
331
|
+
const transparency = parseFloat(args[0]);
|
|
332
|
+
const layerIndex = parseLayerIndex(args);
|
|
333
|
+
if (transparency >= 0 && transparency <= 1)
|
|
334
|
+
await this.run(layerIndex, transparency);
|
|
335
|
+
return true;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
MapLayerTransparencyTool.toolId = "SetMapLayerTransparency";
|
|
339
|
+
exports.MapLayerTransparencyTool = MapLayerTransparencyTool;
|
|
340
|
+
/** This tool sets the visibility of the map sublayer.
|
|
341
|
+
* @beta
|
|
342
|
+
*/
|
|
343
|
+
class MapLayerSubLayerVisibilityTool extends core_frontend_1.Tool {
|
|
344
|
+
static get minArgs() { return 1; }
|
|
345
|
+
static get maxArgs() { return 2; }
|
|
346
|
+
/** This method runs the tool, setting the visibility of a map sublayer.
|
|
347
|
+
* @param layerIndex the index of the layer to change
|
|
348
|
+
* @param visible a boolean that should be true if the sublayer should be visible
|
|
349
|
+
*/
|
|
350
|
+
async run(layerIndex, visible) {
|
|
351
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
352
|
+
if (undefined === vp || !vp.view.isSpatialView())
|
|
353
|
+
return false;
|
|
354
|
+
vp.displayStyle.changeMapSubLayerProps({ visible }, -1, { index: layerIndex, isOverlay: false });
|
|
355
|
+
vp.invalidateRenderPlan();
|
|
356
|
+
return true;
|
|
357
|
+
}
|
|
358
|
+
/** Executes this tool's run method with args[0] containing `transparency` and args[1] containing `layerIndex`.
|
|
359
|
+
* @see [[run]]
|
|
360
|
+
*/
|
|
361
|
+
async parseAndRun(...args) {
|
|
362
|
+
const on = args[0] !== "off";
|
|
363
|
+
const layerIndex = parseLayerIndex(args);
|
|
364
|
+
await this.run(layerIndex, on);
|
|
365
|
+
return true;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
MapLayerSubLayerVisibilityTool.toolId = "SetMapSubLayerVisibility";
|
|
369
|
+
exports.MapLayerSubLayerVisibilityTool = MapLayerSubLayerVisibilityTool;
|
|
370
|
+
/** This tool changes the viewport so it is zoomed to the range of a map layer.
|
|
371
|
+
* @beta
|
|
372
|
+
*/
|
|
373
|
+
class MapLayerZoomTool extends core_frontend_1.Tool {
|
|
374
|
+
static get minArgs() { return 0; }
|
|
375
|
+
static get maxArgs() { return 1; }
|
|
376
|
+
/** This method runs the tool, changing the viewport so it is zoomed to the range of a map layer.
|
|
377
|
+
* @param layerIndex the index of the layer whose range to zoom to
|
|
378
|
+
*/
|
|
379
|
+
async run(layerIndex) {
|
|
380
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
381
|
+
if (undefined === vp || !vp.view.isSpatialView())
|
|
382
|
+
return false;
|
|
383
|
+
vp.viewMapLayerRange({ index: layerIndex, isOverlay: false }, vp).then(() => { }).catch(() => { });
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
/** Executes this tool's run method with args[0] containing `layerIndex`.
|
|
387
|
+
* @see [[run]]
|
|
388
|
+
*/
|
|
389
|
+
async parseAndRun(...args) {
|
|
390
|
+
const layerIndex = parseLayerIndex(args);
|
|
391
|
+
await this.run(layerIndex);
|
|
392
|
+
return true;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
MapLayerZoomTool.toolId = "MapLayerZoom";
|
|
396
|
+
exports.MapLayerZoomTool = MapLayerZoomTool;
|
|
397
|
+
/** This tool toggles whether to apply terrain heights to the map.
|
|
398
|
+
* @beta
|
|
399
|
+
*/
|
|
400
|
+
class ToggleTerrainTool extends core_frontend_1.Tool {
|
|
401
|
+
static get minArgs() { return 0; }
|
|
402
|
+
static get maxArgs() { return 1; }
|
|
403
|
+
/** This method runs the tool, changing whether to apply terrain heights to the map.
|
|
404
|
+
* @param enable whether or not to enable terrain heights on the map
|
|
405
|
+
*/
|
|
406
|
+
async run(enable) {
|
|
407
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
408
|
+
if (undefined === vp || !vp.view.isSpatialView())
|
|
409
|
+
return false;
|
|
410
|
+
const applyTerrain = (enable === undefined) ? !vp.displayStyle.backgroundMapSettings.applyTerrain : enable;
|
|
411
|
+
vp.displayStyle.changeBackgroundMapProps({ applyTerrain });
|
|
412
|
+
vp.invalidateRenderPlan();
|
|
413
|
+
return true;
|
|
414
|
+
}
|
|
415
|
+
/** Executes this tool's run method with args[0] containing `enable`.
|
|
416
|
+
* @see [[run]]
|
|
417
|
+
*/
|
|
418
|
+
async parseAndRun(...args) {
|
|
419
|
+
const enable = (0, parseToggle_1.parseToggle)(args[0]);
|
|
420
|
+
if (typeof enable !== "string")
|
|
421
|
+
await this.run(enable);
|
|
422
|
+
return true;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
ToggleTerrainTool.toolId = "ToggleTerrain";
|
|
426
|
+
exports.ToggleTerrainTool = ToggleTerrainTool;
|
|
427
|
+
/** This tool changes the color of the base map.
|
|
428
|
+
* @beta
|
|
429
|
+
*/
|
|
430
|
+
class MapBaseColorTool extends core_frontend_1.Tool {
|
|
431
|
+
static get minArgs() { return 3; }
|
|
432
|
+
static get maxArgs() { return 3; }
|
|
433
|
+
/** This method runs the tool, changing the color of the base map.
|
|
434
|
+
* @param color the color for the base map
|
|
435
|
+
*/
|
|
436
|
+
async run(color) {
|
|
437
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
438
|
+
if (undefined === vp || !vp.view.isSpatialView())
|
|
439
|
+
return false;
|
|
440
|
+
const curTransparency = vp.displayStyle.backgroundMapBase instanceof core_common_1.ColorDef ? vp.displayStyle.backgroundMapBase.getTransparency() : 0;
|
|
441
|
+
vp.displayStyle.backgroundMapBase = color.withTransparency(curTransparency);
|
|
442
|
+
vp.invalidateRenderPlan();
|
|
443
|
+
return true;
|
|
444
|
+
}
|
|
445
|
+
/** 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.
|
|
446
|
+
* These rgb values will be used to construct the `color` parameter passed to this tool's run method.
|
|
447
|
+
* @see [[run]]
|
|
448
|
+
*/
|
|
449
|
+
async parseAndRun(...args) {
|
|
450
|
+
const red = parseFloat(args[0]), green = parseFloat(args[1]), blue = parseFloat(args[2]);
|
|
451
|
+
return (isNaN(red) || red < 0 || red > 255 || isNaN(green) || green < 0 || green > 255 || isNaN(blue) || blue < 0 || blue > 255) ? false : this.run(core_common_1.ColorDef.from(red, green, blue));
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
MapBaseColorTool.toolId = "SetMapBaseColorTool";
|
|
455
|
+
exports.MapBaseColorTool = MapBaseColorTool;
|
|
456
|
+
/** This tool changes the transparency of the base map.
|
|
457
|
+
* @beta
|
|
458
|
+
*/
|
|
459
|
+
class MapBaseTransparencyTool extends core_frontend_1.Tool {
|
|
460
|
+
static get minArgs() { return 1; }
|
|
461
|
+
static get maxArgs() { return 1; }
|
|
462
|
+
/** This method runs the tool, changing the transparency of the base map.
|
|
463
|
+
* @param transparency a numeric value in range 0.0 to 1.0 whether 0.0 means fully opaque and 1.0 means fully transparent
|
|
464
|
+
*/
|
|
465
|
+
async run(transparency) {
|
|
466
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
467
|
+
if (undefined === vp || !vp.view.isSpatialView())
|
|
468
|
+
return false;
|
|
469
|
+
vp.displayStyle.changeBaseMapTransparency(transparency);
|
|
470
|
+
vp.invalidateRenderPlan();
|
|
471
|
+
return true;
|
|
472
|
+
}
|
|
473
|
+
/** Executes this tool's run method with args[0] containing `transparency`.
|
|
474
|
+
* @see [[run]]
|
|
475
|
+
*/
|
|
476
|
+
async parseAndRun(...args) {
|
|
477
|
+
const transparency = parseFloat(args[0]);
|
|
478
|
+
return (isNaN(transparency) || transparency < 0 || transparency > 1) ? false : this.run(transparency);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
MapBaseTransparencyTool.toolId = "SetMapBaseTransparencyTool";
|
|
482
|
+
exports.MapBaseTransparencyTool = MapBaseTransparencyTool;
|
|
483
|
+
/** This tool changes the visibility of the base map.
|
|
484
|
+
* @beta
|
|
485
|
+
*/
|
|
486
|
+
class MapBaseVisibilityTool extends core_frontend_1.Tool {
|
|
487
|
+
static get minArgs() { return 1; }
|
|
488
|
+
static get maxArgs() { return 1; }
|
|
489
|
+
/** This method runs the tool, changing the visibility of the base map.
|
|
490
|
+
* @param visible a boolean which specifies whether or not to make the base map visible
|
|
491
|
+
*/
|
|
492
|
+
async run(visible) {
|
|
493
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
494
|
+
if (undefined === vp || !vp.view.isSpatialView() || vp.displayStyle.backgroundMapBase instanceof core_common_1.ColorDef)
|
|
495
|
+
return false;
|
|
496
|
+
vp.displayStyle.backgroundMapBase = vp.displayStyle.backgroundMapBase.clone({ visible });
|
|
497
|
+
vp.invalidateRenderPlan();
|
|
498
|
+
return true;
|
|
499
|
+
}
|
|
500
|
+
/** Executes this tool's run method with args[0] containing `visible`.
|
|
501
|
+
* @see [[run]]
|
|
502
|
+
*/
|
|
503
|
+
async parseAndRun(...args) {
|
|
504
|
+
const visible = (0, parseBoolean_1.parseBoolean)(args[0]);
|
|
505
|
+
return (visible !== undefined ? this.run(visible) : false);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
MapBaseVisibilityTool.toolId = "SetMapBaseVisibilityTool";
|
|
509
|
+
exports.MapBaseVisibilityTool = MapBaseVisibilityTool;
|
|
508
510
|
//# sourceMappingURL=MapLayerTool.js.map
|