1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Move the ObjectLoader 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 `ObjectLoader` into its own file.
This commit is contained in:
Jonas Jenwald 2021-04-13 18:25:34 +02:00
parent ebeb3f7999
commit 604cd6d600
4 changed files with 162 additions and 140 deletions

View file

@ -34,7 +34,7 @@ import {
Util,
warn,
} from "../shared/util.js";
import { Catalog, FileSpec, ObjectLoader } from "./obj.js";
import { Catalog, FileSpec } from "./obj.js";
import { collectActions, getInheritableProperty } from "./core_utils.js";
import {
createDefaultAppearance,
@ -50,6 +50,7 @@ import {
RefSet,
} from "./primitives.js";
import { ColorSpace } from "./colorspace.js";
import { ObjectLoader } from "./object_loader.js";
import { OperatorList } from "./operator_list.js";
import { StringStream } from "./stream.js";
import { writeDict } from "./writer.js";