1. 15 Sep, 2021 4 commits
    • Robert Knight's avatar
      Prevent sidebar controls overlapping scrollbar in PDFs · 32cea8cc
      Robert Knight authored
      When the sidebar is closed or there is not enough room to show the
      sidebar alongside the PDF content, reserve space for the sidebar's
      toolbar and bucket bar. This fixes an issue where the sidebar's controls
      would overlap the document's scrollbar, making scrolling the PDF less
      convenient, especially in long documents.
      
      This also removes the need for some CSS overrides that reposition
      elements in PDF.js's toolbar. By ensuring that the `<body>` does not
      overlap the sidebar controls, the PDF.js toolbar which is contained
      within the body doesn't either.
      
      Fixes #3759
      32cea8cc
    • Robert Knight's avatar
      Remove vestigial `undefined` from map value type · 4ecde083
      Robert Knight authored
      This is no longer needed after the `Record<K, V>` => `Map<K, V>` change.
      4ecde083
    • Robert Knight's avatar
      Fix map lookup · e822a31c
      Robert Knight authored
      I expected TypeScript to generate an error for this obvious mistake, but
      it seems that this only happens if `noImplicitAny` is enabled.
      e822a31c
    • Robert Knight's avatar
      Use maps for PDF text and anchoring caches · ecb9b47c
      Robert Knight authored
      Using maps is a little faster and avoids the need for `hasOwnProperty`
      checks. The quote position cache has been converted to a single level
      map as this is more ergonomic to work with and the second level maps
      almost always had exactly one entry in them.
      ecb9b47c
  2. 14 Sep, 2021 10 commits
  3. 13 Sep, 2021 17 commits
  4. 09 Sep, 2021 2 commits
  5. 08 Sep, 2021 7 commits