Skip to content

Commit

Permalink
Merge pull request #16520 from Snuffleupagus/issue-16518
Browse files Browse the repository at this point in the history
Remove unused variables in `InkAnnotation.createNewAppearanceStream` (issue 16518, PR 16494 follow-up)
  • Loading branch information
timvandermeij authored Jun 4, 2023
2 parents 8a5af64 + 046b905 commit 184cad3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/core/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 184cad3

Please sign in to comment.