Set dimensions text above the dimension

This commit is contained in:
Eric NGUYEN 2022-09-14 11:53:31 +02:00
parent 8653be0172
commit 9f58203c86

View file

@ -82,7 +82,7 @@ export function Dimension(props: IDimensionProps): JSX.Element {
x={(props.xStart + props.xEnd) / 2} x={(props.xStart + props.xEnd) / 2}
y={props.yStart} y={props.yStart}
style={{ style={{
transform: `scale(${1 / scale}) translateX(-50%)`, transform: `scale(${1 / scale}) translateX(-50%) translateY(-100%)`,
transformBox: 'fill-box' transformBox: 'fill-box'
}} }}
> >