diff --git a/src/core/annotation.js b/src/core/annotation.js index 4fc2d2aac..4e881c6c9 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -25,7 +25,6 @@ import { BASELINE_FACTOR, FeatureTest, getModificationDate, - IDENTITY_MATRIX, info, isArrayEqual, LINE_DESCENT_FACTOR, @@ -44,6 +43,7 @@ import { getInheritableProperty, getParentToUpdate, getRotationMatrix, + IDENTITY_MATRIX, isNumberArray, lookupMatrix, lookupNormalRect, diff --git a/src/core/core_utils.js b/src/core/core_utils.js index f099f219e..28c4004c0 100644 --- a/src/core/core_utils.js +++ b/src/core/core_utils.js @@ -30,6 +30,8 @@ const PDF_VERSION_REGEXP = /^[1-9]\.\d$/; const MAX_INT_32 = 2 ** 31 - 1; const MIN_INT_32 = -(2 ** 31); +const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; + function getLookupTableFactory(initializer) { let lookup; return function () { @@ -722,6 +724,7 @@ export { getParentToUpdate, getRotationMatrix, getSizeInBytes, + IDENTITY_MATRIX, isAscii, isBooleanArray, isNumberArray, diff --git a/src/core/evaluator.js b/src/core/evaluator.js index c0410288c..6678057f1 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -19,7 +19,6 @@ import { DrawOPS, FONT_IDENTITY_MATRIX, FormatError, - IDENTITY_MATRIX, info, isArrayEqual, normalizeUnicode, @@ -36,6 +35,7 @@ import { compileType3Glyph, FontFlags } from "./fonts_utils.js"; import { ErrorFont, Font } from "./fonts.js"; import { fetchBinaryData, + IDENTITY_MATRIX, isNumberArray, lookupMatrix, lookupNormalRect, diff --git a/src/core/pattern.js b/src/core/pattern.js index 8d9f97d7d..53d98a2d0 100644 --- a/src/core/pattern.js +++ b/src/core/pattern.js @@ -16,7 +16,6 @@ import { assert, FormatError, - IDENTITY_MATRIX, info, MathClamp, unreachable, @@ -24,6 +23,7 @@ import { warn, } from "../shared/util.js"; import { + IDENTITY_MATRIX, isBooleanArray, isNumberArray, lookupMatrix, diff --git a/src/shared/util.js b/src/shared/util.js index 013bdfffa..ad0f8d6a1 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -25,7 +25,6 @@ const isNodeJS = !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"); -const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; // Represent the percentage of the height of a single-line field over @@ -1303,7 +1302,6 @@ export { getUuid, getVerbosityLevel, hexNumbers, - IDENTITY_MATRIX, ImageKind, info, InvalidPDFException,