diff options
author | Andrew Dolgov <[email protected]> | 2023-04-11 07:19:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-11 07:19:49 +0300 |
commit | 8ce9ca1d928bda4b2721dfda03dbf2831b12626c (patch) | |
tree | be881bed89d6cb977d4f68aeaa28cd0af9b9728d /lib/epub.js/src/rendition.js | |
parent | a72807a9b1c4d6b6688b86abd4b7b71feaea3ca0 (diff) |
bump epubjs to 0.3.93
Diffstat (limited to 'lib/epub.js/src/rendition.js')
-rw-r--r-- | lib/epub.js/src/rendition.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/epub.js/src/rendition.js b/lib/epub.js/src/rendition.js index f9ba53d..14a21b4 100644 --- a/lib/epub.js/src/rendition.js +++ b/lib/epub.js/src/rendition.js @@ -36,6 +36,9 @@ import ContinuousViewManager from "./managers/continuous/index"; * @param {boolean} [options.resizeOnOrientationChange] false to disable orientation events * @param {string} [options.script] url of script to be injected * @param {boolean | object} [options.snap=false] use snap scrolling + * @param {string} [options.defaultDirection='ltr'] default text direction + * @param {boolean} [options.allowScriptedContent=false] enable running scripts in content + * @param {boolean} [options.allowPopups=false] enable opening popup in content */ class Rendition { constructor(book, options) { @@ -54,7 +57,9 @@ class Rendition { resizeOnOrientationChange: true, script: null, snap: false, - defaultDirection: "ltr" + defaultDirection: "ltr", + allowScriptedContent: false, + allowPopups: false }); extend(this.settings, options); @@ -892,7 +897,7 @@ class Rendition { */ triggerSelectedEvent(cfirange, contents){ /** - * Emit that a text selection has occured + * Emit that a text selection has occurred * @event selected * @param {string} cfirange * @param {Contents} contents |