{"id":15536613,"url":"https://github.com/turbo87/ozone.js","last_synced_at":"2025-07-29T02:05:51.700Z","repository":{"id":16877522,"uuid":"19637977","full_name":"Turbo87/ozone.js","owner":"Turbo87","description":"HTML5 gliding observation zone renderer","archived":false,"fork":false,"pushed_at":"2014-05-27T18:24:16.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T21:56:38.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Turbo87.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":"2014-05-10T09:35:14.000Z","updated_at":"2014-07-16T12:08:56.000Z","dependencies_parsed_at":"2022-08-25T08:40:56.490Z","dependency_job_id":null,"html_url":"https://github.com/Turbo87/ozone.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Turbo87/ozone.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fozone.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fozone.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fozone.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fozone.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turbo87","download_url":"https://codeload.github.com/Turbo87/ozone.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fozone.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617643,"owners_count":24116208,"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-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-10-02T11:52:40.806Z","updated_at":"2025-07-29T02:05:51.673Z","avatar_url":"https://github.com/Turbo87.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ozone.js\n\nozone.js is a gliding observation zone renderer based on the HTML5 canvas API.\n\n## Usage\n\nCreate a HTML5 canvas somewhere on your page:\n\n~~~~html\n\u003ccanvas id=\"myCanvas\" width=\"500\" height=\"400\"\u003e\u003c/canvas\u003e\n~~~~\n\nCreate an `O3` instance passing in the `id` of the canvas:\n\n~~~~javascript\nvar o = new O3('myCanvas');\n~~~~\n\nSet the observation zone parameters:\n\n~~~~javascript\no.setZone({\n    'A1': 45,\n    'R1': 10000,\n    'A2': 180,\n    'R2': 500,\n});\n~~~~\n\nSet the observation zone angle, or set the legs to calculate the angle automatically:\n\n~~~~javascript\no.setAngle(30);\no.setLegs(80, 200);\n~~~~\n\nSetting the legs will also cause the renderer to draw the legs below the observation zone.\n\nFinally draw the observation zone to the canvas:\n\n~~~~javascript\no.draw();\n~~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbo87%2Fozone.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbo87%2Fozone.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbo87%2Fozone.js/lists"}