@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,16 +1,16 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Tools
|
|
3
|
-
*/
|
|
4
|
-
import { BeDuration } from "@itwin/core-bentley";
|
|
5
|
-
import { Tool } from "@itwin/core-frontend";
|
|
6
|
-
/** 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.
|
|
7
|
-
* @beta
|
|
8
|
-
*/
|
|
9
|
-
export declare class AnimationIntervalTool extends Tool {
|
|
10
|
-
static toolId: string;
|
|
11
|
-
static get minArgs(): number;
|
|
12
|
-
static get maxArgs(): number;
|
|
13
|
-
run(interval?: BeDuration): Promise<boolean>;
|
|
14
|
-
parseAndRun(...args: string[]): Promise<boolean>;
|
|
15
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Tools
|
|
3
|
+
*/
|
|
4
|
+
import { BeDuration } from "@itwin/core-bentley";
|
|
5
|
+
import { Tool } from "@itwin/core-frontend";
|
|
6
|
+
/** 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.
|
|
7
|
+
* @beta
|
|
8
|
+
*/
|
|
9
|
+
export declare class AnimationIntervalTool extends Tool {
|
|
10
|
+
static toolId: string;
|
|
11
|
+
static get minArgs(): number;
|
|
12
|
+
static get maxArgs(): number;
|
|
13
|
+
run(interval?: BeDuration): Promise<boolean>;
|
|
14
|
+
parseAndRun(...args: string[]): Promise<boolean>;
|
|
15
|
+
}
|
|
16
16
|
//# sourceMappingURL=AnimationIntervalTool.d.ts.map
|
|
@@ -1,31 +1,31 @@
|
|
|
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.AnimationIntervalTool = void 0;
|
|
8
|
-
/** @packageDocumentation
|
|
9
|
-
* @module Tools
|
|
10
|
-
*/
|
|
11
|
-
const core_bentley_1 = require("@itwin/core-bentley");
|
|
12
|
-
const core_frontend_1 = require("@itwin/core-frontend");
|
|
13
|
-
/** 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.
|
|
14
|
-
* @beta
|
|
15
|
-
*/
|
|
16
|
-
class AnimationIntervalTool extends core_frontend_1.Tool {
|
|
17
|
-
static get minArgs() { return 1; }
|
|
18
|
-
static get maxArgs() { return 1; }
|
|
19
|
-
async run(interval) {
|
|
20
|
-
core_frontend_1.IModelApp.animationInterval = interval;
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
async parseAndRun(...args) {
|
|
24
|
-
const millis = Number.parseInt(args[0], 10);
|
|
25
|
-
const interval = !Number.isNaN(millis) ? core_bentley_1.BeDuration.fromMilliseconds(millis) : undefined;
|
|
26
|
-
return this.run(interval);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
AnimationIntervalTool
|
|
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.AnimationIntervalTool = void 0;
|
|
8
|
+
/** @packageDocumentation
|
|
9
|
+
* @module Tools
|
|
10
|
+
*/
|
|
11
|
+
const core_bentley_1 = require("@itwin/core-bentley");
|
|
12
|
+
const core_frontend_1 = require("@itwin/core-frontend");
|
|
13
|
+
/** 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.
|
|
14
|
+
* @beta
|
|
15
|
+
*/
|
|
16
|
+
class AnimationIntervalTool extends core_frontend_1.Tool {
|
|
17
|
+
static get minArgs() { return 1; }
|
|
18
|
+
static get maxArgs() { return 1; }
|
|
19
|
+
async run(interval) {
|
|
20
|
+
core_frontend_1.IModelApp.animationInterval = interval;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
async parseAndRun(...args) {
|
|
24
|
+
const millis = Number.parseInt(args[0], 10);
|
|
25
|
+
const interval = !Number.isNaN(millis) ? core_bentley_1.BeDuration.fromMilliseconds(millis) : undefined;
|
|
26
|
+
return this.run(interval);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
AnimationIntervalTool.toolId = "AnimationInterval";
|
|
30
|
+
exports.AnimationIntervalTool = AnimationIntervalTool;
|
|
31
31
|
//# sourceMappingURL=AnimationIntervalTool.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationIntervalTool.js","sourceRoot":"","sources":["../../../src/tools/AnimationIntervalTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sDAAiD;AACjD,wDAAuD;AAEvD;;GAEG;AACH,MAAa,qBAAsB,SAAQ,oBAAI;IAEtC,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAElC,KAAK,CAAC,GAAG,CAAC,QAAqB;QAC7C,yBAAS,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,yBAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACzF,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;;
|
|
1
|
+
{"version":3,"file":"AnimationIntervalTool.js","sourceRoot":"","sources":["../../../src/tools/AnimationIntervalTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,sDAAiD;AACjD,wDAAuD;AAEvD;;GAEG;AACH,MAAa,qBAAsB,SAAQ,oBAAI;IAEtC,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAElC,KAAK,CAAC,GAAG,CAAC,QAAqB;QAC7C,yBAAS,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,yBAAU,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;AADzC,sDAAqB","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\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,42 +1,42 @@
|
|
|
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.ChangeUnitsTool = void 0;
|
|
8
|
-
/** @packageDocumentation
|
|
9
|
-
* @module Tools
|
|
10
|
-
*/
|
|
11
|
-
const core_frontend_1 = require("@itwin/core-frontend");
|
|
12
|
-
const parseToggle_1 = require("./parseToggle");
|
|
13
|
-
// CSpell: ignore fmtr
|
|
14
|
-
/** Controls whether quantities are formatted using imperial or metric units.
|
|
15
|
-
* Such formatting is used in many places; one example is the output of the MeasureTool.
|
|
16
|
-
* @beta
|
|
17
|
-
*/
|
|
18
|
-
class ChangeUnitsTool extends core_frontend_1.Tool {
|
|
19
|
-
static get minArgs() { return 0; }
|
|
20
|
-
static get maxArgs() { return 1; }
|
|
21
|
-
// support boolean for backwards compatibility
|
|
22
|
-
async run(useMetric) {
|
|
23
|
-
const fmtr = core_frontend_1.IModelApp.quantityFormatter;
|
|
24
|
-
// if no arg then toggle to metric from any non-metric unit system
|
|
25
|
-
const useImperial = undefined !== useMetric ? !useMetric : fmtr.activeUnitSystem === "metric";
|
|
26
|
-
const unitSystem = useImperial ? "imperial" : "metric";
|
|
27
|
-
if (unitSystem !== fmtr.activeUnitSystem) {
|
|
28
|
-
await fmtr.setActiveUnitSystem(unitSystem);
|
|
29
|
-
await core_frontend_1.IModelApp.toolAdmin.startDefaultTool();
|
|
30
|
-
}
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
async parseAndRun(...args) {
|
|
34
|
-
const enable = (0, parseToggle_1.parseToggle)(args[0]);
|
|
35
|
-
if (typeof enable !== "string")
|
|
36
|
-
await this.run(enable);
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
ChangeUnitsTool
|
|
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.ChangeUnitsTool = void 0;
|
|
8
|
+
/** @packageDocumentation
|
|
9
|
+
* @module Tools
|
|
10
|
+
*/
|
|
11
|
+
const core_frontend_1 = require("@itwin/core-frontend");
|
|
12
|
+
const parseToggle_1 = require("./parseToggle");
|
|
13
|
+
// CSpell: ignore fmtr
|
|
14
|
+
/** Controls whether quantities are formatted using imperial or metric units.
|
|
15
|
+
* Such formatting is used in many places; one example is the output of the MeasureTool.
|
|
16
|
+
* @beta
|
|
17
|
+
*/
|
|
18
|
+
class ChangeUnitsTool extends core_frontend_1.Tool {
|
|
19
|
+
static get minArgs() { return 0; }
|
|
20
|
+
static get maxArgs() { return 1; }
|
|
21
|
+
// support boolean for backwards compatibility
|
|
22
|
+
async run(useMetric) {
|
|
23
|
+
const fmtr = core_frontend_1.IModelApp.quantityFormatter;
|
|
24
|
+
// if no arg then toggle to metric from any non-metric unit system
|
|
25
|
+
const useImperial = undefined !== useMetric ? !useMetric : fmtr.activeUnitSystem === "metric";
|
|
26
|
+
const unitSystem = useImperial ? "imperial" : "metric";
|
|
27
|
+
if (unitSystem !== fmtr.activeUnitSystem) {
|
|
28
|
+
await fmtr.setActiveUnitSystem(unitSystem);
|
|
29
|
+
await core_frontend_1.IModelApp.toolAdmin.startDefaultTool();
|
|
30
|
+
}
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
async parseAndRun(...args) {
|
|
34
|
+
const enable = (0, parseToggle_1.parseToggle)(args[0]);
|
|
35
|
+
if (typeof enable !== "string")
|
|
36
|
+
await this.run(enable);
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
ChangeUnitsTool.toolId = "ChangeUnits";
|
|
41
|
+
exports.ChangeUnitsTool = ChangeUnitsTool;
|
|
42
42
|
//# 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,wDAAuD;AACvD,+CAA4C;AAE5C,sBAAsB;AAEtB;;;GAGG;AACH,MAAa,eAAgB,SAAQ,oBAAI;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,yBAAS,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,yBAAS,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC;SAC9C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,MAAM,MAAM,GAAG,IAAA,yBAAW,EAAC,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;;
|
|
1
|
+
{"version":3,"file":"ChangeUnitsTool.js","sourceRoot":"","sources":["../../../src/tools/ChangeUnitsTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F;;GAEG;AAEH,wDAAuD;AACvD,+CAA4C;AAE5C,sBAAsB;AAEtB;;;GAGG;AACH,MAAa,eAAgB,SAAQ,oBAAI;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,yBAAS,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,yBAAS,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC;SAC9C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,IAAc;QACjD,MAAM,MAAM,GAAG,IAAA,yBAAW,EAAC,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;AADnC,0CAAe","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
|