{"id":15474309,"url":"https://github.com/solstice23/osu-cursor","last_synced_at":"2025-04-22T14:07:23.235Z","repository":{"id":37660561,"uuid":"457777266","full_name":"solstice23/osu-cursor","owner":"solstice23","description":"✨ osu!lazer 样式的前端自定义光标 / osu!lazer style custom cursor for web","archived":false,"fork":false,"pushed_at":"2023-10-02T13:58:11.000Z","size":1606,"stargazers_count":24,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T14:07:15.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://solstice23.github.io/osu-cursor/demo/","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/solstice23.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":"2022-02-10T12:46:54.000Z","updated_at":"2025-04-03T01:35:38.000Z","dependencies_parsed_at":"2025-03-03T18:38:12.166Z","dependency_job_id":"ba988a35-d7a6-43e1-b97e-421ef0424703","html_url":"https://github.com/solstice23/osu-cursor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solstice23%2Fosu-cursor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solstice23%2Fosu-cursor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solstice23%2Fosu-cursor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solstice23%2Fosu-cursor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solstice23","download_url":"https://codeload.github.com/solstice23/osu-cursor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250255710,"owners_count":21400410,"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":[],"created_at":"2024-10-02T03:01:43.326Z","updated_at":"2025-04-22T14:07:23.204Z","avatar_url":"https://github.com/solstice23.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# osu-cursor\n\nosu!lazer 样式的前端自定义光标\n\n## Demo\n\n[Demo](https://solstice23.github.io/osu-cursor/demo/)\n\n![screenrecord](demo/preview.gif)\n\n## 开始\n\n### 引入\n\n```html\n\u003cscript src=\"/dist/main.js\"\u003e\u003c/script\u003e\n```\n\n所有资源文件已打包于 JS 中，只需要引入 JS。\n\n### 初始化\n\n```js\nvar cursor = new osuCursor();\n```\n\n## 函数及参数\n\n### `osuCursor(options)`\n\n| 参数名 | 类型 | 默认值 | 备注               |\n|:------:|:----:|:------:|--------------------|\n| rotate | bool |  true  | 拖动时光标是否旋转 |\n\n### `osuCursor.stop()`\n\n停止显示自定义光标。\n\n### `osuCursor.init()`\n\n初始化（重新显示）自定义光标。\n\n## 版权\n\n光标图片来自 [ppy/osu-resources](https://github.com/ppy/osu-resources)。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolstice23%2Fosu-cursor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolstice23%2Fosu-cursor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolstice23%2Fosu-cursor/lists"}