Remove unused variables in InkAnnotation.createNewAppearanceStream (issue 16518, PR 16494 follow-up)

This commit is contained in:
Jonas Jenwald 2023-06-04 13:51:24 +02:00
parent a5d0af38f7
commit 046b9050dd

View File

@ -4096,14 +4096,7 @@ class InkAnnotation extends MarkupAnnotation {
}
static async createNewAppearanceStream(annotation, xref, params) {
const { color, rect, rotation, paths, thickness, opacity } = annotation;
const [x1, y1, x2, y2] = rect;
let w = x2 - x1;
let h = y2 - y1;
if (rotation % 180 !== 0) {
[w, h] = [h, w];
}
const { color, rect, paths, thickness, opacity } = annotation;
const appearanceBuffer = [
`${thickness} w 1 J 1 j`,