Programmatic Masonry / Space-FInding Layout in Actionscript

给你一囗甜甜゛ 提交于 2019-12-24 16:03:06

问题


Can anyone point me to a good Actionscript 3 class that handles "masonry" style layouts ala the ted.com homepage?

Short of finished code, can anyone describe / summarize an efficient algorithm that handles this effect? Searches turn up arcane articles about kd-trees and other such stuff that's way over my head.

The jQuery Masonry plugin looks great, but I tried reverse engineering it without much success.

Thanks in advance!


回答1:


this doesn't do exactly what you want but it's somewhat in the way:

http://wonderfl.net/c/bW3T

http://wonderfl.net/c/iFpf

http://wonderfl.net/c/aXkO

having 3 or 4 fixed sizes for boxes will help for sure :)



来源:https://stackoverflow.com/questions/4929841/programmatic-masonry-space-finding-layout-in-actionscript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!