Carousel
Base carousel
The source viewport is a focusable section. Previous and next scroll by 0.85 of the viewport width, and the arrows disable at the ends. With a single card both stay disabled.
Option carousel
Three layouts. Form overlays its arrows on the track and hides the one that cannot scroll. Gallery and compact keep the arrows in a header row and disable them. The first card of the form layout snaps to the scroll padding.
Photo carousel
The photo carousel of an entity panel. Hover or focus it to show the arrows. ArrowLeft and ArrowRight move one photo, and next wraps from the last photo to the first. A photo opens the full-size viewer.
No arrow pressed yet
Photo sources
useGeneratedImageSource decides where a photo comes from. Plain URLs are used as they are. Absolute local paths become in-app file URLs on this machine. file-service:// and sediment:// pointers go through the caller's resolver.
- Status
- ready
- Preview source
- https://example.test/photo.png
- Download source
- https://example.test/photo.png
- Status
- ready
- Preview source
- data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2…
- Download source
- data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2…
- Status
- ready
- Preview source
- app://fs/@fs/Users/example/photos/trip.png
- Download source
- app://fs/@fs/Users/example/photos/trip.png
- Status
- ready
- Preview source
- app://fs/@fs/C:/Users/example/a%201%20%232.png
- Download source
- app://fs/@fs/C:/Users/example/a%201%20%232.png
- Status
- ready
- Preview source
- app://fs/@fs/C:/Users/example/what%3F.png
- Download source
- app://fs/@fs/C:/Users/example/what%3F.png
- Status
- ready
- Preview source
- photos/trip.png
- Download source
- photos/trip.png
Asset resolver states
A resolver answers with a download URL, a trashed file or a deleted file. Pending and failed lookups leave the photo without a source, so the carousel shows its placeholder.
- Status
- pending
- Preview source
- none
- Download source
- none
Resolver asked for: nothing
- Status
- pending
- Preview source
- none
- Download source
- none
Resolver asked for: nothing
- Status
- pending
- Preview source
- none
- Download source
- none
- Status
- pending
- Preview source
- none
- Download source
- none
- Status
- pending
- Preview source
- none
- Download source
- none
- Status
- pending
- Preview source
- none
- Download source
- none
- Status
- pending
- Preview source
- none
- Download source
- none
Cache and registered files
Lookups are cached by pointer and resolver scope for four minutes, and one lookup serves every reader. Registered sandbox files are treated as assets.
- Status
- pending
- Preview source
- none
- Download source
- none
- Status
- pending
- Preview source
- none
- Download source
- none
Resolver asked for: nothing
- Status
- pending
- Preview source
- none
- Download source
- none
Resolver asked for: nothing
- Status
- ready
- Preview source
- https://sandbox.test/outputs/chart.png?v=2
- Download source
- https://sandbox.test/outputs/chart.png?v=2
Resolver asked for: nothing
Local files through a host
On a host that is not this machine, a local path is read through the host. The host and environment come from the conversation, and a read that finishes after the source changed is dropped.
- Status
- pending
- Preview source
- none
- Download source
- none
- Status
- pending
- Preview source
- none
- Download source
- none
First photo fallback
The first photo can carry a fallback that stands in until its preview has loaded.
Host zoom bridge
While a viewer is open it registers with the host zoom bridge. The stub below plays the desktop menu: it sends step-zoom and reset-zoom, and reads whether any viewer is open.
Nothing sent yet
Image viewer options
Each button opens the viewer with one group of its options. Turn on the Windows, Electron and compact flags first to see the close buttons move.
No viewer event yet
Right to left
In a right-to-left container the arrow chevrons turn around, the scroll range runs through negative scrollLeft, and ArrowLeft moves forward.
Light and dark
Each panel sets its own theme scope, so the appearance control above does not change them. The two lower panels nest the opposite theme inside, and the nested parts follow the nearest scope.