Skip to content

FlexBox(plane, params) ⇒ None ​

CSS Inspired Flexbox

ParamTypeDescription
planeTHREE.Object3DContainer Plane object which children elements conform to
paramsObjectOptional dictionary for X/Y Scrolling, element radius and padding
js
let params = {
	enabled: true,
	padding: 0.591,
	roundedRadius: 0.053,
	width: 0.324,
	direction: 'Row',
	height: 0.324,
	YScroll: true,
	XScroll: false,
	rounded: true,
}

UI.FlexBox(planeObject, params)