admin管理员组文章数量:1432384
this is implemented in python (more tests)
I'm interested in a result like in the image above (implemented in python) using the Packery.js jQuery plugin for js/DOM based bin packing. Packery is built to work from left to right, top to bottom, but I wonder if using a circular bounding box rather the viewport as its boundaries could do the trick.
Ultimately I want to use this to present many image thumbnails with a wide array of sizes and proportions.
Any code examples or other pointers would be highly appreciated.
Here's a CodePen for you to play with:
this is implemented in python (more tests)
I'm interested in a result like in the image above (implemented in python) using the Packery.js jQuery plugin for js/DOM based bin packing. Packery is built to work from left to right, top to bottom, but I wonder if using a circular bounding box rather the viewport as its boundaries could do the trick.
Ultimately I want to use this to present many image thumbnails with a wide array of sizes and proportions.
Any code examples or other pointers would be highly appreciated.
Here's a CodePen for you to play with:
Share
Improve this question
edited Sep 11, 2019 at 13:23
Glorfindel
22.7k13 gold badges90 silver badges120 bronze badges
asked Jan 23, 2014 at 11:59
MushonMushon
618 bronze badges
1
- Please edit the externally hosted code into the post; doing so will make sure it remains useful even if the link breaks. My script is not allowed to do this because of potential licensing problems. – Glorfindel Commented Sep 11, 2019 at 13:23
1 Answer
Reset to default 10 +25Yes! See https://github./metafizzy/packery/issues/62
In the works.
Development is on the center-out-corner branch. It's in an experimental phase. While this is a neat visual demo, I'm unsure how practical its application is.
本文标签: javascriptCan I hack Packeryjs to create circular bin packingStack Overflow
版权声明:本文标题:javascript - Can I hack Packery.js to create circular bin packing? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745596798a2665530.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论