{"id":22356849,"url":"https://github.com/ayamflow/polygon-aabb","last_synced_at":"2025-03-26T13:20:40.824Z","repository":{"id":29123201,"uuid":"32652969","full_name":"ayamflow/polygon-aabb","owner":"ayamflow","description":"Get the Axis Aligned Bounding Box for a set of points (convex polygon).","archived":false,"fork":false,"pushed_at":"2015-03-21T22:41:18.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T14:41:56.922Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayamflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-21T22:40:36.000Z","updated_at":"2015-03-21T22:41:23.000Z","dependencies_parsed_at":"2022-07-25T18:47:12.611Z","dependency_job_id":null,"html_url":"https://github.com/ayamflow/polygon-aabb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fpolygon-aabb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fpolygon-aabb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fpolygon-aabb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fpolygon-aabb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayamflow","download_url":"https://codeload.github.com/ayamflow/polygon-aabb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245659026,"owners_count":20651526,"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-12-04T14:12:12.226Z","updated_at":"2025-03-26T13:20:40.804Z","avatar_url":"https://github.com/ayamflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"polygon-aabb\n===\n\nGet the Axis Aligned Bounding Box for a set of points (convex polygon).\n\n## Installation\n\n`npm i polygon-aabb --save`\n\n## Usage\n\n`bbox(points)`\nReturn a frame object containing the properties `x`, `y`, `width` and `height` of the bounding box.\n\n## Example\n```js\nvar bbox = require('polygon-aabb');\n\nfunction debug(polygon) {\n  var aabb = bbox(polygon);\n  context.beginPath();\n  context.fillRect(aabb.x, aabb.y);\n  context.fill();\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayamflow%2Fpolygon-aabb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayamflow%2Fpolygon-aabb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayamflow%2Fpolygon-aabb/lists"}