@itwin/frontend-devtools 4.0.0-dev.8 → 4.0.0-dev.81
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,394 +1,392 @@
|
|
|
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.UnmaskRealityModelTool = exports.SetHigherPriorityRealityModelMasking = exports.MaskRealityModelBySubCategoryTool = exports.MaskRealityModelByModelTool = exports.MaskRealityModelByExcludedElementTool = exports.MaskRealityModelByElementTool = exports.MaskBackgroundMapByModelTool = exports.MaskBackgroundMapBySubCategoryTool = exports.MaskBackgroundMapByExcludedElementTool = exports.MaskBackgroundMapByElementTool = exports.PlanarMaskBaseTool = exports.UnmaskMapTool = exports.SetMapHigherPriorityMasking = 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
|
-
/** Set Map Masking by selected models.
|
|
12
|
-
* @beta
|
|
13
|
-
*/
|
|
14
|
-
class SetMapHigherPriorityMasking extends core_frontend_1.Tool {
|
|
15
|
-
static get minArgs() { return 0; }
|
|
16
|
-
static get maxArgs() { return 2; }
|
|
17
|
-
async run(transparency, invert) {
|
|
18
|
-
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
19
|
-
if (undefined === vp)
|
|
20
|
-
return false;
|
|
21
|
-
vp.changeBackgroundMapProps({ planarClipMask: { mode: core_common_1.PlanarClipMaskMode.Priority, priority: core_common_1.PlanarClipMaskPriority.BackgroundMap, transparency, invert } });
|
|
22
|
-
vp.invalidateRenderPlan();
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
async parseAndRun(...args) {
|
|
26
|
-
const transparency = parseFloat(args[0]);
|
|
27
|
-
let invert;
|
|
28
|
-
if (args.length > 1)
|
|
29
|
-
invert = (0, parseBoolean_1.parseBoolean)(args[1]);
|
|
30
|
-
return this.run((transparency !== undefined && transparency < 1.0) ? transparency : 0, invert === true);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
SetMapHigherPriorityMasking
|
|
35
|
-
/** Unmask Mask.
|
|
36
|
-
* @beta
|
|
37
|
-
*/
|
|
38
|
-
class UnmaskMapTool extends core_frontend_1.Tool {
|
|
39
|
-
static get minArgs() { return 0; }
|
|
40
|
-
static get maxArgs() { return 0; }
|
|
41
|
-
async run() {
|
|
42
|
-
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
43
|
-
if (undefined === vp)
|
|
44
|
-
return false;
|
|
45
|
-
vp.changeBackgroundMapProps({ planarClipMask: { mode: core_common_1.PlanarClipMaskMode.None, transparency: 0, invert: false } });
|
|
46
|
-
vp.invalidateRenderPlan();
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
UnmaskMapTool
|
|
52
|
-
/** Base class for the reality model planar masking tools.
|
|
53
|
-
* @beta
|
|
54
|
-
*/
|
|
55
|
-
class PlanarMaskBaseTool extends core_frontend_1.PrimitiveTool {
|
|
56
|
-
constructor() {
|
|
57
|
-
super(...arguments);
|
|
58
|
-
this._acceptedModelIds = new Set();
|
|
59
|
-
this._acceptedSubCategoryIds = new Set();
|
|
60
|
-
this._acceptedElementIds = new Set();
|
|
61
|
-
this._transparency = 0;
|
|
62
|
-
this._useSelection = false;
|
|
63
|
-
this._invert = false;
|
|
64
|
-
}
|
|
65
|
-
requireWriteableTarget() { return false; }
|
|
66
|
-
async onPostInstall() {
|
|
67
|
-
await super.onPostInstall();
|
|
68
|
-
this.setupAndPromptForNextAction();
|
|
69
|
-
}
|
|
70
|
-
async onUnsuspend() { this.showPrompt(); }
|
|
71
|
-
setupAndPromptForNextAction() {
|
|
72
|
-
this._useSelection = (undefined !== this.targetView && this.iModel.selectionSet.isActive);
|
|
73
|
-
this.initLocateElements(!this._useSelection || (this.targetModelRequired() && !this._targetMaskModel));
|
|
74
|
-
core_frontend_1.IModelApp.locateManager.options.allowDecorations = true; // So we can select "contextual" reality models.
|
|
75
|
-
this.showPrompt();
|
|
76
|
-
}
|
|
77
|
-
targetModelRequired() { return true; }
|
|
78
|
-
elementRequired() { return true; }
|
|
79
|
-
allowSelection() { return true; }
|
|
80
|
-
clearIds() {
|
|
81
|
-
this._acceptedElementIds.clear();
|
|
82
|
-
this._acceptedModelIds.clear();
|
|
83
|
-
}
|
|
84
|
-
async exitTool() {
|
|
85
|
-
await super.exitTool();
|
|
86
|
-
this._transparency = 0;
|
|
87
|
-
}
|
|
88
|
-
async onRestartTool() {
|
|
89
|
-
this.clearIds();
|
|
90
|
-
this._acceptedSubCategoryIds.clear();
|
|
91
|
-
const tool = this.createToolInstance();
|
|
92
|
-
if (!await tool.run())
|
|
93
|
-
await this.exitTool();
|
|
94
|
-
}
|
|
95
|
-
async parseAndRun(...args) {
|
|
96
|
-
const transparency = parseFloat(args[0]);
|
|
97
|
-
this._transparency = (transparency !== undefined && transparency < 1.0) ? transparency : 0;
|
|
98
|
-
if (args.length > 1)
|
|
99
|
-
this._invert = (0, parseBoolean_1.parseBoolean)(args[1]) === true;
|
|
100
|
-
return this.run();
|
|
101
|
-
}
|
|
102
|
-
async onCleanup() {
|
|
103
|
-
if (0 !== this._acceptedElementIds.size)
|
|
104
|
-
this.iModel.hilited.setHilite(this._acceptedElementIds, false);
|
|
105
|
-
this.clearIds();
|
|
106
|
-
}
|
|
107
|
-
async filterHit(hit, _out) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (undefined ===
|
|
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
|
-
if (
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
exports.UnmaskRealityModelTool = UnmaskRealityModelTool;
|
|
393
|
-
UnmaskRealityModelTool.toolId = "UnmaskRealityModel";
|
|
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.UnmaskRealityModelTool = exports.SetHigherPriorityRealityModelMasking = exports.MaskRealityModelBySubCategoryTool = exports.MaskRealityModelByModelTool = exports.MaskRealityModelByExcludedElementTool = exports.MaskRealityModelByElementTool = exports.MaskBackgroundMapByModelTool = exports.MaskBackgroundMapBySubCategoryTool = exports.MaskBackgroundMapByExcludedElementTool = exports.MaskBackgroundMapByElementTool = exports.PlanarMaskBaseTool = exports.UnmaskMapTool = exports.SetMapHigherPriorityMasking = 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
|
+
/** Set Map Masking by selected models.
|
|
12
|
+
* @beta
|
|
13
|
+
*/
|
|
14
|
+
class SetMapHigherPriorityMasking extends core_frontend_1.Tool {
|
|
15
|
+
static get minArgs() { return 0; }
|
|
16
|
+
static get maxArgs() { return 2; }
|
|
17
|
+
async run(transparency, invert) {
|
|
18
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
19
|
+
if (undefined === vp)
|
|
20
|
+
return false;
|
|
21
|
+
vp.changeBackgroundMapProps({ planarClipMask: { mode: core_common_1.PlanarClipMaskMode.Priority, priority: core_common_1.PlanarClipMaskPriority.BackgroundMap, transparency, invert } });
|
|
22
|
+
vp.invalidateRenderPlan();
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
async parseAndRun(...args) {
|
|
26
|
+
const transparency = parseFloat(args[0]);
|
|
27
|
+
let invert;
|
|
28
|
+
if (args.length > 1)
|
|
29
|
+
invert = (0, parseBoolean_1.parseBoolean)(args[1]);
|
|
30
|
+
return this.run((transparency !== undefined && transparency < 1.0) ? transparency : 0, invert === true);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
SetMapHigherPriorityMasking.toolId = "SetMapHigherPriorityMask";
|
|
34
|
+
exports.SetMapHigherPriorityMasking = SetMapHigherPriorityMasking;
|
|
35
|
+
/** Unmask Mask.
|
|
36
|
+
* @beta
|
|
37
|
+
*/
|
|
38
|
+
class UnmaskMapTool extends core_frontend_1.Tool {
|
|
39
|
+
static get minArgs() { return 0; }
|
|
40
|
+
static get maxArgs() { return 0; }
|
|
41
|
+
async run() {
|
|
42
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
43
|
+
if (undefined === vp)
|
|
44
|
+
return false;
|
|
45
|
+
vp.changeBackgroundMapProps({ planarClipMask: { mode: core_common_1.PlanarClipMaskMode.None, transparency: 0, invert: false } });
|
|
46
|
+
vp.invalidateRenderPlan();
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
UnmaskMapTool.toolId = "UnmaskMap";
|
|
51
|
+
exports.UnmaskMapTool = UnmaskMapTool;
|
|
52
|
+
/** Base class for the reality model planar masking tools.
|
|
53
|
+
* @beta
|
|
54
|
+
*/
|
|
55
|
+
class PlanarMaskBaseTool extends core_frontend_1.PrimitiveTool {
|
|
56
|
+
constructor() {
|
|
57
|
+
super(...arguments);
|
|
58
|
+
this._acceptedModelIds = new Set();
|
|
59
|
+
this._acceptedSubCategoryIds = new Set();
|
|
60
|
+
this._acceptedElementIds = new Set();
|
|
61
|
+
this._transparency = 0;
|
|
62
|
+
this._useSelection = false;
|
|
63
|
+
this._invert = false;
|
|
64
|
+
}
|
|
65
|
+
requireWriteableTarget() { return false; }
|
|
66
|
+
async onPostInstall() {
|
|
67
|
+
await super.onPostInstall();
|
|
68
|
+
this.setupAndPromptForNextAction();
|
|
69
|
+
}
|
|
70
|
+
async onUnsuspend() { this.showPrompt(); }
|
|
71
|
+
setupAndPromptForNextAction() {
|
|
72
|
+
this._useSelection = (undefined !== this.targetView && this.iModel.selectionSet.isActive);
|
|
73
|
+
this.initLocateElements(!this._useSelection || (this.targetModelRequired() && !this._targetMaskModel));
|
|
74
|
+
core_frontend_1.IModelApp.locateManager.options.allowDecorations = true; // So we can select "contextual" reality models.
|
|
75
|
+
this.showPrompt();
|
|
76
|
+
}
|
|
77
|
+
targetModelRequired() { return true; }
|
|
78
|
+
elementRequired() { return true; }
|
|
79
|
+
allowSelection() { return true; }
|
|
80
|
+
clearIds() {
|
|
81
|
+
this._acceptedElementIds.clear();
|
|
82
|
+
this._acceptedModelIds.clear();
|
|
83
|
+
}
|
|
84
|
+
async exitTool() {
|
|
85
|
+
await super.exitTool();
|
|
86
|
+
this._transparency = 0;
|
|
87
|
+
}
|
|
88
|
+
async onRestartTool() {
|
|
89
|
+
this.clearIds();
|
|
90
|
+
this._acceptedSubCategoryIds.clear();
|
|
91
|
+
const tool = this.createToolInstance();
|
|
92
|
+
if (!await tool.run())
|
|
93
|
+
await this.exitTool();
|
|
94
|
+
}
|
|
95
|
+
async parseAndRun(...args) {
|
|
96
|
+
const transparency = parseFloat(args[0]);
|
|
97
|
+
this._transparency = (transparency !== undefined && transparency < 1.0) ? transparency : 0;
|
|
98
|
+
if (args.length > 1)
|
|
99
|
+
this._invert = (0, parseBoolean_1.parseBoolean)(args[1]) === true;
|
|
100
|
+
return this.run();
|
|
101
|
+
}
|
|
102
|
+
async onCleanup() {
|
|
103
|
+
if (0 !== this._acceptedElementIds.size)
|
|
104
|
+
this.iModel.hilited.setHilite(this._acceptedElementIds, false);
|
|
105
|
+
this.clearIds();
|
|
106
|
+
}
|
|
107
|
+
async filterHit(hit, _out) {
|
|
108
|
+
if (!hit.modelId)
|
|
109
|
+
return core_frontend_1.LocateFilterStatus.Reject;
|
|
110
|
+
if (undefined === this._targetMaskModel && this.targetModelRequired()) {
|
|
111
|
+
if (undefined !== hit.viewport.displayStyle.contextRealityModelStates.find((x) => x.modelId === hit.modelId))
|
|
112
|
+
return core_frontend_1.LocateFilterStatus.Accept;
|
|
113
|
+
const model = this.iModel.models.getLoaded(hit.modelId)?.asSpatialModel;
|
|
114
|
+
return model?.isRealityModel ? core_frontend_1.LocateFilterStatus.Accept : core_frontend_1.LocateFilterStatus.Reject;
|
|
115
|
+
}
|
|
116
|
+
else
|
|
117
|
+
return (hit.isElementHit && !hit.isModelHit && !this._acceptedElementIds.has(hit.sourceId)) ? core_frontend_1.LocateFilterStatus.Accept : core_frontend_1.LocateFilterStatus.Reject;
|
|
118
|
+
}
|
|
119
|
+
async onDataButtonDown(ev) {
|
|
120
|
+
const hit = await core_frontend_1.IModelApp.locateManager.doLocate(new core_frontend_1.LocateResponse(), true, ev.point, ev.viewport, ev.inputSource);
|
|
121
|
+
const vp = core_frontend_1.IModelApp.viewManager.selectedView;
|
|
122
|
+
if (undefined === vp)
|
|
123
|
+
return core_frontend_1.EventHandled.No;
|
|
124
|
+
if (undefined !== hit && undefined === this._targetMaskModel && this.targetModelRequired()) {
|
|
125
|
+
if (hit.modelId) {
|
|
126
|
+
this._targetMaskModel = hit.viewport.displayStyle.contextRealityModelStates.find((x) => x.modelId === hit.modelId) ?? hit.modelId;
|
|
127
|
+
if (!this.elementRequired()) {
|
|
128
|
+
this.applyMask(vp);
|
|
129
|
+
await this.onRestartTool();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
else if (this._useSelection && this.iModel.selectionSet.isActive) {
|
|
134
|
+
const elements = await this.iModel.elements.getProps(this.iModel.selectionSet.elements);
|
|
135
|
+
for (const element of elements) {
|
|
136
|
+
if (element.id && element.model) {
|
|
137
|
+
this._acceptedElementIds.add(element.id);
|
|
138
|
+
this._acceptedModelIds.add(element.model);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
this.applyMask(vp);
|
|
142
|
+
await this.exitTool();
|
|
143
|
+
return core_frontend_1.EventHandled.No;
|
|
144
|
+
}
|
|
145
|
+
else if (undefined !== hit && hit.isElementHit) {
|
|
146
|
+
const sourceId = hit.sourceId;
|
|
147
|
+
if (!this._acceptedElementIds.has(sourceId)) {
|
|
148
|
+
this._acceptedElementIds.add(sourceId);
|
|
149
|
+
this._acceptedModelIds.add(hit.modelId);
|
|
150
|
+
if (hit.subCategoryId)
|
|
151
|
+
this._acceptedSubCategoryIds.add(hit.subCategoryId);
|
|
152
|
+
this.applyMask(vp);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
this.setupAndPromptForNextAction();
|
|
156
|
+
return core_frontend_1.EventHandled.No;
|
|
157
|
+
}
|
|
158
|
+
createSubCategoryMask() {
|
|
159
|
+
return core_common_1.PlanarClipMaskSettings.create({
|
|
160
|
+
subCategoryIds: this._acceptedSubCategoryIds,
|
|
161
|
+
modelIds: this._acceptedModelIds,
|
|
162
|
+
transparency: this._transparency,
|
|
163
|
+
invert: this._invert,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
createElementMask(option) {
|
|
167
|
+
return core_common_1.PlanarClipMaskSettings.create({
|
|
168
|
+
elementIds: this._acceptedElementIds,
|
|
169
|
+
exclude: "exclude" === option,
|
|
170
|
+
modelIds: this._acceptedModelIds,
|
|
171
|
+
transparency: this._transparency,
|
|
172
|
+
invert: this._invert,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
createModelMask() {
|
|
176
|
+
return core_common_1.PlanarClipMaskSettings.create({ modelIds: this._acceptedModelIds, transparency: this._transparency, invert: this._invert });
|
|
177
|
+
}
|
|
178
|
+
setRealityModelMask(vp, mask) {
|
|
179
|
+
if (typeof this._targetMaskModel === "string")
|
|
180
|
+
vp.displayStyle.settings.planarClipMasks.set(this._targetMaskModel, mask);
|
|
181
|
+
else if (undefined !== this._targetMaskModel)
|
|
182
|
+
this._targetMaskModel.planarClipMaskSettings = mask;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.PlanarMaskBaseTool = PlanarMaskBaseTool;
|
|
186
|
+
/** Tool to mask background map by elements
|
|
187
|
+
* @beta
|
|
188
|
+
*/
|
|
189
|
+
class MaskBackgroundMapByElementTool extends PlanarMaskBaseTool {
|
|
190
|
+
static get minArgs() { return 0; }
|
|
191
|
+
static get maxArgs() { return 2; }
|
|
192
|
+
targetModelRequired() { return false; }
|
|
193
|
+
showPrompt() {
|
|
194
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey(`FrontendDevTools:tools.MaskBackgroundMapByElement.Prompts.${this._useSelection ? "AcceptSelection" : "IdentifyMaskElement"}`);
|
|
195
|
+
}
|
|
196
|
+
createToolInstance() { return new MaskBackgroundMapByElementTool(); }
|
|
197
|
+
applyMask(vp) {
|
|
198
|
+
vp.changeBackgroundMapProps({ planarClipMask: this.createElementMask("include").toJSON() });
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
MaskBackgroundMapByElementTool.toolId = "MaskBackgroundMapByElement";
|
|
202
|
+
exports.MaskBackgroundMapByElementTool = MaskBackgroundMapByElementTool;
|
|
203
|
+
/** Tool to mask background map by excluded elements
|
|
204
|
+
* @beta
|
|
205
|
+
*/
|
|
206
|
+
class MaskBackgroundMapByExcludedElementTool extends PlanarMaskBaseTool {
|
|
207
|
+
static get minArgs() { return 0; }
|
|
208
|
+
static get maxArgs() { return 2; }
|
|
209
|
+
targetModelRequired() { return false; }
|
|
210
|
+
showPrompt() {
|
|
211
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey(`FrontendDevTools:tools.MaskBackgroundMapByExcludedElement.Prompts.${this._useSelection ? "AcceptSelection" : "IdentifyMaskElement"}`);
|
|
212
|
+
}
|
|
213
|
+
createToolInstance() { return new MaskBackgroundMapByExcludedElementTool(); }
|
|
214
|
+
applyMask(vp) {
|
|
215
|
+
vp.changeBackgroundMapProps({ planarClipMask: this.createElementMask("exclude").toJSON() });
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
MaskBackgroundMapByExcludedElementTool.toolId = "MaskBackgroundMapByExcludedElement";
|
|
219
|
+
exports.MaskBackgroundMapByExcludedElementTool = MaskBackgroundMapByExcludedElementTool;
|
|
220
|
+
/** Tool to mask background map by SubCategories
|
|
221
|
+
* @beta
|
|
222
|
+
*/
|
|
223
|
+
class MaskBackgroundMapBySubCategoryTool extends PlanarMaskBaseTool {
|
|
224
|
+
static get minArgs() { return 0; }
|
|
225
|
+
static get maxArgs() { return 2; }
|
|
226
|
+
targetModelRequired() { return false; }
|
|
227
|
+
allowSelection() { return false; } // Need picking to get subcategory.
|
|
228
|
+
showPrompt() {
|
|
229
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey("FrontendDevTools:tools.MaskBackgroundMapBySubCategory.Prompts.IdentifyMaskSubCategory");
|
|
230
|
+
}
|
|
231
|
+
createToolInstance() { return new MaskBackgroundMapBySubCategoryTool(); }
|
|
232
|
+
applyMask(vp) {
|
|
233
|
+
vp.changeBackgroundMapProps({ planarClipMask: this.createSubCategoryMask().toJSON() });
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
MaskBackgroundMapBySubCategoryTool.toolId = "MaskBackgroundMapBySubCategory";
|
|
237
|
+
exports.MaskBackgroundMapBySubCategoryTool = MaskBackgroundMapBySubCategoryTool;
|
|
238
|
+
/** Tool to mask background map by geometric models
|
|
239
|
+
* @beta
|
|
240
|
+
*/
|
|
241
|
+
class MaskBackgroundMapByModelTool extends PlanarMaskBaseTool {
|
|
242
|
+
static get minArgs() { return 0; }
|
|
243
|
+
static get maxArgs() { return 2; }
|
|
244
|
+
targetModelRequired() { return false; }
|
|
245
|
+
showPrompt() {
|
|
246
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey(`FrontendDevTools:tools.MaskBackgroundMapByModel.Prompts.${this._useSelection ? "AcceptSelection" : "IdentifyMaskModel"}`);
|
|
247
|
+
}
|
|
248
|
+
createToolInstance() { return new MaskBackgroundMapByModelTool(); }
|
|
249
|
+
applyMask(vp) {
|
|
250
|
+
vp.changeBackgroundMapProps({ planarClipMask: this.createModelMask().toJSON() });
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
MaskBackgroundMapByModelTool.toolId = "MaskBackgroundMapByModel";
|
|
254
|
+
exports.MaskBackgroundMapByModelTool = MaskBackgroundMapByModelTool;
|
|
255
|
+
/** Tool to mask reality model by elements
|
|
256
|
+
* @beta
|
|
257
|
+
*/
|
|
258
|
+
class MaskRealityModelByElementTool extends PlanarMaskBaseTool {
|
|
259
|
+
static get minArgs() { return 0; }
|
|
260
|
+
static get maxArgs() { return 2; }
|
|
261
|
+
targetModelRequired() { return true; }
|
|
262
|
+
showPrompt() {
|
|
263
|
+
const key = `FrontendDevTools:tools.MaskRealityModelByElement.Prompts.${this._targetMaskModel === undefined ? "IdentifyRealityModel" : (this._useSelection ? "AcceptSelection" : "IdentifyMaskElement")}`;
|
|
264
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey(key);
|
|
265
|
+
}
|
|
266
|
+
createToolInstance() { return new MaskRealityModelByElementTool(); }
|
|
267
|
+
applyMask(vp) {
|
|
268
|
+
this.setRealityModelMask(vp, this.createElementMask("include"));
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
MaskRealityModelByElementTool.toolId = "MaskRealityModelByElement";
|
|
272
|
+
exports.MaskRealityModelByElementTool = MaskRealityModelByElementTool;
|
|
273
|
+
/** Tool to mask reality model by excluded elements
|
|
274
|
+
* @beta
|
|
275
|
+
*/
|
|
276
|
+
class MaskRealityModelByExcludedElementTool extends PlanarMaskBaseTool {
|
|
277
|
+
static get minArgs() { return 0; }
|
|
278
|
+
static get maxArgs() { return 2; }
|
|
279
|
+
targetModelRequired() { return true; }
|
|
280
|
+
showPrompt() {
|
|
281
|
+
const key = `FrontendDevTools:tools.MaskRealityModelByExcludedElement.Prompts.${this._targetMaskModel === undefined ? "IdentifyRealityModel" : (this._useSelection ? "AcceptSelection" : "IdentifyMaskElement")}`;
|
|
282
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey(key);
|
|
283
|
+
}
|
|
284
|
+
createToolInstance() { return new MaskRealityModelByExcludedElementTool(); }
|
|
285
|
+
applyMask(vp) {
|
|
286
|
+
this.setRealityModelMask(vp, this.createElementMask("exclude"));
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
MaskRealityModelByExcludedElementTool.toolId = "MaskRealityModelByExcludedElement";
|
|
290
|
+
exports.MaskRealityModelByExcludedElementTool = MaskRealityModelByExcludedElementTool;
|
|
291
|
+
/** Tool to mask reality model by geometric models
|
|
292
|
+
* @beta
|
|
293
|
+
*/
|
|
294
|
+
class MaskRealityModelByModelTool extends PlanarMaskBaseTool {
|
|
295
|
+
static get minArgs() { return 0; }
|
|
296
|
+
static get maxArgs() { return 2; }
|
|
297
|
+
targetModelRequired() { return true; }
|
|
298
|
+
showPrompt() {
|
|
299
|
+
const key = `FrontendDevTools:tools.MaskRealityModelByModel.Prompts.${this._targetMaskModel === undefined ? "IdentifyRealityModel" : (this._useSelection ? "AcceptSelection" : "IdentifyMaskModel")}`;
|
|
300
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey(key);
|
|
301
|
+
}
|
|
302
|
+
createToolInstance() { return new MaskRealityModelByModelTool(); }
|
|
303
|
+
applyMask(vp) {
|
|
304
|
+
this.setRealityModelMask(vp, this.createModelMask());
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
MaskRealityModelByModelTool.toolId = "MaskRealityModelByModel";
|
|
308
|
+
exports.MaskRealityModelByModelTool = MaskRealityModelByModelTool;
|
|
309
|
+
/** Tool to mask reality model by SubCategories
|
|
310
|
+
* @beta
|
|
311
|
+
*/
|
|
312
|
+
class MaskRealityModelBySubCategoryTool extends PlanarMaskBaseTool {
|
|
313
|
+
static get minArgs() { return 0; }
|
|
314
|
+
static get maxArgs() { return 2; }
|
|
315
|
+
targetModelRequired() { return true; }
|
|
316
|
+
allowSelection() { return false; } // Need picking to get subcategory.
|
|
317
|
+
showPrompt() {
|
|
318
|
+
const key = `FrontendDevTools:tools.MaskRealityModelByModel.Prompts.${this._targetMaskModel === undefined ? "IdentifyRealityModel" : "IdentifyMaskSubCategory"}`;
|
|
319
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey(key);
|
|
320
|
+
}
|
|
321
|
+
createToolInstance() { return new MaskRealityModelBySubCategoryTool(); }
|
|
322
|
+
applyMask(vp) {
|
|
323
|
+
this.setRealityModelMask(vp, this.createSubCategoryMask());
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
MaskRealityModelBySubCategoryTool.toolId = "MaskRealityModelBySubCategory";
|
|
327
|
+
exports.MaskRealityModelBySubCategoryTool = MaskRealityModelBySubCategoryTool;
|
|
328
|
+
/** Tool to mask reality model by higher priority models.
|
|
329
|
+
* @beta
|
|
330
|
+
*/
|
|
331
|
+
class SetHigherPriorityRealityModelMasking extends PlanarMaskBaseTool {
|
|
332
|
+
constructor() {
|
|
333
|
+
super(...arguments);
|
|
334
|
+
this._priority = 0;
|
|
335
|
+
}
|
|
336
|
+
static get minArgs() { return 0; }
|
|
337
|
+
static get maxArgs() { return 3; }
|
|
338
|
+
targetModelRequired() { return true; }
|
|
339
|
+
elementRequired() { return false; }
|
|
340
|
+
showPrompt() {
|
|
341
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey("FrontendDevTools:tools.SetHigherPriorityRealityModelMasking.Prompts.IdentifyRealityModel");
|
|
342
|
+
}
|
|
343
|
+
createToolInstance() { return new SetHigherPriorityRealityModelMasking(); }
|
|
344
|
+
applyMask(vp) {
|
|
345
|
+
const basePriority = this._targetMaskModel === vp.displayStyle.getOSMBuildingRealityModel() ? core_common_1.PlanarClipMaskPriority.GlobalRealityModel : core_common_1.PlanarClipMaskPriority.RealityModel;
|
|
346
|
+
this.setRealityModelMask(vp, core_common_1.PlanarClipMaskSettings.create({ priority: basePriority + this._priority, transparency: this._transparency, invert: this._invert }));
|
|
347
|
+
}
|
|
348
|
+
async parseAndRun(...args) {
|
|
349
|
+
await super.parseAndRun(...args);
|
|
350
|
+
const priority = parseInt(args[0], 10);
|
|
351
|
+
this._priority = (priority === undefined || isNaN(priority)) ? 0 : priority;
|
|
352
|
+
if (args.length > 1) {
|
|
353
|
+
const value = parseInt(args[1], 10);
|
|
354
|
+
if (!isNaN(value) && value >= 0 && value <= 1)
|
|
355
|
+
this._transparency = value;
|
|
356
|
+
}
|
|
357
|
+
if (args.length > 2)
|
|
358
|
+
this._invert = (0, parseBoolean_1.parseBoolean)(args[2]) === true;
|
|
359
|
+
return this.run();
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
SetHigherPriorityRealityModelMasking.toolId = "SetHigherPriorityRealityModelMasking";
|
|
363
|
+
exports.SetHigherPriorityRealityModelMasking = SetHigherPriorityRealityModelMasking;
|
|
364
|
+
/** Remove masks from reality model.
|
|
365
|
+
* @beta
|
|
366
|
+
*/
|
|
367
|
+
class UnmaskRealityModelTool extends PlanarMaskBaseTool {
|
|
368
|
+
targetModelRequired() { return true; }
|
|
369
|
+
showPrompt() {
|
|
370
|
+
core_frontend_1.IModelApp.notifications.outputPromptByKey("FrontendDevTools:tools.UnmaskRealityModel.Prompts.IdentifyRealityModel");
|
|
371
|
+
}
|
|
372
|
+
createToolInstance() { return new UnmaskRealityModelTool(); }
|
|
373
|
+
applyMask(vp) {
|
|
374
|
+
const settings = core_common_1.PlanarClipMaskSettings.create({ subCategoryIds: this._acceptedSubCategoryIds, modelIds: this._acceptedModelIds });
|
|
375
|
+
this.setRealityModelMask(vp, settings);
|
|
376
|
+
}
|
|
377
|
+
async onDataButtonDown(ev) {
|
|
378
|
+
const hit = await core_frontend_1.IModelApp.locateManager.doLocate(new core_frontend_1.LocateResponse(), true, ev.point, ev.viewport, ev.inputSource);
|
|
379
|
+
if (hit?.modelId) {
|
|
380
|
+
const model = hit.viewport.displayStyle.contextRealityModelStates.find((x) => x.modelId === hit.modelId);
|
|
381
|
+
if (model)
|
|
382
|
+
model.planarClipMaskSettings = undefined;
|
|
383
|
+
else
|
|
384
|
+
hit.viewport.displayStyle.settings.planarClipMasks.delete(hit.modelId);
|
|
385
|
+
await this.onRestartTool();
|
|
386
|
+
}
|
|
387
|
+
return core_frontend_1.EventHandled.No;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
UnmaskRealityModelTool.toolId = "UnmaskRealityModel";
|
|
391
|
+
exports.UnmaskRealityModelTool = UnmaskRealityModelTool;
|
|
394
392
|
//# sourceMappingURL=PlanarMaskTools.js.map
|