mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Add annotation manager in rendition
This commit is contained in:
parent
697c101a39
commit
987a216c55
5 changed files with 228 additions and 5 deletions
|
@ -9,7 +9,7 @@ import { Pane, Highlight, Underline } from "marks-pane";
|
|||
const EVENTS = ["keydown", "keyup", "keypressed", "mouseup", "mousedown", "click", "touchend", "touchstart"];
|
||||
|
||||
class Contents {
|
||||
constructor(doc, content, cfiBase) {
|
||||
constructor(doc, content, cfiBase, sectionIndex) {
|
||||
// Blank Cfi for Parsing
|
||||
this.epubcfi = new EpubCFI();
|
||||
|
||||
|
@ -23,6 +23,7 @@ class Contents {
|
|||
height: 0
|
||||
};
|
||||
|
||||
this.sectionIndex = sectionIndex || 0;
|
||||
this.cfiBase = cfiBase || "";
|
||||
|
||||
this.pane = undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue