Skip to content

Commit 9aa1ce8

Browse files
committed
Move the PagesMapper class into its own file
The `PagesMapper` class currently makes up one third of the `src/display/display_utils.js` file size, and since its introduction it's grown (a fair bit) in size. Note that the intention with files such as `src/display/display_utils.js` was to have somewhere to place functionality too small/simple to deserve its own file.
1 parent 79df166 commit 9aa1ce8

3 files changed

Lines changed: 477 additions & 461 deletions

File tree

src/display/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import {
4747
deprecated,
4848
isDataScheme,
4949
isValidFetchUrl,
50-
PagesMapper,
5150
PageViewport,
5251
RenderingCancelledException,
5352
StatTimer,
@@ -82,6 +81,7 @@ import { DOMWasmFactory } from "display-wasm_factory";
8281
import { GlobalWorkerOptions } from "./worker_options.js";
8382
import { Metadata } from "./metadata.js";
8483
import { OptionalContentConfig } from "./optional_content_config.js";
84+
import { PagesMapper } from "./pages_mapper.js";
8585
import { PDFDataTransportStream } from "./transport_stream.js";
8686
import { PDFFetchStream } from "display-fetch_stream";
8787
import { PDFNetworkStream } from "display-network";

0 commit comments

Comments
 (0)