{"id":15021309,"url":"https://github.com/keqingrong/three-dragcontrols","last_synced_at":"2025-08-21T07:12:13.736Z","repository":{"id":65412375,"uuid":"96744317","full_name":"keqingrong/three-dragcontrols","owner":"keqingrong","description":"three.js DragControls","archived":false,"fork":false,"pushed_at":"2019-10-01T23:49:35.000Z","size":12,"stargazers_count":11,"open_issues_count":3,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-12T02:28:32.226Z","etag":null,"topics":["three","three-dragcontrols","threejs"],"latest_commit_sha":null,"homepage":"https://github.com/mrdoob/three.js/blob/dev/examples/js/controls/DragControls.js","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/keqingrong.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}},"created_at":"2017-07-10T06:41:54.000Z","updated_at":"2021-06-07T03:41:51.000Z","dependencies_parsed_at":"2023-01-22T07:55:25.422Z","dependency_job_id":null,"html_url":"https://github.com/keqingrong/three-dragcontrols","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/keqingrong/three-dragcontrols","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keqingrong%2Fthree-dragcontrols","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keqingrong%2Fthree-dragcontrols/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keqingrong%2Fthree-dragcontrols/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keqingrong%2Fthree-dragcontrols/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keqingrong","download_url":"https://codeload.github.com/keqingrong/three-dragcontrols/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keqingrong%2Fthree-dragcontrols/sbom","scorecard":{"id":555976,"data":{"date":"2025-08-11","repo":{"name":"github.com/keqingrong/three-dragcontrols","commit":"d38ebdf77e3267d4f9e12bd49eb8fa3c984c90cb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"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":"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":"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":"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":"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":"Code-Review","score":1,"reason":"Found 1/10 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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 2 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-20T12:20:28.037Z","repository_id":65412375,"created_at":"2025-08-20T12:20:28.037Z","updated_at":"2025-08-20T12:20:28.037Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271441715,"owners_count":24760347,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["three","three-dragcontrols","threejs"],"created_at":"2024-09-24T19:56:25.851Z","updated_at":"2025-08-21T07:12:13.711Z","avatar_url":"https://github.com/keqingrong.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# three-dragcontrols\n\n[![npm version](https://img.shields.io/npm/v/three-dragcontrols.svg)](https://www.npmjs.com/package/three-dragcontrols)\n\n## Installation\n\n```bash\nnpm install three-dragcontrols\n```\n\n## Usage\n\n```javascript\nimport {\n  Scene,\n  PerspectiveCamera,\n  WebGLRenderer,\n  BoxGeometry,\n  MeshBasicMaterial,\n  Mesh\n} from 'three';\nimport DragControls from 'three-dragcontrols';\n\nconst scene = new Scene();\nconst camera = new PerspectiveCamera(70, window.innerWidth / window.innerHeight, 1, 1000);\ncamera.position.z = 1000;\n\nconst renderer = new WebGLRenderer({antialias: true});\nrenderer.setClearColor(0xf0f0f0);\nrenderer.setPixelRatio(window.devicePixelRatio);\nrenderer.setSize(window.innerWidth, window.innerHeight);\nrenderer.sortObjects = false;\ndocument.body.appendChild(renderer.domElement);\n\nconst objects = [];\nconst geometry = new BoxGeometry(40, 40, 40);\n\nfor (let i = 0; i \u003c 2; i++) {\n  const object = new Mesh(geometry, new MeshBasicMaterial({color: Math.random() * 0xffffff}));\n  object.position.x = Math.random() * 1000 - 500;\n  object.position.y = Math.random() * 600 - 300;\n  object.position.z = Math.random() * 800 - 400;\n  object.rotation.x = Math.random() * 2 * Math.PI;\n  object.rotation.y = Math.random() * 2 * Math.PI;\n  object.rotation.z = Math.random() * 2 * Math.PI;\n  object.scale.x = Math.random() * 2 + 1;\n  object.scale.y = Math.random() * 2 + 1;\n  object.scale.z = Math.random() * 2 + 1;\n  scene.add(object);\n  objects.push(object);\n}\n\nconst dragControls = new DragControls(objects, camera, renderer.domElement);\n\nfunction animate() {\n  requestAnimationFrame(animate);\n  renderer.render(scene, camera);\n}\n\nanimate();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeqingrong%2Fthree-dragcontrols","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeqingrong%2Fthree-dragcontrols","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeqingrong%2Fthree-dragcontrols/lists"}