container

marxs.visualization.threejsjson.container(obj, display=None, **kwargs)[source] [edit on github]

‘Recursively output three.js json to describe all elements of a container.

Output of each element can be a dict (if it is a leaf) or a list (if it is a container). We need to flatten the list here to avoid arbitrarily deep recursion.