mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Merge pull request #19701 from Snuffleupagus/enableAutoLinking-true
[api-minor] Enable `enableAutoLinking` by default
This commit is contained in:
commit
74ab29544e
4 changed files with 8 additions and 8 deletions
|
@ -202,7 +202,7 @@ const defaultOptions = {
|
|||
},
|
||||
enableAutoLinking: {
|
||||
/** @type {boolean} */
|
||||
value: typeof PDFJSDev === "undefined" || PDFJSDev.test("MOZCENTRAL"),
|
||||
value: true,
|
||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||
},
|
||||
enableDetailCanvas: {
|
||||
|
|
|
@ -95,7 +95,7 @@ import { XfaLayerBuilder } from "./xfa_layer_builder.js";
|
|||
* @property {boolean} [enableHWA] - Enables hardware acceleration for
|
||||
* rendering. The default value is `false`.
|
||||
* @property {boolean} [enableAutoLinking] - Enable creation of hyperlinks from
|
||||
* text that look like URLs. The default value is `false`.
|
||||
* text that look like URLs. The default value is `true`.
|
||||
*/
|
||||
|
||||
const DEFAULT_LAYER_PROPERTIES =
|
||||
|
@ -130,7 +130,7 @@ class PDFPageView extends BasePDFPageView {
|
|||
|
||||
#canvasWrapper = null;
|
||||
|
||||
#enableAutoLinking = false;
|
||||
#enableAutoLinking = true;
|
||||
|
||||
#hasRestrictedScaling = false;
|
||||
|
||||
|
@ -188,7 +188,7 @@ class PDFPageView extends BasePDFPageView {
|
|||
this.maxCanvasPixels =
|
||||
options.maxCanvasPixels ?? AppOptions.get("maxCanvasPixels");
|
||||
this.maxCanvasDim = options.maxCanvasDim || AppOptions.get("maxCanvasDim");
|
||||
this.#enableAutoLinking = options.enableAutoLinking || false;
|
||||
this.#enableAutoLinking = options.enableAutoLinking !== false;
|
||||
|
||||
this.l10n = options.l10n;
|
||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
||||
|
|
|
@ -137,7 +137,7 @@ function isValidAnnotationEditorMode(mode) {
|
|||
* @property {boolean} [supportsPinchToZoom] - Enable zooming on pinch gesture.
|
||||
* The default value is `true`.
|
||||
* @property {boolean} [enableAutoLinking] - Enable creation of hyperlinks from
|
||||
* text that look like URLs. The default value is `false`.
|
||||
* text that look like URLs. The default value is `true`.
|
||||
*/
|
||||
|
||||
class PDFPageViewBuffer {
|
||||
|
@ -238,7 +238,7 @@ class PDFViewer {
|
|||
|
||||
#enableNewAltTextWhenAddingImage = false;
|
||||
|
||||
#enableAutoLinking = false;
|
||||
#enableAutoLinking = true;
|
||||
|
||||
#eventAbortController = null;
|
||||
|
||||
|
@ -340,7 +340,7 @@ class PDFViewer {
|
|||
this.#mlManager = options.mlManager || null;
|
||||
this.#enableHWA = options.enableHWA || false;
|
||||
this.#supportsPinchToZoom = options.supportsPinchToZoom !== false;
|
||||
this.#enableAutoLinking = options.enableAutoLinking || false;
|
||||
this.#enableAutoLinking = options.enableAutoLinking !== false;
|
||||
|
||||
this.defaultRenderingQueue = !options.renderingQueue;
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue