mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 12:53:52 +01:00
show role and origin for faces in the object explorer view
This commit is contained in:
parent
ebec6fb7f5
commit
58f2b1b117
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ function EdgeSection({edge}) {
|
|||
|
||||
function FaceSection({face}) {
|
||||
return <ModelSection type='face' model={face} key={face.id}>
|
||||
|
||||
{(face.productionInfo && face.productionInfo.role) && <Section label={<span>role: {face.productionInfo.role}</span>} />}
|
||||
{(face.productionInfo && face.productionInfo.originatedFromPrimitive) && <Section label={<span>origin: {face.productionInfo.originatedFromPrimitive}</span>} />}
|
||||
<Section label={face.sketchObjects.length ? 'sketch' : <span className={ls.hint}>{'<no sketch assigned>'}</span>}>
|
||||
{face.sketchObjects.map(o => <div key={o.id}>{o.id + ':' + o.sketchPrimitive.constructor.name}</div>)}
|
||||
</Section>
|
||||
|
|
|
|||
Loading…
Reference in a new issue