@zendir/ui 0.5.0 → 0.6.1
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 +419 -386
- package/README.md +640 -631
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/index.js +17 -221
- package/dist/react/3d/CesiumCaptureSource.d.ts +0 -1
- package/dist/react/3d/CesiumCaptureSource.js +364 -283
- package/dist/react/3d/CesiumCaptureSource.js.map +1 -1
- package/dist/react/3d/ZenSpace3D.d.ts +2 -3
- package/dist/react/3d/ZenSpace3D.js +1681 -1237
- package/dist/react/3d/ZenSpace3D.js.map +1 -1
- package/dist/react/3d/ZenSpace3DCesium.d.ts +0 -1
- package/dist/react/3d/ZenSpace3DCesium.js +513 -560
- package/dist/react/3d/ZenSpace3DCesium.js.map +1 -1
- package/dist/react/3d/ZenSpace3DShaders.js +61 -66
- package/dist/react/3d/ZenSpace3DShaders.js.map +1 -1
- package/dist/react/3d/ZenSpace3DTypes.d.ts +19 -20
- package/dist/react/3d/ZenSpace3DUtils.d.ts +0 -1
- package/dist/react/3d/ZenSpace3DUtils.js +37 -24
- package/dist/react/3d/ZenSpace3DUtils.js.map +1 -1
- package/dist/react/3d/capturePngAnalysis.js +42 -36
- package/dist/react/3d/capturePngAnalysis.js.map +1 -1
- package/dist/react/3d/index.d.ts +3 -3
- package/dist/react/3d/index.js +5 -53
- package/dist/react/3d/threeLoader.d.ts +1 -1
- package/dist/react/3d/threeLoader.js +23 -18
- package/dist/react/3d/threeLoader.js.map +1 -1
- package/dist/react/astro/ClassificationBanner.d.ts +2 -3
- package/dist/react/astro/ClassificationBanner.js +95 -79
- package/dist/react/astro/ClassificationBanner.js.map +1 -1
- package/dist/react/astro/GlobalStatusBar.d.ts +0 -1
- package/dist/react/astro/GlobalStatusBar.js +157 -163
- package/dist/react/astro/GlobalStatusBar.js.map +1 -1
- package/dist/react/astro/MissionClock.d.ts +7 -8
- package/dist/react/astro/MissionClock.js +377 -400
- package/dist/react/astro/MissionClock.js.map +1 -1
- package/dist/react/astro/MonitoringIcon.d.ts +1 -2
- package/dist/react/astro/MonitoringIcon.js +422 -358
- package/dist/react/astro/MonitoringIcon.js.map +1 -1
- package/dist/react/astro/Notification.d.ts +1 -2
- package/dist/react/astro/Notification.js +229 -126
- package/dist/react/astro/Notification.js.map +1 -1
- package/dist/react/astro/Progress.d.ts +0 -1
- package/dist/react/astro/Progress.js +199 -141
- package/dist/react/astro/Progress.js.map +1 -1
- package/dist/react/astro/SimulationControls.d.ts +3 -4
- package/dist/react/astro/SimulationControls.js +596 -650
- package/dist/react/astro/SimulationControls.js.map +1 -1
- package/dist/react/astro/StatusIndicator.d.ts +0 -1
- package/dist/react/astro/StatusIndicator.js +236 -170
- package/dist/react/astro/StatusIndicator.js.map +1 -1
- package/dist/react/astro/UnifiedTimeline.d.ts +9 -10
- package/dist/react/astro/UnifiedTimeline.js +2345 -2392
- package/dist/react/astro/UnifiedTimeline.js.map +1 -1
- package/dist/react/astro/index.d.ts +5 -5
- package/dist/react/astro/index.js +1 -25
- package/dist/react/cards/AccessCard.d.ts +0 -1
- package/dist/react/cards/AccessCard.js +471 -405
- package/dist/react/cards/AccessCard.js.map +1 -1
- package/dist/react/cards/OrbitCard.d.ts +0 -1
- package/dist/react/cards/OrbitCard.js +487 -364
- package/dist/react/cards/OrbitCard.js.map +1 -1
- package/dist/react/cards/SpacecraftCard.d.ts +0 -1
- package/dist/react/cards/SpacecraftCard.js +813 -925
- package/dist/react/cards/SpacecraftCard.js.map +1 -1
- package/dist/react/cards/TelemetryCard.d.ts +0 -1
- package/dist/react/cards/TelemetryCard.js +1055 -732
- package/dist/react/cards/TelemetryCard.js.map +1 -1
- package/dist/react/cards/TelemetryStreamCard.d.ts +0 -1
- package/dist/react/cards/TelemetryStreamCard.js +323 -297
- package/dist/react/cards/TelemetryStreamCard.js.map +1 -1
- package/dist/react/cards/index.d.ts +1 -1
- package/dist/react/cards/index.js +1 -8
- package/dist/react/charts/GroundTrackMap.d.ts +6 -7
- package/dist/react/charts/GroundTrackMap.js +1377 -1256
- package/dist/react/charts/GroundTrackMap.js.map +1 -1
- package/dist/react/charts/GroundTrackMapLeaflet.d.ts +1 -2
- package/dist/react/charts/GroundTrackMapLeaflet.js +1065 -987
- package/dist/react/charts/GroundTrackMapLeaflet.js.map +1 -1
- package/dist/react/charts/groundTrackMapLeafletTiles.js +34 -25
- package/dist/react/charts/groundTrackMapLeafletTiles.js.map +1 -1
- package/dist/react/charts/groundTrackMapLeafletUtils.js +70 -61
- package/dist/react/charts/groundTrackMapLeafletUtils.js.map +1 -1
- package/dist/react/charts/index.d.ts +1 -1
- package/dist/react/charts/index.js +7 -100
- package/dist/react/charts/unified/AstroChart.d.ts +1 -2
- package/dist/react/charts/unified/AstroChart.js +1331 -1411
- package/dist/react/charts/unified/AstroChart.js.map +1 -1
- package/dist/react/charts/unified/PowerOverviewChart.d.ts +3 -3
- package/dist/react/charts/unified/PowerOverviewChart.js +495 -478
- package/dist/react/charts/unified/PowerOverviewChart.js.map +1 -1
- package/dist/react/charts/unified/domain.d.ts +12 -13
- package/dist/react/charts/unified/domain.js +3999 -3145
- package/dist/react/charts/unified/domain.js.map +1 -1
- package/dist/react/charts/unified/generators.d.ts +3 -4
- package/dist/react/charts/unified/generators.js +561 -498
- package/dist/react/charts/unified/generators.js.map +1 -1
- package/dist/react/charts/unified/index.d.ts +1 -1
- package/dist/react/charts/unified/presets.d.ts +14 -15
- package/dist/react/charts/unified/presets.js +857 -994
- package/dist/react/charts/unified/presets.js.map +1 -1
- package/dist/react/charts/unified/sync.d.ts +2 -3
- package/dist/react/charts/unified/sync.js +229 -195
- package/dist/react/charts/unified/sync.js.map +1 -1
- package/dist/react/charts/unified/theme.d.ts +11 -12
- package/dist/react/charts/unified/theme.js +606 -642
- package/dist/react/charts/unified/theme.js.map +1 -1
- package/dist/react/charts/unified/types.d.ts +32 -33
- package/dist/react/charts/unified/useChartStream.d.ts +1 -2
- package/dist/react/charts/unified/useChartStream.js +203 -216
- package/dist/react/charts/unified/useChartStream.js.map +1 -1
- package/dist/react/chatgpt/AppCard.d.ts +1 -2
- package/dist/react/chatgpt/index.d.ts +7 -7
- package/dist/react/chatgpt/index.js +160 -139
- package/dist/react/chatgpt/index.js.map +1 -1
- package/dist/react/context/CategoryContext.d.ts +0 -1
- package/dist/react/context/CategoryContext.js +78 -29
- package/dist/react/context/CategoryContext.js.map +1 -1
- package/dist/react/context/DisplaySettingsContext.d.ts +1 -2
- package/dist/react/context/DisplaySettingsContext.js +205 -156
- package/dist/react/context/DisplaySettingsContext.js.map +1 -1
- package/dist/react/context/SpatialSelectionContext.d.ts +0 -1
- package/dist/react/context/SpatialSelectionContext.js +36 -7
- package/dist/react/context/SpatialSelectionContext.js.map +1 -1
- package/dist/react/core/data/DataTable.d.ts +3 -4
- package/dist/react/core/data/DataTable.js +473 -440
- package/dist/react/core/data/DataTable.js.map +1 -1
- package/dist/react/core/data/DataValue.d.ts +4 -5
- package/dist/react/core/data/DataValue.js +605 -571
- package/dist/react/core/data/DataValue.js.map +1 -1
- package/dist/react/core/data/propertyConfig.d.ts +1 -2
- package/dist/react/core/data/propertyConfig.js +446 -382
- package/dist/react/core/data/propertyConfig.js.map +1 -1
- package/dist/react/core/display/AstroIcon.d.ts +4 -5
- package/dist/react/core/display/AstroIcon.js +339 -429
- package/dist/react/core/display/AstroIcon.js.map +1 -1
- package/dist/react/core/display/Badge.d.ts +2 -3
- package/dist/react/core/display/Badge.js +131 -131
- package/dist/react/core/display/Badge.js.map +1 -1
- package/dist/react/core/display/CardHeader.d.ts +0 -1
- package/dist/react/core/display/CardHeader.js +398 -311
- package/dist/react/core/display/CardHeader.js.map +1 -1
- package/dist/react/core/display/Container.d.ts +2 -3
- package/dist/react/core/display/Container.js +640 -668
- package/dist/react/core/display/Container.js.map +1 -1
- package/dist/react/core/display/CopyButton.d.ts +1 -2
- package/dist/react/core/display/CopyButton.js +158 -101
- package/dist/react/core/display/CopyButton.js.map +1 -1
- package/dist/react/core/display/GlassCard.d.ts +3 -4
- package/dist/react/core/display/GlassCard.js +416 -369
- package/dist/react/core/display/GlassCard.js.map +1 -1
- package/dist/react/core/display/HeaderIconWithStatus.d.ts +0 -1
- package/dist/react/core/display/HeaderIconWithStatus.js +152 -152
- package/dist/react/core/display/HeaderIconWithStatus.js.map +1 -1
- package/dist/react/core/display/Icon.d.ts +2 -3
- package/dist/react/core/display/Icon.js +172 -143
- package/dist/react/core/display/Icon.js.map +1 -1
- package/dist/react/core/display/Typography.d.ts +24 -25
- package/dist/react/core/display/Typography.js +360 -178
- package/dist/react/core/display/Typography.js.map +1 -1
- package/dist/react/core/feedback/ConfirmDialog.d.ts +1 -2
- package/dist/react/core/feedback/ConfirmDialog.js +343 -304
- package/dist/react/core/feedback/ConfirmDialog.js.map +1 -1
- package/dist/react/core/feedback/Dialog.d.ts +2 -3
- package/dist/react/core/feedback/Dialog.js +189 -197
- package/dist/react/core/feedback/Dialog.js.map +1 -1
- package/dist/react/core/feedback/Toast.d.ts +2 -3
- package/dist/react/core/feedback/Toast.js +346 -207
- package/dist/react/core/feedback/Toast.js.map +1 -1
- package/dist/react/core/index.d.ts +26 -26
- package/dist/react/core/index.js +7 -119
- package/dist/react/core/inputs/Button.d.ts +2 -3
- package/dist/react/core/inputs/Button.js +281 -304
- package/dist/react/core/inputs/Button.js.map +1 -1
- package/dist/react/core/inputs/Checkbox.d.ts +2 -3
- package/dist/react/core/inputs/Checkbox.js +139 -127
- package/dist/react/core/inputs/Checkbox.js.map +1 -1
- package/dist/react/core/inputs/Input.d.ts +3 -4
- package/dist/react/core/inputs/Input.js +277 -285
- package/dist/react/core/inputs/Input.js.map +1 -1
- package/dist/react/core/inputs/LimitsBar.d.ts +1 -2
- package/dist/react/core/inputs/LimitsBar.js +271 -196
- package/dist/react/core/inputs/LimitsBar.js.map +1 -1
- package/dist/react/core/inputs/NumberInput.d.ts +2 -3
- package/dist/react/core/inputs/NumberInput.js +531 -503
- package/dist/react/core/inputs/NumberInput.js.map +1 -1
- package/dist/react/core/inputs/PinInput.d.ts +2 -3
- package/dist/react/core/inputs/PinInput.js +224 -207
- package/dist/react/core/inputs/PinInput.js.map +1 -1
- package/dist/react/core/inputs/Select.d.ts +1 -2
- package/dist/react/core/inputs/Select.js +298 -299
- package/dist/react/core/inputs/Select.js.map +1 -1
- package/dist/react/core/inputs/Toggle.d.ts +2 -3
- package/dist/react/core/inputs/Toggle.js +142 -148
- package/dist/react/core/inputs/Toggle.js.map +1 -1
- package/dist/react/core/layout/Box.d.ts +3 -4
- package/dist/react/core/layout/Box.js +118 -122
- package/dist/react/core/layout/Box.js.map +1 -1
- package/dist/react/core/layout/Center.d.ts +0 -1
- package/dist/react/core/layout/Center.js +45 -32
- package/dist/react/core/layout/Center.js.map +1 -1
- package/dist/react/core/layout/Divider.d.ts +1 -2
- package/dist/react/core/layout/Divider.js +112 -106
- package/dist/react/core/layout/Divider.js.map +1 -1
- package/dist/react/core/layout/Flex.d.ts +4 -5
- package/dist/react/core/layout/Flex.js +120 -124
- package/dist/react/core/layout/Flex.js.map +1 -1
- package/dist/react/core/layout/Grid.d.ts +5 -6
- package/dist/react/core/layout/Grid.js +131 -138
- package/dist/react/core/layout/Grid.js.map +1 -1
- package/dist/react/core/layout/Spacer.d.ts +0 -1
- package/dist/react/core/layout/Spacer.js +36 -29
- package/dist/react/core/layout/Spacer.js.map +1 -1
- package/dist/react/core/layout/Stack.d.ts +4 -5
- package/dist/react/core/layout/Stack.js +127 -70
- package/dist/react/core/layout/Stack.js.map +1 -1
- package/dist/react/core/layout/responsive.d.ts +1 -2
- package/dist/react/core/layout/responsive.js +25 -19
- package/dist/react/core/layout/responsive.js.map +1 -1
- package/dist/react/core/layout/useBreakpoint.d.ts +1 -1
- package/dist/react/core/layout/useBreakpoint.js +119 -66
- package/dist/react/core/layout/useBreakpoint.js.map +1 -1
- package/dist/react/core/navigation/AppBar.d.ts +1 -2
- package/dist/react/core/navigation/AppBar.js +827 -805
- package/dist/react/core/navigation/AppBar.js.map +1 -1
- package/dist/react/core/navigation/Pagination.d.ts +2 -3
- package/dist/react/core/navigation/Pagination.js +207 -187
- package/dist/react/core/navigation/Pagination.js.map +1 -1
- package/dist/react/core/navigation/SideNav.d.ts +5 -6
- package/dist/react/core/navigation/SideNav.js +855 -629
- package/dist/react/core/navigation/SideNav.js.map +1 -1
- package/dist/react/core/navigation/Tabs.d.ts +0 -1
- package/dist/react/core/navigation/Tabs.js +113 -119
- package/dist/react/core/navigation/Tabs.js.map +1 -1
- package/dist/react/core/overlays/Popover.d.ts +2 -3
- package/dist/react/core/overlays/Popover.js +303 -282
- package/dist/react/core/overlays/Popover.js.map +1 -1
- package/dist/react/core/overlays/SidePanel.d.ts +1 -2
- package/dist/react/core/overlays/SidePanel.js +217 -212
- package/dist/react/core/overlays/SidePanel.js.map +1 -1
- package/dist/react/core/overlays/Tooltip.d.ts +1 -2
- package/dist/react/core/overlays/Tooltip.js +170 -176
- package/dist/react/core/overlays/Tooltip.js.map +1 -1
- package/dist/react/core/widgets/ActivityPlanner.d.ts +0 -1
- package/dist/react/core/widgets/ActivityPlanner.js +855 -517
- package/dist/react/core/widgets/ActivityPlanner.js.map +1 -1
- package/dist/react/core/widgets/Capture.d.ts +2 -3
- package/dist/react/core/widgets/Capture.js +965 -779
- package/dist/react/core/widgets/Capture.js.map +1 -1
- package/dist/react/core/widgets/ChatPanel.d.ts +16 -17
- package/dist/react/core/widgets/ChatPanel.js +1734 -1034
- package/dist/react/core/widgets/ChatPanel.js.map +1 -1
- package/dist/react/core/widgets/ColorPickerPanel.d.ts +0 -1
- package/dist/react/core/widgets/ColorPickerPanel.js +298 -287
- package/dist/react/core/widgets/ColorPickerPanel.js.map +1 -1
- package/dist/react/core/widgets/CommandBuilder.d.ts +2 -3
- package/dist/react/core/widgets/CommandBuilder.js +624 -516
- package/dist/react/core/widgets/CommandBuilder.js.map +1 -1
- package/dist/react/core/widgets/ConnectionForm.d.ts +2 -3
- package/dist/react/core/widgets/ConnectionForm.js +528 -492
- package/dist/react/core/widgets/ConnectionForm.js.map +1 -1
- package/dist/react/core/widgets/FileExplorer.d.ts +3 -4
- package/dist/react/core/widgets/FileExplorer.js +617 -505
- package/dist/react/core/widgets/FileExplorer.js.map +1 -1
- package/dist/react/core/widgets/HexViewer.d.ts +2 -3
- package/dist/react/core/widgets/HexViewer.js +1353 -1091
- package/dist/react/core/widgets/HexViewer.js.map +1 -1
- package/dist/react/core/widgets/ImageFrame.d.ts +1 -2
- package/dist/react/core/widgets/ImageFrame.js +230 -193
- package/dist/react/core/widgets/ImageFrame.js.map +1 -1
- package/dist/react/core/widgets/ImageGallery.d.ts +2 -1
- package/dist/react/core/widgets/ImageGallery.js +380 -314
- package/dist/react/core/widgets/ImageGallery.js.map +1 -1
- package/dist/react/core/widgets/ImagePanel.d.ts +0 -1
- package/dist/react/core/widgets/ImagePanel.js +110 -101
- package/dist/react/core/widgets/ImagePanel.js.map +1 -1
- package/dist/react/core/widgets/LogViewer.d.ts +2 -3
- package/dist/react/core/widgets/LogViewer.js +711 -607
- package/dist/react/core/widgets/LogViewer.js.map +1 -1
- package/dist/react/core/widgets/MessageStream.d.ts +3 -4
- package/dist/react/core/widgets/MessageStream.js +514 -444
- package/dist/react/core/widgets/MessageStream.js.map +1 -1
- package/dist/react/core/widgets/MissionCalendar.d.ts +3 -4
- package/dist/react/core/widgets/MissionCalendar.js +1488 -1020
- package/dist/react/core/widgets/MissionCalendar.js.map +1 -1
- package/dist/react/core/widgets/PacketViewer.d.ts +2 -3
- package/dist/react/core/widgets/PacketViewer.js +550 -421
- package/dist/react/core/widgets/PacketViewer.js.map +1 -1
- package/dist/react/core/widgets/capture-placeholder.png.js +6 -5
- package/dist/react/core/widgets/capture-placeholder.png.js.map +1 -1
- package/dist/react/hooks/index.d.ts +5 -5
- package/dist/react/hooks/useAccessWindows.d.ts +0 -1
- package/dist/react/hooks/useCompactMode.d.ts +1 -1
- package/dist/react/hooks/useCompactMode.js +104 -58
- package/dist/react/hooks/useCompactMode.js.map +1 -1
- package/dist/react/hooks/useGroundTrackHistory.d.ts +0 -1
- package/dist/react/hooks/useSimulationScene.d.ts +1 -2
- package/dist/react/hooks/useSimulationScene.js +481 -374
- package/dist/react/hooks/useSimulationScene.js.map +1 -1
- package/dist/react/index.d.ts +3 -3
- package/dist/react/panels/LayerControlPanel.d.ts +1 -2
- package/dist/react/panels/LayerControlPanel.js +223 -180
- package/dist/react/panels/LayerControlPanel.js.map +1 -1
- package/dist/react/panels/ObjectInventoryPanel.d.ts +2 -3
- package/dist/react/panels/ObjectInventoryPanel.js +315 -250
- package/dist/react/panels/ObjectInventoryPanel.js.map +1 -1
- package/dist/react/panels/index.d.ts +1 -1
- package/dist/react/panels/index.js +1 -6
- package/dist/react/shared/ErrorBoundary.d.ts +1 -2
- package/dist/react/shared/ErrorBoundary.js +170 -139
- package/dist/react/shared/ErrorBoundary.js.map +1 -1
- package/dist/react/shared/Skeleton.d.ts +1 -2
- package/dist/react/shared/Skeleton.js +300 -301
- package/dist/react/shared/Skeleton.js.map +1 -1
- package/dist/react/theme/ThemeProvider.d.ts +2 -321
- package/dist/react/theme/ThemeProvider.js +313 -939
- package/dist/react/theme/ThemeProvider.js.map +1 -1
- package/dist/react/theme/cardAccent.d.ts +1 -2
- package/dist/react/theme/cardAccent.js +196 -126
- package/dist/react/theme/cardAccent.js.map +1 -1
- package/dist/react/theme/config.d.ts +0 -1
- package/dist/react/theme/config.js +47 -25
- package/dist/react/theme/config.js.map +1 -1
- package/dist/react/theme/index.d.ts +2 -2
- package/dist/react/theme/index.js +1 -16
- package/dist/react/theme/types.d.ts +332 -0
- package/dist/react/theme/types.js +39 -0
- package/dist/react/theme/types.js.map +1 -0
- package/dist/react/types.d.ts +8 -8
- package/dist/react/types.js +147 -47
- package/dist/react/types.js.map +1 -1
- package/dist/react/utils/categoryPalette.d.ts +0 -1
- package/dist/react/utils/categoryPalette.js +91 -102
- package/dist/react/utils/categoryPalette.js.map +1 -1
- package/dist/react/utils/index.d.ts +5 -5
- package/dist/react/utils/index.js +457 -371
- package/dist/react/utils/index.js.map +1 -1
- package/dist/react/visualizations/EclipseTimerCard.d.ts +0 -1
- package/dist/react/visualizations/LinkBudgetCard.d.ts +0 -1
- package/dist/react/visualizations/NavBallCard.d.ts +0 -1
- package/dist/react/visualizations/PropulsionCard.d.ts +1 -2
- package/dist/react/visualizations/SensorFootprintCard.d.ts +1 -2
- package/dist/react/visualizations/ThermalHeatmapCard.d.ts +0 -1
- package/dist/react/visualizations/index.d.ts +3 -3
- package/dist/react.d.ts +2 -1
- package/dist/react.js +17 -221
- package/dist/shaders/atmosphere.frag.js +6 -5
- package/dist/shaders/atmosphere.frag.js.map +1 -1
- package/dist/shaders/atmosphere.vert.js +6 -5
- package/dist/shaders/atmosphere.vert.js.map +1 -1
- package/dist/shaders/stars.frag.js +6 -5
- package/dist/shaders/stars.frag.js.map +1 -1
- package/dist/shaders/stars.vert.js +6 -5
- package/dist/shaders/stars.vert.js.map +1 -1
- package/dist/style.css +26 -3
- package/dist/tokens/core.d.ts +159 -0
- package/dist/tokens/core.js +144 -0
- package/dist/tokens/core.js.map +1 -0
- package/dist/tokens/css-vars.d.ts +213 -2
- package/dist/tokens/css-vars.js +590 -227
- package/dist/tokens/css-vars.js.map +1 -1
- package/dist/tokens/index.d.ts +31 -228
- package/dist/tokens/index.js +281 -366
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/palettes/astro.d.ts +129 -0
- package/dist/tokens/palettes/astro.js +112 -0
- package/dist/tokens/palettes/astro.js.map +1 -0
- package/dist/tokens/palettes/index.d.ts +288 -0
- package/dist/tokens/palettes/index.js +35 -0
- package/dist/tokens/palettes/index.js.map +1 -0
- package/dist/tokens/palettes/tailwind.d.ts +324 -0
- package/dist/tokens/palettes/tailwind.js +201 -0
- package/dist/tokens/palettes/tailwind.js.map +1 -0
- package/dist/tokens/palettes/zendir.d.ts +126 -0
- package/dist/tokens/palettes/zendir.js +92 -0
- package/dist/tokens/palettes/zendir.js.map +1 -0
- package/dist/tokens/themes.d.ts +30 -0
- package/dist/tokens/themes.js +704 -0
- package/dist/tokens/themes.js.map +1 -0
- package/dist/tokens/tokens.css +533 -155
- package/dist/types/index.d.ts +2 -2
- package/package.json +310 -313
- package/dist/index.js.map +0 -1
- package/dist/react/3d/index.js.map +0 -1
- package/dist/react/astro/index.js.map +0 -1
- package/dist/react/cards/index.js.map +0 -1
- package/dist/react/charts/index.js.map +0 -1
- package/dist/react/core/index.js.map +0 -1
- package/dist/react/panels/index.js.map +0 -1
- package/dist/react/theme/astro-tokens.d.ts +0 -153
- package/dist/react/theme/index.js.map +0 -1
- package/dist/react.js.map +0 -1
|
@@ -1,804 +1,990 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { memo, forwardRef, useState, useRef, useEffect, useCallback, useImperativeHandle } from "react";
|
|
3
1
|
import { useTheme } from "../../theme/ThemeProvider.js";
|
|
4
2
|
import { useCopyToClipboard } from "../display/CopyButton.js";
|
|
5
|
-
import
|
|
3
|
+
import capture_placeholder_default from "./capture-placeholder.png.js";
|
|
4
|
+
import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/react/core/widgets/Capture.tsx
|
|
7
|
+
/**
|
|
8
|
+
* @zendir/ui - Capture Component
|
|
9
|
+
*
|
|
10
|
+
* Transport-agnostic image capture server component. Generates a unique server
|
|
11
|
+
* ID, accepts capture requests imperatively, and returns image bytes. The host
|
|
12
|
+
* app (e.g. space-range-operator) handles all MQTT/transport wiring and uses
|
|
13
|
+
* the server ID to construct topic paths externally.
|
|
14
|
+
*
|
|
15
|
+
* Features:
|
|
16
|
+
* - Unique server ID with copy-to-clipboard
|
|
17
|
+
* - Pause/resume capture processing
|
|
18
|
+
* - Collapsible gallery of captured images
|
|
19
|
+
* - Connection status display
|
|
20
|
+
* - forwardRef with imperative CaptureHandle
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* const captureRef = useRef<CaptureHandle>(null);
|
|
25
|
+
*
|
|
26
|
+
* <Capture
|
|
27
|
+
* ref={captureRef}
|
|
28
|
+
* connected={isConnected}
|
|
29
|
+
* onReady={(serverId) => {
|
|
30
|
+
* mqttClient.subscribe('Zendir/SpaceImage/Request');
|
|
31
|
+
* }}
|
|
32
|
+
* onCapture={(req) => console.log('Captured', req.req_id)}
|
|
33
|
+
* />
|
|
34
|
+
*
|
|
35
|
+
* // When a request arrives from external transport:
|
|
36
|
+
* // Request: { req_id, args: { game_id, team_id, ...captureArgs } }
|
|
37
|
+
* const imageBytes = await captureRef.current.capture(request);
|
|
38
|
+
* // Publish response to: Zendir/SpaceImage/{game_id}/{team_id}/Response/{req_id}
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Generates a visible 256x256 fallback PNG via canvas when the bundled
|
|
43
|
+
* astronaut image cannot be fetched (Storybook asset path, SSR, etc.).
|
|
44
|
+
* Shows a branded "ZENDIR" placeholder so thumbnails are never invisible.
|
|
45
|
+
*/
|
|
6
46
|
async function generateCanvasFallback() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
]);
|
|
125
|
-
}
|
|
47
|
+
try {
|
|
48
|
+
const size = 256;
|
|
49
|
+
const canvas = document.createElement("canvas");
|
|
50
|
+
canvas.width = size;
|
|
51
|
+
canvas.height = size;
|
|
52
|
+
const ctx = canvas.getContext("2d");
|
|
53
|
+
const bg = ctx.createRadialGradient(size / 2, size / 2, 20, size / 2, size / 2, size);
|
|
54
|
+
bg.addColorStop(0, "#1e2a4a");
|
|
55
|
+
bg.addColorStop(1, "#0a0e1a");
|
|
56
|
+
ctx.fillStyle = bg;
|
|
57
|
+
ctx.fillRect(0, 0, size, size);
|
|
58
|
+
ctx.fillStyle = "rgba(255, 255, 255, 0.5)";
|
|
59
|
+
for (let i = 0; i < 40; i++) {
|
|
60
|
+
const sx = (i * 97 + 31) % size;
|
|
61
|
+
const sy = (i * 61 + 17) % size;
|
|
62
|
+
const sr = (i % 3 + 1) * .6;
|
|
63
|
+
ctx.beginPath();
|
|
64
|
+
ctx.arc(sx, sy, sr, 0, Math.PI * 2);
|
|
65
|
+
ctx.fill();
|
|
66
|
+
}
|
|
67
|
+
ctx.strokeStyle = "rgba(74, 143, 255, 0.35)";
|
|
68
|
+
ctx.lineWidth = 1;
|
|
69
|
+
ctx.beginPath();
|
|
70
|
+
ctx.moveTo(size / 2, 40);
|
|
71
|
+
ctx.lineTo(size / 2, size - 40);
|
|
72
|
+
ctx.moveTo(40, size / 2);
|
|
73
|
+
ctx.lineTo(size - 40, size / 2);
|
|
74
|
+
ctx.stroke();
|
|
75
|
+
ctx.beginPath();
|
|
76
|
+
ctx.arc(size / 2, size / 2, 50, 0, Math.PI * 2);
|
|
77
|
+
ctx.stroke();
|
|
78
|
+
ctx.fillStyle = "#4a8fff";
|
|
79
|
+
ctx.font = "bold 28px monospace";
|
|
80
|
+
ctx.textAlign = "center";
|
|
81
|
+
ctx.textBaseline = "middle";
|
|
82
|
+
ctx.fillText("ZENDIR", size / 2, size / 2 - 16);
|
|
83
|
+
ctx.fillStyle = "rgba(255, 255, 255, 0.4)";
|
|
84
|
+
ctx.font = "13px monospace";
|
|
85
|
+
ctx.fillText("PLACEHOLDER", size / 2, 142);
|
|
86
|
+
ctx.fillStyle = "rgba(255, 255, 255, 0.25)";
|
|
87
|
+
ctx.font = "10px monospace";
|
|
88
|
+
ctx.fillText(`${size}x${size}`, size / 2, size - 20);
|
|
89
|
+
const blob = await new Promise((resolve) => canvas.toBlob((b) => resolve(b), "image/png"));
|
|
90
|
+
return new Uint8Array(await blob.arrayBuffer());
|
|
91
|
+
} catch {
|
|
92
|
+
return new Uint8Array([
|
|
93
|
+
137,
|
|
94
|
+
80,
|
|
95
|
+
78,
|
|
96
|
+
71,
|
|
97
|
+
13,
|
|
98
|
+
10,
|
|
99
|
+
26,
|
|
100
|
+
10,
|
|
101
|
+
0,
|
|
102
|
+
0,
|
|
103
|
+
0,
|
|
104
|
+
13,
|
|
105
|
+
73,
|
|
106
|
+
72,
|
|
107
|
+
68,
|
|
108
|
+
82,
|
|
109
|
+
0,
|
|
110
|
+
0,
|
|
111
|
+
0,
|
|
112
|
+
1,
|
|
113
|
+
0,
|
|
114
|
+
0,
|
|
115
|
+
0,
|
|
116
|
+
1,
|
|
117
|
+
8,
|
|
118
|
+
2,
|
|
119
|
+
0,
|
|
120
|
+
0,
|
|
121
|
+
0,
|
|
122
|
+
144,
|
|
123
|
+
119,
|
|
124
|
+
83,
|
|
125
|
+
222,
|
|
126
|
+
0,
|
|
127
|
+
0,
|
|
128
|
+
0,
|
|
129
|
+
12,
|
|
130
|
+
73,
|
|
131
|
+
68,
|
|
132
|
+
65,
|
|
133
|
+
84,
|
|
134
|
+
120,
|
|
135
|
+
156,
|
|
136
|
+
98,
|
|
137
|
+
104,
|
|
138
|
+
96,
|
|
139
|
+
96,
|
|
140
|
+
0,
|
|
141
|
+
0,
|
|
142
|
+
0,
|
|
143
|
+
4,
|
|
144
|
+
0,
|
|
145
|
+
1,
|
|
146
|
+
39,
|
|
147
|
+
52,
|
|
148
|
+
39,
|
|
149
|
+
10,
|
|
150
|
+
0,
|
|
151
|
+
0,
|
|
152
|
+
0,
|
|
153
|
+
0,
|
|
154
|
+
73,
|
|
155
|
+
69,
|
|
156
|
+
78,
|
|
157
|
+
68,
|
|
158
|
+
174,
|
|
159
|
+
66,
|
|
160
|
+
96,
|
|
161
|
+
130
|
|
162
|
+
]);
|
|
163
|
+
}
|
|
126
164
|
}
|
|
127
|
-
|
|
165
|
+
/** Cached placeholder image bytes (lazy-loaded from bundled asset) */
|
|
166
|
+
var placeholderCache = null;
|
|
167
|
+
/**
|
|
168
|
+
* Loads the bundled placeholder image (astronaut). Falls back to a
|
|
169
|
+
* canvas-generated branded placeholder if the fetch fails (e.g. SSR,
|
|
170
|
+
* Storybook asset paths, missing file).
|
|
171
|
+
*/
|
|
128
172
|
async function loadPlaceholderImage() {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
173
|
+
if (placeholderCache) return placeholderCache;
|
|
174
|
+
try {
|
|
175
|
+
const response = await fetch(capture_placeholder_default);
|
|
176
|
+
if (!response.ok) throw new Error(`HTTP ${response.status}`);
|
|
177
|
+
const buf = await response.arrayBuffer();
|
|
178
|
+
if (buf.byteLength < 100) throw new Error("Suspiciously small image");
|
|
179
|
+
placeholderCache = new Uint8Array(buf);
|
|
180
|
+
} catch {
|
|
181
|
+
placeholderCache = await generateCanvasFallback();
|
|
182
|
+
}
|
|
183
|
+
return placeholderCache;
|
|
140
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Bundled astronaut placeholder PNG (or 1x1 fallback). Exported for
|
|
187
|
+
* `CesiumCaptureSource` when globe capture fails (e.g. missing Cesium assets, WebGL).
|
|
188
|
+
*/
|
|
141
189
|
async function loadCapturePlaceholderImage() {
|
|
142
|
-
|
|
190
|
+
return loadPlaceholderImage();
|
|
143
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Hook for capture server logic. Generates a stable UUID, manages
|
|
194
|
+
* pause state, and processes capture requests into image bytes.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```tsx
|
|
198
|
+
* const { serverId, capture, paused, setPaused } = useCapture();
|
|
199
|
+
* // call capture(request) when external message arrives
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
144
202
|
function useCapture(options) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}, []);
|
|
218
|
-
return {
|
|
219
|
-
serverId: serverIdRef.current,
|
|
220
|
-
capture,
|
|
221
|
-
paused,
|
|
222
|
-
setPaused,
|
|
223
|
-
requestCount,
|
|
224
|
-
lastRequest,
|
|
225
|
-
capturedImages
|
|
226
|
-
};
|
|
203
|
+
const serverIdRef = useRef(options?.serverId || crypto.randomUUID());
|
|
204
|
+
const [paused, setPaused] = useState(false);
|
|
205
|
+
const [requestCount, setRequestCount] = useState(0);
|
|
206
|
+
const [lastRequest, setLastRequest] = useState(null);
|
|
207
|
+
const [capturedImages, setCapturedImages] = useState([]);
|
|
208
|
+
const imageSourceRef = useRef(options?.imageSource);
|
|
209
|
+
imageSourceRef.current = options?.imageSource;
|
|
210
|
+
const pausedRef = useRef(paused);
|
|
211
|
+
pausedRef.current = paused;
|
|
212
|
+
const imageCacheRef = useRef(/* @__PURE__ */ new Map());
|
|
213
|
+
const cesiumSourceRef = useRef(null);
|
|
214
|
+
const cesiumFailedRef = useRef(false);
|
|
215
|
+
const cesiumLoadingRef = useRef(null);
|
|
216
|
+
const initCesium = useCallback(async () => {
|
|
217
|
+
if (cesiumSourceRef.current || cesiumFailedRef.current) return;
|
|
218
|
+
try {
|
|
219
|
+
const { createCesiumCaptureSource } = await import("../../3d/CesiumCaptureSource.js");
|
|
220
|
+
cesiumSourceRef.current = await createCesiumCaptureSource();
|
|
221
|
+
} catch {
|
|
222
|
+
cesiumFailedRef.current = true;
|
|
223
|
+
}
|
|
224
|
+
}, []);
|
|
225
|
+
const preload = options?.preload !== false;
|
|
226
|
+
useEffect(() => {
|
|
227
|
+
if (imageSourceRef.current || !preload) return;
|
|
228
|
+
cesiumLoadingRef.current = initCesium();
|
|
229
|
+
}, [preload, initCesium]);
|
|
230
|
+
useEffect(() => {
|
|
231
|
+
return () => {
|
|
232
|
+
cesiumSourceRef.current?.destroy();
|
|
233
|
+
cesiumSourceRef.current = null;
|
|
234
|
+
};
|
|
235
|
+
}, []);
|
|
236
|
+
const capture = useCallback(async (request) => {
|
|
237
|
+
if (pausedRef.current) return /* @__PURE__ */ new Uint8Array(0);
|
|
238
|
+
if (!request || request.type !== "capture" || typeof request.req_id !== "number") return /* @__PURE__ */ new Uint8Array(0);
|
|
239
|
+
const cached = imageCacheRef.current.get(request.req_id);
|
|
240
|
+
if (cached) return cached;
|
|
241
|
+
let bytes;
|
|
242
|
+
const src = imageSourceRef.current;
|
|
243
|
+
if (src instanceof Uint8Array) bytes = src;
|
|
244
|
+
else if (typeof src === "function") bytes = await src(request.args);
|
|
245
|
+
else {
|
|
246
|
+
if (!cesiumSourceRef.current && !cesiumFailedRef.current) if (cesiumLoadingRef.current) await cesiumLoadingRef.current;
|
|
247
|
+
else await initCesium();
|
|
248
|
+
if (cesiumSourceRef.current) bytes = await cesiumSourceRef.current.capture(request.args);
|
|
249
|
+
else bytes = await loadPlaceholderImage();
|
|
250
|
+
}
|
|
251
|
+
imageCacheRef.current.set(request.req_id, bytes);
|
|
252
|
+
setRequestCount((c) => c + 1);
|
|
253
|
+
setLastRequest(request);
|
|
254
|
+
const mimeType = request.args.format === "jpeg" ? "image/jpeg" : "image/png";
|
|
255
|
+
const blob = new Blob([bytes], { type: mimeType });
|
|
256
|
+
const dataUrl = URL.createObjectURL(blob);
|
|
257
|
+
setCapturedImages((prev) => [{
|
|
258
|
+
reqId: request.req_id,
|
|
259
|
+
dataUrl,
|
|
260
|
+
timestamp: Date.now(),
|
|
261
|
+
bytes: bytes.length,
|
|
262
|
+
args: request.args
|
|
263
|
+
}, ...prev]);
|
|
264
|
+
return bytes;
|
|
265
|
+
}, []);
|
|
266
|
+
return {
|
|
267
|
+
serverId: serverIdRef.current,
|
|
268
|
+
capture,
|
|
269
|
+
paused,
|
|
270
|
+
setPaused,
|
|
271
|
+
requestCount,
|
|
272
|
+
lastRequest,
|
|
273
|
+
capturedImages
|
|
274
|
+
};
|
|
227
275
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}
|
|
452
|
-
);
|
|
276
|
+
var PauseIcon = ({ size = 14 }) => /* @__PURE__ */ jsxs("svg", {
|
|
277
|
+
width: size,
|
|
278
|
+
height: size,
|
|
279
|
+
viewBox: "0 0 24 24",
|
|
280
|
+
fill: "currentColor",
|
|
281
|
+
children: [/* @__PURE__ */ jsx("rect", {
|
|
282
|
+
x: "6",
|
|
283
|
+
y: "4",
|
|
284
|
+
width: "4",
|
|
285
|
+
height: "16",
|
|
286
|
+
rx: "1"
|
|
287
|
+
}), /* @__PURE__ */ jsx("rect", {
|
|
288
|
+
x: "14",
|
|
289
|
+
y: "4",
|
|
290
|
+
width: "4",
|
|
291
|
+
height: "16",
|
|
292
|
+
rx: "1"
|
|
293
|
+
})]
|
|
294
|
+
});
|
|
295
|
+
var PlayIcon = ({ size = 14 }) => /* @__PURE__ */ jsx("svg", {
|
|
296
|
+
width: size,
|
|
297
|
+
height: size,
|
|
298
|
+
viewBox: "0 0 24 24",
|
|
299
|
+
fill: "currentColor",
|
|
300
|
+
children: /* @__PURE__ */ jsx("polygon", { points: "6,4 20,12 6,20" })
|
|
301
|
+
});
|
|
302
|
+
var ChevronIcon = ({ size = 14, expanded }) => /* @__PURE__ */ jsx("svg", {
|
|
303
|
+
width: size,
|
|
304
|
+
height: size,
|
|
305
|
+
viewBox: "0 0 24 24",
|
|
306
|
+
fill: "none",
|
|
307
|
+
stroke: "currentColor",
|
|
308
|
+
strokeWidth: "2",
|
|
309
|
+
strokeLinecap: "round",
|
|
310
|
+
strokeLinejoin: "round",
|
|
311
|
+
style: {
|
|
312
|
+
transition: "transform 0.2s ease",
|
|
313
|
+
transform: expanded ? "rotate(90deg)" : "rotate(0deg)"
|
|
314
|
+
},
|
|
315
|
+
children: /* @__PURE__ */ jsx("polyline", { points: "9 18 15 12 9 6" })
|
|
316
|
+
});
|
|
317
|
+
var CopyIcon = ({ size = 14 }) => /* @__PURE__ */ jsxs("svg", {
|
|
318
|
+
width: size,
|
|
319
|
+
height: size,
|
|
320
|
+
viewBox: "0 0 24 24",
|
|
321
|
+
fill: "none",
|
|
322
|
+
stroke: "currentColor",
|
|
323
|
+
strokeWidth: "2",
|
|
324
|
+
strokeLinecap: "round",
|
|
325
|
+
strokeLinejoin: "round",
|
|
326
|
+
children: [/* @__PURE__ */ jsx("rect", {
|
|
327
|
+
x: "9",
|
|
328
|
+
y: "9",
|
|
329
|
+
width: "13",
|
|
330
|
+
height: "13",
|
|
331
|
+
rx: "2",
|
|
332
|
+
ry: "2"
|
|
333
|
+
}), /* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })]
|
|
334
|
+
});
|
|
335
|
+
var CheckIcon = ({ size = 14, color }) => /* @__PURE__ */ jsx("svg", {
|
|
336
|
+
width: size,
|
|
337
|
+
height: size,
|
|
338
|
+
viewBox: "0 0 24 24",
|
|
339
|
+
fill: "none",
|
|
340
|
+
stroke: color,
|
|
341
|
+
strokeWidth: "2.5",
|
|
342
|
+
strokeLinecap: "round",
|
|
343
|
+
strokeLinejoin: "round",
|
|
344
|
+
children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" })
|
|
345
|
+
});
|
|
346
|
+
/**
|
|
347
|
+
* Capture server UI component. Displays server status, pause/resume control,
|
|
348
|
+
* copy-ID button, and a collapsible gallery of captured images.
|
|
349
|
+
*
|
|
350
|
+
* Access `capture()` and `serverId` imperatively via the forwarded ref.
|
|
351
|
+
*/
|
|
352
|
+
var Capture = memo(forwardRef(function Capture({ connected = false, imageSource, preload, serverId: serverIdProp, onCapture, onReady, defaultGalleryExpanded = false, style }, ref) {
|
|
353
|
+
const { tokens } = useTheme();
|
|
354
|
+
const { serverId, capture, paused, setPaused, requestCount, capturedImages } = useCapture({
|
|
355
|
+
imageSource,
|
|
356
|
+
preload,
|
|
357
|
+
serverId: serverIdProp
|
|
358
|
+
});
|
|
359
|
+
const { copy, copied } = useCopyToClipboard();
|
|
360
|
+
const [galleryExpanded, setGalleryExpanded] = useState(defaultGalleryExpanded);
|
|
361
|
+
const [hoveredBtn, setHoveredBtn] = useState(null);
|
|
362
|
+
const readyFiredRef = useRef(false);
|
|
363
|
+
useEffect(() => {
|
|
364
|
+
if (onReady && !readyFiredRef.current) {
|
|
365
|
+
readyFiredRef.current = true;
|
|
366
|
+
onReady(serverId);
|
|
367
|
+
}
|
|
368
|
+
}, [onReady, serverId]);
|
|
369
|
+
const wrappedCapture = useCallback(async (request) => {
|
|
370
|
+
const bytes = await capture(request);
|
|
371
|
+
if (bytes.length > 0) onCapture?.(request);
|
|
372
|
+
return bytes;
|
|
373
|
+
}, [capture, onCapture]);
|
|
374
|
+
useImperativeHandle(ref, () => ({
|
|
375
|
+
capture: wrappedCapture,
|
|
376
|
+
serverId
|
|
377
|
+
}), [wrappedCapture, serverId]);
|
|
378
|
+
const statusColor = connected ? tokens.colors.status.normal : tokens.colors.status.off;
|
|
379
|
+
const statusLabel = connected ? "Connected" : "Disconnected";
|
|
380
|
+
const btnBase = {
|
|
381
|
+
display: "inline-flex",
|
|
382
|
+
alignItems: "center",
|
|
383
|
+
justifyContent: "center",
|
|
384
|
+
gap: "6px",
|
|
385
|
+
height: 32,
|
|
386
|
+
padding: "0 12px",
|
|
387
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
388
|
+
fontWeight: 500,
|
|
389
|
+
fontFamily: tokens.typography.fontFamily.primary,
|
|
390
|
+
color: tokens.colors.text.secondary,
|
|
391
|
+
backgroundColor: "transparent",
|
|
392
|
+
border: `1px solid ${tokens.colors.border.muted}`,
|
|
393
|
+
borderRadius: tokens.borderRadius.md,
|
|
394
|
+
cursor: "pointer",
|
|
395
|
+
transition: tokens.animation.fast,
|
|
396
|
+
outline: "none",
|
|
397
|
+
whiteSpace: "nowrap"
|
|
398
|
+
};
|
|
399
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
400
|
+
style: {
|
|
401
|
+
display: "flex",
|
|
402
|
+
flexDirection: "column",
|
|
403
|
+
borderRadius: tokens.borderRadius.lg,
|
|
404
|
+
border: `1px solid ${tokens.colors.border.default}`,
|
|
405
|
+
backgroundColor: tokens.colors.background.surface,
|
|
406
|
+
overflow: "hidden",
|
|
407
|
+
...galleryExpanded ? {
|
|
408
|
+
flex: 1,
|
|
409
|
+
minHeight: 0
|
|
410
|
+
} : {},
|
|
411
|
+
...style
|
|
412
|
+
},
|
|
413
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
414
|
+
style: {
|
|
415
|
+
display: "flex",
|
|
416
|
+
alignItems: "center",
|
|
417
|
+
justifyContent: "space-between",
|
|
418
|
+
padding: "8px 12px",
|
|
419
|
+
gap: "12px",
|
|
420
|
+
minHeight: 48,
|
|
421
|
+
flexShrink: 0
|
|
422
|
+
},
|
|
423
|
+
children: [
|
|
424
|
+
/* @__PURE__ */ jsxs("button", {
|
|
425
|
+
type: "button",
|
|
426
|
+
onClick: () => setPaused(!paused),
|
|
427
|
+
onMouseEnter: () => setHoveredBtn("pause"),
|
|
428
|
+
onMouseLeave: () => setHoveredBtn(null),
|
|
429
|
+
"aria-label": paused ? "Resume capture server" : "Pause capture server",
|
|
430
|
+
style: {
|
|
431
|
+
...btnBase,
|
|
432
|
+
color: paused ? tokens.colors.status.caution : tokens.colors.text.secondary,
|
|
433
|
+
borderColor: paused ? `${tokens.colors.status.caution}40` : tokens.colors.border.muted,
|
|
434
|
+
backgroundColor: hoveredBtn === "pause" ? `${tokens.colors.accent.primary}12` : "transparent"
|
|
435
|
+
},
|
|
436
|
+
children: [paused ? /* @__PURE__ */ jsx(PlayIcon, {}) : /* @__PURE__ */ jsx(PauseIcon, {}), /* @__PURE__ */ jsx("span", { children: paused ? "Resume" : "Pause" })]
|
|
437
|
+
}),
|
|
438
|
+
/* @__PURE__ */ jsxs("div", {
|
|
439
|
+
style: {
|
|
440
|
+
display: "flex",
|
|
441
|
+
alignItems: "center",
|
|
442
|
+
gap: "8px",
|
|
443
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
444
|
+
color: tokens.colors.text.secondary
|
|
445
|
+
},
|
|
446
|
+
children: [
|
|
447
|
+
/* @__PURE__ */ jsx("span", { style: {
|
|
448
|
+
width: 8,
|
|
449
|
+
height: 8,
|
|
450
|
+
borderRadius: "50%",
|
|
451
|
+
backgroundColor: statusColor,
|
|
452
|
+
flexShrink: 0
|
|
453
|
+
} }),
|
|
454
|
+
/* @__PURE__ */ jsx("span", { children: statusLabel }),
|
|
455
|
+
requestCount > 0 && /* @__PURE__ */ jsxs("span", {
|
|
456
|
+
style: {
|
|
457
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
458
|
+
color: tokens.colors.text.tertiary,
|
|
459
|
+
fontFamily: tokens.typography.fontFamily.mono
|
|
460
|
+
},
|
|
461
|
+
children: [
|
|
462
|
+
"(",
|
|
463
|
+
requestCount,
|
|
464
|
+
")"
|
|
465
|
+
]
|
|
466
|
+
})
|
|
467
|
+
]
|
|
468
|
+
}),
|
|
469
|
+
/* @__PURE__ */ jsxs("button", {
|
|
470
|
+
type: "button",
|
|
471
|
+
onClick: () => copy(serverId),
|
|
472
|
+
onMouseEnter: () => setHoveredBtn("copy"),
|
|
473
|
+
onMouseLeave: () => setHoveredBtn(null),
|
|
474
|
+
title: copied ? "Copied!" : `Copy Server ID: ${serverId}`,
|
|
475
|
+
"aria-label": copied ? "Server ID copied" : "Copy server ID",
|
|
476
|
+
style: {
|
|
477
|
+
...btnBase,
|
|
478
|
+
color: copied ? tokens.colors.status.normal : tokens.colors.text.secondary,
|
|
479
|
+
borderColor: copied ? `${tokens.colors.status.normal}40` : tokens.colors.border.muted,
|
|
480
|
+
backgroundColor: hoveredBtn === "copy" ? `${tokens.colors.accent.primary}12` : "transparent"
|
|
481
|
+
},
|
|
482
|
+
children: [copied ? /* @__PURE__ */ jsx(CheckIcon, { color: tokens.colors.status.normal }) : /* @__PURE__ */ jsx(CopyIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
483
|
+
style: {
|
|
484
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
485
|
+
fontSize: tokens.typography.fontSize.xs
|
|
486
|
+
},
|
|
487
|
+
children: copied ? "Copied!" : serverId.slice(0, 8)
|
|
488
|
+
})]
|
|
489
|
+
})
|
|
490
|
+
]
|
|
491
|
+
}), /* @__PURE__ */ jsx(CaptureGallery, {
|
|
492
|
+
images: capturedImages,
|
|
493
|
+
expanded: galleryExpanded,
|
|
494
|
+
onToggle: () => setGalleryExpanded(!galleryExpanded),
|
|
495
|
+
tokens,
|
|
496
|
+
serverId
|
|
497
|
+
})]
|
|
498
|
+
});
|
|
453
499
|
}));
|
|
500
|
+
/** Format byte count for display */
|
|
454
501
|
function fmtBytes(b) {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
502
|
+
if (b > 1048576) return `${(b / 1048576).toFixed(1)} MB`;
|
|
503
|
+
if (b > 1024) return `${(b / 1024).toFixed(1)} KB`;
|
|
504
|
+
return `${b} B`;
|
|
458
505
|
}
|
|
506
|
+
/** Download a single captured image with the correct file extension */
|
|
459
507
|
function downloadCapturedImage(img, serverId) {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
a.click();
|
|
508
|
+
const ext = img.args?.format === "jpeg" ? "jpg" : "png";
|
|
509
|
+
const a = document.createElement("a");
|
|
510
|
+
a.href = img.dataUrl;
|
|
511
|
+
a.download = `capture_${serverId}_${img.reqId}.${ext}`;
|
|
512
|
+
a.click();
|
|
466
513
|
}
|
|
514
|
+
/** Download all captured images sequentially */
|
|
467
515
|
async function downloadAllImages(images, serverId) {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
516
|
+
for (const img of images) {
|
|
517
|
+
downloadCapturedImage(img, serverId);
|
|
518
|
+
await new Promise((r) => setTimeout(r, 200));
|
|
519
|
+
}
|
|
472
520
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
521
|
+
/** Download icon (inline SVG) */
|
|
522
|
+
var DownloadIcon = ({ size = 12 }) => /* @__PURE__ */ jsxs("svg", {
|
|
523
|
+
width: size,
|
|
524
|
+
height: size,
|
|
525
|
+
viewBox: "0 0 24 24",
|
|
526
|
+
fill: "none",
|
|
527
|
+
stroke: "currentColor",
|
|
528
|
+
strokeWidth: "2.5",
|
|
529
|
+
strokeLinecap: "round",
|
|
530
|
+
strokeLinejoin: "round",
|
|
531
|
+
children: [
|
|
532
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
533
|
+
/* @__PURE__ */ jsx("polyline", { points: "7 10 12 15 17 10" }),
|
|
534
|
+
/* @__PURE__ */ jsx("line", {
|
|
535
|
+
x1: "12",
|
|
536
|
+
y1: "15",
|
|
537
|
+
x2: "12",
|
|
538
|
+
y2: "3"
|
|
539
|
+
})
|
|
540
|
+
]
|
|
541
|
+
});
|
|
542
|
+
/** Close icon (inline SVG) */
|
|
543
|
+
var CloseIcon = ({ size = 12 }) => /* @__PURE__ */ jsxs("svg", {
|
|
544
|
+
width: size,
|
|
545
|
+
height: size,
|
|
546
|
+
viewBox: "0 0 24 24",
|
|
547
|
+
fill: "none",
|
|
548
|
+
stroke: "currentColor",
|
|
549
|
+
strokeWidth: "2.5",
|
|
550
|
+
strokeLinecap: "round",
|
|
551
|
+
children: [/* @__PURE__ */ jsx("line", {
|
|
552
|
+
x1: "18",
|
|
553
|
+
y1: "6",
|
|
554
|
+
x2: "6",
|
|
555
|
+
y2: "18"
|
|
556
|
+
}), /* @__PURE__ */ jsx("line", {
|
|
557
|
+
x1: "6",
|
|
558
|
+
y1: "6",
|
|
559
|
+
x2: "18",
|
|
560
|
+
y2: "18"
|
|
561
|
+
})]
|
|
562
|
+
});
|
|
563
|
+
/** Metadata key-value row */
|
|
482
564
|
function MetaRow({ label, value, tokens, mono }) {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
565
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
566
|
+
style: {
|
|
567
|
+
display: "flex",
|
|
568
|
+
justifyContent: "space-between",
|
|
569
|
+
alignItems: "center",
|
|
570
|
+
padding: "2px 0",
|
|
571
|
+
fontSize: tokens.typography.fontSize.xs
|
|
572
|
+
},
|
|
573
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
574
|
+
style: { color: tokens.colors.text.tertiary },
|
|
575
|
+
children: label
|
|
576
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
577
|
+
style: {
|
|
578
|
+
color: tokens.colors.text.primary,
|
|
579
|
+
fontFamily: mono ? tokens.typography.fontFamily.mono : "inherit",
|
|
580
|
+
fontSize: mono ? "0.68rem" : tokens.typography.fontSize.xs
|
|
581
|
+
},
|
|
582
|
+
children: value
|
|
583
|
+
})]
|
|
584
|
+
});
|
|
497
585
|
}
|
|
586
|
+
/** Metadata group heading */
|
|
498
587
|
function MetaGroup({ label, tokens, children }) {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
588
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
589
|
+
style: { marginTop: 6 },
|
|
590
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
591
|
+
style: {
|
|
592
|
+
fontSize: "0.6rem",
|
|
593
|
+
fontWeight: 600,
|
|
594
|
+
color: tokens.colors.text.tertiary,
|
|
595
|
+
textTransform: "uppercase",
|
|
596
|
+
letterSpacing: "0.06em",
|
|
597
|
+
padding: "4px 0 2px",
|
|
598
|
+
borderTop: `1px solid ${tokens.colors.border.muted}`
|
|
599
|
+
},
|
|
600
|
+
children: label
|
|
601
|
+
}), children]
|
|
602
|
+
});
|
|
511
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* Image detail panel showing preview, metadata, camera settings, and position.
|
|
606
|
+
* Displayed inline when a gallery thumbnail is clicked.
|
|
607
|
+
*/
|
|
512
608
|
function CaptureImageDetail({ img, tokens, serverId, onClose }) {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
609
|
+
const a = img.args;
|
|
610
|
+
const time = new Date(img.timestamp).toLocaleString("en-US", {
|
|
611
|
+
hour12: false,
|
|
612
|
+
year: "numeric",
|
|
613
|
+
month: "short",
|
|
614
|
+
day: "numeric",
|
|
615
|
+
hour: "2-digit",
|
|
616
|
+
minute: "2-digit",
|
|
617
|
+
second: "2-digit"
|
|
618
|
+
});
|
|
619
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
620
|
+
style: {
|
|
621
|
+
backgroundColor: tokens.colors.background.elevated,
|
|
622
|
+
display: "flex",
|
|
623
|
+
gap: "8px",
|
|
624
|
+
padding: "8px",
|
|
625
|
+
minHeight: 0
|
|
626
|
+
},
|
|
627
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
628
|
+
style: {
|
|
629
|
+
flex: "1 1 50%",
|
|
630
|
+
display: "flex",
|
|
631
|
+
flexDirection: "column",
|
|
632
|
+
gap: "6px",
|
|
633
|
+
minWidth: 0
|
|
634
|
+
},
|
|
635
|
+
children: [/* @__PURE__ */ jsx("img", {
|
|
636
|
+
src: img.dataUrl,
|
|
637
|
+
alt: `capture_${serverId}_${img.reqId}`,
|
|
638
|
+
style: {
|
|
639
|
+
width: "100%",
|
|
640
|
+
borderRadius: tokens.borderRadius.sm,
|
|
641
|
+
border: `1px solid ${tokens.colors.border.muted}`,
|
|
642
|
+
objectFit: "contain"
|
|
643
|
+
}
|
|
644
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
645
|
+
style: {
|
|
646
|
+
display: "flex",
|
|
647
|
+
gap: "4px"
|
|
648
|
+
},
|
|
649
|
+
children: [/* @__PURE__ */ jsxs("button", {
|
|
650
|
+
type: "button",
|
|
651
|
+
onClick: () => downloadCapturedImage(img, serverId),
|
|
652
|
+
style: {
|
|
653
|
+
flex: 1,
|
|
654
|
+
display: "flex",
|
|
655
|
+
alignItems: "center",
|
|
656
|
+
justifyContent: "center",
|
|
657
|
+
gap: "4px",
|
|
658
|
+
padding: "5px 0",
|
|
659
|
+
borderRadius: tokens.borderRadius.sm,
|
|
660
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
661
|
+
fontWeight: 500,
|
|
662
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
663
|
+
color: tokens.colors.accent.primary,
|
|
664
|
+
backgroundColor: `${tokens.colors.accent.primary}12`,
|
|
665
|
+
border: `1px solid ${tokens.colors.accent.primary}30`,
|
|
666
|
+
cursor: "pointer"
|
|
667
|
+
},
|
|
668
|
+
children: [/* @__PURE__ */ jsx(DownloadIcon, {}), " Download PNG"]
|
|
669
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
670
|
+
type: "button",
|
|
671
|
+
onClick: onClose,
|
|
672
|
+
style: {
|
|
673
|
+
padding: "5px 8px",
|
|
674
|
+
borderRadius: tokens.borderRadius.sm,
|
|
675
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
676
|
+
color: tokens.colors.text.tertiary,
|
|
677
|
+
backgroundColor: "transparent",
|
|
678
|
+
border: `1px solid ${tokens.colors.border.muted}`,
|
|
679
|
+
cursor: "pointer"
|
|
680
|
+
},
|
|
681
|
+
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
682
|
+
})]
|
|
683
|
+
})]
|
|
684
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
685
|
+
style: {
|
|
686
|
+
flex: "1 1 50%",
|
|
687
|
+
overflowY: "auto",
|
|
688
|
+
minWidth: 0
|
|
689
|
+
},
|
|
690
|
+
children: [/* @__PURE__ */ jsxs(MetaGroup, {
|
|
691
|
+
label: "File Info",
|
|
692
|
+
tokens,
|
|
693
|
+
children: [
|
|
694
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
695
|
+
label: "Filename",
|
|
696
|
+
value: `capture_${serverId}_${img.reqId}.${img.args?.format === "jpeg" ? "jpg" : "png"}`,
|
|
697
|
+
tokens,
|
|
698
|
+
mono: true
|
|
699
|
+
}),
|
|
700
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
701
|
+
label: "Req ID",
|
|
702
|
+
value: `#${img.reqId}`,
|
|
703
|
+
tokens,
|
|
704
|
+
mono: true
|
|
705
|
+
}),
|
|
706
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
707
|
+
label: "Size",
|
|
708
|
+
value: fmtBytes(img.bytes),
|
|
709
|
+
tokens
|
|
710
|
+
}),
|
|
711
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
712
|
+
label: "Format",
|
|
713
|
+
value: img.args?.format === "jpeg" ? `JPEG (q=${Math.round((img.args.jpeg_quality ?? .92) * 100)}%)` : "PNG",
|
|
714
|
+
tokens
|
|
715
|
+
}),
|
|
716
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
717
|
+
label: "Captured",
|
|
718
|
+
value: time,
|
|
719
|
+
tokens
|
|
720
|
+
})
|
|
721
|
+
]
|
|
722
|
+
}), a && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(MetaGroup, {
|
|
723
|
+
label: "Camera",
|
|
724
|
+
tokens,
|
|
725
|
+
children: [
|
|
726
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
727
|
+
label: "Resolution",
|
|
728
|
+
value: `${a.resolution}px`,
|
|
729
|
+
tokens
|
|
730
|
+
}),
|
|
731
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
732
|
+
label: "FOV",
|
|
733
|
+
value: `${a.fov}°`,
|
|
734
|
+
tokens
|
|
735
|
+
}),
|
|
736
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
737
|
+
label: "Focal Length",
|
|
738
|
+
value: `${a.focal_length}mm`,
|
|
739
|
+
tokens
|
|
740
|
+
}),
|
|
741
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
742
|
+
label: "Aperture",
|
|
743
|
+
value: `f/${a.aperture}`,
|
|
744
|
+
tokens
|
|
745
|
+
}),
|
|
746
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
747
|
+
label: "CoC",
|
|
748
|
+
value: `${a.coc}mm`,
|
|
749
|
+
tokens
|
|
750
|
+
}),
|
|
751
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
752
|
+
label: "Pixel Pitch",
|
|
753
|
+
value: `${a.pixel_pitch}mm`,
|
|
754
|
+
tokens
|
|
755
|
+
}),
|
|
756
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
757
|
+
label: "Focus Dist",
|
|
758
|
+
value: `${a.focusing_distance}m`,
|
|
759
|
+
tokens
|
|
760
|
+
}),
|
|
761
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
762
|
+
label: "Monochrome",
|
|
763
|
+
value: a.monochromatic ? "Yes" : "No",
|
|
764
|
+
tokens
|
|
765
|
+
}),
|
|
766
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
767
|
+
label: "Sample",
|
|
768
|
+
value: a.sample ? "Yes (½ res)" : "No",
|
|
769
|
+
tokens
|
|
770
|
+
})
|
|
771
|
+
]
|
|
772
|
+
}), /* @__PURE__ */ jsxs(MetaGroup, {
|
|
773
|
+
label: "Position & Orientation",
|
|
774
|
+
tokens,
|
|
775
|
+
children: [
|
|
776
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
777
|
+
label: "X",
|
|
778
|
+
value: `${a.position[0].toFixed(2)} km`,
|
|
779
|
+
tokens,
|
|
780
|
+
mono: true
|
|
781
|
+
}),
|
|
782
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
783
|
+
label: "Y",
|
|
784
|
+
value: `${a.position[1].toFixed(2)} km`,
|
|
785
|
+
tokens,
|
|
786
|
+
mono: true
|
|
787
|
+
}),
|
|
788
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
789
|
+
label: "Z",
|
|
790
|
+
value: `${a.position[2].toFixed(2)} km`,
|
|
791
|
+
tokens,
|
|
792
|
+
mono: true
|
|
793
|
+
}),
|
|
794
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
795
|
+
label: "Heading",
|
|
796
|
+
value: `${a.rotation[0].toFixed(1)}°`,
|
|
797
|
+
tokens,
|
|
798
|
+
mono: true
|
|
799
|
+
}),
|
|
800
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
801
|
+
label: "Pitch",
|
|
802
|
+
value: `${a.rotation[1].toFixed(1)}°`,
|
|
803
|
+
tokens,
|
|
804
|
+
mono: true
|
|
805
|
+
}),
|
|
806
|
+
/* @__PURE__ */ jsx(MetaRow, {
|
|
807
|
+
label: "Roll",
|
|
808
|
+
value: `${a.rotation[2].toFixed(1)}°`,
|
|
809
|
+
tokens,
|
|
810
|
+
mono: true
|
|
811
|
+
})
|
|
812
|
+
]
|
|
813
|
+
})] })]
|
|
814
|
+
})]
|
|
815
|
+
});
|
|
633
816
|
}
|
|
817
|
+
/**
|
|
818
|
+
* Collapsible image gallery with thumbnails, detail panel, download per-image, and download-all.
|
|
819
|
+
* Part of the Capture component's built-in UI.
|
|
820
|
+
*/
|
|
634
821
|
function CaptureGallery({ images, expanded, onToggle, tokens, serverId }) {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
822
|
+
const [selectedIdx, setSelectedIdx] = useState(null);
|
|
823
|
+
const selectedImg = selectedIdx !== null ? images[selectedIdx] : null;
|
|
824
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
825
|
+
style: {
|
|
826
|
+
borderTop: `1px solid ${tokens.colors.border.muted}`,
|
|
827
|
+
...expanded ? {
|
|
828
|
+
flex: 1,
|
|
829
|
+
display: "flex",
|
|
830
|
+
flexDirection: "column",
|
|
831
|
+
minHeight: 0,
|
|
832
|
+
overflow: "hidden"
|
|
833
|
+
} : {}
|
|
834
|
+
},
|
|
835
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
836
|
+
style: {
|
|
837
|
+
display: "flex",
|
|
838
|
+
alignItems: "center",
|
|
839
|
+
gap: "4px",
|
|
840
|
+
flexShrink: 0
|
|
841
|
+
},
|
|
842
|
+
children: [/* @__PURE__ */ jsxs("button", {
|
|
843
|
+
type: "button",
|
|
844
|
+
onClick: onToggle,
|
|
845
|
+
"aria-expanded": expanded,
|
|
846
|
+
"aria-label": `Captured images, ${images.length} total`,
|
|
847
|
+
style: {
|
|
848
|
+
flex: 1,
|
|
849
|
+
display: "flex",
|
|
850
|
+
alignItems: "center",
|
|
851
|
+
gap: "8px",
|
|
852
|
+
padding: "8px 12px",
|
|
853
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
854
|
+
fontWeight: 500,
|
|
855
|
+
fontFamily: tokens.typography.fontFamily.primary,
|
|
856
|
+
color: tokens.colors.text.secondary,
|
|
857
|
+
backgroundColor: "transparent",
|
|
858
|
+
border: "none",
|
|
859
|
+
cursor: "pointer",
|
|
860
|
+
outline: "none",
|
|
861
|
+
textAlign: "left"
|
|
862
|
+
},
|
|
863
|
+
children: [
|
|
864
|
+
/* @__PURE__ */ jsx(ChevronIcon, { expanded }),
|
|
865
|
+
/* @__PURE__ */ jsx("span", { children: "Captured Images" }),
|
|
866
|
+
images.length > 0 && /* @__PURE__ */ jsxs("span", {
|
|
867
|
+
style: {
|
|
868
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
869
|
+
color: tokens.colors.text.tertiary,
|
|
870
|
+
fontFamily: tokens.typography.fontFamily.mono
|
|
871
|
+
},
|
|
872
|
+
children: [
|
|
873
|
+
"(",
|
|
874
|
+
images.length,
|
|
875
|
+
")"
|
|
876
|
+
]
|
|
877
|
+
})
|
|
878
|
+
]
|
|
879
|
+
}), expanded && images.length > 0 && /* @__PURE__ */ jsxs("button", {
|
|
880
|
+
type: "button",
|
|
881
|
+
onClick: () => downloadAllImages(images, serverId),
|
|
882
|
+
title: `Download all ${images.length} images`,
|
|
883
|
+
style: {
|
|
884
|
+
display: "flex",
|
|
885
|
+
alignItems: "center",
|
|
886
|
+
gap: "4px",
|
|
887
|
+
padding: "4px 8px",
|
|
888
|
+
marginRight: 8,
|
|
889
|
+
fontSize: "0.62rem",
|
|
890
|
+
fontWeight: 500,
|
|
891
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
892
|
+
color: tokens.colors.text.tertiary,
|
|
893
|
+
backgroundColor: "transparent",
|
|
894
|
+
border: `1px solid ${tokens.colors.border.muted}`,
|
|
895
|
+
borderRadius: tokens.borderRadius.sm,
|
|
896
|
+
cursor: "pointer",
|
|
897
|
+
whiteSpace: "nowrap"
|
|
898
|
+
},
|
|
899
|
+
children: [/* @__PURE__ */ jsx(DownloadIcon, { size: 10 }), " All"]
|
|
900
|
+
})]
|
|
901
|
+
}), expanded && /* @__PURE__ */ jsx("div", {
|
|
902
|
+
style: {
|
|
903
|
+
flex: 1,
|
|
904
|
+
minHeight: 0,
|
|
905
|
+
display: "flex",
|
|
906
|
+
overflow: "hidden"
|
|
907
|
+
},
|
|
908
|
+
children: images.length === 0 ? /* @__PURE__ */ jsx("div", {
|
|
909
|
+
style: {
|
|
910
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
911
|
+
color: tokens.colors.text.tertiary,
|
|
912
|
+
padding: "12px",
|
|
913
|
+
textAlign: "center",
|
|
914
|
+
width: "100%"
|
|
915
|
+
},
|
|
916
|
+
children: "No images captured yet"
|
|
917
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
918
|
+
style: {
|
|
919
|
+
width: selectedImg ? 200 : "100%",
|
|
920
|
+
flexShrink: 0,
|
|
921
|
+
overflowY: "auto",
|
|
922
|
+
padding: "6px",
|
|
923
|
+
borderRight: selectedImg ? `1px solid ${tokens.colors.border.muted}` : "none",
|
|
924
|
+
display: "grid",
|
|
925
|
+
gridTemplateColumns: selectedImg ? "repeat(2, 1fr)" : "repeat(auto-fill, minmax(min(120px, 100%), 1fr))",
|
|
926
|
+
gridAutoRows: "min-content",
|
|
927
|
+
gap: "4px",
|
|
928
|
+
alignContent: "start"
|
|
929
|
+
},
|
|
930
|
+
children: images.map((img, idx) => {
|
|
931
|
+
const isSelected = selectedIdx === idx;
|
|
932
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
933
|
+
onClick: () => setSelectedIdx(isSelected ? null : idx),
|
|
934
|
+
style: {
|
|
935
|
+
position: "relative",
|
|
936
|
+
aspectRatio: "1",
|
|
937
|
+
borderRadius: tokens.borderRadius.sm,
|
|
938
|
+
overflow: "hidden",
|
|
939
|
+
border: `2px solid ${isSelected ? tokens.colors.accent.primary : tokens.colors.border.muted}`,
|
|
940
|
+
backgroundColor: tokens.colors.background.elevated,
|
|
941
|
+
cursor: "pointer",
|
|
942
|
+
transition: "border-color 0.15s"
|
|
943
|
+
},
|
|
944
|
+
children: [/* @__PURE__ */ jsx("img", {
|
|
945
|
+
src: img.dataUrl,
|
|
946
|
+
alt: `capture_${serverId}_${img.reqId}`,
|
|
947
|
+
style: {
|
|
948
|
+
width: "100%",
|
|
949
|
+
height: "100%",
|
|
950
|
+
objectFit: "cover",
|
|
951
|
+
display: "block"
|
|
952
|
+
}
|
|
953
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
954
|
+
style: {
|
|
955
|
+
position: "absolute",
|
|
956
|
+
bottom: 0,
|
|
957
|
+
left: 0,
|
|
958
|
+
right: 0,
|
|
959
|
+
display: "flex",
|
|
960
|
+
justifyContent: "space-between",
|
|
961
|
+
padding: "2px 4px",
|
|
962
|
+
fontSize: "9px",
|
|
963
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
964
|
+
color: "#fff",
|
|
965
|
+
backgroundColor: "rgba(0, 0, 0, 0.65)"
|
|
966
|
+
},
|
|
967
|
+
children: [/* @__PURE__ */ jsxs("span", { children: ["#", img.reqId] }), /* @__PURE__ */ jsx("span", { children: fmtBytes(img.bytes) })]
|
|
968
|
+
})]
|
|
969
|
+
}, `${img.reqId}-${img.timestamp}`);
|
|
970
|
+
})
|
|
971
|
+
}), selectedImg && /* @__PURE__ */ jsx("div", {
|
|
972
|
+
style: {
|
|
973
|
+
flex: 1,
|
|
974
|
+
minWidth: 0,
|
|
975
|
+
overflowY: "auto"
|
|
976
|
+
},
|
|
977
|
+
children: /* @__PURE__ */ jsx(CaptureImageDetail, {
|
|
978
|
+
img: selectedImg,
|
|
979
|
+
tokens,
|
|
980
|
+
serverId,
|
|
981
|
+
onClose: () => setSelectedIdx(null)
|
|
982
|
+
})
|
|
983
|
+
})] })
|
|
984
|
+
})]
|
|
985
|
+
});
|
|
798
986
|
}
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
};
|
|
804
|
-
//# sourceMappingURL=Capture.js.map
|
|
987
|
+
//#endregion
|
|
988
|
+
export { Capture, Capture as default, loadCapturePlaceholderImage, useCapture };
|
|
989
|
+
|
|
990
|
+
//# sourceMappingURL=Capture.js.map
|