0.0.13 • Published 4 years ago
@bimenergy/construction-display v0.0.13
Construction-display
Components and utils to visualize constructions and materials.
General example
<Construction3dDisplay
key={`${construction.id}-${show2d}`} // Is needed to trigger redrawing (TODO: Should not be needed)
show2d={show2d} // Boolean to switch between 2D and 3D
construction={construction} // The construction object to show. Can be material as well
viewportStyle={{ // Style for the viewport
width: 280,
height: 180,
}}
/>