{"id":28206239,"url":"https://github.com/slimenull/skylinealgorithmtest","last_synced_at":"2025-10-04T14:41:31.222Z","repository":{"id":282434313,"uuid":"948580780","full_name":"SlimeNull/SkylineAlgorithmTest","owner":"SlimeNull","description":"2D Packing problem... but not box size","archived":false,"fork":false,"pushed_at":"2025-03-14T15:38:48.000Z","size":356,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T14:43:59.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/SlimeNull.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-14T15:30:06.000Z","updated_at":"2025-03-14T15:38:51.000Z","dependencies_parsed_at":"2025-03-14T16:36:04.190Z","dependency_job_id":null,"html_url":"https://github.com/SlimeNull/SkylineAlgorithmTest","commit_stats":null,"previous_names":["slimenull/skylinealgorithmtest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SlimeNull/SkylineAlgorithmTest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlimeNull%2FSkylineAlgorithmTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlimeNull%2FSkylineAlgorithmTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlimeNull%2FSkylineAlgorithmTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlimeNull%2FSkylineAlgorithmTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SlimeNull","download_url":"https://codeload.github.com/SlimeNull/SkylineAlgorithmTest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlimeNull%2FSkylineAlgorithmTest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278327165,"owners_count":25968895,"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-10-04T02:00:05.491Z","response_time":63,"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":"2025-05-17T10:09:21.226Z","updated_at":"2025-10-04T14:41:31.216Z","avatar_url":"https://github.com/SlimeNull.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SkylineAlgorithmTest\n\n基于天空线(可能?)的二维打包算法, 和正常的二维打包不同的是, 此打包过程并未指定 \"包\" 的大小, 而是无限的控件, 矩形尽可能的紧凑布局, 保持近似方形, 占用更小的空间.\n\n![](/Assets/preview.png)\n\n## 如何使用\n\n下载当前仓库中的 RectSpace.cs 文件, 它是布局算法的核心, 然后放到你的项目中. 初始化 RectSpace 对象实例, 并调用 Layout 方法:\n\n```cs\nbool Layout(int width, int height, out int x, out int y);\n```\n\n通过 RectSpace 的 Width 和 Height 属性可以获取当前已完成布局内容所占空间的外接矩形宽高. 通过 Rectangles 属性可以访问已经完成布局的所有矩形.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslimenull%2Fskylinealgorithmtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslimenull%2Fskylinealgorithmtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslimenull%2Fskylinealgorithmtest/lists"}