Remove unused variables in InkAnnotation.createNewAppearanceStream
(issue 16518, PR 16494 follow-up)
This commit is contained in:
parent
a5d0af38f7
commit
046b9050dd
@ -4096,14 +4096,7 @@ class InkAnnotation extends MarkupAnnotation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static async createNewAppearanceStream(annotation, xref, params) {
|
static async createNewAppearanceStream(annotation, xref, params) {
|
||||||
const { color, rect, rotation, paths, thickness, opacity } = annotation;
|
const { color, rect, 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 appearanceBuffer = [
|
const appearanceBuffer = [
|
||||||
`${thickness} w 1 J 1 j`,
|
`${thickness} w 1 J 1 j`,
|
||||||
|
Loading…
Reference in New Issue
Block a user