feat(annotation.js): Konfigurierte Beschriftungen
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user