1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Move NameTree/NumberTree 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 `NameTree`/`NumberTree` into its own file.
This commit is contained in:
Jonas Jenwald 2021-04-13 18:26:02 +02:00
parent 92141e0468
commit 24e5ecdf76
3 changed files with 172 additions and 153 deletions

View file

@ -15,7 +15,7 @@
import { isDict, isName, isRef } from "./primitives.js";
import { isString, stringToPDFString, warn } from "../shared/util.js";
import { NumberTree } from "./obj.js";
import { NumberTree } from "./name_number_tree.js";
const MAX_DEPTH = 40;