feat(annotation.js): Konfigurierte Beschriftungen

This commit is contained in:
Developer 02
2025-03-24 12:48:28 +01:00
parent 9ae1efb946
commit e9cb49c6a7
5 changed files with 29 additions and 33 deletions

View File

@@ -215,8 +215,10 @@ function getAnnotationParams(leftInInch = 0, topInInch = 0, inchToPointFactor =
var annot = annotParams[key];
annot.width *= inchToPointFactor;
annot.height *= inchToPointFactor;
annot.left = (leftInInch + annot.left) * inchToPointFactor - annot.width / 2;
annot.top = (topInInch + annot.top) * inchToPointFactor - annot.height / 2;
annot.left += leftInInch;
annot.left *= inchToPointFactor;
annot.top += topInInch;
annot.top *= inchToPointFactor;
}
return annotParams;
});