For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/en/components/image-viewer.md.
The controller is idempotent; the complete package can instead import @a3s-lab/ui/all once. The host performs permission and business validation through cancelable before-* events.
The viewer never edits the source, persists transforms, or replaces gallery navigation. Authorization, download, and source trust remain with the host.
The component publishes a reusable interaction boundary only. Data fetching, persistence, permission, trusted content, and business entities remain host-owned.
Focus enters the toolbar on open; Escape closes and returns to the opener. Zoom remains available through buttons without requiring a wheel or gesture.