pdf.js/examples
Jonas Jenwald 76c805f83b [api-minor] Remove the separate enableScripting option in BaseViewer
Prior to PR 13042, when scripting wasn't really possible to use outside of the full viewer, the `enableScripting` option made sense.
However, at this point in time having to both pass in a `PDFScriptingManager`-instance *and* set the `enableScripting`-boolean when creating a `BaseViewer`-instance feels redundant and (mostly) annoying. Hence this patch, which removes the *separate* boolean and always enables scripting when `scriptingManager` is provided.

The relevant "viewer component" examples are also updated (with a comment), but in such a way that scripting support won't just break when used with the current PDF.js releases.
2021-07-29 10:06:03 +02:00
..
browserify Replace *most* cases of var with let/const in the examples/ folder 2021-03-12 17:16:59 +01:00
components [api-minor] Remove the separate enableScripting option in BaseViewer 2021-07-29 10:06:03 +02:00
image_decoders Replace *most* cases of var with let/const in the examples/ folder 2021-03-12 17:16:59 +01:00
learning Add direction: ltr; to the canvases used in examples/learning, to ensure correct text rendering (issue 11457) 2020-01-12 12:25:23 +01:00
mobile-viewer Simplify the animationStarted handling in the mobile-viewer/ example 2021-03-12 17:52:58 +01:00
node Stop encoding the value in the DOMElement.setAttribute method (issue 8558) 2021-06-20 11:55:24 +02:00
svgviewer Replace *most* cases of var with let/const in the examples/ folder 2021-03-12 17:16:59 +01:00
text-only Replace *most* cases of var with let/const in the examples/ folder 2021-03-12 17:16:59 +01:00
webpack Update webpack import instructions 2021-05-28 20:46:56 -04:00
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00