Merge pull request #16520 from Snuffleupagus/issue-16518

Remove unused variables in `InkAnnotation.createNewAppearanceStream` (issue 16518, PR 16494 follow-up)
This commit is contained in:
Tim van der Meij 2023-06-04 17:43:18 +02:00 committed by GitHub
commit 184cad3daf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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`,