LaTeX-Workshop/resources/snippetview
2022-03-15 08:00:12 +09:00
..
pdfrenderer.js - Use the height attribute of an img tag to scale an image. 2021-11-06 11:19:21 +09:00
README.md Edit headings levels [skip ci] 2022-03-15 08:00:12 +09:00
snippetpanel.json Remove Snippet Panel to reduce the maintenance burden. 2021-11-08 12:23:50 +09:00
snippetview.css Improve the style of the snippet view and the snippet panel. 2021-08-08 16:55:02 +09:00
snippetview.html Remove Snippet Panel to reduce the maintenance burden. 2021-11-08 12:23:50 +09:00
snippetview.js Load PDF.js inside Snippet View and use it to render the thumbnail of a PDF file. 2021-10-28 07:59:30 +09:00

Overview

snippetpanel.json is generated by dev/createSymbolSvgs.ts. The file includes all the SVG texts to display on the snippet view. It is loaded by the WebView View with fetch.

The content of the tab of TikZ, including SVG texts, is directly written on the HTML file.

PDF.js

We load PDF.js inside the WebView of the Snippet View to render the thumbnails of PDF files for hovers.