@bimenergy/construction-display

Components and utils to visualize constructions and materials.

Usage no npm install needed!

<script type="module">
  import bimenergyConstructionDisplay from 'https://cdn.skypack.dev/@bimenergy/construction-display';
</script>

README

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,
  }}
/>