1
0
Fork 0
freesewing/sites/shared/components/workbench/menus/ui-settings/path.mjs

36 lines
910 B
JavaScript
Raw Normal View History

//import { formatMm } from 'shared/utils.mjs'
//import { XrayAttributes } from './attributes.mjs'
//import { XrayPathOps } from './path-ops.mjs'
2022-01-29 19:27:14 +01:00
2023-05-19 16:31:28 +02:00
export const XrayPath = ({ pathName, partName, draft, units }) => null
/*{
2022-01-30 15:14:44 +01:00
const path = draft?.parts?.[partName]?.paths?.[pathName]
2022-01-29 18:24:36 +01:00
2022-02-08 20:49:19 +01:00
if (!path) return null
2022-01-30 15:14:44 +01:00
return (
<Ul>
<XrayAttributes attr={path.attributes} />
2022-01-30 15:14:44 +01:00
<Li>
<NoSumDiv>
<Deg />
<span className="font-bold mr-2">path.render =</span>
2022-02-12 15:23:37 +01:00
<span>{JSON.stringify(path.render)}</span>
2022-01-30 15:14:44 +01:00
</NoSumDiv>
</Li>
<Li>
<NoSumDiv>
<Deg />
<span className="font-bold mr-2">path.length() =</span>
<span
dangerouslySetInnerHTML={{
__html: formatMm(path.length(), units),
}}
/>
2022-01-30 15:14:44 +01:00
</NoSumDiv>
</Li>
<XrayPathOps ops={path.ops} />
2022-01-30 15:14:44 +01:00
</Ul>
)
}
2023-05-19 16:31:28 +02:00
*/