1
0
Fork 0
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:
Fred Chasen 2017-06-16 13:34:18 -04:00
parent 697c101a39
commit 987a216c55
5 changed files with 228 additions and 5 deletions

View file

@ -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;