Commit 64247211 authored by Robert Knight's avatar Robert Knight

Add some clarifying comments about PDF support in VS

parent c1abf185
...@@ -188,6 +188,8 @@ function makeContentFrameScrollable(frame) { ...@@ -188,6 +188,8 @@ function makeContentFrameScrollable(frame) {
* - Customize the document URI and metadata that is associated with annotations * - Customize the document URI and metadata that is associated with annotations
* - Prevent VitalSource's built-in selection menu from getting in the way * - Prevent VitalSource's built-in selection menu from getting in the way
* of the adder. * of the adder.
* - Create a hidden text layer in PDF-based books, so the user can select text
* in the PDF image. This is similar to what PDF.js does for us in PDFs.
* *
* @implements {Integration} * @implements {Integration}
*/ */
...@@ -287,8 +289,9 @@ export class VitalSourceContentIntegration { ...@@ -287,8 +289,9 @@ export class VitalSourceContentIntegration {
* @param {SidebarLayout} layout * @param {SidebarLayout} layout
*/ */
fitSideBySide(layout) { fitSideBySide(layout) {
// For PDF books, handle side-by-side mode in this integration. For EPUBs,
// delegate to the HTML integration.
const bookImage = getPDFPageImage(); const bookImage = getPDFPageImage();
if (bookImage && this._textLayer) { if (bookImage && this._textLayer) {
const bookContainer = /** @type {HTMLElement} */ ( const bookContainer = /** @type {HTMLElement} */ (
bookImage.parentElement bookImage.parentElement
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment