mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Ensure that all import
and require
statements, in the entire code-base, have a .js
file extension
In order to eventually get rid of SystemJS and start using native `import`s instead, we'll need to provide "complete" file identifiers since otherwise there'll be MIME type errors when attempting to use `import`.
This commit is contained in:
parent
b833f84307
commit
36881e3770
125 changed files with 453 additions and 443 deletions
|
@ -31,22 +31,22 @@ import {
|
|||
stringToPDFString,
|
||||
Util,
|
||||
warn,
|
||||
} from "../shared/util";
|
||||
import { Catalog, ObjectLoader, XRef } from "./obj";
|
||||
import { Dict, isDict, isName, isStream, Ref } from "./primitives";
|
||||
} from "../shared/util.js";
|
||||
import { Catalog, ObjectLoader, XRef } from "./obj.js";
|
||||
import { Dict, isDict, isName, isStream, Ref } from "./primitives.js";
|
||||
import {
|
||||
getInheritableProperty,
|
||||
MissingDataException,
|
||||
XRefEntryException,
|
||||
XRefParseException,
|
||||
} from "./core_utils";
|
||||
import { NullStream, Stream, StreamsSequenceStream } from "./stream";
|
||||
import { AnnotationFactory } from "./annotation";
|
||||
import { calculateMD5 } from "./crypto";
|
||||
import { Linearization } from "./parser";
|
||||
import { OperatorList } from "./operator_list";
|
||||
import { PartialEvaluator } from "./evaluator";
|
||||
import { PDFFunctionFactory } from "./function";
|
||||
} from "./core_utils.js";
|
||||
import { NullStream, Stream, StreamsSequenceStream } from "./stream.js";
|
||||
import { AnnotationFactory } from "./annotation.js";
|
||||
import { calculateMD5 } from "./crypto.js";
|
||||
import { Linearization } from "./parser.js";
|
||||
import { OperatorList } from "./operator_list.js";
|
||||
import { PartialEvaluator } from "./evaluator.js";
|
||||
import { PDFFunctionFactory } from "./function.js";
|
||||
|
||||
const DEFAULT_USER_UNIT = 1.0;
|
||||
const LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue