{"id":19522165,"url":"https://github.com/captaincodeman/dry-stone-layout","last_synced_at":"2025-04-26T09:32:05.616Z","repository":{"id":58246662,"uuid":"83910528","full_name":"CaptainCodeman/dry-stone-layout","owner":"CaptainCodeman","description":"Masonry-like layout with no gaps","archived":false,"fork":false,"pushed_at":"2019-02-23T12:32:59.000Z","size":3952,"stargazers_count":15,"open_issues_count":3,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T10:33:39.571Z","etag":null,"topics":["layout","masonry","polymer","polymer-element","webcomponents"],"latest_commit_sha":null,"homepage":null,"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/CaptainCodeman.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":"2017-03-04T17:14:08.000Z","updated_at":"2019-07-02T20:15:34.000Z","dependencies_parsed_at":"2022-08-31T00:21:55.246Z","dependency_job_id":null,"html_url":"https://github.com/CaptainCodeman/dry-stone-layout","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fdry-stone-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fdry-stone-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fdry-stone-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fdry-stone-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptainCodeman","download_url":"https://codeload.github.com/CaptainCodeman/dry-stone-layout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250967217,"owners_count":21515562,"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":["layout","masonry","polymer","polymer-element","webcomponents"],"created_at":"2024-11-11T00:37:28.983Z","updated_at":"2025-04-26T09:32:05.222Z","avatar_url":"https://github.com/CaptainCodeman.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on Vaadin  Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/CaptainCodemandry-stone-layout)\n[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/CaptainCodemandry-stone-layout.svg)](https://vaadin.com/directory/component/CaptainCodemandry-stone-layout)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/CaptainCodeman/dry-stone-layout)\n\n_[Demo and API docs](http://captaincodeman.github.io/dry-stone-layout/)_\n\n# \\\u003cdry-stone-layout\\\u003e\n\n`dry-stone-layout` is a layout element that creates a masonry-like layout with no gaps\nperfect for responsive image galleries. If you've ever seen dry-stone walls in the UK,\nyou'll understand the name.\n\n![Example](demo/screenshot.png)\n\nBased on these previous ideas:\n* [Algorithm for a perfectly balanced photo gallery](https://medium.com/@jtreitz/the-algorithm-for-a-perfectly-balanced-photo-gallery-914c94a5d8af#.8qss863p6)\n* [Google Plus image layout algorithm](http://blog.vjeux.com/2012/image/image-layout-algorithm-google-plus.html)\n* [Packing images in a grid](http://fangel.github.io/packing-images-in-a-grid/)\n\n\u003c!---\n```\n\u003ccustom-element-demo\u003e\n  \u003ctemplate\u003e\n    \u003cscript src=\"../webcomponentsjs/webcomponents-lite.js\"\u003e\u003c/script\u003e\n    \u003clink rel=\"import\" href=\"dry-stone-layout.html\"\u003e\n    \u003cnext-code-block\u003e\u003c/next-code-block\u003e\n  \u003c/template\u003e\n\u003c/custom-element-demo\u003e\n```\n--\u003e\n```html\n\u003cdry-stone-layout target-height=\"90\" spacing=\"1\"\u003e\n  \u003cimg src=\"demo/14117348070_bbf190b521_m.jpg\" width=\"240\" height=\"163\"\u003e\n  \u003cimg src=\"demo/28738913666_d7f288ae25_m.jpg\" width=\"240\" height=\"180\"\u003e\n  \u003cimg src=\"demo/28808871375_dc652d8972_m.jpg\" width=\"160\" height=\"240\"\u003e\n  \u003cimg src=\"demo/31782510030_579cb5119a_m.jpg\" width=\"240\" height=\"179\"\u003e\n  \u003cimg src=\"demo/32039394161_2cfc04b72a_m.jpg\" width=\"180\" height=\"240\"\u003e\n  \u003cimg src=\"demo/32061810663_2249492d02_m.jpg\" width=\"240\" height=\"162\"\u003e\n  \u003cimg src=\"demo/32357716254_42aa3b0663_m.jpg\" width=\"240\" height=\"159\"\u003e\n  \u003cimg src=\"demo/28686254682_185a028e2e_m.jpg\" width=\"159\" height=\"240\"\u003e\n  \u003cimg src=\"demo/32260967565_7f88cb6a4c_m.jpg\" width=\"240\" height=\"171\"\u003e\n  \u003cimg src=\"demo/32186892504_d99b0ffc1e_m.jpg\" width=\"240\" height=\"159\"\u003e\n  \u003cimg src=\"demo/32363556052_87007c3440_m.jpg\" width=\"240\" height=\"158\"\u003e\n  \u003cimg src=\"demo/32400954515_cdb6b12bf2_m.jpg\" width=\"158\" height=\"240\"\u003e\n  \u003cimg src=\"demo/32873865786_1c825895f3_m.jpg\" width=\"240\" height=\"145\"\u003e\n  \u003cimg src=\"demo/33001221391_6afee89be5_m.jpg\" width=\"240\" height=\"159\"\u003e\n  \u003cimg src=\"demo/33186065675_95b54548da_m.jpg\" width=\"240\" height=\"120\"\u003e\n\u003c/dry-stone-layout\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincodeman%2Fdry-stone-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptaincodeman%2Fdry-stone-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincodeman%2Fdry-stone-layout/lists"}