{"id":36671200,"url":"https://github.com/anitasv/zoom","last_synced_at":"2026-01-12T10:41:06.094Z","repository":{"id":47059052,"uuid":"52423302","full_name":"anitasv/zoom","owner":"anitasv","description":"Javascript library to do pinch zoom that preserves scale and rotation correctly.","archived":false,"fork":false,"pushed_at":"2023-04-03T14:11:33.000Z","size":78,"stargazers_count":149,"open_issues_count":7,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-13T10:45:05.222Z","etag":null,"topics":["javascript-library","npm-module","pinch","pinch-to-zoom","rotate","rotate-images","touch","zoom","zoom-images"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anitasv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2016-02-24T07:32:44.000Z","updated_at":"2025-05-02T00:14:27.000Z","dependencies_parsed_at":"2024-06-18T23:13:09.435Z","dependency_job_id":null,"html_url":"https://github.com/anitasv/zoom","commit_stats":{"total_commits":75,"total_committers":8,"mean_commits":9.375,"dds":0.6133333333333333,"last_synced_commit":"bacc7836ea0a073b7a4ff0b21d864167177ad9b8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anitasv/zoom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitasv%2Fzoom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitasv%2Fzoom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitasv%2Fzoom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitasv%2Fzoom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anitasv","download_url":"https://codeload.github.com/anitasv/zoom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitasv%2Fzoom/sbom","scorecard":{"id":197067,"data":{"date":"2025-08-11","repo":{"name":"github.com/anitasv/zoom","commit":"87d0b617b6243f6a28d1b3dc7d6a01c3d8f4746c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":5,"reason":"Found 6/11 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T21:59:58.435Z","repository_id":47059052,"created_at":"2025-08-16T21:59:58.435Z","updated_at":"2025-08-16T21:59:58.435Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:40:25.642Z","status":"ssl_error","status_checked_at":"2026-01-12T10:39:27.820Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["javascript-library","npm-module","pinch","pinch-to-zoom","rotate","rotate-images","touch","zoom","zoom-images"],"created_at":"2026-01-12T10:41:06.031Z","updated_at":"2026-01-12T10:41:06.087Z","avatar_url":"https://github.com/anitasv.png","language":"JavaScript","readme":"# Zoom it!\nAllows your users to zoom, rotate, and pan images using touch gestures.\n\nFor a DEMO open this on mobile: http://anitasv.github.io/zoom/\n\nType| Link | Size\n-|-|-\nMinified | http://anitasv.github.io/zoom/zoom-1.0.7.min.js | 2472 bytes (gzip: 1155 bytes)\nDebugging | http://anitasv.github.io/zoom/zoom-1.0.7.js | 12893 bytes\nNPM | https://www.npmjs.com/package/zoom-it | \n\nFor an explanation of math see https://github.com/anitasv/zoom/wiki/Explaining-Math\n\nSend pull requests, bug reports, and feature requests to https://github.com/anitasv/zoom/\n\n# Usage\n\n```html\n\u003cdiv width=320 height=240 style=\"overflow:hidden;\"\u003e\n    \u003c!-- this doesn't have to be an image --\u003e\n    \u003cimg id=\"torotate\" width=320 height=240 src=\"https://lh3.googleusercontent.com/w33i78Rt0j4GHr7SA1luYtBAtmC1DmRHwobUcK1wCKivA_u4VczsDw0CweLmJpUwFRUs=w1920-h1200-no\"\u003e\n\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\" src=\"http://anitasv.github.io/zoom/zoom-1.0.7.min.js\"\u003e \u003c/script\u003e\n```\n\nThe overflow:hidden is to crop the image moving outside the original border. Be creative. Hotlinking to github.io may get you blocked; so copy to your own location.\n\n```js\nvar elem = document.getElementById('torotate');\nvar zm = new Zoom(elem, {\n    rotate: true\n});\n\n// after use, call to remove event listeners, etc:\nzm.destroy()\n\n```\nPan cannot be currently disabled, there is an outstanding issue on it.\n\nYou can do operations like zm.reset() on this object, by default it attaches listeners to the object given.\n\nOptionally pass a `window`-like object as the third parameter (e.g. for testing,\nor use in a non-browser environment).\n\nIf you are using NPM, then\n\n```js\nvar zoom = require(\"zoom-it\");\n\nvar elem = document.getElementById('torotate');\nvar zm = new zoom.Zoom(elem, {\n    rotate: true,\n    minZoom: 0,\n    maxZoom: Infinity,\n    pan: false,\n});\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanitasv%2Fzoom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanitasv%2Fzoom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanitasv%2Fzoom/lists"}