Jonas Jenwald
c4c8227d20
Re-factor updating of thumbnails in the PDFSidebar
-class
...
This patch does two things:
- Moves the updating of thumbnails into `web/app.js`, via a new `PDFSidebar` callback-function, to avoid having to include otherwise unnecessary parameters when initializing a `PDFSidebar`-instance.
- Only attempt to generate thumbnail-images from pages that are *cached* in the viewer. Note that only pages that exist in the `PDFPageViewBuffer`-instance can be rendered, hence it's not actually meaningful to check every single page when updating the thumbnails.
For large documents, with thousands of pages, this should be a tiny bit more efficient when e.g. opening the sidebar since we no longer need to check pages that we know have not been rendered.
2023-05-28 17:54:34 +02:00
..
2023-05-05 15:52:15 +02:00
2015-01-26 16:44:45 +01:00
2023-04-19 20:47:57 +02:00
2023-02-01 17:53:44 +01:00
2023-04-03 09:05:07 +02:00
2023-04-19 15:32:10 +02:00
2022-12-14 12:23:24 +01:00
2023-05-10 14:10:23 +02:00
2023-05-28 17:54:34 +02:00
2022-06-13 10:47:37 +02:00
2015-08-14 18:59:55 +02:00
2023-05-18 18:55:41 +02:00
2011-07-05 10:53:57 -07:00
2023-04-19 20:47:57 +02:00
2022-12-01 15:43:17 +01:00
2023-05-05 15:52:15 +02:00
2023-04-23 15:41:02 +02:00
2023-04-14 10:02:28 +02:00
2023-05-15 17:18:14 +02:00
2022-01-23 19:53:01 +01:00
2022-12-03 12:52:36 +01:00
2021-12-15 23:14:25 +01:00
2022-06-12 13:07:03 +02:00
2023-05-26 15:30:22 +02:00
2023-03-23 12:57:10 +01:00
2023-05-07 15:00:42 +02:00
2023-04-29 13:43:24 +02:00
2023-05-21 09:54:24 +02:00
2023-02-05 14:12:32 +01:00
2023-04-29 13:43:24 +02:00
2023-05-11 12:04:14 +02:00
2023-05-26 13:59:39 +02:00
2023-04-17 14:31:23 +02:00
2022-04-05 14:13:20 +02:00
2022-09-01 17:34:24 +02:00
2023-05-26 15:30:22 +02:00
2023-04-29 13:43:24 +02:00
2023-04-28 09:28:21 +02:00
2022-10-30 21:55:44 +01:00
2023-04-23 15:41:02 +02:00
2021-12-15 23:17:08 +01:00
2023-04-29 13:43:24 +02:00
2023-05-28 17:54:34 +02:00
2022-09-08 12:38:17 +02:00
2023-05-26 15:30:22 +02:00
2023-05-26 15:30:22 +02:00
2022-12-18 13:26:54 +01:00
2023-04-25 11:07:05 +02:00
2023-05-28 17:54:34 +02:00
2019-12-26 12:34:24 +01:00
2023-04-17 12:04:34 +02:00
2022-06-12 13:07:03 +02:00
2023-05-11 12:04:14 +02:00
2023-02-07 15:33:01 +01:00
2023-05-24 12:31:27 +02:00
2022-08-14 11:38:17 +02:00
2023-04-17 14:31:23 +02:00
2023-04-20 14:14:33 +02:00
2023-04-25 11:07:05 +02:00
2023-05-22 16:43:09 +02:00
2023-04-13 13:18:37 +02:00
2023-05-11 12:04:14 +02:00
2020-03-21 13:55:06 +01:00
2023-05-15 17:18:14 +02:00
2023-05-23 17:15:21 +02:00
2023-05-05 15:52:15 +02:00
2017-05-31 09:22:25 -05:00
2022-03-28 11:36:29 +02:00
2023-03-14 10:12:42 +01:00
2016-02-14 13:23:34 +01:00
2017-05-31 09:22:25 -05:00
2023-05-04 12:17:49 +02:00
2023-05-23 17:15:21 +02:00
2023-05-12 10:00:12 +02:00
2023-04-17 23:32:04 +02:00
2022-12-11 13:08:23 +01:00