mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Move the Default{...}LayerFactory
into a new web/default_factory.js
file
This patch, first of all, removes circular dependencies in the TypeScript definitions. Secondly, it also moves `RenderingStates` into `web/ui_utils.js` to break another type-dependency and directly use the `XfaLayerBuilder` during XFA-printing. Finally, note that this patch *slightly* reduces the size of the default viewer (e.g. in the `MOZCENTRAL` build) by not having to bundle code which is completely unused.
This commit is contained in:
parent
e0dba504d2
commit
e19020c028
21 changed files with 221 additions and 186 deletions
|
@ -14,23 +14,14 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
AnnotationLayerBuilder,
|
||||
DefaultAnnotationLayerFactory,
|
||||
} from "./annotation_layer_builder.js";
|
||||
import {
|
||||
DefaultStructTreeLayerFactory,
|
||||
StructTreeLayerBuilder,
|
||||
} from "./struct_tree_layer_builder.js";
|
||||
import {
|
||||
DefaultTextLayerFactory,
|
||||
TextLayerBuilder,
|
||||
} from "./text_layer_builder.js";
|
||||
import {
|
||||
DefaultXfaLayerFactory,
|
||||
XfaLayerBuilder,
|
||||
} from "./xfa_layer_builder.js";
|
||||
} from "./default_factory.js";
|
||||
import { PDFLinkService, SimpleLinkService } from "./pdf_link_service.js";
|
||||
import { PDFSinglePageViewer, PDFViewer } from "./pdf_viewer.js";
|
||||
import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";
|
||||
import { DownloadManager } from "./download_manager.js";
|
||||
import { EventBus } from "./event_utils.js";
|
||||
import { GenericL10n } from "./genericl10n.js";
|
||||
|
@ -40,6 +31,9 @@ import { PDFHistory } from "./pdf_history.js";
|
|||
import { PDFPageView } from "./pdf_page_view.js";
|
||||
import { PDFScriptingManager } from "./pdf_scripting_manager.js";
|
||||
import { ProgressBar } from "./ui_utils.js";
|
||||
import { StructTreeLayerBuilder } from "./struct_tree_layer_builder.js";
|
||||
import { TextLayerBuilder } from "./text_layer_builder.js";
|
||||
import { XfaLayerBuilder } from "./xfa_layer_builder.js";
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const pdfjsVersion = PDFJSDev.eval("BUNDLE_VERSION");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue