mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Re-factor the CSS_PIXELS_PER_INCH
/PDF_PIXELS_PER_INCH
exports (PR 13991 follow-up)
For improved maintainability, since these constants are being exposed in the official API, this patch moves them into an Object instead.
This commit is contained in:
parent
bd51bbfd16
commit
0e54f568fb
7 changed files with 18 additions and 20 deletions
|
@ -20,17 +20,16 @@
|
|||
const {
|
||||
AnnotationLayer,
|
||||
AnnotationMode,
|
||||
CSS_PIXELS_PER_INCH,
|
||||
getDocument,
|
||||
GlobalWorkerOptions,
|
||||
PDF_PIXELS_PER_INCH,
|
||||
PixelsPerInch,
|
||||
renderTextLayer,
|
||||
XfaLayer,
|
||||
} = pdfjsLib;
|
||||
const { SimpleLinkService } = pdfjsViewer;
|
||||
|
||||
const WAITING_TIME = 100; // ms
|
||||
const PDF_TO_CSS_UNITS = CSS_PIXELS_PER_INCH / PDF_PIXELS_PER_INCH;
|
||||
const PDF_TO_CSS_UNITS = PixelsPerInch.CSS / PixelsPerInch.PDF;
|
||||
const CMAP_URL = "/build/generic/web/cmaps/";
|
||||
const CMAP_PACKED = true;
|
||||
const STANDARD_FONT_DATA_URL = "/build/generic/web/standard_fonts/";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue