Function Wells

The Wells component is used to group and manage trajectories by the well property. It will automatically calculate of top depths for each wellbore, depending on order and which wellbores are marked as being included.

It simplifies rendering of Wellbore components through the renderWellbore property, which gives usesful data that can be passed to the wellbore component.

<Wells
wellbores={wellbores}
included={included}
selected={selected}
renderWellbore={(wellbore, fromMsl, isSelected) => {
return (
<Wellbore id={wellbore.id} fromMsl={fromMsl} color={isSelected ? 'red' : 'white' }>
{...}
</Wellbore>
)
}}
/>