Set dimension to fixed 2

This commit is contained in:
Eric NGUYEN 2022-08-30 17:45:00 +02:00
parent ee7c418b24
commit 5aaf1f4745
3 changed files with 11 additions and 5 deletions

View file

@ -18,7 +18,9 @@ function GetDimensionsNodes(root: ContainerModel): React.ReactNode[] {
const xEnd = xStart + width;
const y = (container.properties.y + container.properties.height) + (DIMENSION_MARGIN * (depth + 1));
const strokeWidth = 1;
const text = width.toString();
const text = width
.toFixed(2)
.toString();
dimensions.push(
<Dimension
key={id}