Freemasonry algorithm for d3.js

Is there a masonry type algorithm for d3.js? (a la isotope http://isotope.metafizzy.co/ )

As a related question (if it is not available), how would I do it? In particular: I know the d3 input / update / output paradigm, but it looks like it considers all points independently of each other. If I wanted to change the layout of the 2nd paragraph, based on where I put the 1st paragraph, how would I do it?

+4
source share
2 answers

The matrix layout may be what you are looking for, here you can see an example: http://bl.ocks.org/mbostock/1009139 edit: just found a second example providing a similar layout: http://bl.ocks.org/ herrstucki / 5684816

+2
source
0
source

Source: https://habr.com/ru/post/1447521/


All Articles