{"id":16636793,"url":"https://github.com/takamin/b-box","last_synced_at":"2025-07-08T00:34:08.863Z","repository":{"id":19697252,"uuid":"87673210","full_name":"takamin/b-box","owner":"takamin","description":"Border-box geometric information for the DOM element of HTML5","archived":false,"fork":false,"pushed_at":"2022-12-07T17:59:52.000Z","size":226,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T08:49:48.427Z","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/takamin.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":"2017-04-09T00:47:01.000Z","updated_at":"2022-02-23T01:29:45.000Z","dependencies_parsed_at":"2023-01-11T20:33:08.014Z","dependency_job_id":null,"html_url":"https://github.com/takamin/b-box","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/takamin/b-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fb-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fb-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fb-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fb-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takamin","download_url":"https://codeload.github.com/takamin/b-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takamin%2Fb-box/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264169221,"owners_count":23567274,"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-12T06:22:51.868Z","updated_at":"2025-07-08T00:34:08.804Z","avatar_url":"https://github.com/takamin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"BBox - npm `b-box`\n==================\n\nBorder-box geometric information for the DOM element of HTML5.\n\nConstructor\n-----------\n\n* BBox(element)\n\nFields\n------\n\n* `top`\n* `left`\n* `right`\n* `bottom`\n* `width`\n* `height`\n* {`margin-`|`padding-`|`border-`}{`top`|`left`|`right`|`bottom`}\n\nA Type of these fields above are _string_ that have `px` at the tail.\nTo retrieve a number, use `px` method.\n\nMethods\n-------\n\n* `update`() - Updates the fields by evaluating the computed style of the\n  element specified at the constructor.\n* `px`(`\u003cfield-name\u003e`) - Returns a number value of the field.\n* `margin{Top|Left|Right|Bottom|Nc`() - Returns a total margin length as a\n  number.\n* `marginHorizontalNc`() - Returns a `marginLeftNc()+marginRightNc`.\n* `marginVerticalNc`() - Returns a `marginTopNc()+marginBottomNc`.\n\n\nLICENSE\n-------\n\nThis software is released under the MIT License, see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakamin%2Fb-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakamin%2Fb-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakamin%2Fb-box/lists"}