wip(shared): Work on workbench views
This commit is contained in:
parent
cab7f5d2c5
commit
c53ff25053
25 changed files with 386 additions and 96 deletions
35
sites/shared/components/workbench/menus/ui-settings/path.mjs
Normal file
35
sites/shared/components/workbench/menus/ui-settings/path.mjs
Normal 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>
|
||||
)
|
||||
}
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue