Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

M6: doc comments on every Panel variant

Eric Kadenae69aea62734
diff --git a/crates/js/src/lib.rs b/crates/js/src/lib.rs
index 3299f9d6e..4a4b5e64b 100644
--- a/crates/js/src/lib.rs
+++ b/crates/js/src/lib.rs
@@ -167,11 +167,15 @@ pub enum Request {
/// A side panel a script can show or hide (`app.execMenuItem("ShowHideFileAttachment")`, …).
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Panel {
+ /// The document's bookmarks (outline).
Bookmarks,
/// Page thumbnails.
Pages,
+ /// The files attached to the document.
Attachments,
+ /// The document's signatures and their validity.
Signatures,
+ /// The document's layers (optional content).
Layers,
}