2022-01-29 21:31:12 +01:00
|
|
|
import { Ul, Li, Details, Summary, NoSumDiv, Deg } from 'shared/components/workbench/menu'
|
|
|
|
import { round } from 'shared/utils.js'
|
|
|
|
import Attributes from './attributes.js'
|
2022-01-29 19:27:14 +01:00
|
|
|
|
2022-01-29 21:31:12 +01:00
|
|
|
const XrayPoint = ({ 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>
|
|
|
|
))}
|
|
|
|
<Attributes attr={point.attributes} />
|
|
|
|
</Ul>
|
|
|
|
)
|
2022-01-29 19:27:14 +01:00
|
|
|
|
|
|
|
export default XrayPoint
|