2023-02-05 17:59:22 +01:00
|
|
|
import { round } from 'shared/utils'
|
2023-02-09 21:39:19 -06:00
|
|
|
import { XrayAttributes } from './attributes'
|
2023-02-05 17:59:22 +01:00
|
|
|
|
2023-05-19 16:31:28 +02:00
|
|
|
export const XrayPoint = ({ pointName, partName, draft, t }) => null
|
|
|
|
/*{
|
2023-02-05 17:59:22 +01:00
|
|
|
const point = draft?.parts?.[partName]?.points?.[pointName]
|
|
|
|
|
|
|
|
return point ? (
|
|
|
|
<Ul>
|
|
|
|
{['x', 'y'].map((coord) => (
|
|
|
|
<Li key={coord}>
|
|
|
|
<NoSumDiv>
|
|
|
|
<Deg />
|
|
|
|
<span className="font-bold mr-2">{coord} =</span>
|
|
|
|
<span>{round(point[coord])}</span>
|
|
|
|
</NoSumDiv>
|
|
|
|
</Li>
|
|
|
|
))}
|
2023-02-09 21:39:19 -06:00
|
|
|
<XrayAttributes attr={point.attributes} t={t} />
|
2023-02-05 17:59:22 +01:00
|
|
|
</Ul>
|
|
|
|
) : null
|
|
|
|
}
|
2023-05-19 16:31:28 +02:00
|
|
|
*/
|