{"id":23053608,"url":"https://github.com/component/rect","last_synced_at":"2025-08-10T06:43:19.870Z","repository":{"id":6054702,"uuid":"7279859","full_name":"component/rect","owner":"component","description":"Rect prototype for whatever, canvas, selection rects etc","archived":false,"fork":false,"pushed_at":"2013-08-21T17:31:48.000Z","size":77,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-10T06:43:19.415Z","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/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2012-12-21T22:14:38.000Z","updated_at":"2017-05-05T09:22:01.000Z","dependencies_parsed_at":"2022-09-22T06:51:40.825Z","dependency_job_id":null,"html_url":"https://github.com/component/rect","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/component/rect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Frect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Frect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Frect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Frect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/rect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Frect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269688004,"owners_count":24459396,"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-10T02:00:08.965Z","response_time":71,"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-12-16T00:18:54.843Z","updated_at":"2025-08-10T06:43:19.834Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# rect\n\n  Rect prototype (abstract, use it for dom, canvas, etc)\n\n## Installation\n\n    $ component install component/rect\n\n## API\n\n  - [Rect()](#rect)\n  - [Rect.moveTo()](#rectmovetoleftnumbertopnumber)\n  - [Rect.size()](#rectsizewidthnumberheightnumber)\n  - [Rect.to()](#recttorightnumberbottomnumber)\n  - [Rect.intersects()](#rectintersectsotherobject)\n\n### Rect()\n\n  Initialize a new Rect with the given\n  position and dimensions, or an object\n  with the same properties.\n\n### Rect.moveTo(left:Number, top:Number)\n\n  Move to (left, top).\n\n### Rect.size(width:Number, height:Number)\n\n  Resize to `width` / `height`\n\n### Rect.to(right:Number, bottom:Number)\n\n  Move the second point to (right, bottom).\n\n### Rect.intersects(other:Object)\n\n  Returns true if two rects overlap.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Frect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Frect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Frect/lists"}