Merge pull request #12998 from Snuffleupagus/renderInteractiveForms-defaults
Simplify the default value handling of `renderInteractiveForms` in the viewer components
This commit is contained in:
commit
1d3af89cae
@ -2012,10 +2012,7 @@ class AnnotationLayer {
|
||||
linkService: parameters.linkService,
|
||||
downloadManager: parameters.downloadManager,
|
||||
imageResourcesPath: parameters.imageResourcesPath || "",
|
||||
renderInteractiveForms:
|
||||
typeof parameters.renderInteractiveForms === "boolean"
|
||||
? parameters.renderInteractiveForms
|
||||
: true,
|
||||
renderInteractiveForms: parameters.renderInteractiveForms !== false,
|
||||
svgFactory: new DOMSVGFactory(),
|
||||
annotationStorage:
|
||||
parameters.annotationStorage || new AnnotationStorage(),
|
||||
|
@ -188,10 +188,7 @@ class BaseViewer {
|
||||
? options.textLayerMode
|
||||
: TextLayerMode.ENABLE;
|
||||
this.imageResourcesPath = options.imageResourcesPath || "";
|
||||
this.renderInteractiveForms =
|
||||
typeof options.renderInteractiveForms === "boolean"
|
||||
? options.renderInteractiveForms
|
||||
: true;
|
||||
this.renderInteractiveForms = options.renderInteractiveForms !== false;
|
||||
this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;
|
||||
this.renderer = options.renderer || RendererType.CANVAS;
|
||||
this.enableWebGL = options.enableWebGL || false;
|
||||
|
@ -94,10 +94,7 @@ class PDFPageView {
|
||||
? options.textLayerMode
|
||||
: TextLayerMode.ENABLE;
|
||||
this.imageResourcesPath = options.imageResourcesPath || "";
|
||||
this.renderInteractiveForms =
|
||||
typeof options.renderInteractiveForms === "boolean"
|
||||
? options.renderInteractiveForms
|
||||
: true;
|
||||
this.renderInteractiveForms = options.renderInteractiveForms !== false;
|
||||
this.useOnlyCssZoom = options.useOnlyCssZoom || false;
|
||||
this.maxCanvasPixels = options.maxCanvasPixels || MAX_CANVAS_PIXELS;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user