@itwin/frontend-devtools 4.0.0-dev.7 → 4.0.0-dev.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -1
- package/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 +13 -13
|
@@ -1,42 +1,42 @@
|
|
|
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 Effects
|
|
7
|
-
*/
|
|
8
|
-
import { Point3d } from "@itwin/core-geometry";
|
|
9
|
-
/** Generate integer in [min, max].
|
|
10
|
-
* @beta
|
|
11
|
-
*/
|
|
12
|
-
export function randomInteger(min, max) {
|
|
13
|
-
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
14
|
-
}
|
|
15
|
-
/** Generate random integer in [range.low, range.high].
|
|
16
|
-
* @beta
|
|
17
|
-
*/
|
|
18
|
-
export function randomIntegerInRange(range) {
|
|
19
|
-
return Math.floor(Math.random() * (range.high - range.low + 1)) + range.low;
|
|
20
|
-
}
|
|
21
|
-
/** Generate random floating-point number in [min, max).
|
|
22
|
-
* @beta
|
|
23
|
-
*/
|
|
24
|
-
export function randomFloat(min, max) {
|
|
25
|
-
return Math.random() * (max - min) + min;
|
|
26
|
-
}
|
|
27
|
-
/** Generate random floating-point number in [range.low, range.high).
|
|
28
|
-
* @beta
|
|
29
|
-
*/
|
|
30
|
-
export function randomFloatInRange(range) {
|
|
31
|
-
return randomFloat(range.low, range.high);
|
|
32
|
-
}
|
|
33
|
-
/** Generate a random position in the specified range.
|
|
34
|
-
* @beta
|
|
35
|
-
*/
|
|
36
|
-
export function randomPositionInRange(range) {
|
|
37
|
-
const x = randomFloat(range.low.x, range.high.x);
|
|
38
|
-
const y = randomFloat(range.low.y, range.high.y);
|
|
39
|
-
const z = randomFloat(range.low.z, range.high.z);
|
|
40
|
-
return new Point3d(x, y, z);
|
|
41
|
-
}
|
|
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 Effects
|
|
7
|
+
*/
|
|
8
|
+
import { Point3d } from "@itwin/core-geometry";
|
|
9
|
+
/** Generate integer in [min, max].
|
|
10
|
+
* @beta
|
|
11
|
+
*/
|
|
12
|
+
export function randomInteger(min, max) {
|
|
13
|
+
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
14
|
+
}
|
|
15
|
+
/** Generate random integer in [range.low, range.high].
|
|
16
|
+
* @beta
|
|
17
|
+
*/
|
|
18
|
+
export function randomIntegerInRange(range) {
|
|
19
|
+
return Math.floor(Math.random() * (range.high - range.low + 1)) + range.low;
|
|
20
|
+
}
|
|
21
|
+
/** Generate random floating-point number in [min, max).
|
|
22
|
+
* @beta
|
|
23
|
+
*/
|
|
24
|
+
export function randomFloat(min, max) {
|
|
25
|
+
return Math.random() * (max - min) + min;
|
|
26
|
+
}
|
|
27
|
+
/** Generate random floating-point number in [range.low, range.high).
|
|
28
|
+
* @beta
|
|
29
|
+
*/
|
|
30
|
+
export function randomFloatInRange(range) {
|
|
31
|
+
return randomFloat(range.low, range.high);
|
|
32
|
+
}
|
|
33
|
+
/** Generate a random position in the specified range.
|
|
34
|
+
* @beta
|
|
35
|
+
*/
|
|
36
|
+
export function randomPositionInRange(range) {
|
|
37
|
+
const x = randomFloat(range.low.x, range.high.x);
|
|
38
|
+
const y = randomFloat(range.low.y, range.high.y);
|
|
39
|
+
const z = randomFloat(range.low.z, range.high.z);
|
|
40
|
+
return new Point3d(x, y, z);
|
|
41
|
+
}
|
|
42
42
|
//# sourceMappingURL=Random.js.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Effects
|
|
3
|
-
*/
|
|
4
|
-
import { ScreenSpaceEffectBuilder, Tool } from "@itwin/core-frontend";
|
|
5
|
-
import { AddEffectTool } from "./EffectTools";
|
|
6
|
-
/** Adjusts the saturation of colors in a viewport.
|
|
7
|
-
* @beta
|
|
8
|
-
*/
|
|
9
|
-
export declare class SaturationEffect extends AddEffectTool {
|
|
10
|
-
static toolId: string;
|
|
11
|
-
protected get effectName(): string;
|
|
12
|
-
protected get textureCoordFromPosition(): boolean;
|
|
13
|
-
protected get source(): {
|
|
14
|
-
vertex: string;
|
|
15
|
-
fragment: string;
|
|
16
|
-
};
|
|
17
|
-
protected defineEffect(builder: ScreenSpaceEffectBuilder): void;
|
|
18
|
-
}
|
|
19
|
-
/** Configures the [[SaturationEffect]].
|
|
20
|
-
* @beta
|
|
21
|
-
*/
|
|
22
|
-
export declare class SaturationConfig extends Tool {
|
|
23
|
-
static toolId: string;
|
|
24
|
-
static get minArgs(): number;
|
|
25
|
-
static get maxArgs(): number;
|
|
26
|
-
/** Multiplier applied to the saturation of each color in the source image. */
|
|
27
|
-
static multiplier: number;
|
|
28
|
-
run(multiplier?: number): Promise<boolean>;
|
|
29
|
-
parseAndRun(...input: string[]): Promise<boolean>;
|
|
30
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Effects
|
|
3
|
+
*/
|
|
4
|
+
import { ScreenSpaceEffectBuilder, Tool } from "@itwin/core-frontend";
|
|
5
|
+
import { AddEffectTool } from "./EffectTools";
|
|
6
|
+
/** Adjusts the saturation of colors in a viewport.
|
|
7
|
+
* @beta
|
|
8
|
+
*/
|
|
9
|
+
export declare class SaturationEffect extends AddEffectTool {
|
|
10
|
+
static toolId: string;
|
|
11
|
+
protected get effectName(): string;
|
|
12
|
+
protected get textureCoordFromPosition(): boolean;
|
|
13
|
+
protected get source(): {
|
|
14
|
+
vertex: string;
|
|
15
|
+
fragment: string;
|
|
16
|
+
};
|
|
17
|
+
protected defineEffect(builder: ScreenSpaceEffectBuilder): void;
|
|
18
|
+
}
|
|
19
|
+
/** Configures the [[SaturationEffect]].
|
|
20
|
+
* @beta
|
|
21
|
+
*/
|
|
22
|
+
export declare class SaturationConfig extends Tool {
|
|
23
|
+
static toolId: string;
|
|
24
|
+
static get minArgs(): number;
|
|
25
|
+
static get maxArgs(): number;
|
|
26
|
+
/** Multiplier applied to the saturation of each color in the source image. */
|
|
27
|
+
static multiplier: number;
|
|
28
|
+
run(multiplier?: number): Promise<boolean>;
|
|
29
|
+
parseAndRun(...input: string[]): Promise<boolean>;
|
|
30
|
+
}
|
|
31
31
|
//# sourceMappingURL=Saturation.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
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 Effects
|
|
7
|
-
*/
|
|
8
|
-
import { Tool, UniformType, VaryingType } from "@itwin/core-frontend";
|
|
9
|
-
import { parseArgs } from "../tools/parseArgs";
|
|
10
|
-
import { AddEffectTool, refreshViewportsForEffect } from "./EffectTools";
|
|
11
|
-
/** Adjusts the saturation of colors in a viewport.
|
|
12
|
-
* @beta
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
get effectName() { return "Saturation"; }
|
|
16
|
-
get textureCoordFromPosition() { return true; }
|
|
17
|
-
get source() {
|
|
18
|
-
// rgb <-> hsl conversion routines from https://gamedev.stackexchange.com/questions/59797/glsl-shader-change-hue-saturation-brightness
|
|
19
|
-
return {
|
|
20
|
-
// Vertex shader simply computes texture coordinate for source pixel.
|
|
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 Effects
|
|
7
|
+
*/
|
|
8
|
+
import { Tool, UniformType, VaryingType } from "@itwin/core-frontend";
|
|
9
|
+
import { parseArgs } from "../tools/parseArgs";
|
|
10
|
+
import { AddEffectTool, refreshViewportsForEffect } from "./EffectTools";
|
|
11
|
+
/** Adjusts the saturation of colors in a viewport.
|
|
12
|
+
* @beta
|
|
13
|
+
*/
|
|
14
|
+
class SaturationEffect extends AddEffectTool {
|
|
15
|
+
get effectName() { return "Saturation"; }
|
|
16
|
+
get textureCoordFromPosition() { return true; }
|
|
17
|
+
get source() {
|
|
18
|
+
// rgb <-> hsl conversion routines from https://gamedev.stackexchange.com/questions/59797/glsl-shader-change-hue-saturation-brightness
|
|
19
|
+
return {
|
|
20
|
+
// Vertex shader simply computes texture coordinate for source pixel.
|
|
21
21
|
vertex: `
|
|
22
22
|
void effectMain(vec4 pos) {
|
|
23
23
|
v_texCoord = textureCoordFromPosition(pos);
|
|
24
|
-
}`,
|
|
25
|
-
// Fragment shader converts color to HSV, adjusts the saturation, and converts back to RGB.
|
|
24
|
+
}`,
|
|
25
|
+
// Fragment shader converts color to HSV, adjusts the saturation, and converts back to RGB.
|
|
26
26
|
fragment: `
|
|
27
27
|
vec3 rgb2hsv(vec3 c) {
|
|
28
28
|
vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
|
|
@@ -46,36 +46,38 @@ export class SaturationEffect extends AddEffectTool {
|
|
|
46
46
|
color.rgb.y = color.rgb.y * u_saturationMult;
|
|
47
47
|
color.rgb = hsv2rgb(color.rgb);
|
|
48
48
|
return color;
|
|
49
|
-
}`,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
defineEffect(builder) {
|
|
53
|
-
builder.addVarying("v_texCoord", VaryingType.Vec2);
|
|
54
|
-
builder.addUniform({
|
|
55
|
-
name: "u_saturationMult",
|
|
56
|
-
type: UniformType.Float,
|
|
57
|
-
bind: (uniform) => uniform.setUniform1f(SaturationConfig.multiplier),
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
SaturationEffect.toolId = "SaturationEffect";
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
static get
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
49
|
+
}`,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
defineEffect(builder) {
|
|
53
|
+
builder.addVarying("v_texCoord", VaryingType.Vec2);
|
|
54
|
+
builder.addUniform({
|
|
55
|
+
name: "u_saturationMult",
|
|
56
|
+
type: UniformType.Float,
|
|
57
|
+
bind: (uniform) => uniform.setUniform1f(SaturationConfig.multiplier),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
SaturationEffect.toolId = "SaturationEffect";
|
|
62
|
+
export { SaturationEffect };
|
|
63
|
+
/** Configures the [[SaturationEffect]].
|
|
64
|
+
* @beta
|
|
65
|
+
*/
|
|
66
|
+
class SaturationConfig extends Tool {
|
|
67
|
+
static get minArgs() { return 0; }
|
|
68
|
+
static get maxArgs() { return 1; }
|
|
69
|
+
async run(multiplier) {
|
|
70
|
+
SaturationConfig.multiplier = multiplier ?? 2.0;
|
|
71
|
+
refreshViewportsForEffect("fdt Saturation");
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
async parseAndRun(...input) {
|
|
75
|
+
const args = parseArgs(input);
|
|
76
|
+
return this.run(args.getFloat("s"));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
SaturationConfig.toolId = "SaturationConfig";
|
|
80
|
+
/** Multiplier applied to the saturation of each color in the source image. */
|
|
81
|
+
SaturationConfig.multiplier = 2.0;
|
|
82
|
+
export { SaturationConfig };
|
|
81
83
|
//# sourceMappingURL=Saturation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Saturation.js","sourceRoot":"","sources":["../../../src/effects/Saturation.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAA4B,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAEzE;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"Saturation.js","sourceRoot":"","sources":["../../../src/effects/Saturation.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAA4B,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAEzE;;GAEG;AACH,MAAa,gBAAiB,SAAQ,aAAa;IAGjD,IAAc,UAAU,KAAK,OAAO,YAAY,CAAC,CAAC,CAAC;IACnD,IAAc,wBAAwB,KAAK,OAAO,IAAI,CAAC,CAAC,CAAC;IAEzD,IAAc,MAAM;QAClB,sIAAsI;QACtI,OAAO;YACL,qEAAqE;YACrE,MAAM,EAAE;;;UAGJ;YACJ,2FAA2F;YAC3F,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;UAuBN;SACL,CAAC;IACJ,CAAC;IAES,YAAY,CAAC,OAAiC;QACtD,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;QACnD,OAAO,CAAC,UAAU,CAAC;YACjB,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,WAAW,CAAC,KAAK;YACvB,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,UAAU,CAAC;SACrE,CAAC,CAAC;IACL,CAAC;;AAhDsB,uBAAM,GAAG,kBAAkB,CAAC;SADxC,gBAAgB;AAoD7B;;GAEG;AACH,MAAa,gBAAiB,SAAQ,IAAI;IAEjC,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAc,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAKlC,KAAK,CAAC,GAAG,CAAC,UAAmB;QAC3C,gBAAgB,CAAC,UAAU,GAAG,UAAU,IAAI,GAAG,CAAC;QAChD,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,CAAC;IAEe,KAAK,CAAC,WAAW,CAAC,GAAG,KAAe;QAClD,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;;AAhBsB,uBAAM,GAAG,kBAAkB,CAAC;AAInD,8EAA8E;AAChE,2BAAU,GAAG,GAAG,CAAC;SANpB,gBAAgB","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/** @packageDocumentation\r\n * @module Effects\r\n */\r\n\r\nimport { ScreenSpaceEffectBuilder, Tool, UniformType, VaryingType } from \"@itwin/core-frontend\";\r\nimport { parseArgs } from \"../tools/parseArgs\";\r\nimport { AddEffectTool, refreshViewportsForEffect } from \"./EffectTools\";\r\n\r\n/** Adjusts the saturation of colors in a viewport.\r\n * @beta\r\n */\r\nexport class SaturationEffect extends AddEffectTool {\r\n public static override toolId = \"SaturationEffect\";\r\n\r\n protected get effectName() { return \"Saturation\"; }\r\n protected get textureCoordFromPosition() { return true; }\r\n\r\n protected get source() {\r\n // rgb <-> hsl conversion routines from https://gamedev.stackexchange.com/questions/59797/glsl-shader-change-hue-saturation-brightness\r\n return {\r\n // Vertex shader simply computes texture coordinate for source pixel.\r\n vertex: `\r\n void effectMain(vec4 pos) {\r\n v_texCoord = textureCoordFromPosition(pos);\r\n }`,\r\n // Fragment shader converts color to HSV, adjusts the saturation, and converts back to RGB.\r\n fragment: `\r\n vec3 rgb2hsv(vec3 c) {\r\n vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\r\n vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));\r\n vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));\r\n\r\n float d = q.x - min(q.w, q.y);\r\n float e = 1.0e-10;\r\n return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);\r\n }\r\n\r\n vec3 hsv2rgb(vec3 c) {\r\n vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\r\n vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\r\n return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\r\n }\r\n\r\n vec4 effectMain() {\r\n vec4 color = TEXTURE(u_diffuse, v_texCoord);\r\n color.rgb = rgb2hsv(color.rgb);\r\n color.rgb.y = color.rgb.y * u_saturationMult;\r\n color.rgb = hsv2rgb(color.rgb);\r\n return color;\r\n }`,\r\n };\r\n }\r\n\r\n protected defineEffect(builder: ScreenSpaceEffectBuilder): void {\r\n builder.addVarying(\"v_texCoord\", VaryingType.Vec2);\r\n builder.addUniform({\r\n name: \"u_saturationMult\",\r\n type: UniformType.Float,\r\n bind: (uniform) => uniform.setUniform1f(SaturationConfig.multiplier),\r\n });\r\n }\r\n}\r\n\r\n/** Configures the [[SaturationEffect]].\r\n * @beta\r\n */\r\nexport class SaturationConfig extends Tool {\r\n public static override toolId = \"SaturationConfig\";\r\n public static override get minArgs() { return 0; }\r\n public static override get maxArgs() { return 1; }\r\n\r\n /** Multiplier applied to the saturation of each color in the source image. */\r\n public static multiplier = 2.0;\r\n\r\n public override async run(multiplier?: number): Promise<boolean> {\r\n SaturationConfig.multiplier = multiplier ?? 2.0;\r\n refreshViewportsForEffect(\"fdt Saturation\");\r\n return true;\r\n }\r\n\r\n public override async parseAndRun(...input: string[]): Promise<boolean> {\r\n const args = parseArgs(input);\r\n return this.run(args.getFloat(\"s\"));\r\n }\r\n}\r\n\r\n"]}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Effects
|
|
3
|
-
*/
|
|
4
|
-
import { Range1d, Range2d, Vector2d } from "@itwin/core-geometry";
|
|
5
|
-
import { DecorateContext, Decorator, ParticleProps, Tool, Viewport } from "@itwin/core-frontend";
|
|
6
|
-
/** Represents one particle displayed by a [[SnowDecorator]].
|
|
7
|
-
* Particle positions are in [CoordSystem.View]($frontend).
|
|
8
|
-
* @beta
|
|
9
|
-
*/
|
|
10
|
-
export interface SnowParticle extends ParticleProps {
|
|
11
|
-
/** Make x, y, and z from ParticleProps writable. */
|
|
12
|
-
x: number;
|
|
13
|
-
y: number;
|
|
14
|
-
z: number;
|
|
15
|
-
/** Current velocity, in pixels per second. */
|
|
16
|
-
velocity: Vector2d;
|
|
17
|
-
}
|
|
18
|
-
/** Parameters controlling how a [[SnowDecorator]] works.
|
|
19
|
-
* @beta
|
|
20
|
-
*/
|
|
21
|
-
export interface SnowParams {
|
|
22
|
-
/** The number of snow particles to produce. This could alternatively be expressed as a density so that small viewports would not be more crowded than larger ones. */
|
|
23
|
-
numParticles: number;
|
|
24
|
-
/** Range from which to randomly select each particle's size, in pixels. */
|
|
25
|
-
sizeRange: Range1d;
|
|
26
|
-
/** Range from which to randomly select each particle's transparency. */
|
|
27
|
-
transparencyRange: Range1d;
|
|
28
|
-
/** Range from which to randomly select each particle's initial velocity, in pixels per second. */
|
|
29
|
-
velocityRange: Range2d;
|
|
30
|
-
/** Range from which to randomly select an acceleration to apply to each particle's velocity each frame, in pixels per second squared, to simulate wind. */
|
|
31
|
-
accelerationRange: Range2d;
|
|
32
|
-
/** Wind velocity in pixels per second in X. */
|
|
33
|
-
windVelocity: number;
|
|
34
|
-
}
|
|
35
|
-
/** Simulates snowfall in a [Viewport]($frontend) using particle effects.
|
|
36
|
-
* @see [[SnowEffect]] for a [Tool]($frontend) that toggles this decorator.
|
|
37
|
-
* @see [ParticleCollectionBuilder]($frontend) for defining custom particle effects.
|
|
38
|
-
* @beta
|
|
39
|
-
*/
|
|
40
|
-
export declare class SnowDecorator implements Decorator {
|
|
41
|
-
/** The viewport being decorated. */
|
|
42
|
-
readonly viewport: Viewport;
|
|
43
|
-
/** Invoked when this decorator is to be destroyed. */
|
|
44
|
-
readonly dispose: VoidFunction;
|
|
45
|
-
/** The initial width and height of the viewport, from which we randomly select each particle's initial position. */
|
|
46
|
-
private readonly _dimensions;
|
|
47
|
-
/** The list of particles being drawn. */
|
|
48
|
-
private readonly _particles;
|
|
49
|
-
/** The image to display for each particle. */
|
|
50
|
-
private _texture?;
|
|
51
|
-
/** The last time `updateParticles()` was invoked, in milliseconds. */
|
|
52
|
-
private _lastUpdateTime;
|
|
53
|
-
private readonly _params;
|
|
54
|
-
private constructor();
|
|
55
|
-
decorate(context: DecorateContext): void;
|
|
56
|
-
/** Change some of the parameters affecting this decorator. */
|
|
57
|
-
configure(params: Partial<SnowParams>): void;
|
|
58
|
-
/** Emit a new particle with randomized properties. */
|
|
59
|
-
private emit;
|
|
60
|
-
private updateParticles;
|
|
61
|
-
private static readonly _decorators;
|
|
62
|
-
/** Toggle this decorator for the specified viewport.
|
|
63
|
-
* @param viewport The viewport to which the effect should be applied or removed.
|
|
64
|
-
* @param enable `true` to enable the effect, `false` to disable it, or `undefined` to toggle the current state.
|
|
65
|
-
*/
|
|
66
|
-
static toggle(viewport: Viewport, enable?: boolean): Promise<void>;
|
|
67
|
-
}
|
|
68
|
-
/** Toggles a decorator that simulates snow using particle effects.
|
|
69
|
-
* @see [[SnowDecorator]] for the implementation of the decorator.
|
|
70
|
-
* @beta
|
|
71
|
-
*/
|
|
72
|
-
export declare class SnowEffect extends Tool {
|
|
73
|
-
static toolId: string;
|
|
74
|
-
run(enable?: boolean): Promise<boolean>;
|
|
75
|
-
parseAndRun(...args: string[]): Promise<boolean>;
|
|
76
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Effects
|
|
3
|
+
*/
|
|
4
|
+
import { Range1d, Range2d, Vector2d } from "@itwin/core-geometry";
|
|
5
|
+
import { DecorateContext, Decorator, ParticleProps, Tool, Viewport } from "@itwin/core-frontend";
|
|
6
|
+
/** Represents one particle displayed by a [[SnowDecorator]].
|
|
7
|
+
* Particle positions are in [CoordSystem.View]($frontend).
|
|
8
|
+
* @beta
|
|
9
|
+
*/
|
|
10
|
+
export interface SnowParticle extends ParticleProps {
|
|
11
|
+
/** Make x, y, and z from ParticleProps writable. */
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
z: number;
|
|
15
|
+
/** Current velocity, in pixels per second. */
|
|
16
|
+
velocity: Vector2d;
|
|
17
|
+
}
|
|
18
|
+
/** Parameters controlling how a [[SnowDecorator]] works.
|
|
19
|
+
* @beta
|
|
20
|
+
*/
|
|
21
|
+
export interface SnowParams {
|
|
22
|
+
/** The number of snow particles to produce. This could alternatively be expressed as a density so that small viewports would not be more crowded than larger ones. */
|
|
23
|
+
numParticles: number;
|
|
24
|
+
/** Range from which to randomly select each particle's size, in pixels. */
|
|
25
|
+
sizeRange: Range1d;
|
|
26
|
+
/** Range from which to randomly select each particle's transparency. */
|
|
27
|
+
transparencyRange: Range1d;
|
|
28
|
+
/** Range from which to randomly select each particle's initial velocity, in pixels per second. */
|
|
29
|
+
velocityRange: Range2d;
|
|
30
|
+
/** Range from which to randomly select an acceleration to apply to each particle's velocity each frame, in pixels per second squared, to simulate wind. */
|
|
31
|
+
accelerationRange: Range2d;
|
|
32
|
+
/** Wind velocity in pixels per second in X. */
|
|
33
|
+
windVelocity: number;
|
|
34
|
+
}
|
|
35
|
+
/** Simulates snowfall in a [Viewport]($frontend) using particle effects.
|
|
36
|
+
* @see [[SnowEffect]] for a [Tool]($frontend) that toggles this decorator.
|
|
37
|
+
* @see [ParticleCollectionBuilder]($frontend) for defining custom particle effects.
|
|
38
|
+
* @beta
|
|
39
|
+
*/
|
|
40
|
+
export declare class SnowDecorator implements Decorator {
|
|
41
|
+
/** The viewport being decorated. */
|
|
42
|
+
readonly viewport: Viewport;
|
|
43
|
+
/** Invoked when this decorator is to be destroyed. */
|
|
44
|
+
readonly dispose: VoidFunction;
|
|
45
|
+
/** The initial width and height of the viewport, from which we randomly select each particle's initial position. */
|
|
46
|
+
private readonly _dimensions;
|
|
47
|
+
/** The list of particles being drawn. */
|
|
48
|
+
private readonly _particles;
|
|
49
|
+
/** The image to display for each particle. */
|
|
50
|
+
private _texture?;
|
|
51
|
+
/** The last time `updateParticles()` was invoked, in milliseconds. */
|
|
52
|
+
private _lastUpdateTime;
|
|
53
|
+
private readonly _params;
|
|
54
|
+
private constructor();
|
|
55
|
+
decorate(context: DecorateContext): void;
|
|
56
|
+
/** Change some of the parameters affecting this decorator. */
|
|
57
|
+
configure(params: Partial<SnowParams>): void;
|
|
58
|
+
/** Emit a new particle with randomized properties. */
|
|
59
|
+
private emit;
|
|
60
|
+
private updateParticles;
|
|
61
|
+
private static readonly _decorators;
|
|
62
|
+
/** Toggle this decorator for the specified viewport.
|
|
63
|
+
* @param viewport The viewport to which the effect should be applied or removed.
|
|
64
|
+
* @param enable `true` to enable the effect, `false` to disable it, or `undefined` to toggle the current state.
|
|
65
|
+
*/
|
|
66
|
+
static toggle(viewport: Viewport, enable?: boolean): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
/** Toggles a decorator that simulates snow using particle effects.
|
|
69
|
+
* @see [[SnowDecorator]] for the implementation of the decorator.
|
|
70
|
+
* @beta
|
|
71
|
+
*/
|
|
72
|
+
export declare class SnowEffect extends Tool {
|
|
73
|
+
static toolId: string;
|
|
74
|
+
run(enable?: boolean): Promise<boolean>;
|
|
75
|
+
parseAndRun(...args: string[]): Promise<boolean>;
|
|
76
|
+
}
|
|
77
77
|
//# sourceMappingURL=Snow.d.ts.map
|