{"id":21560108,"url":"https://github.com/eva-engine/eva-plugin-hitarea-dyeing","last_synced_at":"2025-03-18T04:26:49.357Z","repository":{"id":196476996,"uuid":"687424082","full_name":"eva-engine/eva-plugin-hitArea-dyeing","owner":"eva-engine","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-06T02:21:30.000Z","size":343,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-24T11:12:59.416Z","etag":null,"topics":[],"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/eva-engine.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}},"created_at":"2023-09-05T10:30:54.000Z","updated_at":"2023-09-26T04:20:33.000Z","dependencies_parsed_at":"2023-09-25T17:06:48.487Z","dependency_job_id":null,"html_url":"https://github.com/eva-engine/eva-plugin-hitArea-dyeing","commit_stats":null,"previous_names":["eva-engine/eva-plugin-hitarea-dyeing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-hitArea-dyeing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-hitArea-dyeing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-hitArea-dyeing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-hitArea-dyeing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eva-engine","download_url":"https://codeload.github.com/eva-engine/eva-plugin-hitArea-dyeing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244155624,"owners_count":20407388,"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-11-24T09:12:35.670Z","updated_at":"2025-03-18T04:26:49.334Z","avatar_url":"https://github.com/eva-engine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eva.js HitArea Debug Plugin\n\n在 EvaJs 中，给 Event 设置了 HitArea，如果需要调整点击区域的宽高，位置，形状等参数，本插件可以提供可视化的染色能力\n\n![插件效果](https://gw.alicdn.com/imgextra/i1/O1CN01G1ue7I21qXave2eiK_!!6000000007036-0-tps-2470-1130.jpg)\n\n## 使用方法\n\n```\nnpm install @eva/eva-plugin-hitarea-dyeing --save-dev\n```\n\n\n```javascript\nimport {HitAreaDyeingSystem} from '@eva/eva-plugin-hitarea-dyeing';\n\n\nconst game = new Game({\n  systems: [new HitAreaDyeingSystem()]\n})\n\n...\n\n```\n\n### Options\n\n| 名称                  | 描述                                                                             | 默认值 |\n| --------------------- | -------------------------------------------------------------------------------- | ------ |\n| hitAreaColor          | 命中区域颜色                                                                     | red    |\n| hitAreaOpacity        | 命中区域透明度                                                                   | 0.3    |\n| filterGameObjectNames | 默认对所有设置了 Event HitArea 的 GameObject 生效，可以通过 GameObject name 过滤 | 空数组 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feva-engine%2Feva-plugin-hitarea-dyeing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feva-engine%2Feva-plugin-hitarea-dyeing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feva-engine%2Feva-plugin-hitarea-dyeing/lists"}