[pdf-viewer] Sidebar with page thumbnails
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- accessibility, frontend, performance
Hướng nghiên cứu
The payload names no source files or tests, so start from the requirement checklist and the open questions, which need a design decision before code. Use the vcf-pdf-viewer demos (thumbnails open and thumbnails listener) as reference for the expected behaviour. Done means each checklist item works, the sidebar is keyboard and screen-reader accessible, and the PR records memory and time-to-first-thumbnail for a 500-page document.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Motivation
Part of #7669
Part of vaadin/platform#9815
As a user of a long document, I want small images of the pages, so that one click takes me to the page I need.
Supported by vcf-pdf-viewer add-on: thumnbails open, thumbnails listener.
Requirements
- Toolbar button shows and hides the sidebar.
-
sidebarOpenedboolean property,notify: truefiressidebar-opened-changed. -
sidebarButtonHiddenproperty to toggle the sidebar button visibility. - The sidebar shows one thumbnail for each page, at the start side of the pages.
- The thumbnail of the current page is marked and stays in view.
- Click, Enter or Space on a thumbnail goes to its page.
- The thumbnails have one tab stop. Arrow keys, Home and End move between them.
- Focus moves to the sidebar button when the sidebar closes or a new document loads.
- Only thumbnails near the visible part of the list render. A thumbnail out of view frees its canvas and its pdf.js page data.
- The PR records memory and the time to the first thumbnail for a document with 500 pages.
- VoiceOver, NVDA, JAWS read each thumbnail as "Page N" and announce which one is current.
-
i18nhas the textssidebar,thumbnailsandthumbnailLabel(optional - can usepageLabel)
Out of scope
Related requests to be reported in follow-up issues:
- The outline and the sidebar shown as overlay over the pages of a narrow viewer.
- The page announcement after user activates a thumbnail via
announce().
Open questions
- Is one DOM element for each page fine, or do long documents need a virtual list?
- Do thumbnails share the render queue of the pages, or keep their own loop at a lower priority?
- Does Flow need an event when the user picks a thumbnail?
- Add-on uses
addThumbnailClickedListener()
- Add-on uses
- Ngôn ngữ chính
- JavaScript
- Star
- 585
- Fork
- 105
- Merge trung bình
- 12 giờ 51 phút
- Pull request đã merge (30 ngày)
- 231
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vaadin/web-components
-
bug DX Impact: Low Severity: Major vaadin-date-picker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
vaadin/web-components#12605 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug Impact: High requires new major Severity: Minor v26 vaadin-grid
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
vaadin/web-components#12486 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation internal vaadin-upload
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vaadin/web-components#12114 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
a11y aura vaadin-grid
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
vaadin/web-components#11972 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
refactor theme v26 vaadin-context-menu vaadin-overlay
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vaadin/web-components#11874 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của vaadin/web-components
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
sfbrigade/pocket-gardens#60 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
The print preview leaves writing space short by the margins of hidden headers, footers and solutionsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PreTeXtBook/pretext#3329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
NativeScript/ios#577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
could-have
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
01 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày