[{"data":1,"prerenderedAt":250},["ShallowReactive",2],{"navigation_docs":3,"-docs-guide-under-the-hood":110,"-docs-guide-under-the-hood-surround":245},[4,30,65,95],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Quick start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F3.quick-start","i-lucide-rocket",{"title":26,"path":27,"stem":28,"icon":29},"AI agents","\u002Fdocs\u002Fgetting-started\u002Fai-agents","docs\u002F1.getting-started\u002F4.ai-agents","i-lucide-bot",{"title":31,"icon":6,"path":32,"stem":33,"children":34,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[35,40,45,50,55,60],{"title":36,"path":37,"stem":38,"icon":39},"ZoomImage","\u002Fdocs\u002Fguide\u002Fzoom-image","docs\u002F2.guide\u002F1.zoom-image","i-lucide-image",{"title":41,"path":42,"stem":43,"icon":44},"Plain images","\u002Fdocs\u002Fguide\u002Fplain-images","docs\u002F2.guide\u002F2.plain-images","i-lucide-tags",{"title":46,"path":47,"stem":48,"icon":49},"Open from code","\u002Fdocs\u002Fguide\u002Fopen-from-code","docs\u002F2.guide\u002F3.open-from-code","i-lucide-code",{"title":51,"path":52,"stem":53,"icon":54},"Gestures & keys","\u002Fdocs\u002Fguide\u002Fgestures","docs\u002F2.guide\u002F4.gestures","i-lucide-hand",{"title":56,"path":57,"stem":58,"icon":59},"Accessibility","\u002Fdocs\u002Fguide\u002Faccessibility","docs\u002F2.guide\u002F5.accessibility","i-lucide-accessibility",{"title":61,"path":62,"stem":63,"icon":64},"Under the hood","\u002Fdocs\u002Fguide\u002Funder-the-hood","docs\u002F2.guide\u002F6.under-the-hood","i-lucide-cpu",{"title":66,"icon":6,"path":67,"stem":68,"children":69,"page":6},"Customization","\u002Fdocs\u002Fcustomization","docs\u002F3.customization",[70,75,80,85,90],{"title":71,"path":72,"stem":73,"icon":74},"Options","\u002Fdocs\u002Fcustomization\u002Foptions","docs\u002F3.customization\u002F1.options","i-lucide-settings-2",{"title":76,"path":77,"stem":78,"icon":79},"Theming","\u002Fdocs\u002Fcustomization\u002Ftheming","docs\u002F3.customization\u002F2.theming","i-lucide-palette",{"title":81,"path":82,"stem":83,"icon":84},"Styling with classes","\u002Fdocs\u002Fcustomization\u002Fstyling","docs\u002F3.customization\u002F3.styling","i-lucide-brush",{"title":86,"path":87,"stem":88,"icon":89},"Custom buttons","\u002Fdocs\u002Fcustomization\u002Fcustom-buttons","docs\u002F3.customization\u002F4.custom-buttons","i-lucide-square-plus",{"title":91,"path":92,"stem":93,"icon":94},"Recipes","\u002Fdocs\u002Fcustomization\u002Frecipes","docs\u002F3.customization\u002F5.recipes","i-lucide-chef-hat",{"title":96,"icon":6,"path":97,"stem":98,"children":99,"page":6},"API","\u002Fdocs\u002Fapi","docs\u002F4.api",[100,105],{"title":101,"path":102,"stem":103,"icon":104},"useImageViewer()","\u002Fdocs\u002Fapi\u002Fuse-image-viewer","docs\u002F4.api\u002F1.use-image-viewer","i-lucide-square-function",{"title":106,"path":107,"stem":108,"icon":109},"Types","\u002Fdocs\u002Fapi\u002Ftypes","docs\u002F4.api\u002F2.types","i-lucide-braces",{"id":111,"title":61,"body":112,"description":238,"extension":239,"links":240,"meta":241,"navigation":242,"path":62,"seo":243,"stem":63,"__hash__":244},"docs\u002Fdocs\u002F2.guide\u002F6.under-the-hood.md",{"type":113,"value":114,"toc":229},"minimark",[115,120,133,136,140,147,150,154,177,181,208,222,226],[116,117,119],"h2",{"id":118},"mounting","Mounting",[121,122,123,124,128,129,132],"p",{},"A module can't edit your ",[125,126,127],"code",{},"app.vue",", so the client plugin does it lazily: on the first open it imports the viewer component and renders it into a container in ",[125,130,131],{},"\u003Cbody>"," with your app's context; after the closing animation it unmounts it. Until someone opens an image, the viewer costs nothing but a click listener.",[121,134,135],{},"The viewer component itself doesn't depend on Nuxt — it gets everything through props and reports back through events.",[116,137,139],{"id":138},"the-strip","The strip",[121,141,142,143,146],{},"Every slide is in the DOM from the start. Each shows the copy of the image already loaded on the page (",[125,144,145],{},"currentSrc","), and the full image is loaded on top of it for the current slide and its neighbours. That's why there is never an empty frame, however fast you swipe.",[121,148,149],{},"The endless strip works from three images: its position grows without limit, and every slide stands in the copy closest to it. A slide is always moved while it's off screen.",[116,151,153],{"id":152},"the-flight","The flight",[121,155,156,157,160,161,164,165,168,169,172,173,176],{},"While the viewer is open, the page image of the current slide is ",[125,158,159],{},"visibility: hidden"," — the image flies out of its place instead of doubling it. The flight is a FLIP animation from the visible crop of the thumbnail, respecting ",[125,162,163],{},"object-fit",", ",[125,166,167],{},"object-position"," and ",[125,170,171],{},"border-radius"," through an animated ",[125,174,175],{},"clip-path",".",[116,178,180],{"id":179},"scroll-lock","Scroll lock",[121,182,183,184,187,188,191,192,195,196,198,199,195,206,176],{},"The page can't scroll while the viewer is open. If ",[125,185,186],{},"\u003Chtml>"," doesn't have ",[125,189,190],{},"scrollbar-gutter: stable",", the scrollbar width is compensated with ",[125,193,194],{},"padding-right"," on ",[125,197,131],{},", so the page doesn't jump. Your own fixed elements may need the same — target them with the ",[200,201,203],"a",{"href":202},"\u002Fdocs\u002Fcustomization\u002Foptions#openclass",[125,204,205],{},"openClass",[125,207,186],{},[121,209,210,211,214,215,218,219,221],{},"The viewer layer is ",[125,212,213],{},"100vw"," wide rather than ",[125,216,217],{},"inset: 0",": with a stable scrollbar gutter, ",[125,220,217],{}," would leave a stripe on the right where the page shows through.",[116,223,225],{"id":224},"size","Size",[121,227,228],{},"The module ships a plugin, a composable, two tiny components, the viewer component and one CSS file — no runtime dependencies. The viewer is code-split and loaded on the first open.",{"title":230,"searchDepth":231,"depth":231,"links":232},"",2,[233,234,235,236,237],{"id":118,"depth":231,"text":119},{"id":138,"depth":231,"text":139},{"id":152,"depth":231,"text":153},{"id":179,"depth":231,"text":180},{"id":224,"depth":231,"text":225},"How the viewer mounts, locks the page and stays fast.","md",null,{},{"icon":64},{"title":61,"description":238},"-m1cchcS57K0NO4JScqAwoZHU1Qv5RMXcqAJaLMoq5s",[246,248],{"title":56,"path":57,"stem":58,"description":247,"icon":59,"children":-1},"Dialog semantics, keyboard, focus and labels.",{"title":71,"path":72,"stem":73,"description":249,"icon":74,"children":-1},"Global defaults in nuxt.config and overrides per open() call.",1794492279554]