mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Refactor PDFViewer
to extend an abstract BaseViewer
class
This patch introduces an abstract `BaseViewer` class, that the existing `PDFViewer` then extends. *Please note:* This lays the necessary foundation for the next patch.
This commit is contained in:
parent
d7198d3e17
commit
5fa9cca8dd
5 changed files with 138 additions and 78 deletions
|
@ -25,6 +25,13 @@ const MAX_AUTO_SCALE = 1.25;
|
|||
const SCROLLBAR_PADDING = 40;
|
||||
const VERTICAL_PADDING = 5;
|
||||
|
||||
const PresentationModeState = {
|
||||
UNKNOWN: 0,
|
||||
NORMAL: 1,
|
||||
CHANGING: 2,
|
||||
FULLSCREEN: 3,
|
||||
};
|
||||
|
||||
const RendererType = {
|
||||
CANVAS: 'canvas',
|
||||
SVG: 'svg',
|
||||
|
@ -661,6 +668,7 @@ export {
|
|||
VERTICAL_PADDING,
|
||||
isValidRotation,
|
||||
cloneObj,
|
||||
PresentationModeState,
|
||||
RendererType,
|
||||
mozL10n,
|
||||
NullL10n,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue