Skip to content

Commit e8750cf

Browse files
committed
Move the XRef from src/core/obj.js and into its own file
The size of the `src/core/obj.js` file has increased slowly over the years, and it also contains a fair amount of *distinct* functionality. In order to improve readability and make it easier to navigate through the code, this patch moves the `XRef` into its own file.
1 parent 24e5ecd commit e8750cf

File tree

3 files changed

+889
-856
lines changed

3 files changed

+889
-856
lines changed

src/core/document.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import {
3434
Util,
3535
warn,
3636
} from "../shared/util.js";
37-
import { Catalog, XRef } from "./obj.js";
3837
import {
3938
clearPrimitiveCaches,
4039
Dict,
@@ -55,12 +54,14 @@ import {
5554
import { NullStream, Stream, StreamsSequenceStream } from "./stream.js";
5655
import { AnnotationFactory } from "./annotation.js";
5756
import { calculateMD5 } from "./crypto.js";
57+
import { Catalog } from "./obj.js";
5858
import { Linearization } from "./parser.js";
5959
import { ObjectLoader } from "./object_loader.js";
6060
import { OperatorList } from "./operator_list.js";
6161
import { PartialEvaluator } from "./evaluator.js";
6262
import { StructTreePage } from "./struct_tree.js";
6363
import { XFAFactory } from "./xfa/factory.js";
64+
import { XRef } from "./xref.js";
6465

6566
const DEFAULT_USER_UNIT = 1.0;
6667
const LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];

0 commit comments

Comments
 (0)