1
0
Fork 0

wip(shared): Work on workbench views

This commit is contained in:
joostdecock 2023-05-31 17:56:58 +02:00
parent cab7f5d2c5
commit c53ff25053
25 changed files with 386 additions and 96 deletions

View file

@ -0,0 +1,35 @@
//import { formatMm } from 'shared/utils.mjs'
//import { XrayAttributes } from './attributes.mjs'
//import { XrayPathOps } from './path-ops.mjs'
export const XrayPath = ({ pathName, partName, draft, units }) => null
/*{
const path = draft?.parts?.[partName]?.paths?.[pathName]
if (!path) return null
return (
<Ul>
<XrayAttributes attr={path.attributes} />
<Li>
<NoSumDiv>
<Deg />
<span className="font-bold mr-2">path.render =</span>
<span>{JSON.stringify(path.render)}</span>
</NoSumDiv>
</Li>
<Li>
<NoSumDiv>
<Deg />
<span className="font-bold mr-2">path.length() =</span>
<span
dangerouslySetInnerHTML={{
__html: formatMm(path.length(), units),
}}
/>
</NoSumDiv>
</Li>
<XrayPathOps ops={path.ops} />
</Ul>
)
}
*/