{"id":18113881,"url":"https://github.com/jezza/gridlay","last_synced_at":"2025-04-06T09:14:35.894Z","repository":{"id":69522958,"uuid":"244457616","full_name":"Jezza/gridlay","owner":"Jezza","description":"Grid Layout Engine","archived":false,"fork":false,"pushed_at":"2020-03-15T22:36:36.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T14:31:13.980Z","etag":null,"topics":["grid","layout-engine","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Jezza.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-02T19:32:24.000Z","updated_at":"2020-12-23T17:54:00.000Z","dependencies_parsed_at":"2023-02-26T05:01:10.992Z","dependency_job_id":null,"html_url":"https://github.com/Jezza/gridlay","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/Jezza%2Fgridlay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jezza%2Fgridlay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jezza%2Fgridlay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jezza%2Fgridlay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jezza","download_url":"https://codeload.github.com/Jezza/gridlay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457809,"owners_count":20941906,"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":["grid","layout-engine","rust"],"created_at":"2024-11-01T02:10:11.334Z","updated_at":"2025-04-06T09:14:35.870Z","avatar_url":"https://github.com/Jezza.png","language":"Rust","readme":"# GridLay\n\nA simple Rust grid layout engine.\n\n```rust\nuse gridlay::{GridLay, lines, Props};\n\npub fn main() {\n    let mut grid = GridLay::new();\n\n    let a = grid.new_leaf(Props::sized(1.0, 1.0));\n    let b = grid.new_leaf(Props::sized(2.0, 2.0));\n    let c = grid.new_leaf(Props::sized(1.0, 3.0));\n\n    let parent = grid.new_node(lines! {\n            a b;\n            c c;\n        }).unwrap();\n\n    let d = grid.new_leaf(Props::sized(1.0, 3.0));\n\n    let root = grid.new_node(lines! {\n            d parent;\n        }).unwrap();\n\n    let layout = grid.compute_layout(root).unwrap();\n\n    // `layout` contains each node's layout data (size and location),\n    // as well, as the total size of the layout.\n}\n```\n\n\nI designed it to be simple, because I only need a simple layout engine.  \nI'm using this to dogfeed my `kog` project.\n\nIf you have any issues, questions, or suggestions, feel free to open an issue.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjezza%2Fgridlay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjezza%2Fgridlay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjezza%2Fgridlay/lists"}