@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,189 +1,189 @@
|
|
|
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 Widgets
|
|
7
|
-
*/
|
|
8
|
-
import { saveAs } from "file-saver";
|
|
9
|
-
import { IModelApp } from "@itwin/core-frontend";
|
|
10
|
-
import { createCheckBox } from "../ui/CheckBox";
|
|
11
|
-
const dummyArgs = { 0: 0 }; // Reuse instead of allocating for each entry
|
|
12
|
-
/**
|
|
13
|
-
* @param name Label for the trace event
|
|
14
|
-
* @param start Timestamp in microseconds of when trace event started
|
|
15
|
-
* @param duration Duration in microseconds of trace event
|
|
16
|
-
*/
|
|
17
|
-
function createTraceEvent(name, start, duration) {
|
|
18
|
-
return {
|
|
19
|
-
pid: 1,
|
|
20
|
-
ts: start,
|
|
21
|
-
dur: duration,
|
|
22
|
-
ph: "X",
|
|
23
|
-
name,
|
|
24
|
-
args: dummyArgs,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function createTraceFromTimerResults(timerResults) {
|
|
28
|
-
const traceEvents = [];
|
|
29
|
-
const addChildren = (startTime, children) => {
|
|
30
|
-
for (const child of children) {
|
|
31
|
-
if (child.nanoseconds < 100)
|
|
32
|
-
continue;
|
|
33
|
-
const microseconds = child.nanoseconds / 1E3;
|
|
34
|
-
traceEvents.push(createTraceEvent(child.label, startTime, microseconds));
|
|
35
|
-
if (child.children)
|
|
36
|
-
addChildren(startTime, child.children);
|
|
37
|
-
startTime += microseconds;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
let frameStartTime = 0;
|
|
41
|
-
let frameNumber = 0;
|
|
42
|
-
for (const tr of timerResults) {
|
|
43
|
-
const microseconds = tr.nanoseconds / 1E3;
|
|
44
|
-
traceEvents.push(createTraceEvent(`Frame ${frameNumber}`, frameStartTime, microseconds));
|
|
45
|
-
if (tr.children)
|
|
46
|
-
addChildren(frameStartTime, tr.children);
|
|
47
|
-
frameStartTime += microseconds;
|
|
48
|
-
++frameNumber;
|
|
49
|
-
}
|
|
50
|
-
return { traceEvents };
|
|
51
|
-
}
|
|
52
|
-
/** @alpha */
|
|
53
|
-
export class GpuProfiler {
|
|
54
|
-
constructor(parent) {
|
|
55
|
-
this._clickRecord = () => {
|
|
56
|
-
if (!this._isRecording) {
|
|
57
|
-
this._isRecording = true;
|
|
58
|
-
this._recordButton.innerText = "Stop Recording";
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
this.stopRecording();
|
|
62
|
-
};
|
|
63
|
-
this._resultsCallback = (result) => {
|
|
64
|
-
if (this._isRecording)
|
|
65
|
-
this._recordedResults.push(result);
|
|
66
|
-
const fragment = document.createDocumentFragment();
|
|
67
|
-
const numSavedFrames = 120;
|
|
68
|
-
let lastValue;
|
|
69
|
-
const changedResults = new Array(this._results.length); // default values false
|
|
70
|
-
const printDepth = (depth, currentRes) => {
|
|
71
|
-
const index = this._results.findIndex((res) => res.label === currentRes.label);
|
|
72
|
-
if (index < 0) { // Add brand new entry
|
|
73
|
-
const data = {
|
|
74
|
-
label: currentRes.label,
|
|
75
|
-
paddingLeft: `${depth}em`,
|
|
76
|
-
sum: currentRes.nanoseconds,
|
|
77
|
-
values: [currentRes.nanoseconds],
|
|
78
|
-
};
|
|
79
|
-
if (lastValue === undefined) {
|
|
80
|
-
this._results.unshift(data);
|
|
81
|
-
changedResults.unshift(true);
|
|
82
|
-
}
|
|
83
|
-
else if (currentRes.label === "Read Pixels") {
|
|
84
|
-
this._results.push(data); // Read Pixels should go at the end of the list
|
|
85
|
-
changedResults.push(true);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
const prevIndex = this._results.findIndex((res) => res.label === lastValue);
|
|
89
|
-
this._results.splice(prevIndex + 1, 0, data);
|
|
90
|
-
changedResults.splice(prevIndex + 1, 0, true);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
else { // Edit old entry
|
|
94
|
-
let oldVal = 0.0;
|
|
95
|
-
const savedResults = this._results[index];
|
|
96
|
-
if (savedResults.values.length >= numSavedFrames) { // keep up to numSavedFrames values to average between
|
|
97
|
-
oldVal = savedResults.values.shift();
|
|
98
|
-
}
|
|
99
|
-
const newVal = currentRes.nanoseconds < 100 ? 0.0 : currentRes.nanoseconds; // high-pass filter, empty queries have some noise
|
|
100
|
-
savedResults.sum += newVal - oldVal;
|
|
101
|
-
savedResults.values.push(newVal);
|
|
102
|
-
changedResults[index] = true;
|
|
103
|
-
}
|
|
104
|
-
lastValue = currentRes.label;
|
|
105
|
-
if (!currentRes.children)
|
|
106
|
-
return;
|
|
107
|
-
for (const childRes of currentRes.children)
|
|
108
|
-
printDepth(depth + 1, childRes);
|
|
109
|
-
};
|
|
110
|
-
printDepth(0, result);
|
|
111
|
-
this._results.forEach((value, index) => {
|
|
112
|
-
if (!changedResults[index]) { // if no data received on this item, add a value of 0.0 to the avg.
|
|
113
|
-
const oldVal = value.values.length >= numSavedFrames ? value.values.shift() : 0.0;
|
|
114
|
-
value.sum -= oldVal;
|
|
115
|
-
value.values.push(0.0);
|
|
116
|
-
}
|
|
117
|
-
const div = document.createElement("div");
|
|
118
|
-
div.style.display = "flex";
|
|
119
|
-
div.style.width = "75%";
|
|
120
|
-
const textLabel = document.createElement("text");
|
|
121
|
-
textLabel.innerText = `${value.label}`;
|
|
122
|
-
textLabel.style.paddingLeft = value.paddingLeft;
|
|
123
|
-
div.appendChild(textLabel);
|
|
124
|
-
const divLine = document.createElement("div");
|
|
125
|
-
divLine.style.flexGrow = "1";
|
|
126
|
-
divLine.style.borderBottom = "dotted 1px";
|
|
127
|
-
div.appendChild(divLine);
|
|
128
|
-
const textValue = document.createElement("text");
|
|
129
|
-
textValue.innerText = `${(value.sum / value.values.length / 1.E6).toFixed(3)} ms\n`;
|
|
130
|
-
div.appendChild(textValue);
|
|
131
|
-
fragment.appendChild(div);
|
|
132
|
-
});
|
|
133
|
-
this._resultsDiv.innerHTML = "";
|
|
134
|
-
this._resultsDiv.appendChild(fragment);
|
|
135
|
-
};
|
|
136
|
-
this._debugControl = IModelApp.renderSystem.debugControl;
|
|
137
|
-
const checkBox = createCheckBox({
|
|
138
|
-
parent,
|
|
139
|
-
name: "Profile GPU",
|
|
140
|
-
id: "gpu-profiler-toggle",
|
|
141
|
-
handler: (cb) => this.toggleProfileCheckBox(cb.checked),
|
|
142
|
-
});
|
|
143
|
-
if (!this._debugControl.isGLTimerSupported) {
|
|
144
|
-
checkBox.checkbox.disabled = true;
|
|
145
|
-
checkBox.div.title = "EXT_disjoint_timer_query is not available in this browser";
|
|
146
|
-
}
|
|
147
|
-
this._div = document.createElement("div");
|
|
148
|
-
this._div.style.display = "none";
|
|
149
|
-
this._recordButton = document.createElement("button");
|
|
150
|
-
this._recordButton.style.textAlign = "center";
|
|
151
|
-
this._isRecording = false;
|
|
152
|
-
this._recordButton.innerText = "Record Profile";
|
|
153
|
-
this._recordButton.title = "Record a profile to open with chrome://tracing";
|
|
154
|
-
this._recordedResults = [];
|
|
155
|
-
this._recordButton.addEventListener("click", this._clickRecord);
|
|
156
|
-
this._div.appendChild(this._recordButton);
|
|
157
|
-
this._results = [];
|
|
158
|
-
this._resultsDiv = document.createElement("div");
|
|
159
|
-
this._resultsDiv.style.textAlign = "left";
|
|
160
|
-
this._div.appendChild(this._resultsDiv);
|
|
161
|
-
parent.appendChild(this._div);
|
|
162
|
-
}
|
|
163
|
-
dispose() {
|
|
164
|
-
this._debugControl.resultsCallback = undefined;
|
|
165
|
-
}
|
|
166
|
-
toggleProfileCheckBox(isEnabled) {
|
|
167
|
-
if (isEnabled) {
|
|
168
|
-
this._debugControl.resultsCallback = this._resultsCallback;
|
|
169
|
-
this._resultsDiv.innerHTML = "";
|
|
170
|
-
this._div.style.display = "block";
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
this._debugControl.resultsCallback = undefined;
|
|
174
|
-
this._div.style.display = "none";
|
|
175
|
-
this.stopRecording();
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
stopRecording() {
|
|
179
|
-
this._isRecording = false;
|
|
180
|
-
this._recordButton.innerText = "Record Profile";
|
|
181
|
-
if (this._recordedResults.length !== 0) {
|
|
182
|
-
const chromeTrace = createTraceFromTimerResults(this._recordedResults);
|
|
183
|
-
const blob = new Blob([JSON.stringify(chromeTrace)], { type: "application/json;charset=utf-8" });
|
|
184
|
-
saveAs(blob, "gpu-profile.json");
|
|
185
|
-
this._recordedResults = [];
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
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 Widgets
|
|
7
|
+
*/
|
|
8
|
+
import { saveAs } from "file-saver";
|
|
9
|
+
import { IModelApp } from "@itwin/core-frontend";
|
|
10
|
+
import { createCheckBox } from "../ui/CheckBox";
|
|
11
|
+
const dummyArgs = { 0: 0 }; // Reuse instead of allocating for each entry
|
|
12
|
+
/**
|
|
13
|
+
* @param name Label for the trace event
|
|
14
|
+
* @param start Timestamp in microseconds of when trace event started
|
|
15
|
+
* @param duration Duration in microseconds of trace event
|
|
16
|
+
*/
|
|
17
|
+
function createTraceEvent(name, start, duration) {
|
|
18
|
+
return {
|
|
19
|
+
pid: 1,
|
|
20
|
+
ts: start,
|
|
21
|
+
dur: duration,
|
|
22
|
+
ph: "X",
|
|
23
|
+
name,
|
|
24
|
+
args: dummyArgs,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function createTraceFromTimerResults(timerResults) {
|
|
28
|
+
const traceEvents = [];
|
|
29
|
+
const addChildren = (startTime, children) => {
|
|
30
|
+
for (const child of children) {
|
|
31
|
+
if (child.nanoseconds < 100)
|
|
32
|
+
continue;
|
|
33
|
+
const microseconds = child.nanoseconds / 1E3;
|
|
34
|
+
traceEvents.push(createTraceEvent(child.label, startTime, microseconds));
|
|
35
|
+
if (child.children)
|
|
36
|
+
addChildren(startTime, child.children);
|
|
37
|
+
startTime += microseconds;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
let frameStartTime = 0;
|
|
41
|
+
let frameNumber = 0;
|
|
42
|
+
for (const tr of timerResults) {
|
|
43
|
+
const microseconds = tr.nanoseconds / 1E3;
|
|
44
|
+
traceEvents.push(createTraceEvent(`Frame ${frameNumber}`, frameStartTime, microseconds));
|
|
45
|
+
if (tr.children)
|
|
46
|
+
addChildren(frameStartTime, tr.children);
|
|
47
|
+
frameStartTime += microseconds;
|
|
48
|
+
++frameNumber;
|
|
49
|
+
}
|
|
50
|
+
return { traceEvents };
|
|
51
|
+
}
|
|
52
|
+
/** @alpha */
|
|
53
|
+
export class GpuProfiler {
|
|
54
|
+
constructor(parent) {
|
|
55
|
+
this._clickRecord = () => {
|
|
56
|
+
if (!this._isRecording) {
|
|
57
|
+
this._isRecording = true;
|
|
58
|
+
this._recordButton.innerText = "Stop Recording";
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.stopRecording();
|
|
62
|
+
};
|
|
63
|
+
this._resultsCallback = (result) => {
|
|
64
|
+
if (this._isRecording)
|
|
65
|
+
this._recordedResults.push(result);
|
|
66
|
+
const fragment = document.createDocumentFragment();
|
|
67
|
+
const numSavedFrames = 120;
|
|
68
|
+
let lastValue;
|
|
69
|
+
const changedResults = new Array(this._results.length); // default values false
|
|
70
|
+
const printDepth = (depth, currentRes) => {
|
|
71
|
+
const index = this._results.findIndex((res) => res.label === currentRes.label);
|
|
72
|
+
if (index < 0) { // Add brand new entry
|
|
73
|
+
const data = {
|
|
74
|
+
label: currentRes.label,
|
|
75
|
+
paddingLeft: `${depth}em`,
|
|
76
|
+
sum: currentRes.nanoseconds,
|
|
77
|
+
values: [currentRes.nanoseconds],
|
|
78
|
+
};
|
|
79
|
+
if (lastValue === undefined) {
|
|
80
|
+
this._results.unshift(data);
|
|
81
|
+
changedResults.unshift(true);
|
|
82
|
+
}
|
|
83
|
+
else if (currentRes.label === "Read Pixels") {
|
|
84
|
+
this._results.push(data); // Read Pixels should go at the end of the list
|
|
85
|
+
changedResults.push(true);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
const prevIndex = this._results.findIndex((res) => res.label === lastValue);
|
|
89
|
+
this._results.splice(prevIndex + 1, 0, data);
|
|
90
|
+
changedResults.splice(prevIndex + 1, 0, true);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
else { // Edit old entry
|
|
94
|
+
let oldVal = 0.0;
|
|
95
|
+
const savedResults = this._results[index];
|
|
96
|
+
if (savedResults.values.length >= numSavedFrames) { // keep up to numSavedFrames values to average between
|
|
97
|
+
oldVal = savedResults.values.shift();
|
|
98
|
+
}
|
|
99
|
+
const newVal = currentRes.nanoseconds < 100 ? 0.0 : currentRes.nanoseconds; // high-pass filter, empty queries have some noise
|
|
100
|
+
savedResults.sum += newVal - oldVal;
|
|
101
|
+
savedResults.values.push(newVal);
|
|
102
|
+
changedResults[index] = true;
|
|
103
|
+
}
|
|
104
|
+
lastValue = currentRes.label;
|
|
105
|
+
if (!currentRes.children)
|
|
106
|
+
return;
|
|
107
|
+
for (const childRes of currentRes.children)
|
|
108
|
+
printDepth(depth + 1, childRes);
|
|
109
|
+
};
|
|
110
|
+
printDepth(0, result);
|
|
111
|
+
this._results.forEach((value, index) => {
|
|
112
|
+
if (!changedResults[index]) { // if no data received on this item, add a value of 0.0 to the avg.
|
|
113
|
+
const oldVal = value.values.length >= numSavedFrames ? value.values.shift() : 0.0;
|
|
114
|
+
value.sum -= oldVal;
|
|
115
|
+
value.values.push(0.0);
|
|
116
|
+
}
|
|
117
|
+
const div = document.createElement("div");
|
|
118
|
+
div.style.display = "flex";
|
|
119
|
+
div.style.width = "75%";
|
|
120
|
+
const textLabel = document.createElement("text");
|
|
121
|
+
textLabel.innerText = `${value.label}`;
|
|
122
|
+
textLabel.style.paddingLeft = value.paddingLeft;
|
|
123
|
+
div.appendChild(textLabel);
|
|
124
|
+
const divLine = document.createElement("div");
|
|
125
|
+
divLine.style.flexGrow = "1";
|
|
126
|
+
divLine.style.borderBottom = "dotted 1px";
|
|
127
|
+
div.appendChild(divLine);
|
|
128
|
+
const textValue = document.createElement("text");
|
|
129
|
+
textValue.innerText = `${(value.sum / value.values.length / 1.E6).toFixed(3)} ms\n`;
|
|
130
|
+
div.appendChild(textValue);
|
|
131
|
+
fragment.appendChild(div);
|
|
132
|
+
});
|
|
133
|
+
this._resultsDiv.innerHTML = "";
|
|
134
|
+
this._resultsDiv.appendChild(fragment);
|
|
135
|
+
};
|
|
136
|
+
this._debugControl = IModelApp.renderSystem.debugControl;
|
|
137
|
+
const checkBox = createCheckBox({
|
|
138
|
+
parent,
|
|
139
|
+
name: "Profile GPU",
|
|
140
|
+
id: "gpu-profiler-toggle",
|
|
141
|
+
handler: (cb) => this.toggleProfileCheckBox(cb.checked),
|
|
142
|
+
});
|
|
143
|
+
if (!this._debugControl.isGLTimerSupported) {
|
|
144
|
+
checkBox.checkbox.disabled = true;
|
|
145
|
+
checkBox.div.title = "EXT_disjoint_timer_query is not available in this browser";
|
|
146
|
+
}
|
|
147
|
+
this._div = document.createElement("div");
|
|
148
|
+
this._div.style.display = "none";
|
|
149
|
+
this._recordButton = document.createElement("button");
|
|
150
|
+
this._recordButton.style.textAlign = "center";
|
|
151
|
+
this._isRecording = false;
|
|
152
|
+
this._recordButton.innerText = "Record Profile";
|
|
153
|
+
this._recordButton.title = "Record a profile to open with chrome://tracing";
|
|
154
|
+
this._recordedResults = [];
|
|
155
|
+
this._recordButton.addEventListener("click", this._clickRecord);
|
|
156
|
+
this._div.appendChild(this._recordButton);
|
|
157
|
+
this._results = [];
|
|
158
|
+
this._resultsDiv = document.createElement("div");
|
|
159
|
+
this._resultsDiv.style.textAlign = "left";
|
|
160
|
+
this._div.appendChild(this._resultsDiv);
|
|
161
|
+
parent.appendChild(this._div);
|
|
162
|
+
}
|
|
163
|
+
dispose() {
|
|
164
|
+
this._debugControl.resultsCallback = undefined;
|
|
165
|
+
}
|
|
166
|
+
toggleProfileCheckBox(isEnabled) {
|
|
167
|
+
if (isEnabled) {
|
|
168
|
+
this._debugControl.resultsCallback = this._resultsCallback;
|
|
169
|
+
this._resultsDiv.innerHTML = "";
|
|
170
|
+
this._div.style.display = "block";
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
this._debugControl.resultsCallback = undefined;
|
|
174
|
+
this._div.style.display = "none";
|
|
175
|
+
this.stopRecording();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
stopRecording() {
|
|
179
|
+
this._isRecording = false;
|
|
180
|
+
this._recordButton.innerText = "Record Profile";
|
|
181
|
+
if (this._recordedResults.length !== 0) {
|
|
182
|
+
const chromeTrace = createTraceFromTimerResults(this._recordedResults);
|
|
183
|
+
const blob = new Blob([JSON.stringify(chromeTrace)], { type: "application/json;charset=utf-8" });
|
|
184
|
+
saveAs(blob, "gpu-profile.json");
|
|
185
|
+
this._recordedResults = [];
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
189
|
//# sourceMappingURL=GpuProfiler.js.map
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { DataList } from "../ui/DataList";
|
|
2
|
-
import { TextBox } from "../ui/TextBox";
|
|
3
|
-
/** Controls whether localized and/or non-localized key-in strings appear in a KeyinField's auto-completion list.
|
|
4
|
-
* @beta
|
|
5
|
-
*/
|
|
6
|
-
export declare enum KeyinFieldLocalization {
|
|
7
|
-
/** Include only non-localized key-in strings. */
|
|
8
|
-
NonLocalized = 0,
|
|
9
|
-
/** Include only localized key-in strings. */
|
|
10
|
-
Localized = 1,
|
|
11
|
-
/** Include localized and non-localized strings for each key-in. */
|
|
12
|
-
Both = 2
|
|
13
|
-
}
|
|
14
|
-
/** Properties controlling how a KeyinField is created.
|
|
15
|
-
* @beta
|
|
16
|
-
*/
|
|
17
|
-
export interface KeyinFieldProps {
|
|
18
|
-
/** If supplied, the keyin field's elements will be added as children of this parent element. */
|
|
19
|
-
parent?: HTMLElement;
|
|
20
|
-
/** Required, unique ID prefix used to produce unique IDs for child elements. */
|
|
21
|
-
baseId: string;
|
|
22
|
-
/** Default: false. */
|
|
23
|
-
wantButton?: boolean;
|
|
24
|
-
/** Default: false. */
|
|
25
|
-
wantLabel?: boolean;
|
|
26
|
-
/** The maximum number of submitted key-ins to store in the history.
|
|
27
|
-
* If greater than zero, pressing up/down while the KeyinField has focus will move backwards/forwards through the history.
|
|
28
|
-
* Default: zero;
|
|
29
|
-
*/
|
|
30
|
-
historyLength?: number;
|
|
31
|
-
/** Controls whether localized and/or non-localized keyin strings appear in the autocompletion list.
|
|
32
|
-
* Note: the KeyinField will still accept either localized or non-localized strings; this option only controls what is displayed in the auto-completion list.
|
|
33
|
-
* Default: non-localized
|
|
34
|
-
*/
|
|
35
|
-
localization?: KeyinFieldLocalization;
|
|
36
|
-
}
|
|
37
|
-
/** A textbox allowing input of key-ins (localized tool names) combined with a drop-down that lists all registered key-ins, filtered by substring match on the current input.
|
|
38
|
-
* Press `enter` or click the Enter button to run the key-in.
|
|
39
|
-
* @beta
|
|
40
|
-
*/
|
|
41
|
-
export declare class KeyinField {
|
|
42
|
-
/** @alpha */
|
|
43
|
-
readonly autoCompleteList: DataList;
|
|
44
|
-
readonly textBox: TextBox;
|
|
45
|
-
readonly keyins: string[];
|
|
46
|
-
private _historyIndex?;
|
|
47
|
-
private _historyLength;
|
|
48
|
-
private readonly _history;
|
|
49
|
-
private readonly _localization;
|
|
50
|
-
constructor(props: KeyinFieldProps);
|
|
51
|
-
focus(): void;
|
|
52
|
-
loseFocus(): void;
|
|
53
|
-
selectAll(): void;
|
|
54
|
-
private handleKeyPress;
|
|
55
|
-
private handleKeyDown;
|
|
56
|
-
private resetHistoryIndex;
|
|
57
|
-
private pushHistory;
|
|
58
|
-
private submitKeyin;
|
|
59
|
-
private respondToKeyinFocus;
|
|
60
|
-
private findKeyins;
|
|
61
|
-
}
|
|
1
|
+
import { DataList } from "../ui/DataList";
|
|
2
|
+
import { TextBox } from "../ui/TextBox";
|
|
3
|
+
/** Controls whether localized and/or non-localized key-in strings appear in a KeyinField's auto-completion list.
|
|
4
|
+
* @beta
|
|
5
|
+
*/
|
|
6
|
+
export declare enum KeyinFieldLocalization {
|
|
7
|
+
/** Include only non-localized key-in strings. */
|
|
8
|
+
NonLocalized = 0,
|
|
9
|
+
/** Include only localized key-in strings. */
|
|
10
|
+
Localized = 1,
|
|
11
|
+
/** Include localized and non-localized strings for each key-in. */
|
|
12
|
+
Both = 2
|
|
13
|
+
}
|
|
14
|
+
/** Properties controlling how a KeyinField is created.
|
|
15
|
+
* @beta
|
|
16
|
+
*/
|
|
17
|
+
export interface KeyinFieldProps {
|
|
18
|
+
/** If supplied, the keyin field's elements will be added as children of this parent element. */
|
|
19
|
+
parent?: HTMLElement;
|
|
20
|
+
/** Required, unique ID prefix used to produce unique IDs for child elements. */
|
|
21
|
+
baseId: string;
|
|
22
|
+
/** Default: false. */
|
|
23
|
+
wantButton?: boolean;
|
|
24
|
+
/** Default: false. */
|
|
25
|
+
wantLabel?: boolean;
|
|
26
|
+
/** The maximum number of submitted key-ins to store in the history.
|
|
27
|
+
* If greater than zero, pressing up/down while the KeyinField has focus will move backwards/forwards through the history.
|
|
28
|
+
* Default: zero;
|
|
29
|
+
*/
|
|
30
|
+
historyLength?: number;
|
|
31
|
+
/** Controls whether localized and/or non-localized keyin strings appear in the autocompletion list.
|
|
32
|
+
* Note: the KeyinField will still accept either localized or non-localized strings; this option only controls what is displayed in the auto-completion list.
|
|
33
|
+
* Default: non-localized
|
|
34
|
+
*/
|
|
35
|
+
localization?: KeyinFieldLocalization;
|
|
36
|
+
}
|
|
37
|
+
/** A textbox allowing input of key-ins (localized tool names) combined with a drop-down that lists all registered key-ins, filtered by substring match on the current input.
|
|
38
|
+
* Press `enter` or click the Enter button to run the key-in.
|
|
39
|
+
* @beta
|
|
40
|
+
*/
|
|
41
|
+
export declare class KeyinField {
|
|
42
|
+
/** @alpha */
|
|
43
|
+
readonly autoCompleteList: DataList;
|
|
44
|
+
readonly textBox: TextBox;
|
|
45
|
+
readonly keyins: string[];
|
|
46
|
+
private _historyIndex?;
|
|
47
|
+
private _historyLength;
|
|
48
|
+
private readonly _history;
|
|
49
|
+
private readonly _localization;
|
|
50
|
+
constructor(props: KeyinFieldProps);
|
|
51
|
+
focus(): void;
|
|
52
|
+
loseFocus(): void;
|
|
53
|
+
selectAll(): void;
|
|
54
|
+
private handleKeyPress;
|
|
55
|
+
private handleKeyDown;
|
|
56
|
+
private resetHistoryIndex;
|
|
57
|
+
private pushHistory;
|
|
58
|
+
private submitKeyin;
|
|
59
|
+
private respondToKeyinFocus;
|
|
60
|
+
private findKeyins;
|
|
61
|
+
}
|
|
62
62
|
//# sourceMappingURL=KeyinField.d.ts.map
|