feat(ui): round stage scale

This commit is contained in:
psychedelicious 2024-06-12 11:48:04 +10:00
parent 2e2e072b0b
commit 2c3ac972e5

View File

@ -12,7 +12,7 @@ export const HeadsUpDisplay = memo(() => {
return ( return (
<Flex flexDir="column" bg="blackAlpha.400" borderBottomEndRadius="base" p={2} minW={64} gap={2}> <Flex flexDir="column" bg="blackAlpha.400" borderBottomEndRadius="base" p={2} minW={64} gap={2}>
<HUDItem label="Scale" value={stageScale} /> <HUDItem label="Scale" value={round(stageScale, 3)} />
<HUDItem label="Layer Count" value={layerCount} /> <HUDItem label="Layer Count" value={layerCount} />
<HUDItem label="BBox Size" value={`${bbox.width}×${bbox.height}`} /> <HUDItem label="BBox Size" value={`${bbox.width}×${bbox.height}`} />
<HUDItem label="BBox Position" value={`${bbox.x}, ${bbox.y}`} /> <HUDItem label="BBox Position" value={`${bbox.x}, ${bbox.y}`} />