fix(annotations): show annotations when entering annotate mode + restore documentFileHash
- PdfViewer: add $effect that forces showAnnotations=true when annotateMode becomes true, so hiding annotations before drawing no longer breaks drawing - DocumentViewer: restore missing fileHash field on Doc type and pass documentFileHash to PdfViewer (lost when rebase dropped the merge commit) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -277,6 +277,10 @@ $effect(() => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$effect(() => {
|
||||||
|
if (annotateMode) showAnnotations = true;
|
||||||
|
});
|
||||||
|
|
||||||
function prevPage() {
|
function prevPage() {
|
||||||
if (currentPage > 1) currentPage -= 1;
|
if (currentPage > 1) currentPage -= 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user