Merge pull request #16543 from Snuffleupagus/limit-more-to-GENERIC
Limit more code to GENERIC builds
This commit is contained in:
commit
a37f7d2477
@ -1552,6 +1552,9 @@ class PDFPageProxy {
|
|||||||
annotationMode = AnnotationMode.ENABLE,
|
annotationMode = AnnotationMode.ENABLE,
|
||||||
printAnnotationStorage = null,
|
printAnnotationStorage = null,
|
||||||
} = {}) {
|
} = {}) {
|
||||||
|
if (typeof PDFJSDev !== "undefined" && !PDFJSDev.test("GENERIC")) {
|
||||||
|
throw new Error("Not implemented: getOperatorList");
|
||||||
|
}
|
||||||
function operatorListChanged() {
|
function operatorListChanged() {
|
||||||
if (intentState.operatorList.lastChunk) {
|
if (intentState.operatorList.lastChunk) {
|
||||||
intentState.opListReadCapability.resolve(intentState.operatorList);
|
intentState.opListReadCapability.resolve(intentState.operatorList);
|
||||||
|
3245
src/display/svg.js
3245
src/display/svg.js
File diff suppressed because it is too large
Load Diff
@ -69,7 +69,6 @@ import { AnnotationEditorLayer } from "./display/editor/annotation_editor_layer.
|
|||||||
import { AnnotationEditorUIManager } from "./display/editor/tools.js";
|
import { AnnotationEditorUIManager } from "./display/editor/tools.js";
|
||||||
import { AnnotationLayer } from "./display/annotation_layer.js";
|
import { AnnotationLayer } from "./display/annotation_layer.js";
|
||||||
import { GlobalWorkerOptions } from "./display/worker_options.js";
|
import { GlobalWorkerOptions } from "./display/worker_options.js";
|
||||||
import { SVGGraphics } from "./display/svg.js";
|
|
||||||
import { XfaLayer } from "./display/xfa_layer.js";
|
import { XfaLayer } from "./display/xfa_layer.js";
|
||||||
|
|
||||||
/* eslint-disable-next-line no-unused-vars */
|
/* eslint-disable-next-line no-unused-vars */
|
||||||
@ -79,6 +78,11 @@ const pdfjsVersion =
|
|||||||
const pdfjsBuild =
|
const pdfjsBuild =
|
||||||
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_BUILD") : void 0;
|
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_BUILD") : void 0;
|
||||||
|
|
||||||
|
const SVGGraphics =
|
||||||
|
typeof PDFJSDev !== "undefined" && PDFJSDev.test("GENERIC")
|
||||||
|
? require("./display/svg.js").SVGGraphics
|
||||||
|
: null;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
AbortException,
|
AbortException,
|
||||||
AnnotationEditorLayer,
|
AnnotationEditorLayer,
|
||||||
|
Loading…
Reference in New Issue
Block a user