Skip to content

Commit

Permalink
Preserve unknown position properties when merging ink annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Oct 2, 2024
1 parent 97265ce commit fddb047
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/annotation-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ class AnnotationManager {
let width = [...widthMap.entries()].sort((a, b) => b[1] - a[1])[0][0];

annotation.position = {
pageIndex: annotations[0].position.pageIndex,
// Preserve pageIndex and potentially other unknown properties
...annotations[0].position,
width,
paths: annotations.flatMap(x => x.position.paths)
};
Expand Down

0 comments on commit fddb047

Please sign in to comment.