{"id":21565489,"url":"https://github.com/wgr-sa/nuxt-panzoom","last_synced_at":"2025-08-14T07:40:50.164Z","repository":{"id":65485740,"uuid":"592814932","full_name":"WGR-SA/nuxt-panzoom","owner":"WGR-SA","description":"Add zooming and panning functionality to your application","archived":false,"fork":false,"pushed_at":"2024-04-05T03:00:00.000Z","size":3529,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-05T03:37:23.591Z","etag":null,"topics":["nuxt","nuxt3","panzoom"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WGR-SA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-01-24T15:43:37.000Z","updated_at":"2024-04-14T18:33:36.019Z","dependencies_parsed_at":"2023-11-07T06:25:47.370Z","dependency_job_id":"5bb686b9-3c50-4fe9-a70a-c08fc87367cd","html_url":"https://github.com/WGR-SA/nuxt-panzoom","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"d6d810f34a95b137251d961b5beae0cf938525c3"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGR-SA%2Fnuxt-panzoom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGR-SA%2Fnuxt-panzoom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGR-SA%2Fnuxt-panzoom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGR-SA%2Fnuxt-panzoom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WGR-SA","download_url":"https://codeload.github.com/WGR-SA/nuxt-panzoom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160058,"owners_count":20408021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nuxt","nuxt3","panzoom"],"created_at":"2024-11-24T10:19:53.416Z","updated_at":"2025-03-18T05:18:16.719Z","avatar_url":"https://github.com/WGR-SA.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nuxt-panzoom Module\n\nnuxt-panzoom is a simple and easy to use Nuxt 3 module that makes it easy to add zooming and panning functionality to your application. It's built on top of the [panzoom]((https://github.com/timmywil/panzoom)) library and provides a Vue.js directive that can be used to zoom any element in your template.\n\n## Installation\nYou can install the module by running the following command:\n\n`npm install @wgr-sa/nuxt-panzoom`\n\n## Usage\nAdd nuxt-panzoom to the modules section of your nuxt.config.js file:\n```\nexport default {\n  modules: [\n    '@wgr-sa/nuxt-panzoom'\n  ],\n  panzoom: {\n    addControls: true, // Add PanzoomControls component \n  }\n}\n```\n\nIn your template, add the panzoom directive to the element you want to make zoomable.\n```\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cimg src=\"image.jpg\" v-panzoom=\"{ contain: 'outside' }\"\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n```\n\nThe v-panzoom directive accepts an options object. You can find all the options available in the panzoom library documentation https://github.com/timmywil/panzoom\n\n## `PanzoomControls`\n\n`PanzoomControls` is a simple controls component. Put it anywhere and pass the element in props. It will show simple zoomIn, zoomOut and reset buttons\n```\n\u003ctemplate\u003e\n  \u003cmain\u003e\n    \u003csection\u003e\n      \u003cimg ref=\"zoom\" v-panzoom=\"{ contain: 'outside' }\" :src=\"image\"\u003e\n    \u003c/section\u003e\n    \u003cPanzoomControls v-if=\"zoom\" :el=\"zoom\" /\u003e\n  \u003c/main\u003e\n\u003c/template\u003e\n```\n\n## Development\n\n- Run `npm run dev:prepare` to generate type stubs.\n- Use `npm run dev` to start [playground](./playground) in development mode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgr-sa%2Fnuxt-panzoom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgr-sa%2Fnuxt-panzoom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgr-sa%2Fnuxt-panzoom/lists"}