Make PDF Viewer a native feature
- Move the PDF Viewer plugin into src/lib/features/pdf/ with pdfjs-dist 6.4.299 (minified builds). - A static pdf document type marks PDF files and opens them as tabs. The first PDF tab loads the module. - The worker, the character maps, the fonts, and the decoders come from the app. One worker for each tab. - The toolbar uses IconButton and the shared tooltip, with the new zoom-in, zoom-out, fit-width, and rotate icons. - Add THIRD_PARTY_NOTICES.md for PDF.js and xterm. - Update the tests, the menu inventory, the docs, and UI-059.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<circle cx="12" cy="12" r="9" /><path d="M9.5 9a2.5 2.5 0 1 1 4 2c-1 .6-1.5 1-1.5 3M12 17h.01" />
|
||||
{:else if icon === "puzzle"}
|
||||
<path d="M9 3H4v6a3 3 0 1 1 0 6v5h6a3 3 0 1 1 6 0h4v-6a3 3 0 1 0 0-6V3h-5a3 3 0 1 1-6 0Z" />
|
||||
{:else if icon === "up" || icon === "down" || icon === "kanban" || icon === "link"}
|
||||
{:else if icon === "up" || icon === "down" || icon === "kanban" || icon === "link" || icon === "zoom-in" || icon === "zoom-out"}
|
||||
{@html actionIcons[icon]}
|
||||
{:else if icon === "more"}
|
||||
<circle cx="5" cy="12" r="1" /><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" />
|
||||
@@ -150,6 +150,10 @@
|
||||
<path d="M5 12h14" />
|
||||
{:else if icon === "toggle"}
|
||||
<rect x="3" y="7" width="18" height="10" rx="5" /><circle cx="16" cy="12" r="2.5" />
|
||||
{:else if icon === "fit-width"}
|
||||
<path d="M3 4v16M21 4v16M7 12h10M10 9l-3 3 3 3M14 9l3 3-3 3" />
|
||||
{:else if icon === "rotate"}
|
||||
<path d="M20 7v5h-5" /><path d="M20 12a8 8 0 1 0-2 6" />
|
||||
{/if}
|
||||
</svg>
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user