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

Move the FileSpec 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 `FileSpec` into its own file.
This commit is contained in:
Jonas Jenwald 2021-04-13 18:25:48 +02:00
parent 6a935682fd
commit e02d17da93
3 changed files with 117 additions and 95 deletions

View file

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