{"id":13672870,"url":"https://github.com/huruji/yoga-layout-style-adaptor","last_synced_at":"2025-03-18T06:43:29.595Z","repository":{"id":97311254,"uuid":"287593709","full_name":"huruji/yoga-layout-style-adaptor","owner":"huruji","description":"just adapt yoga-layout with css style, so we can use yoga-layout with no pain","archived":false,"fork":false,"pushed_at":"2020-08-17T09:39:21.000Z","size":127,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T13:25:12.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/huruji.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-08-14T17:58:54.000Z","updated_at":"2022-05-08T07:32:17.000Z","dependencies_parsed_at":"2024-01-17T04:18:52.730Z","dependency_job_id":null,"html_url":"https://github.com/huruji/yoga-layout-style-adaptor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Fyoga-layout-style-adaptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Fyoga-layout-style-adaptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Fyoga-layout-style-adaptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Fyoga-layout-style-adaptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huruji","download_url":"https://codeload.github.com/huruji/yoga-layout-style-adaptor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173500,"owners_count":20410295,"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-08-02T09:01:53.400Z","updated_at":"2025-03-18T06:43:29.574Z","avatar_url":"https://github.com/huruji.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# yoga-layout-style-adaptor\n\njust adapt yoga-layout with css style, so we can use yoga-layout with no pain\n\n## why\n\nyoga-layout 只暴漏了类似 setHeight、setFlex 这类方法，而且对于各种样式还需要自己适配，那么这就是你想要的这个适配器，通过一个 setStyle 方法就可以实现。\n\n## how to use\n\n```bash\nnpm i yoga-layout-style-adaptor -S\n```\n\n```js\nimport { setStyle } from 'yoga-layout-style-adaptor'\n\n\nsetStyle(yogaNode, cssStyle)\n```\n\n就是这么简单就可以将 css 样式应用到 yoga 节点中\n\n同时也 export 了对应的样式接口\n\n```js\nimport type { CSSProperties } from 'yoga-layout-style-adaptor'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuruji%2Fyoga-layout-style-adaptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuruji%2Fyoga-layout-style-adaptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuruji%2Fyoga-layout-style-adaptor/lists"}