{"id":19030517,"url":"https://github.com/sofish/proportion.js","last_synced_at":"2026-05-02T18:30:15.762Z","repository":{"id":30888792,"uuid":"34446504","full_name":"sofish/proportion.js","owner":"sofish","description":"meet the best proportion of the device.","archived":false,"fork":false,"pushed_at":"2015-04-27T17:11:54.000Z","size":127,"stargazers_count":41,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-02T03:45:00.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://sofish.github.io/proportion.js","language":"HTML","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/sofish.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-04-23T09:21:08.000Z","updated_at":"2023-03-30T13:51:15.000Z","dependencies_parsed_at":"2022-09-07T15:00:57.598Z","dependency_job_id":null,"html_url":"https://github.com/sofish/proportion.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fproportion.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fproportion.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fproportion.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fproportion.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofish","download_url":"https://codeload.github.com/sofish/proportion.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079638,"owners_count":19744725,"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-08T21:18:19.834Z","updated_at":"2026-05-02T18:30:15.701Z","avatar_url":"https://github.com/sofish.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## proportion.js \n\n\u003e meet the best proportion of the device.\n\n### 一、api\n\n```js\n// ** Params\n// @el: {Element} the element\n// @isLanscape: [OPTIONAL] {Boolean} by default is `false`(portrait)\n// @radio: [OPTIONAL] {Number}  the proportion of theShortSide/theLongSide，by default is `0.61`\n// @maxWidth: [OPTIONAL] {Number} the max-width, by default is `640`\n// @maxHeight: [OPTIONAL] {Number} the max-height, by default is `1008`\n\nproportion(el, isLanscape, radio, maxWidth, maxHeight);\n```\n\n\n### 二、demo\n\n[http://sofish.github.io/proportion.js](http://sofish.github.io/proportion.js)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofish%2Fproportion.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofish%2Fproportion.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofish%2Fproportion.js/lists"}