@itwin/frontend-devtools 4.0.0-dev.7 → 4.0.0-dev.70
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 +11 -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.js +507 -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.d.ts.map +1 -1
- package/lib/cjs/tools/SourceAspectIdTools.js +86 -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.js +504 -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.d.ts.map +1 -1
- package/lib/esm/tools/SourceAspectIdTools.js +82 -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 +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationIntervalTool.js","sourceRoot":"","sources":["../../../src/tools/AnimationIntervalTool.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"AnimationIntervalTool.js","sourceRoot":"","sources":["../../../src/tools/AnimationIntervalTool.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAa,qBAAsB,SAAQ,IAAI;IAEtC,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAElC,KAAK,CAAC,GAAG,CAAC,QAAqB;QAC7C,SAAS,CAAC,iBAAiB,GAAG,QAAQ,CAAC;QACvC,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC5C,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACzF,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;;AAbsB,4BAAM,GAAG,mBAAmB,CAAC;SADzC,qBAAqB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module Tools\r\n */\r\n\r\nimport { BeDuration } from \"@itwin/core-bentley\";\r\nimport { IModelApp, Tool } from \"@itwin/core-frontend\";\r\n\r\n/** Changes the [IModelApp.animationInterval]($frontend). Specify the interval in integer milliseconds; or pass any string not parseable as an integer to disable the animation interval callback.\r\n * @beta\r\n */\r\nexport class AnimationIntervalTool extends Tool {\r\n public static override toolId = \"AnimationInterval\";\r\n public static override get minArgs() { return 1; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n public override async run(interval?: BeDuration): Promise<boolean> {\r\n IModelApp.animationInterval = interval;\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const millis = Number.parseInt(args[0], 10);\r\n const interval = !Number.isNaN(millis) ? BeDuration.fromMilliseconds(millis) : undefined;\r\n return this.run(interval);\r\n }\r\n}\r\n"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Tools
|
|
3
|
-
*/
|
|
4
|
-
import { Tool } from "@itwin/core-frontend";
|
|
5
|
-
/** Controls whether quantities are formatted using imperial or metric units.
|
|
6
|
-
* Such formatting is used in many places; one example is the output of the MeasureTool.
|
|
7
|
-
* @beta
|
|
8
|
-
*/
|
|
9
|
-
export declare class ChangeUnitsTool extends Tool {
|
|
10
|
-
static toolId: string;
|
|
11
|
-
static get minArgs(): number;
|
|
12
|
-
static get maxArgs(): number;
|
|
13
|
-
run(useMetric?: boolean): Promise<boolean>;
|
|
14
|
-
parseAndRun(...args: string[]): Promise<boolean>;
|
|
15
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Tools
|
|
3
|
+
*/
|
|
4
|
+
import { Tool } from "@itwin/core-frontend";
|
|
5
|
+
/** Controls whether quantities are formatted using imperial or metric units.
|
|
6
|
+
* Such formatting is used in many places; one example is the output of the MeasureTool.
|
|
7
|
+
* @beta
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChangeUnitsTool extends Tool {
|
|
10
|
+
static toolId: string;
|
|
11
|
+
static get minArgs(): number;
|
|
12
|
+
static get maxArgs(): number;
|
|
13
|
+
run(useMetric?: boolean): Promise<boolean>;
|
|
14
|
+
parseAndRun(...args: string[]): Promise<boolean>;
|
|
15
|
+
}
|
|
16
16
|
//# sourceMappingURL=ChangeUnitsTool.d.ts.map
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
/** @packageDocumentation
|
|
6
|
-
* @module Tools
|
|
7
|
-
*/
|
|
8
|
-
import { IModelApp, Tool } from "@itwin/core-frontend";
|
|
9
|
-
import { parseToggle } from "./parseToggle";
|
|
10
|
-
// CSpell: ignore fmtr
|
|
11
|
-
/** Controls whether quantities are formatted using imperial or metric units.
|
|
12
|
-
* Such formatting is used in many places; one example is the output of the MeasureTool.
|
|
13
|
-
* @beta
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
static get minArgs() { return 0; }
|
|
17
|
-
static get maxArgs() { return 1; }
|
|
18
|
-
// support boolean for backwards compatibility
|
|
19
|
-
async run(useMetric) {
|
|
20
|
-
const fmtr = IModelApp.quantityFormatter;
|
|
21
|
-
// if no arg then toggle to metric from any non-metric unit system
|
|
22
|
-
const useImperial = undefined !== useMetric ? !useMetric : fmtr.activeUnitSystem === "metric";
|
|
23
|
-
const unitSystem = useImperial ? "imperial" : "metric";
|
|
24
|
-
if (unitSystem !== fmtr.activeUnitSystem) {
|
|
25
|
-
await fmtr.setActiveUnitSystem(unitSystem);
|
|
26
|
-
await IModelApp.toolAdmin.startDefaultTool();
|
|
27
|
-
}
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
async parseAndRun(...args) {
|
|
31
|
-
const enable = parseToggle(args[0]);
|
|
32
|
-
if (typeof enable !== "string")
|
|
33
|
-
await this.run(enable);
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
ChangeUnitsTool.toolId = "ChangeUnits";
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Tools
|
|
7
|
+
*/
|
|
8
|
+
import { IModelApp, Tool } from "@itwin/core-frontend";
|
|
9
|
+
import { parseToggle } from "./parseToggle";
|
|
10
|
+
// CSpell: ignore fmtr
|
|
11
|
+
/** Controls whether quantities are formatted using imperial or metric units.
|
|
12
|
+
* Such formatting is used in many places; one example is the output of the MeasureTool.
|
|
13
|
+
* @beta
|
|
14
|
+
*/
|
|
15
|
+
class ChangeUnitsTool extends Tool {
|
|
16
|
+
static get minArgs() { return 0; }
|
|
17
|
+
static get maxArgs() { return 1; }
|
|
18
|
+
// support boolean for backwards compatibility
|
|
19
|
+
async run(useMetric) {
|
|
20
|
+
const fmtr = IModelApp.quantityFormatter;
|
|
21
|
+
// if no arg then toggle to metric from any non-metric unit system
|
|
22
|
+
const useImperial = undefined !== useMetric ? !useMetric : fmtr.activeUnitSystem === "metric";
|
|
23
|
+
const unitSystem = useImperial ? "imperial" : "metric";
|
|
24
|
+
if (unitSystem !== fmtr.activeUnitSystem) {
|
|
25
|
+
await fmtr.setActiveUnitSystem(unitSystem);
|
|
26
|
+
await IModelApp.toolAdmin.startDefaultTool();
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
async parseAndRun(...args) {
|
|
31
|
+
const enable = parseToggle(args[0]);
|
|
32
|
+
if (typeof enable !== "string")
|
|
33
|
+
await this.run(enable);
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
ChangeUnitsTool.toolId = "ChangeUnits";
|
|
38
|
+
export { ChangeUnitsTool };
|
|
38
39
|
//# sourceMappingURL=ChangeUnitsTool.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeUnitsTool.js","sourceRoot":"","sources":["../../../src/tools/ChangeUnitsTool.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,sBAAsB;AAEtB;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"ChangeUnitsTool.js","sourceRoot":"","sources":["../../../src/tools/ChangeUnitsTool.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,sBAAsB;AAEtB;;;GAGG;AACH,MAAa,eAAgB,SAAQ,IAAI;IAEhC,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAElD,8CAA8C;IAC9B,KAAK,CAAC,GAAG,CAAC,SAAmB;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAEzC,kEAAkE;QAClE,MAAM,WAAW,GAAG,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,KAAK,QAAQ,CAAC;QAC9F,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC;QAEvD,IAAI,UAAU,KAAK,IAAI,CAAC,gBAAgB,EAAE;YACxC,MAAM,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;YAC3C,MAAM,SAAS,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC;SAC9C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACpC,IAAI,OAAO,MAAM,KAAK,QAAQ;YAC5B,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAEzB,OAAO,IAAI,CAAC;IACd,CAAC;;AA1BsB,sBAAM,GAAG,aAAa,CAAC;SADnC,eAAe","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/** @packageDocumentation\r\n * @module Tools\r\n */\r\n\r\nimport { IModelApp, Tool } from \"@itwin/core-frontend\";\r\nimport { parseToggle } from \"./parseToggle\";\r\n\r\n// CSpell: ignore fmtr\r\n\r\n/** Controls whether quantities are formatted using imperial or metric units.\r\n * Such formatting is used in many places; one example is the output of the MeasureTool.\r\n * @beta\r\n */\r\nexport class ChangeUnitsTool extends Tool {\r\n public static override toolId = \"ChangeUnits\";\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n // support boolean for backwards compatibility\r\n public override async run(useMetric?: boolean): Promise<boolean> {\r\n const fmtr = IModelApp.quantityFormatter;\r\n\r\n // if no arg then toggle to metric from any non-metric unit system\r\n const useImperial = undefined !== useMetric ? !useMetric : fmtr.activeUnitSystem === \"metric\";\r\n const unitSystem = useImperial ? \"imperial\" : \"metric\";\r\n\r\n if (unitSystem !== fmtr.activeUnitSystem) {\r\n await fmtr.setActiveUnitSystem(unitSystem);\r\n await IModelApp.toolAdmin.startDefaultTool();\r\n }\r\n\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...args: string[]): Promise<boolean> {\r\n const enable = parseToggle(args[0]);\r\n if (typeof enable !== \"string\")\r\n await this.run(enable);\r\n\r\n return true;\r\n }\r\n}\r\n"]}
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { Tool, Viewport } from "@itwin/core-frontend";
|
|
2
|
-
import { DisplayStyleTool } from "./DisplayStyleTools";
|
|
3
|
-
/** This tool specifies or un-specifies a clip color to use for pixels inside or outside the clip region.
|
|
4
|
-
* Arguments can be:
|
|
5
|
-
* - clear
|
|
6
|
-
* - inside <color string> | clear
|
|
7
|
-
* - outside <color string> | clear
|
|
8
|
-
* <color string> must be in one of the following forms:
|
|
9
|
-
* "rgb(255,0,0)"
|
|
10
|
-
* "rgba(255,0,0,255)"
|
|
11
|
-
* "rgb(100%,0%,0%)"
|
|
12
|
-
* "hsl(120,50%,50%)"
|
|
13
|
-
* "#rrbbgg"
|
|
14
|
-
* "blanchedAlmond" (see possible values from [[ColorByName]]). Case insensitive.
|
|
15
|
-
* @see [ColorDef]
|
|
16
|
-
* @beta
|
|
17
|
-
*/
|
|
18
|
-
export declare class ClipColorTool extends Tool {
|
|
19
|
-
static toolId: string;
|
|
20
|
-
static get minArgs(): number;
|
|
21
|
-
static get maxArgs(): number;
|
|
22
|
-
private _clearClipColors;
|
|
23
|
-
private setClipColor;
|
|
24
|
-
/** This runs the tool using the given arguments, specifying or unspecifying a clip color to use for pixels inside or outside the clip region.
|
|
25
|
-
* Arguments can be:
|
|
26
|
-
* - clear
|
|
27
|
-
* - inside <color string> | clear
|
|
28
|
-
* - outside <color string> | clear
|
|
29
|
-
* <color string> must be in one of the following forms:
|
|
30
|
-
* "rgb(255,0,0)"
|
|
31
|
-
* "rgba(255,0,0,255)"
|
|
32
|
-
* "rgb(100%,0%,0%)"
|
|
33
|
-
* "hsl(120,50%,50%)"
|
|
34
|
-
* "#rrbbgg"
|
|
35
|
-
* "blanchedAlmond" (see possible values from [[ColorByName]]). Case insensitive.
|
|
36
|
-
* @beta
|
|
37
|
-
*/
|
|
38
|
-
parseAndRun(...args: string[]): Promise<boolean>;
|
|
39
|
-
}
|
|
40
|
-
/** Controls a view state's view details' flag for producing cut geometry for a clip style.
|
|
41
|
-
* @beta
|
|
42
|
-
*/
|
|
43
|
-
export declare class ToggleSectionCutTool extends Tool {
|
|
44
|
-
static toolId: string;
|
|
45
|
-
static get minArgs(): number;
|
|
46
|
-
static get maxArgs(): number;
|
|
47
|
-
/** This method runs the tool, controlling a view state's view details' flag for producing cut geometry for a clip style.
|
|
48
|
-
* @param produceCutGeometry whether to produce cut geometry
|
|
49
|
-
*/
|
|
50
|
-
run(produceCutGeometry?: boolean): Promise<boolean>;
|
|
51
|
-
/** Executes this tool's run method with args[0] containing `produceCutGeometry`.
|
|
52
|
-
* @see [[run]]
|
|
53
|
-
*/
|
|
54
|
-
parseAndRun(...args: string[]): Promise<boolean>;
|
|
55
|
-
}
|
|
56
|
-
/** Simple tool that toggles a hard-coded clip style overriding various aspects of the cut geometry appearance.
|
|
57
|
-
* @beta
|
|
58
|
-
*/
|
|
59
|
-
export declare class TestClipStyleTool extends DisplayStyleTool {
|
|
60
|
-
static toolId: string;
|
|
61
|
-
static get maxArgs(): number;
|
|
62
|
-
static get minArgs(): number;
|
|
63
|
-
private _useStyle;
|
|
64
|
-
protected get require3d(): boolean;
|
|
65
|
-
protected parse(args: string[]): Promise<boolean>;
|
|
66
|
-
protected execute(vp: Viewport): Promise<boolean>;
|
|
67
|
-
}
|
|
1
|
+
import { Tool, Viewport } from "@itwin/core-frontend";
|
|
2
|
+
import { DisplayStyleTool } from "./DisplayStyleTools";
|
|
3
|
+
/** This tool specifies or un-specifies a clip color to use for pixels inside or outside the clip region.
|
|
4
|
+
* Arguments can be:
|
|
5
|
+
* - clear
|
|
6
|
+
* - inside <color string> | clear
|
|
7
|
+
* - outside <color string> | clear
|
|
8
|
+
* <color string> must be in one of the following forms:
|
|
9
|
+
* "rgb(255,0,0)"
|
|
10
|
+
* "rgba(255,0,0,255)"
|
|
11
|
+
* "rgb(100%,0%,0%)"
|
|
12
|
+
* "hsl(120,50%,50%)"
|
|
13
|
+
* "#rrbbgg"
|
|
14
|
+
* "blanchedAlmond" (see possible values from [[ColorByName]]). Case insensitive.
|
|
15
|
+
* @see [ColorDef]
|
|
16
|
+
* @beta
|
|
17
|
+
*/
|
|
18
|
+
export declare class ClipColorTool extends Tool {
|
|
19
|
+
static toolId: string;
|
|
20
|
+
static get minArgs(): number;
|
|
21
|
+
static get maxArgs(): number;
|
|
22
|
+
private _clearClipColors;
|
|
23
|
+
private setClipColor;
|
|
24
|
+
/** This runs the tool using the given arguments, specifying or unspecifying a clip color to use for pixels inside or outside the clip region.
|
|
25
|
+
* Arguments can be:
|
|
26
|
+
* - clear
|
|
27
|
+
* - inside <color string> | clear
|
|
28
|
+
* - outside <color string> | clear
|
|
29
|
+
* <color string> must be in one of the following forms:
|
|
30
|
+
* "rgb(255,0,0)"
|
|
31
|
+
* "rgba(255,0,0,255)"
|
|
32
|
+
* "rgb(100%,0%,0%)"
|
|
33
|
+
* "hsl(120,50%,50%)"
|
|
34
|
+
* "#rrbbgg"
|
|
35
|
+
* "blanchedAlmond" (see possible values from [[ColorByName]]). Case insensitive.
|
|
36
|
+
* @beta
|
|
37
|
+
*/
|
|
38
|
+
parseAndRun(...args: string[]): Promise<boolean>;
|
|
39
|
+
}
|
|
40
|
+
/** Controls a view state's view details' flag for producing cut geometry for a clip style.
|
|
41
|
+
* @beta
|
|
42
|
+
*/
|
|
43
|
+
export declare class ToggleSectionCutTool extends Tool {
|
|
44
|
+
static toolId: string;
|
|
45
|
+
static get minArgs(): number;
|
|
46
|
+
static get maxArgs(): number;
|
|
47
|
+
/** This method runs the tool, controlling a view state's view details' flag for producing cut geometry for a clip style.
|
|
48
|
+
* @param produceCutGeometry whether to produce cut geometry
|
|
49
|
+
*/
|
|
50
|
+
run(produceCutGeometry?: boolean): Promise<boolean>;
|
|
51
|
+
/** Executes this tool's run method with args[0] containing `produceCutGeometry`.
|
|
52
|
+
* @see [[run]]
|
|
53
|
+
*/
|
|
54
|
+
parseAndRun(...args: string[]): Promise<boolean>;
|
|
55
|
+
}
|
|
56
|
+
/** Simple tool that toggles a hard-coded clip style overriding various aspects of the cut geometry appearance.
|
|
57
|
+
* @beta
|
|
58
|
+
*/
|
|
59
|
+
export declare class TestClipStyleTool extends DisplayStyleTool {
|
|
60
|
+
static toolId: string;
|
|
61
|
+
static get maxArgs(): number;
|
|
62
|
+
static get minArgs(): number;
|
|
63
|
+
private _useStyle;
|
|
64
|
+
protected get require3d(): boolean;
|
|
65
|
+
protected parse(args: string[]): Promise<boolean>;
|
|
66
|
+
protected execute(vp: Viewport): Promise<boolean>;
|
|
67
|
+
}
|
|
68
68
|
//# sourceMappingURL=ClipTools.d.ts.map
|
|
@@ -1,159 +1,159 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
/** @packageDocumentation
|
|
6
|
-
* @module Tools
|
|
7
|
-
*/
|
|
8
|
-
import { ClipStyle, ColorByName, ColorDef, LinePixels, RenderMode, RgbColor, } from "@itwin/core-common";
|
|
9
|
-
import { IModelApp, Tool } from "@itwin/core-frontend";
|
|
10
|
-
import { parseToggle } from "./parseToggle";
|
|
11
|
-
import { parseBoolean } from "./parseBoolean";
|
|
12
|
-
import { DisplayStyleTool } from "./DisplayStyleTools";
|
|
13
|
-
/** This tool specifies or un-specifies a clip color to use for pixels inside or outside the clip region.
|
|
14
|
-
* Arguments can be:
|
|
15
|
-
* - clear
|
|
16
|
-
* - inside <color string> | clear
|
|
17
|
-
* - outside <color string> | clear
|
|
18
|
-
* <color string> must be in one of the following forms:
|
|
19
|
-
* "rgb(255,0,0)"
|
|
20
|
-
* "rgba(255,0,0,255)"
|
|
21
|
-
* "rgb(100%,0%,0%)"
|
|
22
|
-
* "hsl(120,50%,50%)"
|
|
23
|
-
* "#rrbbgg"
|
|
24
|
-
* "blanchedAlmond" (see possible values from [[ColorByName]]). Case insensitive.
|
|
25
|
-
* @see [ColorDef]
|
|
26
|
-
* @beta
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
static get minArgs() { return 1; }
|
|
30
|
-
static get maxArgs() { return 2; }
|
|
31
|
-
_clearClipColors() {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
*
|
|
51
|
-
* - clear
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* "rgb(
|
|
56
|
-
* "
|
|
57
|
-
* "
|
|
58
|
-
* "
|
|
59
|
-
*
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
static get
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
vp.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
ToggleSectionCutTool
|
|
112
|
-
/** Simple tool that toggles a hard-coded clip style overriding various aspects of the cut geometry appearance.
|
|
113
|
-
* @beta
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
constructor() {
|
|
117
|
-
super(...arguments);
|
|
118
|
-
this._useStyle = false;
|
|
119
|
-
}
|
|
120
|
-
static get maxArgs() { return 1; }
|
|
121
|
-
static get minArgs() { return 1; }
|
|
122
|
-
get require3d() { return true; }
|
|
123
|
-
async parse(args) {
|
|
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
|
-
vp.
|
|
153
|
-
vp.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
TestClipStyleTool
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Tools
|
|
7
|
+
*/
|
|
8
|
+
import { ClipStyle, ColorByName, ColorDef, LinePixels, RenderMode, RgbColor, } from "@itwin/core-common";
|
|
9
|
+
import { IModelApp, Tool } from "@itwin/core-frontend";
|
|
10
|
+
import { parseToggle } from "./parseToggle";
|
|
11
|
+
import { parseBoolean } from "./parseBoolean";
|
|
12
|
+
import { DisplayStyleTool } from "./DisplayStyleTools";
|
|
13
|
+
/** This tool specifies or un-specifies a clip color to use for pixels inside or outside the clip region.
|
|
14
|
+
* Arguments can be:
|
|
15
|
+
* - clear
|
|
16
|
+
* - inside <color string> | clear
|
|
17
|
+
* - outside <color string> | clear
|
|
18
|
+
* <color string> must be in one of the following forms:
|
|
19
|
+
* "rgb(255,0,0)"
|
|
20
|
+
* "rgba(255,0,0,255)"
|
|
21
|
+
* "rgb(100%,0%,0%)"
|
|
22
|
+
* "hsl(120,50%,50%)"
|
|
23
|
+
* "#rrbbgg"
|
|
24
|
+
* "blanchedAlmond" (see possible values from [[ColorByName]]). Case insensitive.
|
|
25
|
+
* @see [ColorDef]
|
|
26
|
+
* @beta
|
|
27
|
+
*/
|
|
28
|
+
class ClipColorTool extends Tool {
|
|
29
|
+
static get minArgs() { return 1; }
|
|
30
|
+
static get maxArgs() { return 2; }
|
|
31
|
+
_clearClipColors() {
|
|
32
|
+
const vp = IModelApp.viewManager.selectedView;
|
|
33
|
+
if (undefined !== vp) {
|
|
34
|
+
const props = vp.displayStyle.settings.clipStyle.toJSON() ?? {};
|
|
35
|
+
props.insideColor = props.outsideColor = undefined;
|
|
36
|
+
vp.displayStyle.settings.clipStyle = ClipStyle.fromJSON(props);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
setClipColor(colStr, which) {
|
|
40
|
+
const vp = IModelApp.viewManager.selectedView;
|
|
41
|
+
if (vp) {
|
|
42
|
+
const props = vp.displayStyle.settings.clipStyle.toJSON() ?? {};
|
|
43
|
+
props[which] = colStr === "clear" ? undefined : RgbColor.fromColorDef(ColorDef.fromString(colStr));
|
|
44
|
+
vp.displayStyle.settings.clipStyle = ClipStyle.fromJSON(props);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** This runs the tool using the given arguments, specifying or unspecifying a clip color to use for pixels inside or outside the clip region.
|
|
48
|
+
* Arguments can be:
|
|
49
|
+
* - clear
|
|
50
|
+
* - inside <color string> | clear
|
|
51
|
+
* - outside <color string> | clear
|
|
52
|
+
* <color string> must be in one of the following forms:
|
|
53
|
+
* "rgb(255,0,0)"
|
|
54
|
+
* "rgba(255,0,0,255)"
|
|
55
|
+
* "rgb(100%,0%,0%)"
|
|
56
|
+
* "hsl(120,50%,50%)"
|
|
57
|
+
* "#rrbbgg"
|
|
58
|
+
* "blanchedAlmond" (see possible values from [[ColorByName]]). Case insensitive.
|
|
59
|
+
* @beta
|
|
60
|
+
*/
|
|
61
|
+
async parseAndRun(...args) {
|
|
62
|
+
if (1 === args.length) {
|
|
63
|
+
if (args[0] === "clear")
|
|
64
|
+
this._clearClipColors();
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
const which = args[0];
|
|
68
|
+
if (which === "inside" || which === "outside")
|
|
69
|
+
this.setClipColor(args[1], "inside" === which ? "insideColor" : "outsideColor");
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
ClipColorTool.toolId = "ClipColorTool";
|
|
74
|
+
export { ClipColorTool };
|
|
75
|
+
/** Controls a view state's view details' flag for producing cut geometry for a clip style.
|
|
76
|
+
* @beta
|
|
77
|
+
*/
|
|
78
|
+
class ToggleSectionCutTool extends Tool {
|
|
79
|
+
static get minArgs() { return 0; }
|
|
80
|
+
static get maxArgs() { return 1; }
|
|
81
|
+
/** This method runs the tool, controlling a view state's view details' flag for producing cut geometry for a clip style.
|
|
82
|
+
* @param produceCutGeometry whether to produce cut geometry
|
|
83
|
+
*/
|
|
84
|
+
async run(produceCutGeometry) {
|
|
85
|
+
const vp = IModelApp.viewManager.selectedView;
|
|
86
|
+
if (vp) {
|
|
87
|
+
const style = vp.view.displayStyle.settings.clipStyle;
|
|
88
|
+
produceCutGeometry = produceCutGeometry ?? !style.produceCutGeometry;
|
|
89
|
+
if (produceCutGeometry !== style.produceCutGeometry) {
|
|
90
|
+
const json = {
|
|
91
|
+
...vp.view.displayStyle.settings.clipStyle.toJSON(),
|
|
92
|
+
produceCutGeometry,
|
|
93
|
+
};
|
|
94
|
+
vp.view.displayStyle.settings.clipStyle = ClipStyle.fromJSON(json);
|
|
95
|
+
vp.invalidateScene();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
/** Executes this tool's run method with args[0] containing `produceCutGeometry`.
|
|
101
|
+
* @see [[run]]
|
|
102
|
+
*/
|
|
103
|
+
async parseAndRun(...args) {
|
|
104
|
+
const enable = parseToggle(args[0]);
|
|
105
|
+
if (typeof enable !== "string")
|
|
106
|
+
await this.run(enable);
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
ToggleSectionCutTool.toolId = "ToggleSectionCut";
|
|
111
|
+
export { ToggleSectionCutTool };
|
|
112
|
+
/** Simple tool that toggles a hard-coded clip style overriding various aspects of the cut geometry appearance.
|
|
113
|
+
* @beta
|
|
114
|
+
*/
|
|
115
|
+
class TestClipStyleTool extends DisplayStyleTool {
|
|
116
|
+
constructor() {
|
|
117
|
+
super(...arguments);
|
|
118
|
+
this._useStyle = false;
|
|
119
|
+
}
|
|
120
|
+
static get maxArgs() { return 1; }
|
|
121
|
+
static get minArgs() { return 1; }
|
|
122
|
+
get require3d() { return true; }
|
|
123
|
+
async parse(args) {
|
|
124
|
+
this._useStyle = parseBoolean(args[0]) ?? false;
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
async execute(vp) {
|
|
128
|
+
const props = { produceCutGeometry: true };
|
|
129
|
+
if (this._useStyle) {
|
|
130
|
+
props.cutStyle = {
|
|
131
|
+
viewflags: {
|
|
132
|
+
renderMode: RenderMode.SmoothShade,
|
|
133
|
+
visibleEdges: true,
|
|
134
|
+
hiddenEdges: false,
|
|
135
|
+
},
|
|
136
|
+
appearance: {
|
|
137
|
+
rgb: { r: 0xff, g: 0x7f, b: 0 },
|
|
138
|
+
transparency: 0.5,
|
|
139
|
+
nonLocatable: true,
|
|
140
|
+
},
|
|
141
|
+
hiddenLine: {
|
|
142
|
+
visible: {
|
|
143
|
+
ovrColor: true,
|
|
144
|
+
color: ColorByName.blue,
|
|
145
|
+
pattern: LinePixels.Solid,
|
|
146
|
+
width: 3,
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
vp.displayStyle.settings.clipStyle = ClipStyle.fromJSON(props);
|
|
152
|
+
vp.invalidateRenderPlan();
|
|
153
|
+
vp.setFeatureOverrideProviderChanged();
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
TestClipStyleTool.toolId = "TestClipStyle";
|
|
158
|
+
export { TestClipStyleTool };
|
|
159
159
|
//# sourceMappingURL=ClipTools.js.map
|